[android-developers] upgrade

2011-03-26 Thread Hendrik Greving
Is there a function in the API of activity for instance that gets called when upgrading an application? 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@googlegroups.com To

[android-developers] car dock mode

2011-03-26 Thread Hendrik Greving
Hi is there a broadcast even when entering/leaving car dock mode? Actually, finding these kind of events is a little cumbersome in the otherwise excellent documentation... - Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Amazon appstore

2011-03-23 Thread Hendrik Greving
Do you guys know why you need a tax id in the amazon appstore? -- 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 this group, send email to

[android-developers] Total install numbers

2011-03-02 Thread Hendrik Greving
Hi! Why is there a big difference of Total installs from the publishers website and the number of people who actually bought my app? -- 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] NullPointer Exception

2011-02-27 Thread Hendrik Greving
Hi I am getting a NullPointerException but no real log where it occurs. How can I debug this? It crashes when it returns from onCreate from the first Activity ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2496

[android-developers] Re: NullPointer Exception

2011-02-27 Thread Hendrik Greving
I found it. I learned that with Run-Add Java Exception Breakpoint you can actually catch the exception - Original Message - From: Hendrik Greving To: Android Developers Sent: Sunday, February 27, 2011 3:03 PM Subject: NullPointer Exception Hi I am getting

[android-developers] Publishing / log.d

2011-02-14 Thread Hendrik Greving
Hi question to publishing apps: Do you need to remove all Log.d calls before publishing? Since there is no preprocessor with #defines, it seems kind of dumb to put if (static_flag) around every Log.d call. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] adb upload

2011-02-14 Thread Hendrik Greving
After I've signed and exported an .apk, is there a way to upload this automatically with Eclipse? This is a basic question, I know. If I press F11 I guess it is just recompiling an unsigned package. -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: adb upload

2011-02-14 Thread Hendrik Greving
Oh and second question, how do you actually know whether you've compiled in debug or release mode in Eclipse? This is actually very basic but somehow not very obvious in this tool. - Original Message - From: Hendrik Greving To: Android Developers Sent: Monday, February 14

[android-developers] sqllite

2011-01-12 Thread Hendrik Greving
I have a database with a primary integer row key and several columns. One of the columns is text. Normally I am only fetching for the key, which is easy with SQLiteDataBase.query and KEY_ROWID = mynumber in the selection field. How can I check whether a row (or more) exist that contain a

Re: [android-developers] sqllite

2011-01-12 Thread Hendrik Greving
пользователь Hendrik Greving fourhend...@gmail.com написал: I have a database with a primary integer row key and several columns. One of the columns is text. Normally I am only fetching for the key, which is easy with SQLiteDataBase.query and KEY_ROWID = mynumber in the selection field. How can I check

[android-developers] App name

2011-01-05 Thread Hendrik Greving
I have an app and changed its name everywhere, Manifest etc. The icon names etc. are correct now, also the widget name from the widget manager and the name which appear when you add to the home screen. BUT, if I go to the application manager (Settings - Applications), the old name is still

Re: [android-developers] App name

2011-01-05 Thread Hendrik Greving
Uninstall it before re-installing it? On Wed, Jan 5, 2011 at 5:05 PM, Hendrik Greving fourhend...@gmail.com wrote: I have an app and changed its name everywhere, Manifest etc. The icon names etc. are correct now, also the widget name from the widget manager and the name which appear

[android-developers] Dialog, ListView, ListViewAdapter, form elements

2010-12-28 Thread Hendrik Greving
I have a Dialog, setContentView set to a xml ListView. I then use a ListAdapter that returns view form elements, like RadioGroup and a Button. I took the ListView to get scrolling if the RadioGroup is big. First, is there a better, smarter way to do this? My current problem is, yet it works,

[android-developers] Re: Dialog, ListView, ListViewAdapter, form elements

2010-12-28 Thread Hendrik Greving
Ok I used ScrollView and it works. - Original Message - From: Hendrik Greving To: Android Developers Sent: Tuesday, December 28, 2010 8:05 PM Subject: Dialog, ListView, ListViewAdapter, form elements I have a Dialog, setContentView set to a xml ListView. I then use

[android-developers] android ideas

2010-12-27 Thread Hendrik Greving
When setting to auto, either widget or settings, check the current best auto settings right away -- 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: android ideas

2010-12-27 Thread Hendrik Greving
Err sorry, please disregard this - Original Message - From: Hendrik Greving To: Android Developers Sent: Monday, December 27, 2010 10:31 PM Subject: android ideas When setting to auto, either widget or settings, check the current best auto settings right away -- You

[android-developers] Re: LocationManager.KEY_PROXIMITY_ENTERING

2010-12-24 Thread Hendrik Greving
Still having this problem. Does entering false/true work for anybody? I yes, with what radius put in for the proximity alert? - Original Message - From: Hendrik Greving To: Android Developers Sent: Thursday, December 23, 2010 10:57 AM Subject

[android-developers] LocationManager.KEY_PROXIMITY_ENTERING

2010-12-23 Thread Hendrik Greving
LocationManager.KEY_PROXIMITY_ENTERING is true for the intent of a proximityAlert I was adding. No matter where I am going, I never receive false. Anybody else seeing this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] display brightness

2010-12-15 Thread Hendrik Greving
Hi. Is there a way to check if hardware support automatic brightness? Can setting the system settings to auto throw an exception? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] display brightness

2010-12-15 Thread Hendrik Greving
-developers@googlegroups.com Sent: Wednesday, December 15, 2010 4:37 PM Subject: Re: [android-developers] display brightness On Wed, Dec 15, 2010 at 7:26 PM, Hendrik Greving fourhend...@gmail.com wrote: Hi. Is there a way to check if hardware support automatic brightness

Re: [android-developers] display brightness

2010-12-15 Thread Hendrik Greving
Message - From: Hendrik Greving fourhend...@gmail.com To: android-developers@googlegroups.com Sent: Wednesday, December 15, 2010 5:04 PM Subject: Re: [android-developers] display brightness Ok. I've tried to change the brightness with Settings.System.putInt(getContentResolver

Re: [android-developers] Re: screen brightness change

2010-12-14 Thread Hendrik Greving
I have a widget button that adjusts the brightness and it would be nice if the button could adjust its face if the brightness gets changed otherwise. I guess this is not possible then. - Original Message - From: Dianne Hackborn To: android-developers@googlegroups.com Sent:

[android-developers] screen brightness change

2010-12-13 Thread Hendrik Greving
Hi is there some broadcast or listener for screen brightness changes? -- 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 this group, send email to

[android-developers] GPS

2010-12-10 Thread Hendrik Greving
I know how to read the GPS status etc. but how do I turn the chip on/off? There is nothing in LocationManager/Provider or GpsStatus or Satellite -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] GPS

2010-12-10 Thread Hendrik Greving
at 6:47 PM, Hendrik Greving fourhend...@gmail.com wrote: I know how to read the GPS status etc. but how do I turn the chip on/off? You can't. You can bring up the settings screen to let the user turn it on or off, if they want

Re: [android-developers] Re: GPS

2010-12-10 Thread Hendrik Greving
On Dec 10, 4:59 pm, Hendrik Greving fourhend...@gmail.com wrote: Eww. I just read about this. I guess this is a FAQ, but why can the Power Control Widget do this? - Original Message - From: TreKing To: android-developers@googlegroups.com Sent: Friday, December 10, 2010 4:47 PM Subject

Re: [android-developers] Re: GPS

2010-12-10 Thread Hendrik Greving
'Write System Settings' permission or maybe even 'Write Secure System Settings' permission. These are probably very scary sounding permissions to ask for, but a built in widget never had to ask for them. Nathan On Dec 10, 4:59 pm, Hendrik Greving fourhend...@gmail.com wrote: Eww. I just read about

Re: [android-developers] Re: GPS

2010-12-10 Thread Hendrik Greving
-developers@googlegroups.com Sent: Friday, December 10, 2010 10:09 PM Subject: Re: [android-developers] Re: GPS On Fri, Dec 10, 2010 at 7:41 PM, Hendrik Greving fourhend...@gmail.com wrote: I've actually just tried that. But even if I put the permission in the manifest, it still makes

[android-developers] AppWidgetProvider onReceive

2010-12-09 Thread Hendrik Greving
I need to overwrite onReceive to get some own Broadcasts. The original method dispatches certain Broadcasts to onUpdate. I'm having a little trouble and like to see what the original method dispatches exactly to onUpdate. Does anybody know in which package the source file is with onReceive of

[android-developers] Re: AppWidgetProvider onReceive

2010-12-09 Thread Hendrik Greving
Nevermind. I just call super.onReceive - Original Message - From: Hendrik Greving To: Android Developers Sent: Thursday, December 09, 2010 7:58 PM Subject: AppWidgetProvider onReceive I need to overwrite onReceive to get some own Broadcasts. The original method dispatches

Re: [android-developers] Re: starting local service class not found

2010-12-02 Thread Hendrik Greving
service class not found On Wed, Dec 1, 2010 at 7:09 PM, Hendrik Greving fourhend...@gmail.com wrote: Still having this problem :/ Anyone? Perhaps you do not have the service listed in the AndroidManifest.xml file. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy

Re: [android-developers] Re: starting local service class not found

2010-12-02 Thread Hendrik Greving
- From: Mark Murphy mmur...@commonsware.com To: android-developers@googlegroups.com Sent: Wednesday, December 01, 2010 4:30 PM Subject: Re: [android-developers] Re: starting local service class not found On Wed, Dec 1, 2010 at 7:09 PM, Hendrik Greving fourhend...@gmail.com wrote: Still

[android-developers] Re: starting local service class not found

2010-12-01 Thread Hendrik Greving
Still having this problem :/ Anyone? - Original Message - From: Hendrik Greving To: Android Developers Sent: Tuesday, November 30, 2010 11:13 PM Subject: starting local service class not found I have package com.myapps.myapp; public class MyWidgetProvider extends

[android-developers] starting local service class not found

2010-11-30 Thread Hendrik Greving
I have package com.myapps.myapp; public class MyWidgetProvider extends AppWidgetProvider { [..] public MyService extends Service { [..] @Override public int onStartCommand(Intent intent, int flags, int startId) { [..]

[android-developers] location updates verizon

2010-11-29 Thread Hendrik Greving
Is it possible to get network_location updates with Verizon phones? I could imagine that not, since Verizon is CDMA and there is no timing advance as in GSM for instance, so the network might not know the location at all. I am not sure though. I notice though that I am not getting anything from

[android-developers] Re: location updates verizon

2010-11-29 Thread Hendrik Greving
Err. Nevermind. It works now (with Verizon). Thanks - Original Message - From: Hendrik Greving To: Android Developers Sent: Monday, November 29, 2010 10:26 PM Subject: location updates verizon Is it possible to get network_location updates with Verizon phones? I could

Re: [android-developers] Re: droid 2 drivers

2010-11-27 Thread Hendrik Greving
://kmansoft.wordpress.com 27.11.2010 7:33 пользователь Hendrik Greving fourhend...@gmail.com написал: -- 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

Re: [android-developers] Re: custom view in widget

2010-11-27 Thread Hendrik Greving
. Hope this helps. -- Kostya 27.11.2010 2:27, Hendrik Greving пишет: That's a good idea, I'll try that. By the way, if I want to replace one of the buttons from my widget provider per remoteviews, can I do this (for instance with removeAllViews and addView)? I've tried

Re: [android-developers] Re: custom view in widget

2010-11-26 Thread Hendrik Greving
: custom view in widget On Fri, Nov 19, 2010 at 6:19 PM, Hendrik Greving fourhend...@gmail.com wrote: So basically the widget can only use stuff from the OS? Please read the documentation: http://developer.android.com/guide/topics/appwidgets/index.html particularly: http://developer.android.com

Re: [android-developers] Re: custom view in widget

2010-11-26 Thread Hendrik Greving
: Saturday, November 20, 2010 4:16 AM Subject: Re: [android-developers] Re: custom view in widget On Fri, Nov 19, 2010 at 6:19 PM, Hendrik Greving fourhend...@gmail.com wrote: So basically the widget can only use stuff from the OS? Please read the documentation: http

Re: [android-developers] Re: custom view in widget

2010-11-26 Thread Hendrik Greving
that. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 27.11.2010 1:38 пользователь Hendrik Greving fourhend...@gmail.com написал: So basically the ideal image size for a standard 1-row widget would be 320x100 * 1.5? I did both the minimum APIlevel (7) and enabled scaling (true). The problem I

[android-developers] droid 2 drivers

2010-11-26 Thread Hendrik Greving
A Nexus One worked fine and installed the adb drivers right away. It can't find the drivers for Droid 2 (Vista 32). Anybody know where to get them from? 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: droid 2 drivers

2010-11-26 Thread Hendrik Greving
By the way I've tried the Motorola link but it doesn't take the drivers http://www.motorola.com/consumers/v/index.jsp?vgnextoid=bda09ec8009a0210VgnVCM108806b00aRCRD - Original Message - From: Hendrik Greving To: Android Developers Sent: Friday, November 26, 2010 8:21 PM

[android-developers] widget buttons/images changing the layout

2010-11-20 Thread Hendrik Greving
I can write a widget with a Button or ImageButton and assign a StateDrawable as background or sourcein order to make an effect when you click it. Besides that I have problems with the side of each button, my main problem is this: how do I change the StateDrawable if I want to change the image

[android-developers] custom view in widget

2010-11-19 Thread Hendrik Greving
Can I use a custom view like com.examples.me.customview in the xml file of a app widget and can then draw in the onDraw of the custom view? Or do I have to draw into the drawing cache of an ImageView instead? -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: custom view in widget

2010-11-19 Thread Hendrik Greving
of these classes are not supported. It runs in another process. It has no way to load them. On Nov 19, 3:40 pm, Hendrik Greving fourhend...@gmail.com wrote: Can I use a custom view like com.examples.me.customview in the xml file of a app widget and can then draw in the onDraw of the custom view? Or do I

Re: [android-developers] Re: custom view in widget

2010-11-19 Thread Hendrik Greving
In particular, if you want to change the content on touch/clicks - Original Message - From: Hendrik Greving fourhend...@gmail.com To: android-developers@googlegroups.com Sent: Friday, November 19, 2010 3:19 PM Subject: Re: [android-developers] Re: custom view in widget So basically

[android-developers] Re: addProximityAlert lifecycle

2010-11-17 Thread Hendrik Greving
several days for instance, as long as I specify the expiration time as == -1? - Original Message - From: Hendrik Greving To: Android Developers Sent: Sunday, November 14, 2010 8:05 PM Subject: addProximityAlert lifecycle Hi I understand the documentation about activity

[android-developers] addProximityAlert lifecycle

2010-11-14 Thread Hendrik Greving
Hi I understand the documentation about activity and service lifecycle. Generally speaking, what's the approach if you want to have an application which gets unlimited proximity alerts, basically a service that doesn't die? I've tried startService with requestLocationUpdate etc. but after a

[android-developers] power widget source code and images

2010-11-12 Thread Hendrik Greving
Does anybody know where I can find the power widget source code that comes with Android and in particular the images? -- 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

Re: [android-developers] proximity alert

2010-11-10 Thread Hendrik Greving
-developers@googlegroups.com Sent: Wednesday, November 10, 2010 4:00 AM Subject: Re: [android-developers] proximity alert On Tue, Nov 9, 2010 at 9:51 PM, Hendrik Greving fourhend...@gmail.com wrote: What happens if you add the semantically the same proximity alert without expiration several times

Re: [android-developers] standard power widget icons

2010-11-10 Thread Hendrik Greving
/platforms/$SDK/data/res where $ANDROID_HOME is wherever you unpacked the Android SDK and $SDK is some platform version (e.g., android-8). If the icons you seek are not there, then try http://source.android.com. On Tue, Nov 9, 2010 at 11:23 PM, Hendrik Greving fourhend...@gmail.com wrote: Does

Re: [android-developers] standard power widget icons

2010-11-10 Thread Hendrik Greving
. On Wed, Nov 10, 2010 at 2:51 PM, Hendrik Greving fourhend...@gmail.com wrote: I am looking for the buttons or icon images of the power control widget (wireless, bluetooth, gps, sync and display brightness). Couldn't find it in there. Are they open source and available at source.android.com by any

Re: [android-developers] standard power widget icons

2010-11-10 Thread Hendrik Greving
I am talking about the power control widget that comes free with android since android 1.6. - Original Message - From: Kostya Vasilyev kmans...@gmail.com To: android-developers@googlegroups.com Sent: Wednesday, November 10, 2010 1:03 PM Subject: Re: [android-developers] standard power

[android-developers] proximity alert

2010-11-09 Thread Hendrik Greving
What happens if you add the semantically the same proximity alert without expiration several times, let's say with an intent to start a service? Obviously the service will be only started once, but will this compromise the system? Is it better or do you need to make sure you'll add the same

[android-developers] standard power widget icons

2010-11-09 Thread Hendrik Greving
Does anybody know where to get the standard power control widget icons from? -- 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 this group, send email

Re: [android-developers] layout inflator

2010-11-08 Thread Hendrik Greving
. Daniel On Sun, Nov 7, 2010 at 9:57 PM, Hendrik Greving fourhend...@gmail.com wrote: I am implementing a ListAdapter and in getView, I am returning @Override public View getView(int position, View convertView, ViewGroup parent) { switch (position) { case 0: if (title == null) { title

[android-developers] Change name space

2010-11-08 Thread Hendrik Greving
Can I change the packet namespace in eclipse in an already existing project? -- 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 this group, send email

[android-developers] layout inflator

2010-11-07 Thread Hendrik Greving
I am implementing a ListAdapter and in getView, I am returning @Override public View getView(int position, View convertView, ViewGroup parent) { switch (position) { case 0: if (title == null) { title = View.inflate(mContext, R.layout.main_settings_title, parent);

[android-developers] Drawing circle in MapView

2010-10-29 Thread Hendrik Greving
Trying to draw a circle at a longitude/latitude position. The circle below doesn't show up, does anybody know why? latitude, longitude is known here ListOverlay mapOverlays = mapView.getOverlays(); ColorDrawable myCircle = new ColorDrawable(); mCirc = new Canvas(); mPaint = new Paint();

Re: [android-developers] Drawing circle in MapView

2010-10-29 Thread Hendrik Greving
in MapView On Fri, Oct 29, 2010 at 1:56 AM, Hendrik Greving fourhend...@gmail.com wrote: The circle below doesn't show up, does anybody know why? Probably because you're creating your own Canvas the system knows nothing about. If you want to do custom drawing, override the onDraw or draw

Re: [android-developers] Re: ListView setOnTouchListener

2010-10-20 Thread Hendrik Greving
of code to handle specific gestures. On Oct 20, 10:41 am, Hendrik Greving fourhend...@gmail.com wrote: I have a ListView and a database cursor which I set with setListAdapter. The adapter is a SimpleCursorAdapter which takes a xml description for the ListView items. How can I set a onTouch handler

Re: [android-developers] Re: ListView setOnTouchListener

2010-10-20 Thread Hendrik Greving
Message - From: Hendrik Greving fourhend...@gmail.com To: android-developers@googlegroups.com Sent: Tuesday, October 19, 2010 11:21 PM Subject: Re: [android-developers] Re: ListView setOnTouchListener Hmm. I tried ListView... lv.setOnItemSelectedListener(AdapterView.OnItemSelectedListener

Re: [android-developers] Re: ListView setOnTouchListener

2010-10-20 Thread Hendrik Greving
, Hendrik Greving fourhend...@gmail.com wrote: Ok lv.setDrawSelectorOnTop(true); lv.setSelector(R.drawable.list_selected); does draw a drawable, but it wipes out the rest. I would only like to -of course - the background of the View which was the list item inthe

Re: [android-developers] Re: ListView setOnTouchListener

2010-10-20 Thread Hendrik Greving
-developers] Re: ListView setOnTouchListener Set the selector xml to the item layout and not the listView. That should work. Your approach should also work. Can you post a screenshot of how it looks now? On Wed, Oct 20, 2010 at 12:29 PM, Hendrik Greving fourhend...@gmail.com wrote: If I

[android-developers] ListView setOnTouchListener

2010-10-19 Thread Hendrik Greving
I have a ListView and a database cursor which I set with setListAdapter. The adapter is a SimpleCursorAdapter which takes a xml description for the ListView items. How can I set a onTouch handler for every item, in order to highlight when it's being touched? -- You received this message

[android-developers] Dialog and ListView

2010-10-17 Thread Hendrik Greving
I am using a Dialog instead of a ContextMenu in order to be able to customie its look. I show the Dialog when long clicking on a ListView item. What's the easiest way to move the Dialog to the position of the ListView item? -- You received this message because you are subscribed to the Google

[android-developers] sqlite

2010-10-16 Thread Hendrik Greving
I'd like to have a sqlite table with rows of 4 entries: a row id, a string and 2 integers and possibly more data later. I want the string to be unique. What's the easiest way to write an adapter that insert new rows with automatically replacing if the string already exists? Does

Re: [android-developers] Android system / API / replacing system libraries

2010-10-14 Thread Hendrik Greving
Where can I find this? - Original Message - From: James Burley To: android-developers@googlegroups.com Sent: Wednesday, October 13, 2010 11:38 AM Subject: Re: [android-developers] Android system / API / replacing system libraries Watch the Android developer video titled

[android-developers] Re: Android system / API / replacing system libraries

2010-10-13 Thread Hendrik Greving
Hi guys is there any input? Or maybe some pointers to something to read? This would be great - Original Message - From: HenSFO fourhend...@gmail.com To: Android Developers android-developers@googlegroups.com Sent: Tuesday, October 12, 2010 8:26 AM Subject: Android system / API /

Re: [android-developers] Re: Android system / API / replacing system libraries

2010-10-13 Thread Hendrik Greving
cannot. You can use it in your app though, throughout. But the other apps wouldn't see this class unless you rebuild the OS and come out with a device. On Thu, Oct 14, 2010 at 1:20 AM, Hendrik Greving fourhend...@gmail.com wrote: Hi guys is there any input? Or maybe some pointers