[android-developers] Scrolling ListView manually by pixels

2010-07-14 Thread yuku
Hi, I want to make use of the trackball or d-pad to scroll my ListView smoothly. Without implementing anything, by default the list scrolls by one item, which is not appropriate for my app, since list items have different heights and I just want to scroll it by a fixed amount. Is there anything

[android-developers] Re: Motorola Droid - QCIF Camera Preview and Capture

2010-07-14 Thread Ignas
I have heard rumors that this problem is not visible on Motorola Milestone, which seems to be a very similar HW. Can someone confirm if the same problem persists in Milestone? I would think that the camera and related components should be the same. Thus, this seems like a driver problem.

[android-developers] Is there any way to parse JSON object into ArrayList or Map...

2010-07-14 Thread Sohan badaya
Hi, Is there any way to parse JSON object, that comes from facebook server in a response, into ArrayList or Map so that i can set values in my ListView. I am finding difficulty in parsing because JSON object itself contains JSONArray and this Array can contain JSONObject may

[android-developers] Gps issues in real phone

2010-07-14 Thread arindam
Hello everybody, I use the following code to play with gps. In emulator its working with sending manually gps data but in real phone when i installed it only showing the gps icon but no data is coming.I am not able to understand whats wrong in this code. In real phone I

[android-developers] Re: 3D Game Development

2010-07-14 Thread Maxood
Thank you Robert! We make games on FB and iPhone. We have a growing Android team.Have a look at our apps here and let me know how we can benefit each other: http://www.avenuesocial.com/mob-app.php Maqsood http://www.twitter.com/maxood On Jul 9, 11:09 am, Robert Green rbgrn@gmail.com

[android-developers] how to Change SMS Preference or setting

2010-07-14 Thread Nandan .
hi friends,,, in my application i m trying to change default android SMS Setting through programming. But i havent find any document to how to change Messages Setting in android. i have seen package android.provider.Settings but in this package i hav'nt find any setting regarding SMS. With

RE: [android-developers] Re: Bounce animation

2010-07-14 Thread Ericson, Anders
Bouncing as you describe it is not supported in ListView. It is possible to lift the ListView class from the platform and modify it to support it (most of the necessary changes are in AbsListView btw), but I don't recommend that approach. Instead, I would recommend that you implement your own

[android-developers] Re: Rapid Android Development with AML, looking for feedback

2010-07-14 Thread Maxood
Hi Jeff, That'll be a great contribution to the Android Framework. I'll be happy to know more about it. Going through the examples on the website here :http://www.amlcode.com/examples/ I would come up with questions and queries later on.Wishing you best of luck with your ongoing research.

RE: [android-developers] Scrolling ListView manually by pixels

2010-07-14 Thread Ericson, Anders
Hi, You can inject motion events to your ListView that corresponds to a 10 pixel drag. Create an ACTION_DOWN event and then an ACTION_UP event 10 pixels apart and then send them to the ListView using onTouchEvent(). You might need to have a ACTION_MOVE event as well. /Anders -Original

[android-developers] Re: how to setup vold.conf for USB mass storage device

2010-07-14 Thread FrankG
I assume, that you must explain a little bit more, what are you trying to do : For me it sounds, that you would like to attach an external usb storage to your andorid device, right ? What kind of device is it ? BTW .. it think android-platform is better group for such questions, as a normal

[android-developers] Re: soft keyboard selection from app?

2010-07-14 Thread jamesc
Hi I had issues with the X10s IME in that it ignored particular IME flags (http://developer.sonyericsson.com/wportal/devworld/forum? cc=gblc=en). You might be suffering from a similar issue. I suggest that you post to the SE forum and ask them directly (they confirmed my findings). Off the top

[android-developers] Re: Mount USB Drive

2010-07-14 Thread FrankG
What kind of app is DoubleTwist ? I assume that DoubleTwist will broken if the mobile will support different usb modi and the app has no chance to know. which one is the actual one. Good luck ! Frank On 13 Jul., 15:21, Boozel boozelcl...@gmail.com wrote: I do not know how to do it but it

[android-developers] checkbox in listview

2010-07-14 Thread Narendra Bagade
Hi All, I have put checkbox in listview and displaying on the screen. can anyone tell me how to get checkbox even when user click on checkbox of listview. Thanks in advance. . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] event of checkbox is selcted/unselected

2010-07-14 Thread Narendra Bagade
Hi All, How do I listen to the event when a checkbox is selcted/unselected? -- Regards, Narendra B 9422785229, Nagpur. -- 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] Tab host problem. new screen comes in full screen tabs are not displayed

2010-07-14 Thread Arun
Hi All, I am writting an application using tabhost and tab widget initially on first screen it works fine but when on click of tab widget when i load another xml it comes in full screen and tabs are not displayed Please correct me how can i make sure tabs appears on every screen. -- You

[android-developers] HttpPost and byte[] on Android?

2010-07-14 Thread Serdel
Hello, I am dealing with http post method on Android. I have successfully send simple string pairs using HttpClient and HttpPost class with the NameValuePair as entity. However now I want to send a simple array of bytes[]. Unfortunately the only entities I have found for the HttpPost class are

[android-developers] AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread TjerkW
Basically i have an AppWidgetProvider which starts a Service on update. That service starts a thread and at the end it updates the widget by calling AppWidgetManager.updateAppWidget. But i get a NullPointerException? What am i doing wrong? The Service is not in a different process.. 07-14

Re: [android-developers] AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Kostya Vasilyev
Are you calling updateAppWidget from the worker thread? If so, don't. UI calls can only be made from the UI thread. Use a Handler / Runnable to post data calculated by the worker thread to the UI thread and call updateAppWidget from there. -- Kostya 14.07.2010 12:37, TjerkW пишет:

[android-developers] Re: OpenGL ES libraries

2010-07-14 Thread Indicator Veritatis
Most OpenGL programmers learned the C API before even thinking of doing it in Java, so there is not much demand for such a wrapper. On Jul 13, 7:23 am, Sundog sunns...@gmail.com wrote: I looked around for info on this in the group but couldn't find any... so far in my OpenGL programming I've

[android-developers] Widget won't update. Process is bad

2010-07-14 Thread balachmar
I get the following in the logs: 07-14 10:33:44.016: WARN/ActivityManager(78): Unable to launch app ... for broadcast Intent { act=android.appwidget.action.APPWIDGET_ENABLED cmp=... }: process is bad 07-14 10:33:44.026: WARN/ActivityManager(78): finishReceiver called but none active 07-14

[android-developers] Re: Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

2010-07-14 Thread Joe
I can see why Google wouldn't want to complicate the permissions for a user. I am not suggesting they let the user choose which permissions to allow. An obvious issue with doing that is that users could break your app by crippling the permissions, and then complain it doesn't work and give you a

[android-developers] Does anybody know why PackageManager.getApplicationIcon() doesn't work in Android 2.2 Froyo?

2010-07-14 Thread Alex Xin
Hi, all We found that PackageManager.getApplicationIcon always return default app icon in Android 2.2 Froyo. But works perfect in previous Android release like 1.6/2.1 Does anybody knows why? Does Google change this API's behavior in 2.2? Thanks! Alex -- You received this message because you

[android-developers] Re: Camera capture without a preview...

2010-07-14 Thread String
I don't know definitively, but it's been said here before that this isn't possible. The explanation was that it's a security measure, to prevent the camera running without the user's knowledge - which makes good sense. String On Jul 14, 4:40 am, ashughes ashug...@gmail.com wrote: I would also

[android-developers] Re: xcode equivalent for android development

2010-07-14 Thread String
What's xcode? On Jul 13, 10:37 pm, rahul jain jainwolver...@gmail.com wrote: Hi there !, Whats the xcode equivalent for android ? ..like i would like to see crash viewer, log viewer and etc. Thanks. RJ -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

2010-07-14 Thread Jonas Petersson
On 07/14/2010 10:54 AM, Joe wrote: I can see why Google wouldn't want to complicate the permissions for a user. I am not suggesting they let the user choose which permissions to allow. An obvious issue with doing that is that users could break your app by crippling the permissions, and then

[android-developers] Re: Scrolling ListView manually by pixels

2010-07-14 Thread yuku
I tried: long now = SystemClock.uptimeMillis(); lv.dispatchTouchEvent(MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 10, 130, 0)); lv.dispatchTouchEvent(MotionEvent.obtain(now+1, now+1, MotionEvent.ACTION_MOVE, 10, 10,

[android-developers] Re: Getting phone number from default SMS activity

2010-07-14 Thread Nishant
Hi, You can use the following code: Intent sendIntent= new Intent(Intent.ACTION_VIEW); sendIntent.putExtra(sms_body, smsBody); sendIntent.putExtra(address, phoneNumber1;phoneNumber2;...); sendIntent.setType(vnd.android-dir/mms-sms); startActivity(sendIntent); Regards, Nishant Shah On Jul 14,

[android-developers] fmpeg using android-ndk

2010-07-14 Thread TeddybearCrisis
Hi Guys, I followed this tutorial: http://slworkthings.wordpress.com/2010/02/23/ffmpeg-and-android-mk/ as it was referenced here: http://groups.google.com/group/android-developers/browse_thread/thread/4a6de9f74238e16e/2d2a7cad0154a289?lnk=gstq=ffmpeg#2d2a7cad0154a289 Now I'm stuck in between

[android-developers] App Widget Updating Issue on 1.6 and 2.1?????

2010-07-14 Thread Gulfam
Hi All, I have developed an app widget, on which i am displaying text which i am getting from network. I have set update time daily as android:updatePeriodMillis=8640, my widget is updating properly on 1.5 sdk but not updating on 1.6 and 2.1, below is my code, please update me where am worng,

[android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread TjerkW
Well it worked if i just did it from the AppWidgetProvider.onUpdate. And this service i wrote uses the same approach as Jeff Sharkey (Android Team Developer) uses in his example Widget: http://code.google.com/p/android-sky/source/browse/trunk/Sky/src/org/jsharkey/sky/UpdateService.java So what

[android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread TjerkW
B.t.w it worked fine on the Emulator intially (no widget where loaded previously) On Jul 14, 10:44 am, Kostya Vasilyev kmans...@gmail.com wrote: Are you calling updateAppWidget from the worker thread? If so, don't. UI calls can only be made from the UI thread. Use a Handler / Runnable to

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Kostya Vasilyev
But what about the thread? 14.07.2010 14:09, TjerkW пишет: B.t.w it worked fine on the Emulator intially (no widget where loaded previously) On Jul 14, 10:44 am, Kostya Vasilyevkmans...@gmail.com wrote: Are you calling updateAppWidget from the worker thread? If so, don't. UI calls can

[android-developers] Re: Getting phone number from default SMS activity

2010-07-14 Thread Amit
Thanks Nishant, I think you havn't got my question. My question is that after the default SMS application has been launched, user has entered the number and pressed the Send button. After the message has been sent successfully, i want to know the number that user has entered. Regards Amit On

[android-developers] Android - Java Observer not working

2010-07-14 Thread draf...@gmail.com
I am having some trouble with implementing my own observer in Java on the Android platform. I have created a class call NetworkPathJni that uses an Observer interface class called NetworkPathJniObserver to notify other objects of changes. Here is the code for NetworkPathJni.java --- public

Re: [android-developers] how to Change SMS Preference or setting

2010-07-14 Thread Mark Murphy
On Wed, Jul 14, 2010 at 3:17 AM, Nandan . bhavesh2...@gmail.com wrote: in my application i m trying to change default android SMS Setting through programming. What do you consider to be default android SMS Setting? -- Mark Murphy (a Commons Guy) http://commonsware.com |

Re: [android-developers] Adding contact bug

2010-07-14 Thread Atul Raut
Hi Fina, Yes it is a bug. We were resolving it will give you fix soon. Regards Atul On Fri, Jun 25, 2010 at 6:59 AM, Fina Mesina fina.mes...@gmail.com wrote: Hello! Has anyone encountered an error adding a new contact from edit contact screen? I've encountered this in the emulator and I

Re: [android-developers] AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Mark Murphy
On Wed, Jul 14, 2010 at 4:37 AM, TjerkW tje...@gmail.com wrote: Basically i have an AppWidgetProvider which starts a Service on update. That service starts a thread and at the end it updates the widget by calling AppWidgetManager.updateAppWidget. Turn the Service into an IntentService, and get

Re: [android-developers] not able to compile code get from the git repository.

2010-07-14 Thread Mark Murphy
On Wed, Jul 14, 2010 at 1:48 AM, kamiomar kamio...@gmail.com wrote: Can anybody tell why i am not able to compile the code get from the git repository. i think some libraries missing. Example:  i get Email Client code from the git repository.  

Re: [android-developers] event of checkbox is selcted/unselected

2010-07-14 Thread Mark Murphy
On Wed, Jul 14, 2010 at 4:03 AM, Narendra Bagade bagadenaren...@gmail.com wrote: How do I listen to the event when a checkbox is selcted/unselected? setOnCheckedChangeListener() -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog |

[android-developers] Re: Getting phone number from default SMS activity

2010-07-14 Thread Nishant
Hi, Use startActivityForResult(intent, requestCode) May be it will help you. Regards, Nishant Shah -- 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@googlegroups.com To unsubscribe from

[android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread TjerkW
Okay am i now using a IntentService without a thread But now i get an ANR on a broadcast: 07-14 13:38:49.503: WARN/ActivityManager(59): Timeout of broadcast BroadcastRecord{43f724c0 android.appwidget.action.APPWIDGET_ENABLED} - receiver=android.os.binderpr...@43deed00 07-14 13:38:49.513:

[android-developers] Is it possible to make an app choose a particular APN automatically?

2010-07-14 Thread GoatHunter
Is it possible to make an app choose a particular APN automatically? Or at least direct the user to the APN selection screen? Also I've been wondering, can an APN be used from any cell provider? Let's say I have two providers: A and B, can I use APN-B within A ? Thanks beforehand -- You

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Mark Murphy
On Wed, Jul 14, 2010 at 7:44 AM, TjerkW tje...@gmail.com wrote: 07-14 13:38:49.503: WARN/ActivityManager(59): Timeout of broadcast BroadcastRecord{43f724c0 android.appwidget.action.APPWIDGET_ENABLED} - receiver=android.os.binderpr...@43deed00 07-14 13:38:49.513: WARN/ActivityManager(59):

[android-developers] Re: HttpPost and byte[] on Android?

2010-07-14 Thread Dinesh Harjani
I believe this will be very helpful: http://evgeny-goldin.com/blog/2010/05/01/uploading-files-multipart-post-apache/ Download the source for the FileUpload (it should contain the MultiPartEntity) and add it to your project as a library. Then you can add all the byte[] that you want, but remember

[android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread TjerkW
Request update is a very fast method /** * Request updates for the given widgets. Will only queue them up, you are * still responsible for starting a processing thread if needed, usually by * starting the parent service. */ public static void requestUpdate(int[]

[android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread TjerkW
Works on the emulator.. but on my nexus one i still get the nasty nullpointerexception deep inside the Android apis 07-14 14:33:53.105: ERROR/HyvesWidgetService(13806): Failed updating widget: 68, due to java.lang.NullPointerException 07-14 14:33:53.105: WARN/System.err(13806):

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Mark Murphy
On Wed, Jul 14, 2010 at 8:35 AM, TjerkW tje...@gmail.com wrote: Works on the emulator.. but on my nexus one i still get the nasty nullpointerexception deep inside the Android apis At this point, I am fairly lost with your code. I don't know why you need onUpdate() to fork a thread. Make sure

Re: [android-developers] Re: how to check if the current thread is in the ui thread?

2010-07-14 Thread TreKing
On Tue, Jul 13, 2010 at 9:58 PM, DanH danhi...@ieee.org wrote: You'd be amazed how many exceptions are thrown loading a single class. At the risk of veering farther off-topic: care to elaborate on this? Do you mean Android, Java, or code in general?

[android-developers] Re: Fixing a performance issue on a financial calculator program

2010-07-14 Thread Connie
With Canvas if you have to create the table (in bit map form) dynamically does that take a bunch of time? Connie On Jul 13, 8:50 pm, Zsolt Vasvari zvasv...@gmail.com wrote: In my app, in a generic report viewer, I just draw the lines on a Canvas.  It's very fast and lightweight.   If you send

[android-developers] Button pressed color

2010-07-14 Thread Ajay
Hi, Is there a way I could get the color that is used when a button is pressed? I know that the button uses a default selector xml that consists of the pressed image. But, I am having some custom buttons for which I want it to be close to the default image used for pressed state. Thank you, AJ

Re: [android-developers] Full size image with scroll ability

2010-07-14 Thread TreKing
On Tue, Jul 13, 2010 at 6:07 PM, Tommy droi...@gmail.com wrote: I would really like to get the same effect that the webview offers if i were to look at these image from a URL. So just load the image in a WebView ... ? Besides that, what are you setting your layout parameters in the image

[android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread TjerkW
Okay i have that now and i still get the nullpointerexception on an Nexus One. I still use a separate thread because the client libray i use does a asyncrhonous api call. But i syncrhonize it by an object lock. So it should work fine.. but it doesnt. On Jul 14, 2:50 pm, Mark Murphy

[android-developers] C2DM example ChromeToPhone, contents of dataMessagingToken.txt

2010-07-14 Thread Chister Nordvik
Hi. I've been working/struggling with the C2DM examples to get them to work in my setup. I have almost everything in place but I can't send messages to the device because I haven't a ClientLogin Auth token. In the ChromeToPhone example this seems to be stored in dataMessagingToken.txt. It's

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Kostya Vasilyev
From what thread are you ultimately calling AppWidgetManager.updateAppWidget ? It has to be the UI thread, I think you should check to make sure. -- Kostya 14.07.2010 16:35, TjerkW пишет: Works on the emulator.. but on my nexus one i still get the nasty nullpointerexception deep inside the

Re: [android-developers] C2DM example ChromeToPhone, contents of dataMessagingToken.txt

2010-07-14 Thread Mark Murphy
On Wed, Jul 14, 2010 at 8:57 AM, Chister Nordvik cnord...@gmail.com wrote: I've been working/struggling with the C2DM examples to get them to work in my setup. I have almost everything in place but I can't send messages to the device because I haven't a  ClientLogin Auth token. In the

Re: [android-developers] how to add fixed view to PreferenceActivity

2010-07-14 Thread TreKing
On Tue, Jul 13, 2010 at 7:46 PM, mkhwang middl...@gmail.com wrote: there is a PreferenceActivity that was aleady developped and is typecally like 'Settings' of android. That's the way it should be, for most cases. by the way, the customer is requiring to change U/I like IPhone Kindly

[android-developers] PopupWindow Does not show

2010-07-14 Thread Conny
Log.d(NameView, NameViewDropDown Clicked); View nameDetailsView = inflate(context, R.layout.nameDetailsPopup, null); PopupWindow nameDetailsPopup = new PopupWindow(nameDetailsView);

Re: [android-developers] facebook api help

2010-07-14 Thread TreKing
On Tue, Jul 13, 2010 at 9:11 PM, XiaoDar darylpainb...@gmail.com wrote: i've been palying with facebok-android api for a few days now You might be better served on a group or forum dedicated to the FaceBook api.

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Mark Murphy
On Wed, Jul 14, 2010 at 9:01 AM, Kostya Vasilyev kmans...@gmail.com wrote: From what thread are you ultimately calling AppWidgetManager.updateAppWidget ? It has to be the UI thread, I think you should check to make sure. No, it doesn't. I have a few examples where updating the app widget

[android-developers] Re: C2DM example ChromeToPhone, contents of dataMessagingToken.txt

2010-07-14 Thread Chister Nordvik
I haven't tried getting Chrome2Phone working, but in general, I'd use a text editor. :-) Haven't thought of that! Here's a curl script to get the token: http://github.com/commonsguy/cw-advandroid/blob/master/Push/C2DM/auth.sh Thanks!. You saved me a lot cursing at lacking documentation (or

[android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread TjerkW
Im calling it from the IntentService onHandleIntent method which should run in its own worker thread as the apidocs explain. It works on the emulator. However on the Nexus One i get the nullpointer exception on calling manager.updateAppWidget ... See the stacktrace in a previous post. On Jul 14,

Re: [android-developers] Re: C2DM example ChromeToPhone, contents of dataMessagingToken.txt

2010-07-14 Thread Mark Murphy
On Wed, Jul 14, 2010 at 9:14 AM, Chister Nordvik cnord...@gmail.com wrote: Thanks!. You saved me a lot cursing at lacking documentation (or maybe it's just me not finding it, same result) It's documented, but it's a general-purpose Google authentication system, nothing much specific to C2DM

[android-developers] Object reference changes value seemingly at random

2010-07-14 Thread Jonhoo
Hey hey! I've just started developing my second Android application. It is pretty straightforward, but useful nonetheless. All it does is allow the user to record key-value pairs for later reference (for things you can't be bothered to remember such as bank account numbers, PGP fingerprints,

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Kostya Vasilyev
Mark, AFAIK, all UI methods are supposed to be called from the UI thread, are widget calls an exception to this rule? -- Kostya 14.07.2010 17:12, Mark Murphy пишет: On Wed, Jul 14, 2010 at 9:01 AM, Kostya Vasilyevkmans...@gmail.com wrote: From what thread are you ultimately calling

[android-developers] Re: problem accessing widget in Preference widgetLayout

2010-07-14 Thread GodsMoon
I think you need to do findPreference instead of findViewById. so like: ib = (Preference) findPreference(displayimagekey); Hope that helps. On Jun 1, 3:20 pm, Noah noah.belc...@gmail.com wrote: Did you ever get this resolved? I'm having the same problem. Thanks On Apr 18, 1:27 am, hacksoft

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Mark Murphy
On Wed, Jul 14, 2010 at 9:27 AM, Kostya Vasilyev kmans...@gmail.com wrote: AFAIK, all UI methods are supposed to be called from the UI thread, are widget calls an exception to this rule? An app widget has nothing to do with the UI...from your application's standpoint. The home screen probably

[android-developers] How to Change label of activity dynamically?

2010-07-14 Thread dilu
Hi, When we create a new activity, in the Android.manifest file, we can set some text for the activity's label. It looks like: activity class=MyActivity android:label=Some text here! Is there anyway to access that programatically and change it during runtime? Regards Dileep -- You

Re: [android-developers] Market question about copy protection

2010-07-14 Thread TreKing
On Tue, Jul 13, 2010 at 9:26 PM, Stephen Lebed srle...@gmail.com wrote: I've read that, in the past, people were having issues when the dev switched the copy protection setting from off to on. Is this still an issue? From off to on? Probably. From on to off? Not sure. I never bothered with

[android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread TjerkW
Hmm yeah,.. im trying to make a simple widget now and adding more stuff. However maybe this output from LogCat also helps: 07-14 15:57:58.845: ERROR/ActivityManager(59): ANR in com.hyves.android.application 07-14 15:57:58.845: ERROR/ActivityManager(59): Reason: Broadcast of Intent {

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Kostya Vasilyev
Right, actual views live in a separate process altogether and RemoteViews is marshalled to this process... That's understood. But an AppWidgetProvider is a broadcast receiver, and its methods are called on a certain thread within the containing process. Is it safe to call updateAppWidget and

Re: [android-developers] why does AlarmManagerService.java call remove first in a set alarm?

2010-07-14 Thread Satya Komatineni
I would have probably seen that if the operation indicated by the pendingintent is used as a key. But I am saying an explicit removal of the alarm containing the operation (pending intent). See the code (little) below. Moreover what one is doing is alarms.put(at 11pm, foo) alarms.put(at 12 pm,

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Mark Murphy
On Wed, Jul 14, 2010 at 10:00 AM, TjerkW tje...@gmail.com wrote: Hmm yeah,.. im trying to make a simple widget now and adding more stuff. However maybe this output from LogCat also helps: 07-14 15:57:58.845: ERROR/ActivityManager(59): ANR in com.hyves.android.application 07-14

[android-developers] Re: Button pressed color

2010-07-14 Thread String
On the default (Google) UI, the current pressed-button color is #ffc700. But that is liable to change in the future, and is probably already different on other, OEM-applied UIs. I got that number from just sampling a screen capture; I couldn't find it anywhere in the SDK. String On Jul 14, 1:52 

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Mark Murphy
On Wed, Jul 14, 2010 at 10:04 AM, Kostya Vasilyev kmans...@gmail.com wrote: But an AppWidgetProvider is a broadcast receiver, and its methods are called on a certain thread within the containing process. Is it safe to call updateAppWidget and other methods (such as getAppWidgetIds) from a

Re: [android-developers] Where should I change a ListView's backing data from?

2010-07-14 Thread TreKing
On Tue, Jul 13, 2010 at 9:19 PM, CodeFusion cboots1...@gmail.com wrote: My question is where should my ClickEvent handlers for those buttons be? You're probably looking for something more concrete than it depends and it's up to you, but that's probably how it's going to go since there is no

Re: [android-developers] How to Change label of activity dynamically?

2010-07-14 Thread Mark Murphy
setTitle() On Wed, Jul 14, 2010 at 9:53 AM, dilu discover.dile...@gmail.com wrote: Hi, When we create a new activity, in the Android.manifest file, we can set some text for the activity's label. It looks like:    activity class=MyActivity android:label=Some text here! Is there anyway to

[android-developers] Re: OpenGL ES libraries

2010-07-14 Thread Sundog
It's not a matter of mastery of the interface, it's a matter of maximizing development time and effort, at least in my case. If you do much OpenGL programming, you've built your own such support objects and code just to avoid reinventing the wheel every time. That's more what I was looking for,

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Tjerk Gmail
Aaah cool i didnt think of that problem! On Jul 14, 2010, at 4:15 PM, Mark Murphy wrote: On Wed, Jul 14, 2010 at 10:00 AM, TjerkW tje...@gmail.com wrote: Hmm yeah,.. im trying to make a simple widget now and adding more stuff. However maybe this output from LogCat also helps: 07-14

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Kostya Vasilyev
... which is in turn caused by a crash: 07-14 10:30:36.796: ERROR/AndroidRuntime(12077): FATAL EXCEPTION: Thread-16 07-14 10:30:36.796: ERROR/AndroidRuntime(12077): java.lang.NullPointerException 07-14 10:30:36.796: ERROR/AndroidRuntime(12077): at android.widget.RemoteViews

[android-developers] Re: Button pressed color

2010-07-14 Thread Ajay
Yes, the pressed images are already different with different OEM applied UIs. Even I could not find it in SDK or some other posts... Still looking out for an answer... On Jul 14, 7:16 pm, String sterling.ud...@googlemail.com wrote: On the default (Google) UI, the current pressed-button color is

Re: [android-developers] Gps issues in real phone

2010-07-14 Thread TreKing
On Wed, Jul 14, 2010 at 1:59 AM, arindam arindam2gh...@gmail.com wrote: In emulator its working with sending manually gps data but in real phonewhen i installed it only showing the gps icon but no data is coming. Go outside? You are specifically requesting only GPS data, so it will only

Re: [android-developers] Re: xcode equivalent for android development

2010-07-14 Thread TreKing
On Wed, Jul 14, 2010 at 4:05 AM, String sterling.ud...@googlemail.comwrote: What's xcode? xcode http://tinyurl.com/dyruxl - TreKing - Chicago transit tracking app for Android-powered devices

Re: [android-developers] checkbox in listview

2010-07-14 Thread TreKing
On Wed, Jul 14, 2010 at 2:56 AM, Narendra Bagade bagadenaren...@gmail.comwrote: I have put checkbox in listview and displaying on the screen. OK can anyone tell me how to get checkbox even when user click on checkboxof listview. This makes no sense. Please clarify.

[android-developers] Re: Android Library Broken

2010-07-14 Thread ydario
Hello Xavier, make sure you have the libs project in your library project (even if it's empty) this fixed my ant builds from terminal, but not from Eclipse. I have added my buildfiles to Ant eclipse page, but now clicking the run button gives the same NullPointer problem. Is there a way to

[android-developers] How to delete directory from SD card on uninstall?

2010-07-14 Thread Tina
Hi, all! My application creates directory on SD card for syncronisation purpose. Tell me please, is there any way to delete this directory on uninstall? May be I could add some string to Manifest or catch uninstall event or something else? Any help will be very useful, Tina -- You received this

[android-developers] Re: NPE on WebView.onWindowFocusChanged

2010-07-14 Thread Open
I've started seeing reports like this too. The screen dimming is the only thing I can think of too, but the stack trace just isn't very much in terms of debugging information. On Jun 29, 7:13 am, GJTorikian gjtorik...@gmail.com wrote: Howdy— I'm getting crash reports from my app out in the

[android-developers] Apps with 1 million downloads

2010-07-14 Thread Neilz
Hi. I'd like to know how many apps there are on the market which have exceeded the million download mark. Is there any way to find out this information? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: checkbox in listview

2010-07-14 Thread Narendra Bagade
can anyone tell me how to get checkbox event when user click on checkbox of listview. On Wed, Jul 14, 2010 at 1:26 PM, Narendra Bagade bagadenaren...@gmail.comwrote: Hi All, I have put checkbox in listview and displaying on the screen. can anyone tell me how to get checkbox even when user

[android-developers] ListView, with Header, Trackball Scrolling Problem

2010-07-14 Thread jason.delport
Hi Group, I have a problem with using ListView headers when scrolling with the trackball. I have replicated the problem by adding the below code to the List1 activity in the APIDemos (the top_story layout just wraps a TextView in a LinearLayout). LayoutInflater inflater = (LayoutInflater)

[android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread TjerkW
Thanks... it was not a threading issue... i was calling views.setImageViewBitmap(R.id.profile_image, icon); with a null icon Most stupid mistake ever. But i think it would be better if android throws a better exception with a clear message. Anyways... solved! And a lot learned today!

Re: [android-developers] Re: checkbox in listview

2010-07-14 Thread TreKing
On Wed, Jul 14, 2010 at 10:23 AM, Narendra Bagade bagadenaren...@gmail.comwrote: can anyone tell me how to get checkbox event when user click on checkbox of listview. You already asked this and Mark already answered you. On Wed, Jul 14, 2010 at 6:00 AM, Mark Murphy mmur...@commonsware.com

Re: [android-developers] Apps with 1 million downloads

2010-07-14 Thread TreKing
On Wed, Jul 14, 2010 at 10:19 AM, Neilz neilhorn...@gmail.com wrote: Is there any way to find out this information? Using Google.com, which leads to this: http://www.androlib.com/appstatsdownloads.aspx http://www.androlib.com/appstatsdownloads.aspxThough the stats only are for 250,000, which

Re: [android-developers] How to delete directory from SD card on uninstall?

2010-07-14 Thread Mark Murphy
On Wed, Jul 14, 2010 at 11:14 AM, Tina tina...@gmail.com wrote: Hi, all! My application creates directory on SD card for syncronisation purpose. Tell me please, is there any way to delete this directory on uninstall? In Android 2.2+, if you use getExternalFilesDir() or getExternalCacheDir(),

[android-developers] Re: How can I find unneeded permission?

2010-07-14 Thread deg
You're right Dianne; I misspoke. But it does require someone with a big enough itch to scratch; either directly (someone supporting a large pool of apps) or indirectly (someone with incentive to improve the development tool- chain). I just meant Google as an example of the latter, but any

[android-developers] Re: Button pressed color

2010-07-14 Thread Matty
What are your custom buttons? Why not make them extend the Button class so you inherit the default behavior? I have created some default buttons, but I only did so to selectively override default behavior. Try inspecting (new Button(this)).getBackground(); and see if that helps you. On

Re: [android-developers] Re: AppWidgetManager updateAppWidget throws NullPointerException

2010-07-14 Thread Kostya Vasilyev
It does - 07-14 10:30:36.796: ERROR/AndroidRuntime(12077): java.lang.NullPointerException How more specific can you get? -- Kostya 14.07.2010 19:42, TjerkW пишет: Thanks... it was not a threading issue... i was calling views.setImageViewBitmap(R.id.profile_image, icon); with a null

[android-developers] Detecting button type of front nav keys

2010-07-14 Thread GodsMoon
I posted this on Stack Overflow and didn't get an answer. Anybody here have an answer? I would like to detect if the navigation keys of the front of the phone (Home,Menu,Back,Search) are hard-keys (ex. G1) or soft-keys (ex. Nexus One). This api

[android-developers] Re: Button pressed color

2010-07-14 Thread String
On Jul 14, 3:48 pm, Ajay aja...@gmail.com wrote: Yes, the pressed images are already different with different OEM applied UIs. Even I could not find it in SDK or some other posts... OK, I wasn't sure of that - my devices are all stock Android. In which case, you've answered your own question;

[android-developers] Re: xcode equivalent for android development

2010-07-14 Thread String
Sorry, forgot the sarcasm / tag. It just bugs me at some level that iOS/OSX knowledge is assumed on an *Android* discussion group. String On Jul 14, 4:00 pm, TreKing treking...@gmail.com wrote: On Wed, Jul 14, 2010 at 4:05 AM, String sterling.ud...@googlemail.comwrote: What's xcode? xcode

[android-developers] TelephonyManager.getLine1Number()

2010-07-14 Thread jotobjects
My colleague reports his G1 returns null from this call. The emulator returns some number (is it hardcoded?). This post on StackOverflow indicates that some (but not all) devices return the correct phone number -

  1   2   3   >