Data readable by two apps

by Viktor Linder » Sat, 08 May 2010 14:51:37 GMT


Sponsored Links
 Hi!
Is it possible to share files between two apps?

My scenario is this: I want to create a free/demo version of my game
and a complete version. The player should be able to play the free
version, then upgrade to the complete and continue where the free
version ended - ie. the complete version would need to load a savegame
created by the free version.

All answers appreciated!

Best regards,
Viktor Linder

--



Data readable by two apps

by Mark Murphy » Sat, 08 May 2010 18:26:51 GMT


 


Yes, if they are signed by the same signing key and use the same user ID
-- see the android:sharedUserId attribute of the <manifest> element:

 http://developer.android.com/guide/topics/manifest/manifest-element.html 

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

Android Development Wiki:  http://wiki.andmob.org 

--


Sponsored Links


Data readable by two apps

by TreKing » Mon, 10 May 2010 05:51:22 GMT


 




You could also save to the SD card, if you don't mind the data being
"public".

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
 http://sites.google.com/site/rezmobileapps/treking 

--



Other Threads

1. How to access native Application from a Java Application

Dear all,

At first, let me wish you all a Happy and a Successful New Year 2009. I have
question on accessing Native C code which is in android middleware from Java
application. According to the Android software architecture i see
APPLICATIONS access APPLICATION FRAMEWORK and in turn APPLICATION FRAMEWORK
ACCESSES MIDDLEWARE NATIVE C libraries. My questions are

1. Do i need to follow the architecture ? APPLICATION -- > APPLICATION
FRAMEWORK -->MIDDLEWARE NATIVE C libraries
or i can access it directly APPLICATION -- > MIDDLEWARE NATIVE C libraries

2.If i want to access C Helloworld code from Java application what all
things i have to do (Exposing the C interfaces, .... ) anything else i need
to do ?

3.If my second assumption is correct (C library exposes set of API) how
Java application accesses these exposed APIs ?

4.And from Java application i guess few packges we need to import how these
are getting built ?

Any good documentation and good pointers will be of great help.

If i have missed any point additionaly and please let me know


With Best Regards
Girish

--~--~---------~--~----~------------~-------~--~----~

2. Problem with ListAdaptor

Hi friends,

I am using ListAdaptor in my application.

My requirement is

ListAdaptor contains some countries names.

When we click on particular country, it displays the states in the
selected country (as a dropdown list). When we click on the state, its
corresponding image will be set to background.

This is my requirement.

I am able to do this well except in one condition, i.e., when
selecting country/state (dropdown list comes and select a state) and
clicks on same country (dropdown list goes up) and again if I click on
same country, selected state's back ground image is showing, and if I
select another state in the same country, the previous state's
background image is still visible, actually it should go invisible.
But it is not happening.

Actually my functionality works fine if we are in the same country,
clicks on different states, the images of the states are changing.

But in the above condition it fails to show as I am expecting. ( I am
unable to clear the previous view's back ground image when I click the
same countries more than once).

Can any one please help me.

Thanks,
Manoj.


--~--~---------~--~----~------------~-------~--~----~

3. How to install or run a Java Midlet in G1 Phone or on emulator

4. Android Dev Phone 1 - can I gain access to replace/add system fonts ?

5. sluggishness of G1 android

6. Show your tax for G1 Dev Phone?

7. Compile Error(s)