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. ANR Camera Button Long Press Event

Hi,

I have an issue in camera button long press event.

Issue :
When I press and hold camera button, multiple times onpause is getting
called in applicaiton.
Is this expected behavior? and also my camera getting stop preview and start
preview. After some times, ANR coming.

Some times, onpause is not getting called and at this time, camera works
fine. no stop preview called from on pause.

Which one is correct in above two behavior ? or both?

How to take this to solve and any ideas????

Thanks U...

Regards,
Pandi

-- 

2. Intent not received after application started

Hi,

I am trying to read NFC tags with my Nexus S mobile.

In my Manifest file I have the intent filtered:

         <intent-filter>
                <action android:name="android.nfc.action.NDEF_DISCOVERED"/
                        <data android:mimeType="*/*" />

                 <category android:name="android.intent.category.DEFAULT"/>
        </intent-filter>

When the mobile detects a tag and the intent is created by the system,
my application is started. So, the filter works fine.

The problem is that, once the application is opened via Intent, if the
mobile detects another NDEF_DISCOVERED the application does not
receive it.

I have implemented the onNewIntent method, but it is not called. I
also have added the android:launchMode="singleTop" line to my
activity.

Does anyone know can I solve my problem?

Thanks and bye.

-- 

3. IllegalArgument Exception: Service is not registered

4. USB OTG problem in i.MX51 Android r9.4 release

5. [Ask] Biar spica bisa maen game 3D

6. [WTI] LG Mobile Indonesia : Optimus 2X. 4,990,000. 30 April.

7. How to change Application theme