[android-developers] Re: setContentView of a Custom View

2010-06-17 Thread Matt M
//Paint.java/ public class Paint extends PaintActivity implements ColorPickerDialog.OnColorChangedListener { private Paint mPaint; private PaintView view; private int wid; private int wsize; private int pref; private int RES

[android-developers] Re: Avoid non-static inner classes in an activity?

2010-06-17 Thread Nathan
After thinking I made a major breakthrough by stopping that thread, I still find that Activity Instances stack up. I'll still need to analyze all the inner classes. Nathan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this g

[android-developers] PopUpWindow not displaying when tapping on marker

2010-06-17 Thread Nithin
Hi, I am displaying google map and on top of that some overlay items(Markers) are there. When tapping on the markers, I need to display PopUpWindow. The code is executing but popup is not displaying. popUp.showAtLocation(layout, Gravity.TOP, 0, 0); popUp.setFocusable(true); popUp.setTouchable(tru

[android-developers] Re: setContentView of a Custom View

2010-06-17 Thread Nithin
-"it does not work properly." means what. What error are you getting ?. Do you override all the constructors. Nithin On Jun 17, 9:54 pm, Matt M wrote: > Hello, > > My current painting activity is built off of FingerPaint.java from the > API Demos. In my xml I declared the custom view, see bel

[android-developers] Re: Avoid non-static inner classes in an activity?

2010-06-17 Thread Nathan
While my inner classes could be wrong, I have a bigger suspect. It seems one of my custom views has a background thread that waits for work requests and communicates back through a handler. When the activity ends and restarts, the thread is still alive, waiting for a work request. Since that threa

[android-developers] Re: Smooth Image Rotation with Gesture Control?

2010-06-17 Thread ocdtrekkie
Can anyone help get me started? I can program all the logic I need for my program really well, I just need some help with designing the UI to function the way I want it to. On Jun 1, 6:28 pm, ocdtrekkie wrote: > I'm trying to figure out the best way to make an image rotate along > with a user's

Re: [android-developers] how to filter the objects (addresses) to display only the onscreen objects on map

2010-06-17 Thread Raymond Rodgers
Since I just happen to have written code for this recently, I don't mind sharing what I have: boolean onVisibleMap(GeoPoint point) { boolean visible = false; try { Log.v(TAG, "onvisiblemap, geopoint: lat: " + point.getLatitudeE6() + " , lng: "

[android-developers] Emulator and cellular access

2010-06-17 Thread Demetris
Hi all, I think the Android emulator has the capability to emulate incoming phone calls but I am wondering if there is a capability to place outgoing calls to existing cellular networks through the appropriate hardware interface. Is there any documentation of such a functionality I look into

Re: [android-developers] how to filter the objects (addresses) to display only the onscreen objects on map

2010-06-17 Thread Frank Weiss
I think you're ready to write some code, since I can't really answer your latest questions without writing code. I hope you're familiar with Android logging and Eclipse debugging, because they make it so much easier to see what's going on in your code. Good luck! -- You received this message beca

[android-developers] Avoid non-static inner classes in an activity?

2010-06-17 Thread Nathan
Since I seem to have caught two activity references in a heapdump, where the Activity is set to singleTask. Romain's advice on avoiding memory leaks includes: "Avoid non-static inner classes in an activity if you don't control their life cycle, use a static inner class and make a weak reference t

[android-developers] Re: The linked program is no longer installed on the phone

2010-06-17 Thread Robert Macaulay
On Thu, Jun 17, 2010 at 7:58 PM, Robert Macaulay wrote: > Someone upgraded my app, and receive this message > "The linked program is no longer installed on the phone" > Google results with "your phone" subbed for "the phone" seem to indicate it's a SenseUI problem. So it seems this is not releva

Re: [android-developers] how to filter the objects (addresses) to display only the onscreen objects on map

2010-06-17 Thread Hasn AlTaiar
HI Frank, Thank you very very much, really appreciate your kind reply.. Now, I need to values (minimum and maximum) to get the range of the visible part of the map, right? so what is this returned number? is the starting left end of the plan? or is it the width? and if it is the width, how can I

[android-developers] Re: ScrollView and programmatically scrolling

2010-06-17 Thread Lance Nanek
There are past threads on this you can dig up. Basically you have to give the ScrollView a chance to realize it has had stuff added to it. For example: scroll.post(new Runnable() { public void run() { scroll.fullScroll(ScrollView.FOCUS_DOWN); }

[android-developers] The linked program is no longer installed on the phone

2010-06-17 Thread Robert Macaulay
Someone upgraded my app, and receive this message "The linked program is no longer installed on the phone" What did I do wrong to cause this? The app and the upgrade were signed with the same key as far as I know. Some of the builds were on a linux machine, and other were on Windows. Could that ca

[android-developers] Re: ScrollView and programmatically scrolling

2010-06-17 Thread Neilz
Anyone? This must have been encountered before? :-) On Jun 16, 1:32 pm, Neilz wrote: > Hi all. > > When I update the textview within my scrollview, I want the scrollview > to automatically scroll down to the bottom, so that the latest text is > displayed. > > I've tried this code: > > scroll.ful

[android-developers] Re: Bitmaps and OutOfMemoryError: Best Practices needed

2010-06-17 Thread Nathan
Still stuck here. Can anyone answer me the question of whether inPurgeable works? By works, I mean will the JVM go and purge all of those purgeable bitmaps before returning an OutOfMemoryError for CreateBitmap? Nathan -- You received this message because you are subscribed to the Google Group

[android-developers] Re: switching GPS on and off

2010-06-17 Thread kamiseq
ok, I thought that those widgets are ordinary android apps written by other smart gays, so that s why I was confused. thanks On 17 Cze, 21:13, Mark Murphy wrote: > On Thu, Jun 17, 2010 at 2:14 PM, kamiseq wrote: > > once again, maybe it is too much sun over here :) > > > 1. gps is on (powered,

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2010-06-17 Thread Nathan
Are any of those tools helpful with bitmaps? I've analyzed an HPRof where all the bitmaps are taking up32 bytes. that would be nice if it were true. I know that bitmaps are not on the regular heap, so the tools don't seem to find them. Since the bitmaps are marked as purgeable, they could be taki

[android-developers] Handle to browser that got invoked by app under test

2010-06-17 Thread Anamika
Hi there, As part of automating testing our app, there is test which clicks button in the app and launch browser (Android browser , not using webview, but creating intent and then starting activity with that intent). Test runs that steps and browser comes up. But now I need handle to that brow

[android-developers] SQLiteCursor on that has not been deactivated or closed

2010-06-17 Thread gcstang
I've followed the try/finally approach but still get this error. Is there anything else that can be done? Here is what I have. MediaDbAdapter mDbHelper = null; Cursor c = null; try { mDbHelper = new MediaDbAdapter(ctxt); mDbHelper.open(); c = mDbHelper.findByX(data.getX()

[android-developers] Re: I've found a way to stop piracy of my apps

2010-06-17 Thread keyeslabs
Biggest issues that I've seen for my own apps (and those other brave souls who use AAL) have been related to legitimate users that somehow can't validate their purchase. For example: 1. user buys app on marke using a 2.0-based phone. validation happens just fine. 2. user backs up app, flashes ro

[android-developers] Supplying your own custom sqlite library

2010-06-17 Thread goosedroid
I need some features of sqlite which are not compiled in the supplied version: the R*Tree module and histograms used in query optimization enabled by SQLITE_ENABLE_STAT2. I would like to know if it is possible to bundle my own version of sqlite with these things enabled, and still use the existing

[android-developers] Re: I've found a way to stop piracy of my apps

2010-06-17 Thread String
On Jun 17, 8:05 pm, keyeslabs wrote: > AAL has now been open-sourced.  Find details here:  http://bit.ly/coz0yB. Cool. Thanks for sharing it. Are you still having good luck using AAL with your own app(s)? Any downsides you've found? String -- You received this message because you are subscri

[android-developers] Re: Unparsed aapt error

2010-06-17 Thread Peeyush
Dear All, I am not able not fix this issue by given solution. After doing right click and deleting the error, it does not show the error in project explorer and error window. but the project is not getting run. if i delete "gen" folder and give clean build, it does not generate R.java. even it is

Re: [android-developers] Re: switching GPS on and off

2010-06-17 Thread Mark Murphy
On Thu, Jun 17, 2010 at 2:14 PM, kamiseq wrote: > once again, maybe it is too much sun over here :) > > 1. gps is on (powered, whatever) when some app tries to obtain > location info Right. > 2. gps is off if there is no app looking for location Correct. > 3. you then said that > "For example,

[android-developers] Re: I've found a way to stop piracy of my apps

2010-06-17 Thread keyeslabs
AAL has now been open-sourced. Find details here: http://bit.ly/coz0yB. On May 10, 4:24 pm, niko20 wrote: > Well I will say one thing, if it was opened up, that would allow each > dev to make small code changes, so it would never be cookie cutter > then...however, I am not against that you are

[android-developers] Re: Not show a ProgressDialog from my Activity

2010-06-17 Thread sergi...@gmail.com
Resolved The problem was with the update method of widget Thanks, SBC On 17 jun, 19:43, "sergi...@gmail.com" wrote: > I'm trying to create the Toast (for example) on onResume() method from > the configuration Activity of my widget > > Thanks for all, > SBC > > On 17 jun, 18:44, String

[android-developers] Re: switching GPS on and off

2010-06-17 Thread RichardC
Hope this is some help, 2 use cases: Case 1 - starting with the GPS not enabled in the device settings User enables the GPS --> GPS is now enabled but not active Application uses the GPS --> GPS is now active {GPS things happen} Application stops using the GPS --> GPS goes back to not

Re: [android-developers] Unable To run Service

2010-06-17 Thread tarek attia
How can I access another service that's inside another package ,as when I did that using the normal way of updating the intent to the new package using i.setclassName(packageName,ClassName); && updating the AndroidManifest.xml file with the new name ,,I got unable to start the service intent error

[android-developers] Re: AutoCompleteTextView with autoText

2010-06-17 Thread creativepragmatic
Thank you for your help Bhavesh. My question might have been vague. What I am trying to do is get the auto correct text to show above the soft keyboard in addition to the auto complete options. It always shows in EditText but not AutoCompleteTextView. I am wondering if what I am trying to do is im

[android-developers] Re: Google Maps and KMZ Files...Please help

2010-06-17 Thread Tommy
Anyone have any suggestions on how I can get radar loops to display in my App? Even if its not using google maps...Please? On Jun 17, 1:37 am, Tommy wrote: > Hey everyone, > > I am currently wanting to display radar loops from the NOAA in my app > as an overlay... On my computer I have been able

[android-developers] Re: switching GPS on and off

2010-06-17 Thread kamiseq
once again, maybe it is too much sun over here :) 1. gps is on (powered, whatever) when some app tries to obtain location info 2. gps is off if there is no app looking for location 3. you then said that "For example, HTC Sense phones have a home screen feature that looks like an on/off switch for

[android-developers] Re: Line return when aligning to parent right

2010-06-17 Thread thanat0s
Hi all, thanks to myself... my workaround is : http://schemas.android.com/apk/res/ android" android:id="@+id/input" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_alignRight="@+id/ main">

[android-developers] Re: Two way contact sync

2010-06-17 Thread BeerBelly
The DIRTY column looks like exactly the thing I need. Didn't see it when browsing the documentation...was like for a CHANGED flag or something like it... I'm gonna try my luck with this and see how it goes. Thanks for the help. On Jun 17, 7:47 pm, Dmitri Plotnikov wrote: > There is no conceptual

[android-developers] Video plays audio after device sleeps (OS 2.1 only)

2010-06-17 Thread Mark Nuetzmann
To replicate: 1. Play any video with audio. 2. Put the device to sleep using the hard key (varies by device). Audio for the selected video will start playing after a few seconds while the device is asleep. I am calling VideoView.pause() in the onPause() of the activity and VideoView.stopPlayback

Re: [android-developers] AutoCompleteTextView with autoText

2010-06-17 Thread Nandan .
hii in this code i m used autocomplete text box to display phone no from contect list and dialed no. this can help you phonetext = (AutoCompleteTextView) findViewById(R.id.PhoneText); ContentResolver content = getContentResolver(); Cursor cursor = content.query(Calls.CONTENT_URI,

Re: [android-developers] Two way contact sync

2010-06-17 Thread Dmitri Plotnikov
There is no conceptual difference between a one-way and a two-way sync. My understanding is that most people start the sync by sending local changes to the server and then get incoming changes. The DIRTY column on RawContact will tell you what changed locally. Make sure you reset the flag after

[android-developers] Re: Not show a ProgressDialog from my Activity

2010-06-17 Thread sergi...@gmail.com
I'm trying to create the Toast (for example) on onResume() method from the configuration Activity of my widget Thanks for all, SBC On 17 jun, 18:44, String wrote: > On Jun 17, 5:07 pm, "sergi...@gmail.com" wrote: > > > I try to show a ProgressDialog at the beginning of my application from >

[android-developers] Should I bother with my own sync adapter?

2010-06-17 Thread Connick
In my current app I decided to integrate into account management and create a sync adapter. I'm wondering if it's worth doing this over an alarm manager approach as I don't believe it's supported below 2.0? Even worse I'm currently using a 2.2 API to set the sync interval (not possible before ??) w

[android-developers] Re: How to avoid PlayerDriver "invalid percentage value" error?

2010-06-17 Thread Androide
¿no help? :( On Jun 10, 12:20 am, Androide wrote: > I want to play a live streaming in mp3, but when i call prepareAsync, > "invalidpercentagevalue xxx" shows. This is a example of live > streaming: > > http://83.231.187.202:80/rtve/radio1.mp3 > > And this is my simplified code: > > mp = new Medi

[android-developers] Two way contact sync

2010-06-17 Thread BeerBelly
Hey, I'm developing an application that needs a two way sync of its own custom contacts. I saw the sample code on Android developer website (talking about AccountManager here and the sample sync adapter code), but that only syncs from the cloud to the device. Is there a way to do the two way sync?

[android-developers] MarkerClusterer for MapView

2010-06-17 Thread tansaku
Hi All, I've just been playing with MarkerClusterer in the Google Maps API. I love it. Fantastic way to handle large numbers of Markers in a map. An example here: http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclusterer/1.0/examples/advanced_example.html Does anyone know i

[android-developers] setContentView of a Custom View

2010-06-17 Thread Matt M
Hello, My current painting activity is built off of FingerPaint.java from the API Demos. In my xml I declared the custom view, see below. When I setContentView(view); everything works fine, but the problem is when I setContentView(paint_layout.xml) it does not work properly. ///PaintActiv

[android-developers] Re: Not show a ProgressDialog from my Activity

2010-06-17 Thread String
On Jun 17, 5:07 pm, "sergi...@gmail.com" wrote: > I try to show a ProgressDialog at the beginning of my application from > an Activity. I debug the application and in theory the dialog is > created because it prints a line from onCreateDialog... method. Are you trying to create the dialog/toast

[android-developers] AutoCompleteTextView with autoText

2010-06-17 Thread creativepragmatic
I am trying to get autoText to work with AutoCompleteTextView. Since AutoCompleteTextView is a subclass of EditText, it should work but doesn't. Is this possible? Thanks in advance for any help, Orville -- You received this message because you are subscribed to the Google Groups "Android Develo

Re: [android-developers] Re: Repackaging Android System Classes in an application

2010-06-17 Thread Dianne Hackborn
On Thu, Jun 17, 2010 at 7:12 AM, Greg Giacovelli wrote: > I understand "don't do this"... trust me I don't want to, but it > doesn't answer the question if it will work in a market app. > It means "don't do this." That means "this won't work," or at the very least "expect your app to break in r

Re: [android-developers] Thread Problem

2010-06-17 Thread YuviDroid
In your thread you probably have something like: public void run () { while (true) { doSomeWork(); } } what you need is a boolean var that checks whether to continue 'doing work', or stop the thread. Like this: public void run () { while (!stopThread) { doSomeWork();

[android-developers] Re: video player using hardware to encode/decode

2010-06-17 Thread Android dev
No ideas? At least, how can I call the hardware from my ndk native application? On Jun 8, 3:33 pm, Android dev wrote: > I know that the mediaplayer api uses hardware acceleration to encode/ > decode video. > Now I want to develop my own video player application without using > the mediaplayer ap

[android-developers] Not show a ProgressDialog from my Activity

2010-06-17 Thread sergi...@gmail.com
I try to show a ProgressDialog at the beginning of my application from an Activity. I debug the application and in theory the dialog is created because it prints a line from onCreateDialog... method. Any idea? For more test, I try to show a toast with: Toast.makeText(MyActivity.this, "test", Toa

Re: [android-developers] java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2010-06-17 Thread Sebastian Roth
Yup. We've been running in that case too many times. Invest in a good tool like Yourkit, use HPROF Heap dumps to find the objects with the sticky connects to JVM root and prepare to spend nights on trying again and again.. I recommend writing automated Unit-Tests for that as well. So that you can

[android-developers] Re: Unmarshal Parcleable in Broadcast Reviever

2010-06-17 Thread mac-systems
Of course this is always an option. But sometimes its just annoying. But its always wise to keep informations together without always asking the Database. thx, Jens On 17 Jun., 15:56, Mark Murphy wrote: > On Thu, Jun 17, 2010 at 9:51 AM, mac-systems wrote: > > Yes, docu sucks big time there,

Re: [android-developers] Re: Making the Java assert statement work

2010-06-17 Thread Frank Weiss
I think most Java programmers use Exceptions or logging instead of asserts. The philosophy is that your code should always be able to gracefully handle any "impossible" condition. The great advantage of Exceptions is they can be caught and handled by your code, re-thrown with wrapper Exceptions, a

Re: [android-developers] what is the better application to implement XML program

2010-06-17 Thread Frank Weiss
I suppose you are asking for a recommendation for an XML parsing library. There are about four on Android. I mostly use org.xml.sax. Which one is better? I think you can understand that means better for what. So you have to tell us what you're trying to do. Or you can do some research on the web to

Re: [android-developers] Re: How to change the divider height of listview dynamically?

2010-06-17 Thread Mark Murphy
On Thu, Jun 17, 2010 at 10:52 AM, javame_android wrote: > Can you let me know how can one return two different views from > getView method? Override getViewTypeCount() and getItemViewType() in your Adapter. -- Mark Murphy CommonsWare mmur...@commonsware.com http://commonsware.com -- You recei

[android-developers] Re: How to change the divider height of listview dynamically?

2010-06-17 Thread javame_android
Hi, Can you let me know how can one return two different views from getView method? I am able to return the row from the getView method but have no idea about how to return the listview height. Let me know how to do that in case you know it. Thanks & Regards Sunil -- You received this messag

[android-developers] How to interrupt a blocked URLConnect call?

2010-06-17 Thread Moto
I'm having issue when I'm trying to connect to a url and it takes longer than expected. My code tries to close the connection but sometimes it is blocked by the URLconnection connect call. The block happens even before I can get my InputStream. What are good ways to stop the request fast without

[android-developers] Re: Repackaging Android System Classes in an application

2010-06-17 Thread Greg Giacovelli
I understand "don't do this"... trust me I don't want to, but it doesn't answer the question if it will work in a market app. The rationale behind it, is that the rendering implementations between 1.5 and newer versions forward have a minor change with a large impact with regards to Z ordering. S

[android-developers] Re: usb driver mytouch slide

2010-06-17 Thread dlugolinski
All you need to do is open the android_winusb.ini file that is in the drivers folder of the SDK. then add this to the file ;MyTouch Slide %SingleAdbInterface%= USB_Install, USB\VID_0BB4&PID_0E03 %CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0E03&MI_01 %SingleBootLoaderInterfa

Re: [android-developers] Re: switching GPS on and off

2010-06-17 Thread Mark Murphy
On Thu, Jun 17, 2010 at 10:04 AM, kamiseq wrote: > ok, so if I have a widget on my desktop on the phone and gps is switch > off (dispabled) how should I "enable/disable" it. I couldn't find > anything on that. The user does that (e.g., via the Settings application). Your code cannot change whethe

[android-developers] Re: switching GPS on and off

2010-06-17 Thread kamiseq
ok, so if I have a widget on my desktop on the phone and gps is switch off (dispabled) how should I "enable/disable" it. I couldn't find anything on that. the other thing is that when I use ddms to fake gps and I send long/ lat-d manually my location listener is telling me that for first time stat

Re: [android-developers] Re: Unmarshal Parcleable in Broadcast Reviever

2010-06-17 Thread Mark Murphy
On Thu, Jun 17, 2010 at 9:51 AM, mac-systems wrote: > Yes, docu sucks big time there, no bock even has examples how to do > this! > > Any way to go around this ? Don't use custom Parcelables in Intents used with alarms. Whatever you are putting in the Parcelable is hopefully backed by a database

[android-developers] Re: Unmarshal Parcleable in Broadcast Reviever

2010-06-17 Thread mac-systems
Yes, docu sucks big time there, no bock even has examples how to do this! Any way to go around this ? If tried to set the ClassLoader like this: @Override public void onReceive(final Context context, final Intent intent) { intent.setExtrasClassLoader(Alert.

Re: [android-developers] Unmarshal Parcleable in Broadcast Reviever

2010-06-17 Thread Mark Murphy
On Thu, Jun 17, 2010 at 8:53 AM, mac-systems wrote: > anyone can point me why i get alway a ClassNotFoundException in my > BroadcastReviever using a custom Parcleable ? I've seen mention of this before on this list. IIRC, Android attempts to de-serialize the Parcelable inside the AlarmManagerServ

[android-developers] Re: bug with notifyDataSetChanged() in ArrayAdapter ?

2010-06-17 Thread skink
On Jun 17, 10:48 am, Christophe wrote: > Shink, thank you for your answer. > > the add() and insert() work as expected. > However it is a lot easier for me to manipulate directly my ArrayList > (it is more flexible and the ArrayAdapter API lack some methods). I > think I will keep my current cod

[android-developers] Re: blank screen with opengl

2010-06-17 Thread Simone
Thank you SO much, it's just what I needed. Awesome tutorial. Simone On 16 Giu, 23:40, Max Gilead wrote: > I'd suggest going with some basic tutorial > likehttp://insanitydesign.com/wp/projects/nehe-android-ports/and building on > what you learn, modifying code little step by step so you're alwa

[android-developers] Unmarshal Parcleable in Broadcast Reviever

2010-06-17 Thread mac-systems
Hello, anyone can point me why i get alway a ClassNotFoundException in my BroadcastReviever using a custom Parcleable ? I enqueue Alarms, which trigger the BroadcastReciever: for (int i = 0; i < alertsToEnqueue.size(); i++) { final Alert al

[android-developers] Re: bug with notifyDataSetChanged() in ArrayAdapter ?

2010-06-17 Thread Christophe
Shink, thank you for your answer. the add() and insert() work as expected. However it is a lot easier for me to manipulate directly my ArrayList (it is more flexible and the ArrayAdapter API lack some methods). I think I will keep my current code with the overrided getCount() method so I don't hav

Re: [android-developers] Problem in stopping thread

2010-06-17 Thread Olivier Guilyardi
I personally do that kind of thing: class MyThread extends Thread { private boolean done; public void run() { while (true) { synchronized (this) { if (done) break; } /* do a small part of the heavy work */ } /* cleanup, close files, etc.. */ } /* C

[android-developers] Re: bug with notifyDataSetChanged() in ArrayAdapter ?

2010-06-17 Thread skink
On Jun 17, 9:37 am, Christophe wrote: > myArrayList is a simple ArrayList : > > ArrayList myArrayList = new ArrayList(); > > which I give to my adapter in my ListActivity : > > adapter = new StepItemAdapter(this, myArrayList); > this.setListAdapter(adapter); if your StepItemAdapter extends Arra

[android-developers] Re: bug with notifyDataSetChanged() in ArrayAdapter ?

2010-06-17 Thread Christophe
myArrayList is a simple ArrayList : ArrayList myArrayList = new ArrayList(); which I give to my adapter in my ListActivity : adapter = new StepItemAdapter(this, myArrayList); this.setListAdapter(adapter); Later I add item to my list and try to refresh the view : myArrayList.add(position, new S

Re: [android-developers] AlarmManager ceasing to function. Dropping single shot alarms.

2010-06-17 Thread Mark Murphy
On Wed, Jun 16, 2010 at 10:28 PM, Robert Macaulay wrote: > What does the numbers in Alarm stats mean here? I'm assuming its the alarm > count totals, but not sure on the time or the flg parts. The flg=0x4 is the set of flags on the Intent in the PendingIntent. I think 0x4 is FLAG_FILL_IN_CATEGORI

Re: [android-developers] Prevent application from showing up when dialing.

2010-06-17 Thread Mark Murphy
On Thu, Jun 17, 2010 at 12:41 AM, Achanta wrote: > But I just discovered that whenever I try to add another call when I > am in a call, it promps me to complete the action using. > 1. my app > 2. The normal phone > > And when I click on my app, it just opens my app. I do not understand > what is c

Re: [android-developers] Problem in stopping thread

2010-06-17 Thread Abdul Mateen
Hi, Thread.stop() and destroy were risk in the Threading class. the method I use to stop thread is to use return; statement where I want to stop the thread. like new Thread ( new Runnable() { public void run(){ if ( condition ) return; // this will stop the thread. } }).start(); On Thu,

[android-developers] Re: bug with notifyDataSetChanged() in ArrayAdapter ?

2010-06-17 Thread skink
On Jun 16, 11:07 am, Christophe wrote: > hello everyone, > > I have a strange problem with one of my ListActivity. I have overrided > the default ArrayAdapter in order to customize my list. I have then > filled the adapter with an ArrayList. > > If I insert an element on the list and then call >

[android-developers] Thread Problem

2010-06-17 Thread brijesh
Hello, I want to stop currently running thread but -Thread.stop() - Thread.destroy() are DEPRECATED so can any one tell me how to stop the Thread -- Regards, Brijesh Masrani -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to th

[android-developers] Re: bug with notifyDataSetChanged() in ArrayAdapter ?

2010-06-17 Thread skink
On Jun 16, 11:07 am, Christophe wrote: > hello everyone, > > I have a strange problem with one of my ListActivity. I have overrided > the default ArrayAdapter in order to customize my list. I have then > filled the adapter with an ArrayList. > > If I insert an element on the list and then call >

[android-developers] Re: Problem in stopping thread

2010-06-17 Thread brijesh masrani
On Thu, Jun 17, 2010 at 4:07 PM, brijesh masrani wrote: > Hello, > > I want to stop currently running thread but -Thread.stop() > -Thread.destroy() are DEPRECATED so can any one tell me how to stop the > Thread > > > -- Regards, Brijesh Masrani -- You received this message because you are su

[android-developers] Problem in stopping thread

2010-06-17 Thread brijesh masrani
Hello, I want to stop currently running thread but -Thread.stop() -Thread.destroy() are DEPRECATED so can any one tell me how to stop the Thread -- Regards, Brijesh Masrani -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to th

Re: [android-developers] power manager (Light off) in android

2010-06-17 Thread Richard C. Cox
Hi Nandan, I think it's impossible to do...maybe it's possible on a rooted phone, but that's not what I'm after. Maybe it will be possible in the future, with Gingerbread. It appears to be something that only apps with Google's signature can access. On that quote you have from my previou

[android-developers] Re: bug with notifyDataSetChanged() in ArrayAdapter ?

2010-06-17 Thread skink
On Jun 16, 11:07 am, Christophe wrote: > hello everyone, > > I have a strange problem with one of my ListActivity. I have overrided > the default ArrayAdapter in order to customize my list. I have then > filled the adapter with an ArrayList. > > If I insert an element on the list and then call >

[android-developers] Re: Android finishActivity()

2010-06-17 Thread UD
Hi Mike, I have mailed u a sample project. Check out and reply back in case of any issues. -- Regards, UD On Jun 17, 8:15 am, mike wrote: > hi UD, > > thanks for your explanation. but this solution will not work for Blur > Screen. i have tried it out before. > > if you starts Activity C (Blur

RE: [android-developers] How to launch browser from wallpaper?

2010-06-17 Thread Ericson, Anders
Hi, Doing Activity activity = new Activity() is probably not a good idea. instead, get the application context from the wallpaper: getApplicationContext().startActivity(i); That will probably work better. /Anders -Original Message- From: android-developers@googlegroups.com [mailto:an

[android-developers] Re: bug with notifyDataSetChanged() in ArrayAdapter ?

2010-06-17 Thread Christophe
by "overriding the default ArrayAdapter" I mean overriding the getView(), getViewTypeCount() and getItemViewType() methods. This is the recommended way of changing the ways the items are displayed according to the javadoc, so I guess it should not cause problem : "To use something other than TextV

[android-developers] How to launch browser from wallpaper?

2010-06-17 Thread Stu.Axon
I'm trying to launch the browser from a wallpaper, but I get a NullpointerException... code looks like this: Intent i = new Intent(); i.setAction(Intent.ACTION_VIEW); i.addCategory(Intent.CATEGORY_BROW

[android-developers] Re: Android finishActivity()

2010-06-17 Thread UD
Hi Mike, Yes I have done similar thing earlier. And it surely works. You should have missed some entries in Activity, manifest, styles etc for making the Activity background blur/translucent. I have created a demo project to demonstrate this. Tell me how can I send u the project. mail or some web

[android-developers] Re: bug with notifyDataSetChanged() in ArrayAdapter ?

2010-06-17 Thread Kumar Bibek
> > > I have a strange problem with one of my ListActivity. I have overrided > > > the default ArrayAdapter in order to customize my list. I have then > > > filled the adapter with an ArrayList. This is a custom array adapter. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Ju

[android-developers] Misplaced Layout after “home ”-button and/or powersave screen

2010-06-17 Thread MobDev
Hi, I have an app which also includes a service with a Notification. Right now I am experiencing the foillowing problem : * I start my app which will work fine * after couple of minutes the powersave kicks in and I get a black screen * I (or hte user) click the Menu-button to dismiss

[android-developers] Re: ProgressBar.setProgressDrawable bug

2010-06-17 Thread David
Hey, @IS02 I have faced the same Problems. I Defined my own ProgressDrawable and changed the PrimaryProgess Drawable inside it but then the Backgrounddrawable still was there but the Progress disapeared. @Droidsan could you post an example please? I don't quite get what you mean. Thanks David O

[android-developers] Re: ProgressBar.setProgressDrawable bug

2010-06-17 Thread Dave Rowntree
hi is02 I found the same problem :( It only occurs setting the ProgressDrawable in code. If you set it in xml it works ok. A workaround is to define another (dummy) ProgressBar/SeekBar in your xml layout (you can define it as invisible), and set that one's ProgressDrawable in your xml to your draw

[android-developers] Re: bug with notifyDataSetChanged() in ArrayAdapter ?

2010-06-17 Thread Christophe
the only example I have found for ArrayAdapter in the API example doesn't show how to add element in the array : http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List1.html and getCount() is not overrided in this example ... On Jun 16, 9:39 pm, Kumar Bibe

[android-developers] Re: ProgressBar.setProgressDrawable bug

2010-06-17 Thread droidsan
When using the progress drawable provided by the Android platform it should not be possible to change the color dynamically as you cannot access the GradientDrawable. The resource ID for the GradientDrawable used as progress indication is defined in com.android.internal.R and you do not have access

[android-developers] what is the better application to implement XML program

2010-06-17 Thread Muataz aziz
what is the better application to implement XML program , XML Schema please I have problem with implement XML > thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers

[android-developers] Re: Disabling back button when the alert dialog box is on the screen

2010-06-17 Thread Kumar Bibek
Alert Dialogs have a few methods to achieve this. setCancellable ... Check them out. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Jun 17, 10:34 am, beneesh baby wrote: > Hi, > >     How to disable the back button when the alert box  is on the > screen > > I used onKeyD

Re: [android-developers] java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2010-06-17 Thread Romain Guy
When you get such an error it's because *your* process is running out of memory. Other processes have nothing to do with it. You are using too much memory in your process and blowing past the heap limit (16 MB or 24 MB depending on the device you're using.) On Thu, Jun 17, 2010 at 12:07 AM, Amit

[android-developers] Re: Playing live stream (RTP) in MediaPlayer

2010-06-17 Thread Jez
Thanks, I'll give this a try on the 2.1 (Desire) and see if it'll work - as I'm slightly suspiscious that it may have problems with TRUE live video (aka from an encoder) but will post here with what I find. Hoping always On Jun 9, 9:00 am, Andy Savage wrote: > On the subject of this thread I

[android-developers] Re: Droid Incredible Not Returning Valid DeviceID?

2010-06-17 Thread Maps.Huge.Info (Maps API Guru)
Have you considered using Settings.Secure.ANDROID_ID instead? It seems relatively stable and doesn't require additional permissions to use it. -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email t

[android-developers] How to use AudioManager.OnAudioFocusChangeListener in FroYo?

2010-06-17 Thread mort
I'd like to respond in my music player to other apps (like Maps) gaining an audio focus. However, I only found requestAudioFocus to pass a listener. But I don't want the focus (it's just fine to have music in background), I just want to be notified if some other app requests it. Did I miss(understa

[android-developers] java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2010-06-17 Thread Amit
Hi java.lang.OutOfMemoryError: bitmap size exceeds VM budget I am getting this message in my log. As I investigated and found out while loading contact image this error comes.I checked size of the image file and it was normal so came to a conclusion that other processes filling up the memory and