Android :: Update A Database When Installing / Upgrading An App?
Mar 27, 2010
I have a main application, and a bunch of sub-applications (they are separate apps, which do not appear on the android home dashboard). I was planning on having a SQLite DB which the main app maintains, and get a list of available sub-apps from. Is there a way to update this main database as the user installs the sub-apps?
Two alternative I was thinking of include:
User installs the sub-apps via the main app, which would then update the DB.
Rather than use the DB to find all installed sub-apps, have each sub-app declare a category, and use intents to query for all applications which match that query (is this even possible?
After upgraded my X10 Mini Pro to Android 2.1, when I tried to connect my phone to PC Companion 2.0, after selecting USB connection on my phone, my phone automatically re-started! After restarted, my phone was locked (i.e. no response whatever I touched the screen or pushed the keyboard), there was an error message on my phone that there was no SIM card in my phone (in fact, I had not taken out the SIM card). The phone resumed to work only after I disconnect the USB cable from my phone.
I tried to switch off the phone (even took off the battery) several time and tried again, the same occured. Before upgrading, everything worked fine. What should I do? I can't downgrade it back to Android 1.6.
I am facing a strange problem with my xperia x10 , when i first installed PC companion it told me there is an update so i did everything the right way but when i turned on my phone nothing changed and i checked the firmware version and it's still1.6 . But i noticed some new appliations in my menu that's all . I did the update many times after that despite PC companion telling me that i am uptodate and still nothing change
I upgraded my phone with no problems. However, when I tried to restore my backup I was informed that there wasn't one. Is this a common problem? Is there a way Ican stop that from happening niext time? I still have most of my contacts but they aren't linked to my facebook anymore and with the new upgrade I can't seem to be able to link them, except if I go through facebook. The problem with that is that some people use different names on there or I have them in my contact list under different names. Is there a way to link them manually anymore? Thats how I used to do it.
I have installed PC Companion but every 2-3 days it announce me a new update for my phone X10mini.Is it possible to know which bugs are fixed in each update before proceeding ?Is there a way to save all data before upgrading and restore after upgrading ? (sms, sounds, accounts, software, note, alert, phonebook etc)
I've got a question about updating an app after release. If I have a database that contains 10 columns and I add a feature that requires an 11th column after the app has been released, where would I put the sql code to add the new column so that when they install the app it keeps their current data, but adds that 11th column? Is that even possible or would I need to create another table that references the first with a foreign key?
I'm using a HTC Legend (VF branded) and have installed the Yahoo MAil app for free. It has runed well but after starting an update two or three weks ago, the installation has started and never ended.I can't uninstall the app during the installation and I've tried Uninstaller Pro to uninstall Yahoo Mail. It has worked but the installation ist still running so I can't reinstall the app.
I update a value in my Database in a Listview using a Context Menu. The code so far seems to be ok. But everything i try to make the update visible in the View failed. Anyone can point me whats wrong there ? I use a ViewBinder to map the Layout for each row.Code...
Good morning everyone, I am new to programming with Java and Android, I'm trying to make an application to seek an xml in a web address and contains information that should be saved in my sql lite ... The doubt is as follows: I have to download and save the xml file on the device or can just work with it in memory, example: xml = xml.create (www.meusite.com.br / meuxml.xml); how would you do?
I don't exactly know how android updates the applications. As far as I've read around here it keeps the SQLite database. So, imagine this scenario: one application that uses SQLite database for persisting data. After a while I release v2 which contains some database changes and I need to update user data in database. How can I make this during the update process ?
I am implementing an android application and i can't figure out how to solve this problem : When user clicks to the update button , i want to connect to the my server and check if there is any update on the data , if there is , i want to get data from server and update the database.Should i use xml structure to check and get updates from server or is there any smarter ways to achieve this ?
I have an app which uses a large amount of data which has been compiled outside the app (on my main PC). The app is for my personal use so there are no complications with having to distribute data updates to other users. However, I am currently following a very convoluted and time-consuming procedure each time I want to update the data, and I wonder if anyone can suggest any ways to streamline it.
The procedure I follow whenever I want to add new data is as follows:
I enter the new data into a csv file which I maintain as the source of the relevant table in the database. I use SQLite Database Browser to import the data into an existing SQLite database. (This program does not seem to have the ability to append imported data into an existing table, so whenever a table needs updating I have to delete the existing table, then import data from the csv file into a new table, then manually edit the data types for all the fields in the table.)
I drag the icon for the database file onto the 'assets' folder of my project in Eclipse. I export the project from Eclipse as an apk file. I copy the apk file to my phone (using Astro File Manager) I uninstall the old version of the app and install the new apk. when the app is run, code based on the example set out here copies the data from the 'assets' folder into the app's data folder; this means that each byte of data takes up two bytes in the phone's internal memory; at present this is not a problem, but could be as the volume of data grows; I wonder if there is a more memory-efficient method?
I recently bumped into a problem installing the latest SDK update (r6) in eclipse on Windows (7), which I ultimately "solved" and thought I would share. During the update of the SDK, the update process was trying to rename a folder (C:...android-sdk-windowsplatformsandroid-1.6) but failed to do so claiming that the folder was locked by another process.The alert window that popped up advised that on Windows this is often due to Anti Virus software monitoring the file system (or some such message).After dutifully disabling my local AV I still got the error. This prevents you from continuing with the installation and for fear of ending up with a half finished install I thought I would track down the culprit.I used ProcessExplorer (http://technet.microsoft.com/en-us/ sysinternals/bb896653.aspx) to find the file handle (in Process Explorer go to Find->File Handle or DLL.and type in the folder name, e.g. android-1.6).ProcessExplorer found two file handles, both of which were eclipse itself! In my case, I had ProcessExplorer force-close the handle(s), which is generally not a good idea but in this case it worked and the install was able to complete.I had some confidence that closing the handle would be OK because it seemed eclipse had a grip on a JAR file within this path, which would make some sense.I think in future it would be best to run the update outside of eclipse (ie launch the AVD manager directly), and indeed this may be in the guides for installing updates but I didn't check before I started the process.Just thought someone else may benefit from this.
I currently facing problem where user have the choice to enter several working experience, where every working experience include several details (company name, duration, roles etc) I don't know how should I store it since users have the freedom to add as many working experience as they have.I have a table as below
Anyone ever had this happen? Downloaded an update after the 2.1 upgrade and I sync'd my contacts with FB. It then deleted all of my contacts.So I deleted Facebook, re-stored all my contacts and reloaded Facebook. However, now it gets as far as installing and it never stops. It just stays on Installing.However, the FB app works fine on the phone itself.Is this a Market glitch? Is there anyway I can purge it from out of my downloads section?
So I just installed the a home update, it installs so i click on the home button, select to make a home my default home app and then I get a "force close" over and over. So i turn off my phone, turn it back on and now it wont go past the android screen(blinking android guy). WTF?! What are my options?
I have a database that gets updated by a background thread. Is is possible for the UI ouput(using a listview) to change when a database entry is added/deleted? I've seen examples of using SimpleCursorAdapter and listViewAdapters and I'm not sure which to use and if it would even work.
I found an "efficient" listViewAdapter which would work great for me since it doesn't call findViewById often and I can change the data structure to hold exactly what I need, but I don't know how to hook it into my database adapter so it dynamically updates the output when there is a database change. Example: http://www.androidsnippets.org/snippets/125/
I have a motorola droid milestone and it is my first smartphone. I followed a guide to install Froyo there. The other day and update to android started installing (supposedly from verizon) on system updates. For the last few days it has been downloading, finished downloading and then telling me the system is updated (no reboot nor anything) and then it will start to download again. I have no clue why that may be.
Build number is voles-userdebug 2.2 FRFxx 49593 test-keys Only thing I did with a terminal emulator was remove a couple of applications (visual voice mail and google search, google voice search and google earth to install them from the market as I was unable to update them).
I have just upgraded to 2.1 and am finding that when playing games the touchpad isn't responsive at all and is requires repeated touches to complete the one function. The games I've found this problem on so far are paper toss, toss it, angry birds, basketball shots 3d and air control lite. I had no problems with any of these games in 1.6 but now after the upgrade most of them are unplayable due to this issue. I've noticed the problem goes away in air control lite when I disable hardware acceleration in the settings. At the moment this is a big problem and pretty much makes the phone useless for playing games. Hoping someone has some advice for me. PS. My wife has same phone and I upgraded her's too with exactly the same problems.
I have tried to install 4.4.3 on my Nexus 4, I got it OTA a couple of hours ago it has now been stuck on the "Installing system update" for about 1.5 hours now, the blue bar scrolls across and just resets at the start every few minutes. I'm now not too bothered if I can have the update I just want my phone, can I just turn the phone off while it's on that screen? Do I leave it overnight attempting?
Just updated my xperia x10 to the new 2.1 op. Followed the installation to the letter, backed up my files using the new backup n restore etc, updated it n then began the restore, now this is the frustration part. i did everything SE said to do even did 2 backups but when i try to restore it takes ages n then says could not complete. not only have i lost all contacts but more frustrating i have lost all my apps, both paid and free. my Google account seems to be wrong although i cant really remember it, tried to get the user name/password sent to my hotmail but seems to of created a new account n i don't have these "links to re-downloads" ur android apps. please need help big time cause m just ready stuck and frustrated.
I tried to update my phone yesterday while it was rooted at the time and it did not install. I un rooted my phone this morning and tried to install the update again and it still would not install. any help would be appreciated.
I rooted my phone with Unrevoked Forever and installed the Virtuous 2.2 ROM a while ago, anyway, I'm getting a notification about a system Update that wants to install Verizon Bloatware on my phone, so I was gonna install it then promptly delete the apps just to get rid of the notifications, but when I go to install, it counts down from 10 to restart, then does nothing. So the notifications keep coming up, no matter how many times I try it.
My Incredible is rooted. For the past few days I've received a notification that a system update will be installed and the phone will reboot. Nothing happens, no reboot and no evident change. Now that the phone is rooted do I need to apply updates manually? Should I take the Verizon updates at all? (The only specific change mentioned in (more info" for this update is the addition of an app called "Slacker").
I am getting calls going straight to voicemail with no missed calls on my phone, when I have full signal, so orange have (after a lot of calls) agreed to terminate my contract. I have to return my phone (shame I could not keep it for free!) and have rooted my phone, and installed the modaco ROM.
I want to return it with an orange ROM, and was wondering if I can just install the updated orange ROM on my phone over the top of the modaco, and has anyone done this successfully? From reading around I am assuming that this would hide the fact that I have ever rooted or installed a custom ROM, as I want to be back on warranty?