Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am building a photo app in android where user will click no of photos and send it to server and if internet goes out in the middle of uploading it will save the photo in sqlite database.
Now i want that photos to automatically uploaded to server whenever the internet came back even if the app is not running. Can anyone suggest how it can be achieved?
I saw dropbox automatically upload the photos even the app is not running. I want similar functionality. Please suggest a way.
all you have to do is run a background service which will check if your database table has rows in it then if exists it will continue the upload and delete every row after it's completion from the table
EDIT
your service can't remain working if your app is fully closed from the Manager, I suggest you use the "Syncing to the Cloud" functionality check Here it contains the neccessary mechanism Majority of the apps use it DropBox also I think
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Hey guys I'm working on an Android App with Android Studio and I need a database like mlab(mongoDB). But Android doesn't support mlab. I can't just use SQLite because my data has to be saved also when my application is not running.
For example if my user signs in, their profile photo and other information should be saved in the database and I also want to code something like a friend request which also should be saved in the database.
I googled so much but I didn't find a good solution.
I hope someone can help me.
You asking about two separate things. mLab is a Database as a Service which uses MongoDB, while SqLite is just a database.
You can save data while your application is not being used with either option, simply look into background Services and other parts of the Android API that allow background tasks.
If you want to save data to a database that is not on the device, you'll need to look into the documentation of the service to determine the best way to interact with your database. In the case of mLab, they allow both custom drivers and a REST API for interacting with your database.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have an app in which i have done some work like updated database with some records. Now i want to generate its .apk file so if i send that .apk to another user he or she can continue work from where i left. Like i wrote a half article, now i want some one else to complete it so i send that .apk to him and he can install it and continue our work.
All i could find was to get apks for all applications but i want the generated apk to have all the work i done in my app so the other user can continue easily
ref: How to get the .apk file of an application programmatically
You can't send the apk to the other developer, you have to send the source code. Your best bet is to use an online repository (github for example) and share the code that way.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have made an android app for someone else. The app has a gallery option that should show various photos. The person I am giving this app to has no programming knowledge. I would like to have a common place where the person can upload pics and they show automatically in the app and get updated for all the app users. And by "common place" I mean a site like google photos or something. I would not want users to have to authenticate or anything. Whenever they open the app, the photos should get downloaded from the site. Which web service allows me to do this?
I would think a lot of photo sites would allow you to do this. I've done it in the past with Flickr and PHP, so I imagine it could be done using Android/Java.
Having said that, there's likely to be a lot more you need to consider. Photo sites have various terms of service, copyright agreements, and other important things you'll want to tell your client about before blindly deciding on a service just because it allows you to accomplish this task.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to develop an android app which will be help a shop owner can input his daily sales expense, employee history, product setting and it show day to day or monthly profit. when he use this app no need to connect internet connectivity. data all are store in sd card but if he want in internet connectivity state he can save data in dropbox. So as like a financial app when I build this which program I need to know like java, xml ?? there are need any database program ??? I am a new Apps Developer.
You would need a good understanding of Android fundamentals, XML layouts and SQLite db. Android training is a great place to start. A good sample app to start with all the DB stuffs comes with the SDK installation. Path is: \samples\android-17\NotePad
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am working on a android application in which i have SQlite database on my android device and sql server is on cloud.i want to sync both sqlite db as well as db on cloud.i want If I change database data in Android then It will change data on cloud server.when i change data from server then it should change data in android device. sync will run in 2-3 days when internet is available.i did google and got a alot of link regarding this,but i dont have a clear picture in mind that ho to do this. 1[google](http://www.quickconnectfamily.org/qcdbsync/docs/java/org/quickconnect/sync/SynchronizedDB.ht ml).2googleanyhelp will be highly appriciated if some1 giv me any sample code to achieve this.
I thought you have to create an account in account and sync section of android and have to make a service that will keep track of time and data and you have to put a flag or a time stamp when every sync occur and in sync process you may have to check whether the table data in both table is same or not. If any difference is found merge both tables and replace the duplicate entries.