Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old December 1st, 2010, 08:19 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2010
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Question Copying app+data between emulator and device?

Hello,

I'm currently researching several topics concerning Android before buying a device, probably the HTC Desire or similar.

I read the overview topics of the SDK, and found mention of an emulator. I assume you can emulate at least a generic android device on the PC.

Here's my question: is it relatively straightforward to take an app from a real device and copy it (together with all its data, settings, etc.) to the emulation and vice versa? By "straightforward" I do not necessarily mean that it is a one-button process, but that it can be done with practically any app out there.

Or is that very much dependant on the app?

As far as I understand, the app with its ressources is contained in a single archive, then there's some data files the app can create (which, I assume, are physically stored together in a unique directory for this app), and finally there can be an optional SQLite DB (hopefully also stored in said directory)? Would it then work (with a rooted device) to copy all of this between the emu and the device? Or are the names of those storage areas containing things like device-dependant IDs etc., making it very difficult?

Thanks!

Advertisements
ComingFromPalmOS is offline  
Last edited by ComingFromPalmOS; December 1st, 2010 at 08:23 AM.
Reply With Quote
sponsored links
Old December 1st, 2010, 10:40 AM   #2 (permalink)
Member
 
Join Date: Aug 2010
Location: Norway
Posts: 313
 
Device(s): Samsung Galaxy Nexus
Carrier: Not Provided

Thanks: 0
Thanked 53 Times in 51 Posts
Default

As you mentioned you need a rooted phone to get access to the directory containing all the apps and settings. The directory name is /data/data/app_name i think, and i think its the same on all phones.
miXer is offline  
Reply With Quote
Old December 1st, 2010, 03:26 PM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2010
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, I didn't find anything in the docs, but installing the SDK and just looking in the emulator worked fine.

Looks like everything is layed out plain and simple - prefs, individual data files and SQLite dbs seem to be under /data/data/<appname>. I couldn't find an obvious occurence of some device-dependent ID, so they should be portable between a true device and the emulator.
ComingFromPalmOS is offline  
Last edited by ComingFromPalmOS; December 1st, 2010 at 03:31 PM.
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:32 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.