Re: [android-developers] Re: ListView setOnTouchListener

2010-10-19 Thread Hendrik Greving
If I don't set drawSelectorOnTop, it does nothing. I've also tried getting the TextView and call tv.bringToFront(); within onItemClick of the AdapterView.OnItemClickListener. This doesn't do anything, too. Maybe it's called before the selection drawable is drawn :/ What's the standard way to do

Re: [android-developers] Re: ListView setOnTouchListener

2010-10-19 Thread Kumar Bibek
drawSelector on top, don't set it and try On Wed, Oct 20, 2010 at 12:13 PM, Hendrik Greving 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 backgroun

[android-developers] Re: stopping the GC from kicking in

2010-10-19 Thread Peter Webb
>  The first thing I recommend watching is this google > presentation:http://www.google.com/events/io/2009/sessions/WritingRealTimeGamesAnd... I think the advice given in this video is basically wrong. It is a presentation done by a C++ programmer who has just written his first Java program. His

[android-developers] Re: isUserAMonkey throws exception

2010-10-19 Thread George
Dianne, There seems to be a bug in ActivityManagerNative.java. The return of value of 1 (when monkey is running) is being treated as an exception. Looks like the order of reading/writing the exception is mixed-up in the parcel. On Oct 17, 11:39 pm, Dianne Hackborn wrote: > What are you running

Re: [android-developers] Re: ListView setOnTouchListener

2010-10-19 Thread Hendrik Greving
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 unselected state. How would you do this? - Original Messag

[android-developers] Re: Display of HIndi Characters क्ष, त्र in the text editing area

2010-10-19 Thread Rocks
Thankyou for the suggestion. Can you please provide more info on the same ? My current implementation is : I am using InputConnection class to set the hindi characters typed. For eg : InputConnection ic = getCurrentInputConnection(); if (ic != null) {

[android-developers] Re: Please pay attention to the Android porting issues.

2010-10-19 Thread Zsolt Vasvari
Stop spreading FUD and besides, why are you posting this here? There is a porting Google group. -- 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 th

Re: [android-developers] Re: ListView setOnTouchListener

2010-10-19 Thread Kumar Bibek
http://github.com/coomar2841/PTracker/blob/master/res/drawable-mdpi/list_view_selector.xml Set this selector as the background for your item layouts. On Wed, Oct 20, 2010 at 11:51 AM, Hendrik Greving wrote: > Hmm. I tried ListView... > lv.setOnItemSelectedListener(AdapterView.OnItemSelectedListe

[android-developers] Delivery report implementation

2010-10-19 Thread kishor
Hi All, i am trying to implement Delivery Report for android. I am forming the proper PDU with Reply option sub-param in RIL layer and send the same. But when i check OTA LOG, reply option is missing in OTA LOG in data burst message. Only 2 subparam [Message identifiera nd User data seen in log ].

Re: [android-developers] Re: ListView setOnTouchListener

2010-10-19 Thread Hendrik Greving
Hmm. I tried ListView... lv.setOnItemSelectedListener(AdapterView.OnItemSelectedListener() It seems the callback isn't even called for my ListView. I've also experimented with .xml file and setting this as a background for a View to bind to the SimpleCursorAdapter. I don't know if this i

[android-developers] Re: can C2DM running on Eclair

2010-10-19 Thread Kumar Bibek
No it wont. On Oct 20, 9:47 am, Zhihong GUO wrote: > Hi all, > > It seems that the Android market on Eclari can search, download and install > the c2dm-based applications. It seems that if the C2DM support code is > imported in the application source code direclty, the application can > running o

[android-developers] Re: ListView setOnTouchListener

2010-10-19 Thread Kumar Bibek
You should use the selectors for a list item and whenever you want to set a selection, call the listview's method for that. Doing it on touch, has a few bad effects, which are difficult to handle, or atleast you would need a few lines of code to handle specific gestures. On Oct 20, 10:41 am, "Hend

[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 becau

[android-developers] Please pay attention to the Android porting issues.

2010-10-19 Thread Farproc
Please pay attention to the Android porting issues. Android is growing fast nowadays with more and more devices, but there is a very serious problem that is going more and more serious meanwhile: manufactures are not porting Android very well. Here are some examples I found: 1. On HTC G1 wit

[android-developers] Re: How to change of color of list

2010-10-19 Thread grace
hi instead of int values can use Color.xxx(default color values) or if you want your own designed colors make a colors.xml class under res/values and use setBackgroundResource() to set a particular color of your choice. On Oct 20, 8:45 am, "pramod.deore" wrote: > Thanks Grace for reply, > I had

[android-developers] Camera Preview not working on my G2

2010-10-19 Thread Stephen Lebed
I'm trying to get the camera preview running on my G2. This is the code I'm testing with, which was taken from the sample code. It is using supplemental code supplied by Wu-Cheng, but its still throwing an error /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the A

[android-developers] From the emulator to the real device

2010-10-19 Thread kypriakos
Hi all, I am successfully running the imported baseline code on the Android 2.1 emulator. A config file that describes the providers (classes) to be loaded by the code's own classloader resides in the META-INF directory in the apk and the classes are all present in the dex archive. When I run thi

[android-developers] Memory Leaks with a ListView

2010-10-19 Thread John Gaby
I have a class 'GListView' which extends ListView and acts as it's own adapter. It is declared thus: public class GListView extends ListView implements ListAdapter In it's constructor, I set it's adapter to itself as follows: public GListView(Context context ...) { ... setAdapter(this); .

[android-developers] can C2DM running on Eclair

2010-10-19 Thread Zhihong GUO
Hi all, It seems that the Android market on Eclari can search, download and install the c2dm-based applications. It seems that if the C2DM support code is imported in the application source code direclty, the application can running on Eclair, is that true? Thanks a lot. James -- You received

[android-developers] Re: using instrumentation testing framework if there is more than one activity

2010-10-19 Thread Diego Torres Milano
You should use Instrumentation.ActivityMonitor, that can be used to look for the creation of an activity, which together with Instrumentation.addMonitor() let you test that flow. On Oct 18, 1:24 pm, "A. Elk" wrote: > The instrumentation testing framework is designed to do unit tests. > It's not a

[android-developers] Re: How to change of color of list

2010-10-19 Thread pramod.deore
Thanks Grace for reply, I had add in code as getListView().setBackgroundColor(123123); But still color is not changed. I had also tried different int values but still color is not changed. On Oct 19, 3:55 pm, grace wrote: > try using on of these methods on the listview setBackgrungdColor() >

Re: [android-developers] Re: Animated background drawable

2010-10-19 Thread Dianne Hackborn
On Tue, Oct 19, 2010 at 3:08 PM, Streets Of Boston wrote: > If i remember correctly, Twitter used to draw its animated backgrounds > using the LiveWallpaper feature (which you can show in your own > Activities' backgrounds as well). > It didn't; that would require the user setting twitter as the

[android-developers] Re: Is animated-rotate available for developers?

2010-10-19 Thread swinefeaster
I'm having the same issue. Anyone? On Sep 21, 7:49 am, gunnarlium wrote: > Hi! > > In \android-sdk-windows\platforms\android-8\data\res\drawable > \progress_large.xml, the following code is used: > > http://schemas.android.com/apk/res/ > android" >     android:drawable="@drawable/spinner_black_76

[android-developers] Notification Sound getting distorted in Speaker

2010-10-19 Thread Suresh Pal
Hi Guys, Currently I am working on some Bluetooth implementation. My problem is that when my Stereo headset is connected to my mobile device, after that whenever a notification is generated it gets distorted at speaker. I can hear it properly in headset, but at mobile device it appears like it is i

[android-developers] Need more information about INSTALL_REFERRER

2010-10-19 Thread Mark
The com.android.vending.INSTALL_REFERRER intent is used for google analytics: http://code.google.com/mobile/analytics/docs/android/ I have put that intent into an app as following: to do custom referrer tracking. Yes, I am triggering my own handler, not the google analytics handler

[android-developers] Re: TextView visibility problem

2010-10-19 Thread metal mikey
It might be because the TextView is positioned offscreen. Try putting it prior to the RelativeLayout, if you can see it then then it's likely the RelativeLayout is "pushing it" offscreen when the TextView is placed after the RelativeLayout. On Oct 20, 10:07 am, sisko wrote: > The following code i

[android-developers] Re: Blank screen appear when EditText get focus in ldpi(240*320) mode

2010-10-19 Thread Wilder
Add one more info, this apps is compiled using Android 1.5 sdk. The complete source code to repro can be get at https://sites.google.com/site/wilderwang/android, could some one help? Thanks Wilder On 10月11日, 上午10时10分, Wilder wrote: > Hi All, > > I found that when EditText in placing at the botto

[android-developers] Re: ConcurrentModificationException in SQLite

2010-10-19 Thread DanH
It's not a SQLite problem per se, it's a problem with the android.database stuff, or the way you're using it. (Has nothing to do with database access.) A HashMap referenced by android.database.sqlite.SQLiteDatabase.getDbStats is getting modified by another thread simultaneously. HashTable is thr

[android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-19 Thread DanH
Like I said ... Even if you never actually execute the code that's causing the problem, the verifier will reject it, since it's doing a static check and can't tell what code is or isn't executed. If you want to include some code in your application that is optionally loaded (because it's not comp

Re: [android-developers] Re: stopping the GC from kicking in

2010-10-19 Thread Dianne Hackborn
On Tue, Oct 19, 2010 at 6:16 PM, Miguel Morales wrote: > Sometimes, on devices such as a G1 there is still a GC that occurs > once around every minute due to background system services. > Those GCs are not in your process; as of 1.6 such GCs in a background process can not together take more than

Re: [android-developers] Return value from Parcelable.describeContents()

2010-10-19 Thread Dianne Hackborn
ParcelableFileDescriptor. :) It is used for for some validation code -- in particular to implement Bundle.hasFileDescriptors(), which is used to prevent objects with descriptors from being given to the system process in various places. On Tue, Oct 19, 2010 at 6:22 PM, doug wrote: > Hello, > > W

Re: [android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-19 Thread Alex Xin
Thank you! Now I know where I can get those messages. 10-20 09:18:14.973: WARN/dalvikvm(210): VFY: unable to resolve static field 0 (CONTENT_URI) in Landroid/provider/ContactsContract$CommonDataKinds$Phone; 10-20 09:18:14.982: WARN/dalvikvm(210): VFY: rejecting opcode 0x62 at 0x0012 10-20 09:18:

[android-developers] Return value from Parcelable.describeContents()

2010-10-19 Thread doug
Hello, What is an example of Parcelable.describeContents() returning other than 0 or CONTENTS_FILE_DESCRIPTOR? Why does Android need this call? Thanks, doug -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send ema

Re: [android-developers] If my application goes to background, it still continue working? (sending/getting data from internet)

2010-10-19 Thread Dianne Hackborn
On Tue, Oct 19, 2010 at 5:33 PM, saex wrote: > then, if my application is not a service, when it goes to background > (home key pressed for example), it continues working (sending/getting > data from internet)? > Only from pure luck. There is no guarantee. You must assume it will be killed as

Re: [android-developers] Re: ConcurrentModificationException in SQLite

2010-10-19 Thread Mark Murphy
On Tue, Oct 19, 2010 at 9:15 PM, Bret Foreman wrote: > Slowing down the monkey causes this exception to go away. There is > probably a race condition inside SQLite - a condition that is never > going to come up in realistic user situations but only under heavy > synthetic loads. Still, it should p

Re: [android-developers] Re: stopping the GC from kicking in

2010-10-19 Thread Miguel Morales
Sometimes, on devices such as a G1 there is still a GC that occurs once around every minute due to background system services. However, there is plenty you can do in your own code to avoid GC runs. The first thing I recommend watching is this google presentation: http://www.google.com/events/io/20

[android-developers] Re: ConcurrentModificationException in SQLite

2010-10-19 Thread Bret Foreman
Slowing down the monkey causes this exception to go away. There is probably a race condition inside SQLite - a condition that is never going to come up in realistic user situations but only under heavy synthetic loads. Still, it should probably be studied and fixed, just to prevent the rare case wh

[android-developers] Proximity alert

2010-10-19 Thread fourhend...@gmail.com
Is I set a proximity alert, can I make the alert being based on a FINE or COARSE provider? That is, hoping that the error you get from coarse to coarse is smaller than from fine to coarse. For instance by remembering a location when the GPS was switched off, and getting the alert when it was switch

[android-developers] If my application goes to background, it still continue working? (sending/getting data from internet)

2010-10-19 Thread saex
Hi First of all, my application is not a service, it's a normal application, with some windows and some stuff i dont wanna make it a service cos is too munch complicated and i prefeer to avoid it then, if my application is not a service, when it goes to background (home key pressed for example),

[android-developers] Porting LWJGL project to Android

2010-10-19 Thread GJTorikian
Howdy— I have a desktop Java project implemented with LWJGL jar libraries. I'm interested in porting the program to Android. What are my current options for lib support? I've looked at jMonkeyEngine 3, but I don't think the current Alpha 2 is fully up to par yet. I guess a different question migh

[android-developers] ConcurrentModificationException in SQLite

2010-10-19 Thread Bret Foreman
I'm doing some stress testing of my SQLite database using the testing monkey and I got the following exception, which appears to be from inside SQLite. My app has many threads accessing the database but all of them do so in locking mode so I don't think this exception is my fault. Any opinions on w

Re: [android-developers] Re: Animated background drawable

2010-10-19 Thread Romain Guy
No, Twitter is not using a LiveWallpaper. It's just a custom subclass of Drawable. There's nothing crazy or advanced about it :) On Tue, Oct 19, 2010 at 3:08 PM, Streets Of Boston wrote: > If i remember correctly, Twitter used to draw its animated backgrounds > using the LiveWallpaper feature (wh

[android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-19 Thread DanH
Right ***above*** the exception trace should be some arcane-looking messages with "VFY" in them. On Oct 19, 6:36 pm, Alex Xin wrote: > Hi, thanks for helping me, here's the logcat, you could see it crashes prior > to call my onCreate() method. > > 10-20 07:32:27.490: ERROR/AndroidRuntime(204): ja

Re: [android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-19 Thread Alex Xin
Hi, thanks for helping me, here's the logcat, you could see it crashes prior to call my onCreate() method. 10-20 07:32:27.490: ERROR/AndroidRuntime(204): java.lang.VerifyError: xcxin.mysecret.mainSecretActivity 10-20 07:32:27.490: ERROR/AndroidRuntime(204): at java.lang.Class.newInstanceImpl(N

[android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-19 Thread fadden
On Oct 19, 2:25 am, Alex Xin wrote: > I have an app that runs perfect on 2.2 and 2.2 but always getting > VerifyError on 1.6 while startup, I don't think that my app cannot run under > 1.6 because I don't call any APIs that don't support 1.6. Post the output from logcat. Right above the exceptio

[android-developers] Re: stopping the GC from kicking in

2010-10-19 Thread fadden
On Oct 19, 2:11 pm, kk wrote: > Is there any way to get more info as to what is causing this? > I.e. what in my code is causing the GC to kick in... In the stand-alone DDMS there is an "allocation tracker" tab. Select your game, click "start tracking", and after fiddling with your game for a bit

[android-developers] TextView visibility problem

2010-10-19 Thread sisko
The following code is causing me problems as the last view, the TextView, does not display : http://schemas.android.com/apk/res/android"; android:id="@+id/LinearLayout01" android:background="@drawable/bkgrnd" android:layout_height="fill_parent" android:layout_width="fill_parent">

[android-developers] Re: Freeing DB resources

2010-10-19 Thread William Ferguson
Hm .. thanks Bob, perhaps you're right. Perhaps its more to do with the GC spotting a freeable resource than contention over the DB. If that's the case then iI think I'll manage the DB resources by holding it an attribute on my Activities and closing it when the Activity gets paused etc. And yes,

Re: [android-developers] Re: Can i put an icon in the status bar when my application is running??? (also in background mode)

2010-10-19 Thread Mark Murphy
On Tue, Oct 19, 2010 at 6:43 PM, saex wrote: > by notification i can get an icon that it's in left side but > permanently??? (also when my app is ON in backgranund mode) Use FLAG_NO_CLEAR. That being said, do not just put an icon there because you feel like it. Users have a history of giving low

[android-developers] Re: How to connect to a remote MySQL DB without webservices... ?

2010-10-19 Thread gosh
Hi saex, Iff you have control of the/your server, and if it runs a JSP web server such as Apache TomCat (free), you could use my 'really simple' web service protocol for your purposes called: 'SQL+PaWS' to get direct/barebones and easy access to an SQL server (including MySQL) with standard SQL c

[android-developers] Re: Can i put an icon in the status bar when my application is running??? (also in background mode)

2010-10-19 Thread saex
by notification i can get an icon that it's in left side but permanently??? (also when my app is ON in backgranund mode) how i can do that? thanks On 20 oct, 00:29, Mark Murphy wrote: > On Tue, Oct 19, 2010 at 6:27 PM, saex wrote: > > Hi, i know you can put notifications in the status bar, but

[android-developers] icon wont push to the right

2010-10-19 Thread Varun Khanduja
Hello all, I am facing a small issue. In the picture below http://www.flickr.com/photos/34403...@n02/5098102704/ I have this icon on the right, the problem is I would like for it to be completely on the right side but after having played with the width and alignment it just wont go to the right.

[android-developers] Re: positioning problem with canvas.drawBitmap()

2010-10-19 Thread newbyca
i've submitted a case for this issue to google: http://code.google.com/p/android/issues/detail?id=11993 On Oct 10, 3:08 am, newbyca wrote: > update for anyone interested. i found some more info about the > problem ... i get the same results if i change my call to drawBitmap > to: > > surfaceCanva

Re: [android-developers] Can i put an icon in the status bar when my application is running??? (also in background mode)

2010-10-19 Thread Mark Murphy
On Tue, Oct 19, 2010 at 6:27 PM, saex wrote: > Hi, i know you can put notifications in the status bar, but i dont > want to do that, i want to put an ICON when my application is running, > also in background (home key pressed or something like that) > > i mean that is not a notification icon, it's

[android-developers] Can i put an icon in the status bar when my application is running??? (also in background mode)

2010-10-19 Thread saex
Hi, i know you can put notifications in the status bar, but i dont want to do that, i want to put an ICON when my application is running, also in background (home key pressed or something like that) i mean that is not a notification icon, it's just an icon showing that my application is OK, like

[android-developers] Re: MotionEvent HistorySize and multiple Pointers

2010-10-19 Thread Julio Suarez
So you're saying that if I get an event with a pointer count of say 2 (using event.getPointerCount()), and let's say that event.getHistorySize returns 5. This means there are absolutely 10 historical positions in total? There isn't a case where say, pointer 1 will have 5 historical positions, and s

[android-developers] Re: Animated background drawable

2010-10-19 Thread Streets Of Boston
If i remember correctly, Twitter used to draw its animated backgrounds using the LiveWallpaper feature (which you can show in your own Activities' backgrounds as well). On Oct 6, 8:15 am, oriharel wrote: > Just like Twitter for android used to have (they removed it) - I need > to display an anim

[android-developers] Re: stopping the GC from kicking in

2010-10-19 Thread DanH
It kicks in because you used storage. Use less storage. (Actually not as dumb as that sounds -- you often can use, eg, a "cache" to avoid allocating new arrays and such and instead reuse old ones. And be a little less careless doing substrings, creating new arrays when "slicing" an existing one

[android-developers] Re: Google maps: please fetch me a location

2010-10-19 Thread Hatch
Thank you. It makes me happy to know I am not reinventing the wheel ;) Regards Hatch On Oct 19, 1:40 pm, Mark Murphy wrote: > On Tue, Oct 19, 2010 at 3:39 AM,Hatch wrote: > > Since the list of intent on that page is incomplete, I wonder, where > > can one find the complete list of intents that

[android-developers] Re: Registering for proximity alert doesn't work for more than one Location.

2010-10-19 Thread Hatch
Great ! My conclusion was that the system somehow regarder the intents as 'invalid' (why else would it work for only one?). Thank you for shedding more light on the subject. I would never look at the filterEquals docs myself. It's working now. (I just changed the type) Cheers, Tomislav On Oct

[android-developers] Android Geocoder Issues

2010-10-19 Thread Tommy
Hi everyone, I am using the Geocoder.getFromLocation(lat,lon,1) and it seems that a lot of the time nothing gets returned to the List array sometimes it works as it is suppose to. Is there a better way to get the city/state from the lat/lon that is more reliable? the code I use is below: Geocoder

[android-developers] Re: Layout help for WebView

2010-10-19 Thread Neilz
Strangely, that worked, I really didn't think it would ;-) Thanks! On Oct 19, 7:29 pm, TreKing wrote: > On Tue, Oct 19, 2010 at 9:25 AM, Neilz wrote: > > How can I keep the button area fixed in height, while the webview scrolls > > if the text is long enough? > > First, I'd get rid of the "wrap

[android-developers] stopping the GC from kicking in

2010-10-19 Thread kk
Hi all, When the GC kicks in during my game I sometimes get a noticeable framerate drop, which is to be expected. In logcat I get the usual: D/dalvikvm( 85): GC freed 55745 objects / 3149712 bytes in 709ms Is there any way to get more info as to what is causing this? I.e. what in my code is

[android-developers] Camera Activity and screen rotation

2010-10-19 Thread FrEaKmAn
Hello I'm using this code to start a Camera activity and retrieve image ContentValues values = new ContentValues(); values.put(Media.TITLE, "app" + String.valueOf(System.currentTimeMillis())); values.put(Media.DESCRIPTION, "Image ..."); Uri uri = getContentResolver().insert(MediaStore.Images.Medi

[android-developers] Re: Spinner in ListView Activity

2010-10-19 Thread dario
Seems like you're not setting the adapter on the spinner but on the list, is this intended? (I'm assuming you are extending ListActivity) this would explain why onItemSelected isn't called. -Dario On Oct 18, 2:18 pm, SImplyG2010 wrote: > Sorry Bret I do not understand in which onClickListener?

[android-developers] Re: Tab Icons

2010-10-19 Thread JonFHancock
Or I should say: what do you want the icons to represent? There is this, by the way. I haven't looked through all the links, but there may be some tab style icons in there. http://www.androidguys.com/2010/09/15/templates-wireframes-stencils-icons-big-list-android-developer-resources/ On Oct 19,

[android-developers] Re: Tab Icons

2010-10-19 Thread JonFHancock
I may be that "artist." What kind of icons do you want to see? On Oct 19, 9:45 am, Pikoh wrote: >  I haven't found any either...that's why this was my last hope. Well, > let's see if any "artist" read this and give us some good pack ;) > > On 19 oct, 17:52, Christophe wrote: > > > > > > > > >ht

[android-developers] Re: startService an unusual way results in a a NullPointerException

2010-10-19 Thread Roman Mazur
Agree with the previous author. It's really strange I'm sure there is some other way to meet your goals. -- Best regards, Roman Mazur Tech Lead at Stanfy (http://stanfy.com.ua) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post t

Re: [android-developers] Re: Android Market - installation never finishes

2010-10-19 Thread Kostya Vasilyev
Ok, thanks. I'll be recommending this workaround to my users. 19.10.2010 23:20, mot12 пишет: Happens all the time. I typically get around three emails about this every day but recently I had 400 emails in my inbox after an update. Needless to say, this is terrible. Deleting data of market app

[android-developers] Re: Freeing DB resources

2010-10-19 Thread Bob Kerns
I believe the message you're referring to is not a race condition, but rather is detecting the problem when the GC finds the DB connection freeable, but still open. You should be sure to call close() on the returned DB before releasing the last reference to it. For example: SQLiteDatabase db =

[android-developers] Re: Freeing DB resources

2010-10-19 Thread Bob Kerns
I'm more than a little confused by what you're saying. First you talk about reusing cursors. But you give code that does NOT reuse the cursor, but closes one and creates a new one. Perhaps you're confusing reusing the variable with reusing the object? Or perhaps the code you chose isn't the right

[android-developers] Re: Android Market - installation never finishes

2010-10-19 Thread mot12
Happens all the time. I typically get around three emails about this every day but recently I had 400 emails in my inbox after an update. Needless to say, this is terrible. Deleting data of market app did the trick for almost everybody though. -- You received this message because you are subscri

[android-developers] Re: Classpath

2010-10-19 Thread snpe
Window>Preferences>Java>Build Path>Classpath variables You can use preference filter in the Preferences dialog (the text field in left corner with text "type filter text"). Open Window>Preferences and type "classpath", for instance. Regards, Peco On Oct 19, 12:55 am, JoeSchmoe wrote: > Has anyo

[android-developers] Re: Classpath

2010-10-19 Thread snpe
Window>Preferences>Java>Build Path>Classpath variables You can use preference filter in the Preferences dialog (the text field in left corner with text "type filter text"). Open Window>Preferences and type "classpath", for instance. Regards, Peco On Oct 19, 12:55 am, JoeSchmoe wrote: > Has anyo

Re: [android-developers] Layout help for WebView

2010-10-19 Thread TreKing
On Tue, Oct 19, 2010 at 9:25 AM, Neilz wrote: > How can I keep the button area fixed in height, while the webview scrolls > if the text is long enough? > First, I'd get rid of the "wrapper" LinearLayouts around the WebView and the button. The parent LinearLayout should suffice. Second, set the p

[android-developers] Re: Select behavior of a TextView

2010-10-19 Thread Bret Foreman
Well, the workaround turned out to be extremely simple: Instead of using a TextView, use this. It works at both the Group and Child level: class BugFixTextView extends TextView { public BugFixTextView(Context context) {

Re: [android-developers] ListView inside ScrollView (re-hash/best practices)

2010-10-19 Thread Mark Murphy
On Tue, Oct 19, 2010 at 11:00 AM, Richard Leggett wrote: > I'm keen to see if anyone has a better solution to this problem? Get rid of the background. You are taking on a fairly substantial maintenance headache for the sake of a background image. -- Mark Murphy (a Commons Guy) http://commonswar

Re: [android-developers] Button organisation

2010-10-19 Thread TreKing
On Tue, Oct 19, 2010 at 7:11 AM, Laurent Lugon Moulin < laurent.lu...@gmail.com> wrote: > Anyone can help me ? Also look at the "weight" or "layout_weight" attribute, learn it, and love it. - TreKing

[android-developers] Re: Select behavior of a TextView

2010-10-19 Thread Bret Foreman
One workaround might be to overrride the onDraw method of the TextView - set the paintbrush color and then call the super. But I'm not sure how all that might work. On Oct 19, 10:04 am, TreKing wrote: > On Mon, Oct 18, 2010 at 8:38 PM, Bret > Foremanbegin_of_the_skype_highlighting end_of_the

Re: [android-developers] Android Market - installation never finishes

2010-10-19 Thread TreKing
On Tue, Oct 19, 2010 at 6:11 AM, Kostya Vasilyev wrote: > Did anyone here have similar reports recently? Not recently, but this is just another one of the awesome "features" of the Android Market that you have to deal with. People generally get stuck either downloading

[android-developers] Re: PendingIntent.Cancel - FCs in 1.6, fine in 2.1??

2010-10-19 Thread Eric
Unless someone else has a better idea and I'm going at this alone =( Here is what I rigged to work.. if(lockWidgets){ intent = new Intent(context, DUMMY.class); pendingIntent = PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); } The DUMMY.class i

Re: [android-developers] SMS Group Messaging - Speech to Text

2010-10-19 Thread TreKing
On Tue, Oct 19, 2010 at 5:37 AM, acutter wrote: > the Apps do not show up as an update on the phone or AppBrain. > If you already have the app installed on your phone (from developing) it's not going to update, it's already the latest version. And AppBrain take a while to get the latest informat

Re: [android-developers] Install an app.apk in an App

2010-10-19 Thread TreKing
On Tue, Oct 19, 2010 at 6:17 AM, steven yuan wrote: > Is it possible to install it silently at runtime? > Fortunately, no. - TreKing - Chicago tran

Re: [android-developers] Re: prefetch database values

2010-10-19 Thread Rahul Patel
I think you can implement Push messaging from server like at veryfirst time, when your application starts it retrieves the data from the remote server. Then you have to write some server side script, like whenever any updates on the remote server database, it will push those changes to Device and

Re: [android-developers] Registering for proximity alert doesn't work for more than one Location.

2010-10-19 Thread TreKing
On Tue, Oct 19, 2010 at 2:04 AM, Hatch wrote: > So does anyone have a clue why it works for one and not for more locations? > Probably because you're creating the same PendingIntent, as far as the system is concerned. Read this: http://developer.android.com/reference/android/content/Intent.html#

Re: [android-developers] Re: ScrollView

2010-10-19 Thread zeeshan mirza
yes I have checked it. But the layout is out of scrollView. So it should be at the bottom. Widgets inside the scrollview can be scrolled down or up. Try to run my Layout xml file. //Zeeshan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. T

Re: [android-developers] Re: Select behavior of a TextView

2010-10-19 Thread TreKing
On Mon, Oct 18, 2010 at 8:38 PM, Bret Foreman wrote: > This is almost certainly a bug in ExpandableListView. Just saw this post. I ran into the same issue, but with the Group view in ExpandableListView. I have a LinearLayout that can contain two TextViews on top of each other. When the group is

Re: [android-developers] Android drag and drop outside parent

2010-10-19 Thread TreKing
On Mon, Oct 18, 2010 at 3:43 PM, DragonFlyJones wrote: > I just need to know if the element being dragged is touching another > element once it is dropped, though both are in different TableViews. > Aren't your TableViews themselves within the same parent? I'm guessing you can use that knowledge

[android-developers] Re: ScrollView

2010-10-19 Thread Kumar Bibek
At runtime, the scrollview would allow you to scroll the other widgets. Have you checked that? On Oct 19, 2:48 am, zeeshan mirza wrote: > I am having problem with the loswet 2 editText fields. They are not > clearly visible. They are broken. Here is my layout file. Please let > me know if anybody

[android-developers] Re: Tab Icons

2010-10-19 Thread Pikoh
I haven't found any either...that's why this was my last hope. Well, let's see if any "artist" read this and give us some good pack ;) On 19 oct, 17:52, Christophe wrote: > http://www.glyfx.com/products/free_android2.html > > this is the only icon pack I know with tab variation icon ... > unfort

Re: [android-developers] ImageView scaling/layout problem

2010-10-19 Thread TreKing
On Mon, Oct 18, 2010 at 10:05 AM, Tim S wrote: > Is there any easy way to accomplish this? Maybe try this: http://developer.android.com/reference/android/widget/TextView.html#attr_android:drawableTop -

[android-developers] Opinions wanted on ExpandableListView - debug or rewrite?

2010-10-19 Thread Bret Foreman
My current app development is stalled due to Issue 11967 (http:// code.google.com/p/android/issues/detail?id=11967) and I'm thinking about the best way forward. One approach is to download the ExpandableListView source and debug the problem. But there is evidence from the API that this implementat

[android-developers] Re: high density emulator use drawable-mdpi folder instead of drawable-hdpi

2010-10-19 Thread Christophe
it works now with The value for the "supports-screens" tag are "true" by default (http:// developer.android.com/guide/practices/screens_support.html#attrs) so I guess it's not mandatory tu use it in the manifest. thx you ! On Oct 19, 5:50 pm, Daniel Drozdzewski wrote: > On Tue, Oct 19, 2010 at

[android-developers] Re: PendingIntent.Cancel - FCs in 1.6, fine in 2.1??

2010-10-19 Thread Eric
It's obvious that the "cancel()" is working. However, the onClick is throwing an exception because of a residue invalid PendingIntent... so what the heck!?!? (= Would be a lot easier to just remove the setOnClickPendingIntent listener, but I dont see how to. On Oct 18, 11:07 pm, Eric wrote: > A

[android-developers] Re: Tab Icons

2010-10-19 Thread Christophe
http://www.glyfx.com/products/free_android2.html this is the only icon pack I know with tab variation icon ... unfortunaly there is not a lot of free "android style" icon available on the internet :( On Oct 19, 1:44 pm, Pikoh wrote: >  Hi all, > > just a simple question..anyone knows of any icon

Re: [android-developers] high density emulator use drawable-mdpi folder instead of drawable-hdpi

2010-10-19 Thread Kumar Bibek
Your emulator should report a large device. Only then, hdpi resource will be picked up. http://developer.android.com/guide/practices/screens_support.html#range On Tue, Oct 19, 2010 at 9:16 PM, Christophe < christophe.lebesner...@gmail.com> wrote: > hello, > > I am running my application in the e

Re: [android-developers] high density emulator use drawable-mdpi folder instead of drawable-hdpi

2010-10-19 Thread Daniel Drozdzewski
On Tue, Oct 19, 2010 at 4:46 PM, Christophe wrote: > hello, > > I am running my application in the emulator using a high density skin > (like WVGA800). > However the ressources in my application are loaded from the drawable- > mdpi folder instead of drawable-hdpi ... > > what else should I do so t

[android-developers] high density emulator use drawable-mdpi folder instead of drawable-hdpi

2010-10-19 Thread Christophe
hello, I am running my application in the emulator using a high density skin (like WVGA800). However the ressources in my application are loaded from the drawable- mdpi folder instead of drawable-hdpi ... what else should I do so that android use the correct folder ? -- You received this messag

[android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-19 Thread DanH
Keep in mind that there are also Java version dependencies and library dependencies. I don't know what Java versions may correspond to what Android versions, but you can't eg, compile with a Java 6 targeted javac and expect to run on a Java 5 JDK. And in some cases you can run into trouble if you

Re: [android-developers] Problem in creating sound notifications

2010-10-19 Thread TreKing
On Mon, Oct 18, 2010 at 10:20 PM, Suresh Chandra Pal < sureshchandra...@gmail.com> wrote: > I have one more doubt, is it necessary to cancel my notification. > If you don't want the user to have to do it, yes. > Do you mean by 'automatically canceled yourself', that I need to call > cancel met

  1   2   >