Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
In android mobiles there is possibility for clearing local data stored without any authentication.If we go to application manager and select an app->click clear data button the local data including files,database will get erased.I have an idea of introducing a routine to authenticate to clear the local data.So that other than user no one can clear it.Is it possible ?
This "CLEAR DATA" option is severely broken for the use-case of Home Screen widgets that may have shared preferences and/or some local cached data.
It is also completely against the developer documentation which says:
"You can save files directly on the device's internal storage. By default, files saved to the internal storage are private to your application and other applications cannot access them (nor can the user). When the user uninstalls your application, these files are removed."
I don't know if this answer is going to be helpful or not anyway i will tell you my idea,
i don't know if there is any mechanism that prevents the user from clearing the /data/data/<applicaton folder> but you can refer the Android device admin API at http://developer.android.com/guide/topics/admin/device-admin.html another approach is that(Don't know if that's even possible) to listen to the Settings>apps activity and show an authentication form but i think that wont be able to solve this problem here anyway maybe this idea may ring a bell
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I am developing a phone application using Firebase cloud services. The App is publishing new activities with images and captions.
The way I'm thinking is writing activity first into Firestore and then use the Firestore's generated id to name the image in Cloud Storage.
But, The question is. What's the best approach to handle errors if the app was able to write into the Firestore BUT not able in Storage? How is the whole thing will impact the user experience?
Not Sure, If saving the image into the phone filesystem temporary until getting it uploaded the right wat? OR Prompt the user about the failing process? But again this will costly by deleting the activity from Firestore or how to manage it if the user already lost the connectivity for some reason.
There are a lot of items it could happen during this process with a lot of possibilities. What do you think?
Thanks,
There is really no "best practice" here, other than writing the code that meets the needs of your app.
If an operation fails for whatever reason, and you need to revert other operations due to that fail, you will simply have to write code that undoes what you did previously. So, if you created a document in Firestore, then uploaded an image in Cloud Storage, but the upload failed, you will have to decide what you want to do with that document. Maybe you want to delete it, or maybe leave it around to use later. It's up to you - we can't tell you what your app ought to do, but you can write the code that does exactly what you want.
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
I'm not very experienced with developing app/tools, but I really want to develop (if practically possible) a tool that would notify the owner of the Google Drive folder of the information related to someone else accessing the folder (assuming that the folder is shared with that someone) such as, Access Date/Time, Accessed By etc. In my opinion, this would only be done if the user/owner has the tool/app opened/switched on.
I was reading the Google Drive API but couldn't find anything useful on this.
I'd like to know how to get started with this project, if this is even possible? I'm not very experienced but I want to learn as I grow.
I recommend going though the Google Drive API. When set up correctly Changes.watch will notify you when ever a file has been changed the trick for you will then be to notify your user.
Alternative would be to just check the file every now and then and see if it had been changed using file.get. However this is probably over kill depending upon how soon after the change you want to know about it.
I am not an android dev so cant help you much more then that. Your question is rather broad so once you start working with it if you have any issues getting it working I recommend you ask a new question directly related to those issues. Welcome to stack
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I am using KeePass v2 and I am a bit confused about synchronizing the kbdx file on google drive. There seems to be two ways and not sure what the advantages/disadvantages are between them.
Using the KPGoogleSync plugin
Store the kdbx on the Google sync folder (C:\users\xxx\Google Drive)
It doesn't seem that either one can detect changes that were made by a mobile device and automatically load them in. Both methods seem to require open and closing of the database in order to get the most recent changes done externally. The plugin does seem to have a menu based way of performing the update as well.
So what benefit would there be to use one versus the other that I am missing? I am most worried about the sync process and losing data between desktop and mobile device. Is one preferred over the other?
The sync plugin can handle simultaneous changes on both sides of the sync.
It merges the databases when syncing by knowing the structure and change dates of each entry in the key database.
Using the external sync tool, this merge is not possibly since the tool can not know the structure and the encyrption key of the database.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have 2-300 MBs of application data that is images/videos and audio files, i want to save all these data in encrypted form, and can not be seen/deleted by user while exploring sd card. Can anyone help me for doing this.
and can not be seen/deleted by user while exploring sd card
This is not possible. Users have the right to get to whatever they want on external storage, including deleting it.
Rooted device users can further get to everything on the device, including internal storage. Since there are relatively few rooted device users, you could put your files on internal storage on Android 3.0+.
You can use APK expansion file.
so it will not seen by user. user can delete that file so you have to check on application start up that this file is available or not?
More info regarding apk expansion and example
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is there somekind of log (like an OS event log or something) that could maybe give me an idea as to why an application crashes on start?
The specifics (irrlevant to the question itself):
I have recently purchased a copy of Final Fantasy Dimensions for my Android phone (Motorla XT615 with Android 2.3.7) and everytime I click on it I get a flicker (black-screen) and then it goes back to the home screen.
Does anyone have any suggestions or am I way off base with this one?
Thanks,
There are apps a user can download from Google Play that can grab log files to be sent to a developer. For example: Log Collector and CatLog.
Note: With Jelly Bean and later, root access is required for an app to access the logs of another app, so the log-grabbing apps listed above may not be useful for the average Android user.
If you have Android development tools available, see How to get Android crash logs?
You could read the log using apps such as CatLog or Log Collector, but it probably isn't going to help you find the FC issue, unless you actually had the code for it right in front of you, which you wouldn't have unless you were a dev of the game. But, anyways, good luck!