[android-developers] open local html in browser

2011-01-21 Thread Prajakta Shitole
Hi, I am trying to open a local html file in my application. I cannot use the webview due to some reasons so need to open it in the browser. So is there any way of pointing the browser to local html files. In some forums i read that for security reasons it is not possible to load html files, but

[android-developers] Unexplained Errors from Android MediaPlayer

2010-11-15 Thread Prajakta Shitole
Hi All, I am getting the below errors from the Media Player Error(1, -1002) or Error(1, -2147483648) Has anyone been able to resolve these errors? is this because of the media format? Any kind of help is highly appreciated. Thanks, Prajakta -- You received this message because you are

Re: [android-developers] Re: integrate twitter in my app

2010-11-04 Thread Prajakta Shitole
Have you checked the below link?? http://www.mobisoftinfotech.com/blog/android/1089/ http://www.mobisoftinfotech.com/blog/android/1089/Thanks, Prajakta On Wed, Nov 3, 2010 at 10:55 PM, Babita kumari babita.permeat...@gmail.comwrote: Anyone , please reply thanks Babita On Thu,

Re: [android-developers] Share Data with ACTION_SEND

2010-11-02 Thread Prajakta Shitole
mmur...@commonsware.comwrote: On Sat, Oct 30, 2010 at 2:03 AM, Prajakta Shitole prajakt...@gmail.com wrote: Please can anyone let me know how to disable Facebook from being listed in the list of to Share items. Uninstall the application. As Facebook allows only Urls to be posted I have

Re: [android-developers] Share Data with ACTION_SEND

2010-11-02 Thread Prajakta Shitole
in a dialog or activity. Here is an example: http://github.com/commonsguy/cw-advandroid/tree/master/Introspection/Launchalot/ On Tue, Nov 2, 2010 at 12:40 PM, Prajakta Shitole prajakt...@gmail.com wrote: Hi Mark, Thanks for your reply. I tried doing the below, but I am not sure how can i

[android-developers] Share Data with ACTION_SEND

2010-10-30 Thread Prajakta Shitole
Hi, Please can anyone let me know how to disable Facebook from being listed in the list of to Share items. As Facebook allows only Urls to be posted I have used the Facebook SDK when I need to share a link, picture and message. So I am currently displaying an Alert Dialog with Facebook listed and

Re: [android-developers] Re: Facebook connect for android

2010-10-27 Thread Prajakta Shitole
? Thanks, Zarah. On Oct 27, 12:00 am, Prajakta Shitole prajakt...@gmail.com wrote: Hi Zarah, Thanks for your reply. I did include the LoginButton class as it was showed in the Example. Also i had included it in my xml file as below: com.facebook.android.LoginButton android:id

[android-developers] Facebook connect for android

2010-10-26 Thread Prajakta Shitole
Hi, I am trying to use the Facebook SDK for android but It gives me runtime errors (ClassCastException) when i include the com.facebook.android.LoginButton as the login button. Please can anyone let me know if they have used Facebook connect in their application and the steps that are to be

Re: [android-developers] Re: Facebook connect for android

2010-10-26 Thread Prajakta Shitole
class in your xml instead of the normal button class. your.package.name.LoginButton/your.package.name.LoginButton Best regards, Zarah. On Oct 26, 2:26 pm, Prajakta Shitole prajakt...@gmail.com wrote: Hi, I am trying to use the Facebook SDK for android but It gives me runtime errors

Re: [android-developers] Re: Problem after reopen the application !!!

2010-10-03 Thread Prajakta Shitole
have u checked the value of noConnectionAlert.. as it is a null pointer exception it is possible that the value is null.. On Sun, Oct 3, 2010 at 1:10 PM, tarek attia tarek.m.at...@gmail.com wrote: On Sun, Oct 3, 2010 at 9:14 PM, fernando fernandoler...@gmail.com wrote: It seems that you

[android-developers] AudioTrack: ObtainedBufferTimeout

2010-10-03 Thread Prajakta Shitole
Hi, I am developing a music application and I am trying to test it on 2G. My application works fine on wifi but on Edge it gives me AudioTrack: ObtainedBufferTimeout. I figured out the buffer does not have enough data so I am getting this message. I want to thus display a progress dialog box

Re: [android-developers] Re: Problem after reopen the application !!!

2010-10-03 Thread Prajakta Shitole
PM, Prajakta Shitole prajakt...@gmail.comwrote: have u checked the value of noConnectionAlert.. as it is a null pointer exception it is possible that the value is null.. It's an object of Runnable . On Sun, Oct 3, 2010 at 1:10 PM, tarek attia tarek.m.at...@gmail.comwrote: On Sun, Oct 3

[android-developers] Re: Hiding the virtual keyborad in a ListActivity

2010-10-02 Thread Prajakta Shitole
Hi, You can try the below code and see if it works: getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); this would be at the window where you want to hide the keyborad. or I had used the below piece of code in the onClick event of a button (*Butto*n is my

Re: [android-developers] Re: Proxy related code changes needed in Apps

2010-09-29 Thread Prajakta Shitole
Hi, Thanks for your reply. I am using HttpURLConnection to access data from servers. Will look into the details that you have mentioned below. Thanks, Prajakta On Wed, Sep 29, 2010 at 1:11 PM, ADRA dche...@gmail.com wrote: I'm doing HTTPClient (Through the API's) on a carrier proxy just fine

Re: [android-developers] Re: IllegalStateException in MediaPlayer (HTC Hero 1.5)

2010-09-27 Thread Prajakta Shitole
I was just wondering if you could try to use setDataSource again before making a call to prepareAsync.. not sure if that is the problem as i have not seen the complete code.. but you could try.. Thanks, Prajakta On Fri, Sep 17, 2010 at 7:42 PM, Jason jason.poli...@gmail.com wrote: Anyone?..

Re: [android-developers] is it possible to change the application name dynamically???

2010-05-26 Thread Prajakta Shitole
Ok Thanks for your reply Treking. Thanks, Prajakta On Wed, May 26, 2010 at 10:00 AM, TreKing treking...@gmail.com wrote: On Wed, May 26, 2010 at 12:21 AM, praj prajakt...@gmail.com wrote: Is it possible to change the name of the application name dynamically? Nope. I want to keep a

Re: [android-developers] Re: J2ME converting/translation to Android

2010-04-26 Thread Prajakta Shitole
Have you tried looking at J2ME android bridge. I had used it and it is very good. http://www.assembla.com/wiki/show/j2ab There is mapping from J2ME to Android for most of the classes and methods, and for those that are not there you can implement it yourself by looking at the way it is currently

Re: [android-developers] preventing orientation change during video playback

2010-04-26 Thread Prajakta Shitole
You can also set the screenOrientation to be as landscape in your Android Manifest file for the Activity which has the video player. Eg:- activity android:name=.videoplayer android:label=@string/app_name android:screenOrientation=landscape/activity Thanks, Prajakta On Mon, Apr 26, 2010 at

Re: [android-developers] Iconic list View gets very slow when a service (running music) starts in the background

2010-04-21 Thread Prajakta Shitole
, Apr 20, 2010 at 2:55 PM, Prajakta Shitole prajakt...@gmail.comwrote: Hi Dianne, This does not happen in the standard music app. Thanks for guiding, I will look into the standard music app code to check what it does differently. Thanks, Prajakta On Tue, Apr 20, 2010 at 2:41 PM, Dianne

Re: [android-developers] Access Listview from TabActivity

2010-04-20 Thread Prajakta Shitole
Hi, You can have a list Activity and then in you tabActivity just pass that activity in setcontent. For eg: In the example below First.class and Second.class are my ListActivities. public class ExampleTab extends TabActivity { @Override protected void onCreate(Bundle savedInstanceState)

Re: [android-developers] Iconic list View gets very slow when a service (running music) starts in the background

2010-04-20 Thread Prajakta Shitole
Hi Dianne, This does not happen in the standard music app. Thanks for guiding, I will look into the standard music app code to check what it does differently. Thanks, Prajakta On Tue, Apr 20, 2010 at 2:41 PM, Dianne Hackborn hack...@android.comwrote: Does the same thing happen in the standard

Re: [android-developers] moveTaskToBack returning false.

2010-04-17 Thread Prajakta Shitole
, Apr 16, 2010 at 3:53 PM, Prajakta Shitole prajakt...@gmail.com wrote: no i dint because the documentation says that for any activity other than main activity u need t... Oh yeah, I read that wrong ... oh well, there goes that ... good luck

Re: [android-developers] moveTaskToBack returning false.

2010-04-16 Thread Prajakta Shitole
no i dint because the documentation says that for any activity other than main activity u need to pass true.. will try anyways.. n let u knw.. On Fri, Apr 16, 2010 at 1:49 PM, ~ TreKing treking...@gmail.com wrote: On Fri, Apr 16, 2010 at 1:08 PM, praj prajakt...@gmail.com wrote: I am trying

Re: [android-developers] moveTaskToBack returning false.

2010-04-16 Thread Prajakta Shitole
it still returns false - after passing false in moveTaskToBack On Fri, Apr 16, 2010 at 1:53 PM, Prajakta Shitole prajakt...@gmail.comwrote: no i dint because the documentation says that for any activity other than main activity u need to pass true.. will try anyways.. n let u knw.. On Fri

Re: [android-developers] Re: Change the font size of the Progress Dialog box

2010-04-15 Thread Prajakta Shitole
i just need to change the font size in the ProgressDialog box and not in any other place so will this change (the one you have mentioned below) not affect any other styles?? On Thu, Apr 15, 2010 at 10:59 AM, Fred Grott(Android Expert, http://mobilebytes.wordpress.com) fred.gr...@gmail.com

Re: [android-developers] Re: Progress Bar in every row of ListView

2010-04-13 Thread Prajakta Shitole
links for Lazy loading .. http://blog.jteam.nl/2009/09/17/exploring-the-world-of-android-part-2/ Tom van Zummeren http://evancharlton.com/thoughts/lazy-loading-images-in-a-listview/ Evan Charlton http://code.google.com/p/shelves/ from Romain Guy http://github.com/commonsguy/cwac-thumbnail from

Re: [android-developers] Re: Progress Bar in every row of ListView

2010-04-13 Thread Prajakta Shitole
item that's being displayed. So -- either your getView() is not updating or replacing the view properly, or getItem(i) is not returning the right item to getView() (which should be calling it), and so getView() is making the wrong decisions. I hope that helps. On Apr 12, 6:30 pm, Prajakta

Re: [android-developers] Re: Progress Bar in every row of ListView

2010-04-12 Thread Prajakta Shitole
Is there anyone who had tried this.. the problem with my implementation is that the list view is not getting refreshed..even after writing notifyDataSetChanged.. only the first row gets displayed properly the rest of the rows display the progress bar even when the images hv loaded. On Sun, Apr

Re: [android-developers] Bug in Android framework connecting to url?

2010-04-11 Thread Prajakta Shitole
Can u try this: String _url; URL url; url = new URL(_url); HttpURLConnection connection = (HttpURLConnection)url.openConnection(); The above code works for me. Thanks, Prajakta On Sun, Apr 11, 2010 at 7:36 AM, Moto medicalsou...@gmail.com wrote: I tried many different ways to connect to

Re: [android-developers] Lazy Loading of images in the list view

2010-04-10 Thread Prajakta Shitole
Forgot to paste my code:- class IconicAdapter extends ArrayAdapter { Activity context; Context context2; HashMapString,String ret = new HashMapString,String(); AsyncLoader async;// = new AsyncLoader(); private ListView listView; HashMapString,Bitmap bit = new HashMapString,Bitmap();

Re: [android-developers] Lazy Loading of images in the list view

2010-04-10 Thread Prajakta Shitole
I was able to resolve the issue, just made simple tweaks like removing the drawableMap we just need the imageCache. On Sat, Apr 10, 2010 at 10:51 AM, Prajakta Shitole prajakt...@gmail.comwrote: Forgot to paste my code:- class IconicAdapter extends ArrayAdapter { Activity context; Context

Re: [android-developers] Lazy Loading of images in the list view

2010-04-10 Thread Prajakta Shitole
a default drawable }else{ bm =getDrawablefromURL(String (tag); // a method to get drawable from a URL } publishProgress(params[0]); return null; } } On Sat, Apr 10, 2010 at 3:10 PM, Prajakta Shitole prajakt

Re: [android-developers] Lazy Loading of images in the list view

2010-04-10 Thread Prajakta Shitole
On Sat, Apr 10, 2010 at 3:18 PM, Prajakta Shitole prajakt...@gmail.comwrote: Hi Carmen, It was because of your post that I could implement the above code. I found the links from your post itself. Thanks for the links and procedure. Thanks, Prajakta On Sat, Apr 10, 2010 at 2:52 PM

Re: [android-developers] Re: OnPause() - how to resume to an activity which has a Bundle passed to it when it is created

2010-03-13 Thread Prajakta Shitole
the Activity is called from other activities. Therefore, you *might* want to use singleTask as the Activity's launchMode. You can find out more information from here. http://developer.android.com/guide/topics/fundamentals.html#lmodes On Mar 13, 9:25 am, Prajakta Shitole prajakt...@gmail.com wrote: Hi

Re: [android-developers] Re: OnPause() - how to resume to an activity which has a Bundle passed to it when it is created

2010-03-12 Thread Prajakta Shitole
...@gmail.com wrote: On Fri, Mar 12, 2010 at 12:28 AM, Prajakta Shitole prajakt...@gmail.com wrote: One of my idea was to store the picture and the text view in the service and on click of a menu button navigate to another activity which will connect to the service and draw the stored pictures

Re: [android-developers] OnPause() - how to resume to an activity which has a Bundle passed to it when it is created

2010-03-11 Thread Prajakta Shitole
Hi, Thanks for your reply. Well What I do is: I call A, then from A I call B. A - B Then press the backbutton and go to A I dont perform any operations in A, and I want to get back to the same activity B which I had previously called. A and B was just an example. I am actually creating a media