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. Need help on BroadcastReceiver::

Hi Folks,
I do not know whats wrong in my code. here is the code snippet..

In the below code, I am broadcasting  the intent.

This is a class derived from Service.

private ContentObserver mMyFavesDbObserver = new ContentObserver(
new Handler()) {
@Override
 public boolean deliverSelfNotifications() {
return true;
}

@Override
public void onChange(boolean selfChange) {
                         Intent intent = new
Intent(HappeningLoop.UPDATE_ACTION);
intent.addCategory(Intent.CATEGORY_DEFAULT);
sendBroadcast(intent);
  }
 };


Here is the broadcast receiver::

public class DBReciever extends BroadcastReceiver{
 private long mActiveId;
private Context mContext;
 public DBReciever(Context context, long activeId) {
mActiveId = activeId;
 mContext = context;
}

@Override
 public void onReceive(Context context, Intent arg1) {
Log.v("Manjunatha", "Received result from Broadcast recvr");
 Intent intent = new Intent(Loop.Intents.ACTION_UPDATE_CHIP);
intent.setType(Loop.getMimeType(mContext.getPackageName()));
 intent.putExtra(Loop.Intents.sExtraActiveId, mActiveId);
intent.putExtra(Loop.Intents.sExtraPackageName, mContext.getPackageName());
 context.sendBroadcast(intent);
 }


How do i link both classes :( please help..

-- 
Regards,
Manjunatha

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

2. Developing browser plugin for Android web browser

> "Integrate" - I mean that in Android browser, when browser loads an

Better yet, I can provide you the proper Web site:

http://source.android.com

What you want to do is only possible today through firmware modifications,
via the Android open source project.

If that fits your business needs, I recommend continuing your inquiries on
one of their Google Groups:

http://source.android.com/discuss

You might also keep tabs on the Android NDK project, in case that enables
browser plugins without modifying the firmware:

3. adb is not detecting my android phone

4. OT: 100s of old group emails

5. "send" intent only when activity is on top running

6. C to CPP conversion (or vice-versa) based on the package type having C or CPP.

7. attributes for multiple resources in attrs.xml