[android-developers] Regarding application resume

2009-02-23 Thread Sagar Parmar
Hello everyone, I have an application that plays audio when user clicks on the 1st screen..This 1st screen starts a new screen that plays audio. Now I want the functionality that when user lauches application again from home screen, it should resume. Right now it plays that audio again so audio is

[android-developers] Setting margins for an imageview using code

2009-02-16 Thread Sagar Parmar
Hello every1, I want to set margin for an imageview through code. i coudnt find any method for that .. XML attribute is android:layout_marginLeft..what is the java method ?? setPadding() does not work in my case. Please help its urgent.. Thanks in advance --~--~-~--~~~---

[android-developers] How to use different fonts in webview??

2009-02-03 Thread Sagar Parmar
Hello, I m using webview to display my text. I want to give font change option to user. I read that, We can use CSS2 spec fonts in webview. I have used the following code. Still I dont get any difference except courier new.. wv.loadDataWithBaseURL("some fake url", ""+data, "text/html", "utf-8",nul

[android-developers] Howto remove thread from Dalvik VM????

2009-01-30 Thread Sagar Parmar
Hello.. I am using Thread to display animation..I create a new thread whenever user preference is changed.Now I want to Remove the previous thread from Dalvik VM so that my application does not crash..How can I remove Thread from DVM?? I use Thread.stop() but it is not working..Please help.. Its ur