hi to all.
im new in java and android studio.
i want to make a application that users can register on it.
i guess maximum 30.000 user capacity is suitable for my database.
so what database should i use ?
i can't understand database differents.
like : SQLite - MySQL - SQL Server - Oracle - the database maker in ide and etc ...
please some body help me ... what database should i learn to connect with my app ?
thanx.
You should use SQLite
Yep. .u should use SQLite
Go with Parse or any other mBaaS services.
If you want to learn then do this
1. Create a db in SQL or mySQL ( you need to host it locally or through some service)
2. Write an API/Service that talks to your database
3. Use volley or other networking library in android to talk to the database
4. Use the data you got in (3)
Use SQLite
SQL
U should use MySql, i used on all of my projects and it is the best in my opinion. If u want u can use MariaDB to run the database, it is a improved and fastest version of MySql :laugh: .
You have to use SQLITE database in your app.
SQLite is the easiest choice, considering you are going to use the database just for user registration you can use SQLite..... In the future if you start using the database for other purposes and depend on performance you should choose Oracle.
remote databases like parse.com can help u for massive data
Sent from my SM-N900 using XDA Free mobile app
Use SQLite as a primary database for Android.
But before you start reading documentation, you probably want to know something about ORM realizations, which are commonly used in Android development. The most popular is GreenDao, ORMLite, Realm.io and many others. They incapsulate work with sql queries and db initializations, and much save your time.
Related
Hi Guys
Don’t miss your favourite TV programs, let MyEpisodes viewer show you when it’s on.
MyEpisodes Viewer is an easy to use viewer that extends www.myepisodes.com website to your mobile phone.
All the viewer requires is your MyEpisodes username and password to fetch the listings you have already configured on the MyEpisodes site,
The viewer also allows you to update listed episodes to watched status with one click.
Caveats
1.) Due to MyEpisodes not having a standard API, the Viewer uses a API Helper site (api.madmouse.co.uk) to handle the data.
2.) MyEpisodes has the right to change permissions and there site without notice, which could cause the application to stop working.
3.) To allow api.madmouse.co.uk to enable advanced caching some information that identifies the device will be transmitted to the site
a. These details are hashed and erased 20 minutes after last call to the site.
b. No data is record to disk.
c. No data will be passed onto 3rd Party vendors.
Have Fun
I will put this into the Market place, when teh development team sort out a few issues that prevent me from uploading the application.
Such as?? If I may inquire.
Hi flcl
I have to admit when I am wrong, please ignore or learn from the unjustified comment, as it turned out to be a flaw in the build process.
If developers have the following problem in the future , here's how to solve it.
After building/signing an application, when you publish it get this message
"The new apk's versionCode (x) in AndroidManifest.xml must be higher
than the old apk's versionCode (x)."
If you have set the android:versionCode to a higher number than x, it means your application manifest file has not been updated correctly.
These are the steps I took to correct the problem.
Make sure you have increased the android:versionCode.
close all applications that don't need to be built in the Eclipse editor.
Delete the APK if it already exists (Optional)
Run Project -> clean , select your application hit ok
Rebuild - Export unsigned Package/sign then publish
I have now published the applicaton in the marketplace.
Does anyone know of a copy of GPG for android at all, or the best way to go about recompiling/cross-compiling it?
I'm thinking/hoping this would be the easiest solution to enabling K9 or similar email apps to support encryption without coding up a bunch of java code to do it.
Although I could be wrong and doing GPG type code directly in K9 might be the better solution.
Hi. Sadly, I cannot help, but this would definitively be a great feature for the android phones if someone could develop such a thing!
I've been fiddling about with RSA/AES code today on Android. At first glance all the hard work is done as both are already implemented, it's just missing the glue to combine RFC2440 with the encryption functions and then you'd have a working copy of PGP/GPG for Android and/or hook into K-9 as well.
Does anyone understand the formatting of encrypted and/or signed blocks? If so that would save me a lot of reading and blundering through RFC2440
Actually I am was looking for GPG encryption in Google Andriod as well. it would be very good to have this feature in Email, Calendar, Contact, ... so it gives more privacy and security. Also some people nowadays use GPG for their gmail communications. there is very nice Firefox extention called "FireGPG" which integrate with Gmail for GPG encryption: http://getfiregpg.org/
Even there is PGP encryption Firefox extention for Google Calendar: http://www.ibm.com/developerworks/web/library/wa-googlecal/
I found this Java GPG class: http://www.macnews.co.il/mageworks/java/gnupg/ probably useful for programmers looking for a way to integrate GPG on Andriod.
delta_foxtrot2 said:
Does anyone know of a copy of GPG for android at all, or the best way to go about recompiling/cross-compiling it?
I'm thinking/hoping this would be the easiest solution to enabling K9 or similar email apps to support encryption without coding up a bunch of java code to do it.
Although I could be wrong and doing GPG type code directly in K9 might be the better solution.
Click to expand...
Click to collapse
It would be fairly trivial to just cross-compile gpg using the arm-eabi toolchain included in the sdk. However, that would not get you very far into enabling gpg functionality in k9. You would have to modify parts of k9 to interact with the gpg binary.
There is issue regarding integration of gpg with k9:
http://code.google.com/p/k9mail/iss... Type Status Priority Milestone Owner Summary
jashsu said:
It would be fairly trivial to just cross-compile gpg using the arm-eabi toolchain included in the sdk. However, that would not get you very far into enabling gpg functionality in k9. You would have to modify parts of k9 to interact with the gpg binary.
Click to expand...
Click to collapse
What about using the NDK to build some lib version of gpg?
I've tried using the BC stuff and it's just too much for eclipse to handle...
use bouncycastle
As I understand it, Bouncycastle is a pure-Java implementation of a bunch of crypto stuff. And it includes support for encrypting/decrypting/signing with OpenPGP (which the RFC-standard format that GnuPG implements anyway).
Since I'm a new user, I can't post a link yet, but the documentation can be found by going to bouncycastle dot org, clicking on java, clicking on documentation, and then searching within the page for "OpenPGP package".
Going with a pure-Java implementation seems like the easiest and cleanest way to get something working on Android.
GPG/PGP for android please! Use it for work a lot so it'd be very useful.
PGP Manager for Android
try "PGP Manager for Android" app, it supports PGP/GnuPG and works with PBE (symmetric encryption) too.
apg
APG is an gpg integration für android. you can encrypt and sign messages too
apg.thialfihar.org
When I am at work I would like to check that balance on my debitcard through my banks online services.
But to access this there needs to be installed Java on my workstation. But my employer doesn't want to have Java on their machines so I can't access my bank online service.
My question is there a website like the websites which offers anonymous surfing where the service I am looking for offers Java so I get access to my banking services???
Unfortunately, Java runs purely on the client machine, so it's not possible in the manner you request. The only way I could see it being possible is if you actually browsed the site on a remote connection. Do you leave your home PC on? If so, maybe it's worth setting up Remote Desktop, or Logmein (or similar).
Hi, i am currently developing a back-end for my android app in PHP and i need somewhere to test it and deploy it. Is there somewhere i can test my back-end for free? I am willing to rewrite it in a other language if necessary. I have looked at app engine, AWS and azure but i do not have a credit card of my own.
Any suggestions?
Running and testing API backends locally
To test the backend, you'll use the API Explorer, which is a tool that lets you test APIs interactively without using a client app. This tool is automatically run for you when you navigate to your backend API's subdirectory /_ah/api/explorer as we'll describe in the instructions below.
for more information plz follow this link -> https://cloud.google.com/appengine/docs/java/endpoints/test_deploy
damponting44 said:
Running and testing API backends locally
To test the backend, you'll use the API Explorer, which is a tool that lets you test APIs interactively without using a client app. This tool is automatically run for you when you navigate to your backend API's subdirectory /_ah/api/explorer as we'll describe in the instructions below.
for more information plz follow this link -> https://cloud.google.com/appengine/docs/java/endpoints/test_deploy
Click to expand...
Click to collapse
Thank you! Do i need to be enrolled with app engine to use it?
Adding an App Engine Java Servlet Modulec -
This page shows you how to add an App Engine Java Servlet module to your project in Android Studio.
To add the module:
Start Android Studio and open the project for the Android app that needs the new backend.
If you have not installed Android Studio or set up your environment yet, see the Quickstart for details.
Right-click on your project and select New > Module.
Select Google Cloud Module from the list and then click Next.
Select App Engine Java Servlet Module, and then supply the remaining information in the New Google Cloud Module form:
Enter module parameters
Supply a module name for your backend; this name will be displayed and used in your Android Studio project.
Supply a package name. This package name will be used for all classes imported from this template.
Select the client module (containing your Android app) in this project. This module will be automatically set up to have the right compile and build dependencies to be able to call your newly generated backend.
Click Finish to generate the new backend.
Select Tools > Android > Sync Project with Gradle Files to sync the project.
scottyaim said:
Hi, i am currently developing a back-end for my android app in PHP and i need somewhere to test it and deploy it. Is there somewhere i can test my back-end for free? I am willing to rewrite it in a other language if necessary. I have looked at app engine, AWS and azure but i do not have a credit card of my own.
Any suggestions?
Click to expand...
Click to collapse
Hello, I have recently added a few features for Webhook Relay com project (google it, don't want to post link) such as bidirectional tunnels for exactly this reason - test your application backend without deploying. You can just spin up a java/php/python/go/whatever server on your laptop and use relay agent to expose it to the internet. I hope it helps.
so basically i want to monitor system wide app installation and uninstallation, including sideloading with dates? if possible to have it create a log and store it in a specific folder that is locked or can't be accessed or deleted without code. and to do a daily or weekly check to see if any changes were made.
also is there a task to block all installations including sideloading?
any help would be appreciated.
@ktmom
So tracking installed and uninstalled apps is straightforward.
I'm not aware of a way to lock the resulting file per se. Encrypt it, probably. But to prevent any other app from accessing it, I don't know how to do that. It could be uploaded to the cloud, e.g. Google drive. Then the local copy deleted. That's kinda fussy. Saving it as a variable array is doable, then Tasker can be locked.
If on every install / uninstall, the log is updated, why does there need to be a daily/weekly check?
I would have to test and see if the package manager can be "locked".
Is the device in question rooted?
This kinda sounds like something I might do to my kids phone [emoji6]. If this is actually the case, the file could be sent to your device or email on update. It wouldn't matter if the local copy was edited. You also could know immediately if an app had changed.
I asked in the other thread, do you have any familiarity with tasker?
@ktmom
device is non rooted,
file sent to email would be fine if that will get rid of daily/weekly checks. (<--- this was just something I wanted that maybe i'll just use in notepad++ to highlight the differences for a quick way of seeing changes.)
i have dabbled in tasker many years ago, only to enable/disable wifi and turn on vpn in geo fenced locations.
I haven't forgotten you. I should post a solution by the weekend. I'm just spending some time to make sure the kinks are out. You will need the MailTask plugin. I personally use a script in termux (requires cURL) to send via Google servers, but that is harder to setup, particularly with OATH. The plugin makes life much easier.
ktmom said:
I haven't forgotten you. I should post a solution by the weekend. I'm just spending some time to make sure the kinks are out. You will need the MailTask plugin. I personally use a script in termux (requires cURL) to send via Google servers, but that is harder to setup, particularly with OATH. The plugin makes life much easier.
Click to expand...
Click to collapse
ok great, thank you!
@BobMcGeez
Finally, I think I have this stable and able to handle multiple consecutive app installations and removals. I am working under the assumption that the use for this project is to monitor possible dangerous activity on a child’s device. I do not condone the use of this for monitoring a device without adult consent.
This project will send an email notification when a new app is installed or an existing app is removed. The email will include a CSV file with the remaining still installed apps. It should ignore apps that are being updated (they remove then install). The emails are sent silently and there should not be any indication to the user this is happening in the background. The CSV file is saved in the {storage}/Tasker/tasks/ directory. Each time an email is sent, the stored file is also updated. One instance of the previous file is saved as well.
First, you need MailTask installed. Please ensure that the MailTask plugin is fully configured and tested before installing this project. We are using OAuth Gmail authentication, so ignore SMTP stuffs.
Also, IMHO, I would use a GMail account maybe even created for this purpose, but at least one not setup to routinely access by the device user. This way, the user’s account will not reflect the sent messages.
To configure and test MailTask
Open MailTask from the app drawer on your device
Perform “Authorize Gmail Access” Use the account for the “from” you want to use in this project
Perform “Grant access to primary storage”
If your device has an SDcard, perform “Grant access to Sd card”
Now if you want, you can create a task in your Tasker installation to test the MailTask plugin
Create a test task
Add a MailTask action (Plugin -> MailTask -. send email)
Configuration:
From = Account used to Authorize Gmail Access above
To = Account where to send email
Subject = Testing MailTask
Body = Some text to take up space
Attachments = choose a basic file using the paperclip icon just for there to be an attachment
Test plugin by manually running the task.
If all is good, you can delete this test
Now install the project (taskernet link). On install, accept enabling the profiles. If you do, then the Installation task should run automatically. If you prefer not to, or if you need to re-run the installation, manually run the “Initial Setup” task.
This project may be shared under GNU v2. You may share, modify and use it provide you don't charge, the code is open and credit is provided.