Re: [android-beginners] Re: Changing Widget Layout Programmatically

2009-12-09 Thread Justin Anderson
That works. That is essentially how I have my widget set up. And RemoteViews does have to do with the layout because you have to pass in a layout id when you create one You are just restricted on the actual layouts and views that you can use with it.

[android-beginners] Re:

2009-12-09 Thread Indicator Veritatis
Isn't this question already answered by the release notes? Please recall the release notes for 1.5 are still on the developer website at http://developer.android.com/sdk/android-1.5.html. At that site, everything above API level concerns the whole platform, everything below concerns the target.

[android-beginners] Re: MD5 Hash is wrong

2009-12-09 Thread piuccio
The problem is Integer.toHexString(0xFF messageDigest... It doeasn't print leading 0s try this one try { MessageDigest digest = java.security.MessageDigest.getInstance (MD5); digest.update(password.getBytes()); byte passDigest[] = digest.digest(); // Create Hex

[android-beginners] Setting volume to max?

2009-12-09 Thread Yasser
Hi, I am using the following code to play an audio file. MediaPlayer mp = new MediaPlayer(); mp.setDataSource(sdcard/Music/test.amr); mp.prepare(); mp.setVolume(1.0f, 1.0f); mp.start(); This plays the file but at the same media volume that's set on the device. mp.setVolume(1.0f, 1.0f) doesn't