Market API to access app descriptions and ratings?

by rAndomPi » Sun, 15 Mar 2009 13:12:33 GMT


Sponsored Links
 I'm trying to create an app that would allow me to organize my
installed applications into various groups.  As part of the
application I would like to display information about the app
including the description the developer provides as part of the
market, its current rating, and the number of downloads.

I am aware of the Intent to launch the market for a particular app as
explained here: 
 http://developer.android.com/guide/publishing/publishing.html #market

But I don't want to launch the market for the app, I want to access
the information and provide a customized display.  Can anyone point me
towards some documentation that explains this or provide a code
snippet example of how I could accomplish this with an Intent?

Thanks for you help,
-rAndomPi

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



Other Threads

1. Problem with ProgressBar, Handler, MediaPlayer

The code below executes when some button is pressed.  It plays an
audio file in res/raw and shows a horizontal progress bar while it is
running.

It works but has one quirky problem - If another dialog is opened
while this thread is running the ProgressBar does not clear at the end
(where it sets position=0).  Then the NEXT time it runs it flashes the
ProgressBar on every update.  After that buggy behavior it is okay
again on subsequent invocations.

I tried it without the Handler initially and it usually worked but had
similar but more frequent quirky behavior flashing the ProgressBar. So
the Handler seems to be required, but something is still not quite
right about what I am doing here.

Any suggestions...

        class AudioPlayer
            implements Runnable
        {
            int audioId;
            ProgressBar progressBar;
            Handler handler = new Handler();
            int position;

            AudioPlayer(int audioId, ProgressBar progressBar)
            {
                this.audioId = audioId;
                this.progressBar = progressBar;
            }

            void play() {
                new Thread(this).start();
            }

            private Runnable progressUpdater = new Runnable () {
                public void run()
{ progressBar.setProgress(position); }
            };

            @Override
            public void run() {
                MediaPlayer player = MediaPlayer.create(context,
audioId);
                int duration = player.getDuration();
                try {
                    position = 0;
                    progressBar.setMax(duration);
                    player.start();
                    do {
                        try {
                            position = player.getCurrentPosition();
                            handler.post(progressUpdater);
                            Thread.sleep(200);
                        } catch (Exception ex) { break; }
                    } while (position < duration);
                } finally {
                    position = 0;
                    handler.post(progressUpdater);
                    player.release();
                }
            }
        }
    }

-- 

2. Way to run apps on live emulators?

Is there a way to install (make it run) my testing android apps on a
running instance of the android emulator?

Instead of coding and running emulator and then stopping the emulator,
coding again and over and over ...

just to make my work faster

Ty in advance =)

Diego.

-- 

3. How can I track down a crash in a .so without a stack trace?

4. accesing attributes of java class using webview

5. LVL NOT_MARKET_MANAGED

6. Compile error in the new 鈥淗ello Testing鈥?Tutorials program

7. Application idle timeout - Want to implement autolock for a specific idle time interval