Mechanics of how to have free and paid apps in some apk

by Mattaku Betsujin » Tue, 14 Apr 2009 10:23:41 GMT


Sponsored Links
 I think the proposal is similar to iphone 3.0 where the app can charge the
user while the app is running, instead of, or in addition to, charging the
user during installation time.

Google should seriously consider this.

But, giving that the current market app can't even show the app's images, I
think it will take quite a while.






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



Other Threads

1. Is it possible to append a value to R.string or any resource under R.?

// popluate textView with the string R.string.h + whatever the
user put on Screen A
if(desiredString.equals("1") {
     textView.setText(R.string.h1);
} else if(desiredString.equals("2") {
     textView.setText(R.string.h2);
} else if(....){
    // etc.
} else ..... {

}


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

2. Problems playing MP3s on real device

Hello,

I'm desperately trying to get my soundboard application to work. I
have a GridView consisting of Buttons, which have an OnClickListener
starting the sound file associated with the button. The sound files
are stored as MP3 (64 kbit/s, LAME encoded) audio files in the res/raw
folder and are referenced using the R class.

The following problem only occurs when running the app on a real
device, however, on the emulator it works perfectly. I have tried two
different HTC Hero so far.

I have a mysterious problem, that everytime I press a button to play a
specific sound, ALL sounds in the res/raw folder are played in the
order they are listed there. My current code to play a sound looks
like this:

if (player != null) {
        player.stop();
        player.release();
}

player = MediaPlayer.create(this, resId);

if (player != null) {
        player.start();
}

As you can see I use a "singleton" MediaPlayer to play the files. I
have also tried using a new separate MediaPlayer instance for each
sound file, with the same result. Additionally, I have tried playing
the sound file in a separate thread with the result, that only the
first time all sound files are played. After that, the buttons work as
intended.

You can take a look at the source code on the Google Code project
site: http://code.google.com/p/zappenduster-soundboard/

Thanks for your help!
Adrian

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

3. Any word on a dev phone for motorola droid?

4. Cellid returned by NeighboringCellInfo's getCid() ?

5. How can I develop application using C/C++

6. Access Wifi and UMTS interface on Android

7. cannot use wifi behind a http proxy