Open the detail page of an application

by Simone » Wed, 02 Jun 2010 02:16:54 GMT


Sponsored Links
 I'd like to open the detail page of my application from the lite
version of it.
I did something like this:

Uri.Builder builder=new Uri.Builder();
builder.path("market://details?id=package.mygame");

Uri data=builder.build();

i.setAction(Intent.ACTION_VIEW);
i.setData(data);

How do I open the market now?
Thanks
Simone

--



Open the detail page of an application

by TreKing » Wed, 02 Jun 2010 02:34:00 GMT


 




Assuming "i" is an intent, just call startActivity() with it.

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

--


Sponsored Links


Open the detail page of an application

by Simone » Wed, 02 Jun 2010 02:52:44 GMT


 Yeah it didn't work!
But this worked:

i = new Intent( Intent.ACTION_VIEW,
                    Uri.parse("market://details?id=games.joedodger"));
startActivity(i);

Thanks anyway!
Simone






--



Other Threads

1. onRetainNonConfigurationInstance confusion

When I perform an orientation flip, I see the following methods called
in the following order:

onSaveInstanceState
onPause
onStop
onRetainNonConfigurationInstance
...then...
onCreate
onRestoreInstance
onResume

I specifically want to use onRetainNonConfigurationInstance to *avoid*
saving a large complex data set from memory to storage (sdcard) and
reading it back in again.  I realize doing so is necessary when the
app might not come back, such as when it goes to the background or the
phone sleeps or something like that.  Under such circumstances, I must
go to the trouble of saving in onSaveInstanceState and restoring in
onRestoreInstance.  But for an orientation flip I just want to keep
everything in memory and react as quickly as possible.  As I
understand it, this is the primary purpose of
onRetainNonConfigurationInstance.

BUT, onRetainNonConfigurationInstance is the very last method that is
called as the process is shutting down.  So how do I know at
onSaveInstanceState time whether to save the entire data configuration
to storage or not?

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

2. Keputusan Google, OHD petition yuk?

Dari perbincangan saya dengan Country Manager HTC Indonesia, soal GMS
adalah hak dari Google. Mungkin strategi bisnis Google, yang boleh
baru wilayah Amerika Utara, Eropa dan Australia. Semoga Google sadar,
Indonesia pemakai gadget pintar yang sangat potensial, liat aja dulu
Commie, sekarang BB dll.








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

3. add images to gallery view after downloading

4. Ban Hot

5. Error found in build "htonl" no reference

6. Charset encoding problem

7. charset encoding error