[android-developers] Re: How to get the soft keyboard input with out edit text?
Thanks. I am now using EditText to receive the result. But how can I know the final string? I mean, I can get the string each time when user click the soft keyboard. I want to know the final click on Done key. On 5月27日, 下午11时09分, Mark Murphy mmur...@commonsware.com wrote: davidrobin wrote: All I want is the final result of the input string. There is no input string without an EditText. At most, with onKeyUp() you might get individual key events (haven't tried that myself). If you want an input string, put an EditText in your layout. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 2.x Programming Books:http://commonsware.com/books -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: GLSurfaceView onPause blocked in Froyo
I am calling it because the documentation tells so. public void onPause () Since: API Level 3 Inform the view that the activity is paused. The owner of this view must call this method when the activity is paused. Calling this method will pause the rendering thread. Must not be called before a renderer has been set. If i don't call this the OpenGL rendering thread will keep on giving the onDrawFrame calls. regards KK On May 26, 11:06 pm, Indicator Veritatis mej1...@yahoo.com wrote: The first thing that pops out as odd, possibly related to your problem, is that as you describe it, you are callingonPause() and onResume() yourself. These are meant to be called by the system, not the API user (you). Are you really calling these yourself? If so, why? On May 26, 6:25 am, KK krishnakumar.ramachand...@gmail.com wrote: I am using OpenGL to do some rendering and whenever my rendering gets paused I callonPauseofGLSurfaceViewand later when I resume onResume ofGLSurfaceView. This was working fine till I upgraded my Nexus One to Froyo today. After that the thread callingonPauseseems to be blocked in that API. Anyone has any idea why this is happening? Is there anything I need to change for this to work on Froyo? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: USB drivers for HTC Legend ? (or, how to add your own to android_winusb.inf )
I wonder why you would do it by yourself. Check the SD card that comes with your Legend, you should be able to find an installer program under the HTC Sync folder. Install the HTC Sync program and it will also install the USB driver for all HTC Android devices. Regards, Ted On 4月10日, 下午7時31分, ThomasWrobel darkfl...@gmail.com wrote: Just got a HTC Legend and am very keen to get into Android development (having previously been expirenced with eclipse/java/gwt). However, the USB ADB driver on the SDK doesnt support it, so I wondered how I could add it myself. I feebly tried adding; ; HTC Legend %SingleAdbInterface% = USB_Install, USB\VID_0BB4PID_0C01 %CompositeAdbInterface% = USB_Install, USB\VID_0BB4PID_0C97MI_01 %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4PID_0FFF to the inf file. But it didnt help. (mainly because I have no clue what I was doing) Any help to get my Legend working as a debug device would be most appriciated! :) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: USB drivers for HTC Legend ? (or, how to add your own to android_winusb.inf )
Check the HTC Sync folder in the SD card that comes with your Legend, install the HTC Sync program, then you will get the USB driver installed in your system. Ted On 4月10日, 下午7時31分, ThomasWrobel darkfl...@gmail.com wrote: Just got a HTC Legend and am very keen to get into Android development (having previously been expirenced with eclipse/java/gwt). However, the USB ADB driver on the SDK doesnt support it, so I wondered how I could add it myself. I feebly tried adding; ; HTC Legend %SingleAdbInterface% = USB_Install, USB\VID_0BB4PID_0C01 %CompositeAdbInterface% = USB_Install, USB\VID_0BB4PID_0C97MI_01 %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4PID_0FFF to the inf file. But it didnt help. (mainly because I have no clue what I was doing) Any help to get my Legend working as a debug device would be most appriciated! :) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Skinning in Android
You can skin your own applications using Styles and Themes: http://developer.android.com/intl/fr/guide/topics/ui/themes.html If you are trying to skin the whole UI look and feel of the device (not just your own applications), you need to root your device and build your own rom for it. Regards, Ted Chien -- http://www.linkedin.com/in/htchien On 5月28日, 下午1時33分, subrat kumar panda evergreen.sub...@gmail.com wrote: Hello all, How to create user interface using skinning in android i don't know anything about skinning also i am not found any document . anybody knows about the skinning will be appreciated. Thanks in advance, Best Regards Subrat Kumar Panda. India -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to go back from 2.2 to 2.1update (ERE27) on nexus one
The two that I found and effected me: - Can no longer play back .wav files, which is how Vonage sends me voice mails. - The photo of my most important contact has disappeared and even a resync doesn't get it back. In effect my phone's contact and the cloud contact is out of sync. Then there is the issue of text entry's strange behavior. I have a hard time typing this as the scrolling is screwy and the text is scrolled out of the screen as I type. On May 28, 1:53 pm, Mark Carter mjc1...@googlemail.com wrote: I would be interested to know which bugs you've found, please! On 28 May 2010 01:13, Zsolt Vasvari zvasv...@gmail.com wrote: I'm running the one downloaded from google's servers and it seems to be running fine... (I also thought it was official at the time) Right, I got them off the Google server as well. Of course that gurantee that it's the same as the OTA, but seems official enough. It runs fine for the most part, but there are a couple of bugs I discovered that effect me. Not a huge deal. -- 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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Cannot Write file into SDCard
Try it with new API-8 and sdk r6 I think you will get your solution. tOn 5/28/2010 11:17 AM, TreKing wrote: On Thu, May 27, 2010 at 3:29 AM, jp backstabber...@hotmail.com mailto:backstabber...@hotmail.com wrote: It says that the parent directory of file does not exist: data2/abc.text OK, really, come on now. I don't think this can be any clearer ... if the parent directory doesn't exist ... maybe try creating the parent directory? Directories are not created automatically for you, so if you want a file like directory/file.ext you have to make sure to create directory first, if it doesn't already exist. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Technology never Ends, Learn Fast... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: FYI EVO/Incredible ADB How-To
Check the SD card that comes with your EVO. There should be a HTC Sync folder for you to install the HTC Sync program and the USB driver. Ted On 5月28日, 上午6時27分, Art art@gmail.com wrote: unsuccessful too. windows vista can't find a device driver for my evo. eclipse tells me that i have the r3 usb driver package and i updated my android_winusb.inf with the htc entries. any suggestions? thanks! On May 27, 10:29 am, brianl licht...@gmail.com wrote: Tried your mod using the latest release r06, but was unsuccessful. Updated the android_winusb.inf file in both places, adb kill-server, adb start-server, adb devices, noEvo. Restarted Windows, still noEvo. Assume this should work w/ the latest release, and that I don't have to go back to r03. Any ideas? thanks! On May 21, 1:48 pm, Robert Green rbgrn@gmail.com wrote: You need the r3 ADB driver and then you need to add this to the android_winusb.inf to support these two devices: ; ;HTC Incredible %SingleAdbInterface% = USB_Install, USB\VID_0BB4PID_0C9E %CompositeAdbInterface% = USB_Install, USB\VID_0BB4PID_0C9EMI_01 ; ;HTCEVO %SingleAdbInterface% = USB_Install, USB\VID_0BB4PID_0C8D %CompositeAdbInterface% = USB_Install, USB\VID_0BB4PID_0C8DMI_01 Add those lines at the end of both [Google.NTx86] and [Google.NTamd64] and your ADB Composite Device driver should install for both phones. -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] official twitter app source
I can't wait much longer the anticipation is killing me :) Discuss -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: FYI EVO/Incredible ADB How-To
you can just say use existing driver and pick android phone and then adb in windows 7 On May 28, 1:36 am, Ted Chien hsiangtai.ch...@gmail.com wrote: Check the SD card that comes with your EVO. There should be a HTC Sync folder for you to install the HTC Sync program and the USB driver. Ted On 5月28日, 上午6時27分, Art art@gmail.com wrote: unsuccessful too. windows vista can't find a device driver for my evo. eclipse tells me that i have the r3 usb driver package and i updated my android_winusb.inf with the htc entries. any suggestions? thanks! On May 27, 10:29 am, brianl licht...@gmail.com wrote: Tried your mod using the latest release r06, but was unsuccessful. Updated the android_winusb.inf file in both places, adb kill-server, adb start-server, adb devices, noEvo. Restarted Windows, still noEvo. Assume this should work w/ the latest release, and that I don't have to go back to r03. Any ideas? thanks! On May 21, 1:48 pm, Robert Green rbgrn@gmail.com wrote: You need the r3 ADB driver and then you need to add this to the android_winusb.inf to support these two devices: ; ;HTC Incredible %SingleAdbInterface% = USB_Install, USB\VID_0BB4PID_0C9E %CompositeAdbInterface% = USB_Install, USB\VID_0BB4PID_0C9EMI_01 ; ;HTCEVO %SingleAdbInterface% = USB_Install, USB\VID_0BB4PID_0C8D %CompositeAdbInterface% = USB_Install, USB\VID_0BB4PID_0C8DMI_01 Add those lines at the end of both [Google.NTx86] and [Google.NTamd64] and your ADB Composite Device driver should install for both phones. -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Scan wireless networks periodically
Hi, Use alarms On May 26, 8:06 pm, Charly carlos.per...@gmail.com wrote: Hi, I'm developing sort of a wireless scanner, so I need to scan every X seconds. I know I should use WifiManager and startScan() to get the networks and then register a receiver to receive the event once the scan has finished. However I'm having problems when trying to figure out how to scan periodically. It's more like a design problem. My solution so far has been to create a Service which takes care of the scanning, besides the main Activity. I think this is correct. So how could I tell this Service to scan every X seconds? I've thought it may have a Thread object, call its Scan method during tart_services() and then take it to sleep. Also I thought I could just get rid of the Service and run the Thread from the main Activity, but then I guess it would die whenever the Activity is not visible. None of then seem like a really good solution to me, and I think there must be an easier way to do this. Could anyone help me please? Thanks in advance. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to go back from 2.2 to 2.1update (ERE27) on nexus one
Anyways guys I got it back... here is he link to get it back http://forum.xda-developers.com/showthread.php?t=614850 With this one you will get ERD79 and after that you will get OTA update for ERE27 thats the one I got my phone shipped with. Thanks On May 28, 3:31 pm, Zsolt Vasvari zvasv...@gmail.com wrote: The two that I found and effected me: - Can no longer play back .wav files, which is how Vonage sends me voice mails. - The photo of my most important contact has disappeared and even a resync doesn't get it back. In effect my phone's contact and the cloud contact is out of sync. Then there is the issue of text entry's strange behavior. I have a hard time typing this as the scrolling is screwy and the text is scrolled out of the screen as I type. On May 28, 1:53 pm, Mark Carter mjc1...@googlemail.com wrote: I would be interested to know which bugs you've found, please! On 28 May 2010 01:13, Zsolt Vasvari zvasv...@gmail.com wrote: I'm running the one downloaded from google's servers and it seems to be running fine... (I also thought it was official at the time) Right, I got them off the Google server as well. Of course that gurantee that it's the same as the OTA, but seems official enough. It runs fine for the most part, but there are a couple of bugs I discovered that effect me. Not a huge deal. -- 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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: New to android. Listview problem
Hi, Put the line setContentView(R.layout.main); after line super.onCreate(savedInstanceState); On May 26, 6:15 am, Somebodyconfused til...@jcs.k12.oh.us wrote: All, I'm trying to get the following code to work. It should just be a textview with a listview underneath it. What is going wrong? MAIN.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / ListView android:id=@+id/lista android:layout_width=wrap_content android:layout_height=wrap_content/ /LinearLayout public class TestApp extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView meh = new TextView(this); ListView ls = (ListView) findViewById(R.id.lista); String[] COUNTRIES = {Afghanistan, Albania, Algeria}; meh.setText(HI THERE); setContentView(R.layout.main); ls.setAdapter(new ArrayAdapterString(this,android.R.layout.simple_list_item_1, COUNTRIES)); } -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Tvout with Android Phones
Can someone please confirm me, is there any android phones in market with tvout feature ? Thanks and Regards, Dileep On Tue, May 25, 2010 at 9:12 AM, Dilip Dilip dileep2m...@gmail.com wrote: Hi All, Is there any Android phone with Tvout? can someone give me the list. I know HTC incredible supports Tvout on USB port for which we need to buy USB to composite adaptor. Is there any Android phones which supports tvout on 3.5mm Jack. Thanks and Regards, Dileep. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Froyo-Problem: Calendar access
Adam you're my hero of the day :-) On 26 mei, 18:01, Adam Jensen acjen...@gmail.com wrote: Here are the URI and package name changes between 2.1 and 2.2: -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Our Android Google AdSense Account Disabled due to 'modifying the ad behavior'
You should get appropriate lawyer to fix this issue. ( or at least raise it high enough so somebody who can make decisions, and not only implements business process looks at this issue ) regards, -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] MusicVis live wallpaper
The live wallpapers that do music visualization rely on a function MediaPlayer.snoop(shortarray, offset?) , but I can't seem to find these static functions in the official api. Eclipse doesn't seem to want to compile if I use the function in my code. Any idea's? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] VideoView cannot play long path video
VideoView cannot play long path video issue: Bug#8699 enviroment: Platform 2.0 simulator and G2 H/W. If setVideoPath(/data/data/com.abc.android.abcd/Transformers.mp4); It can play well. While, If setVideoPath(/data/data/com.abc.android.abcd/content/ Transformers.mp4); It cannot play. Btw: familiar things occured when I display the jpeg file bit = BitmapFactory.decodeFile(fileName); mImgView.setImageBitmap(bit); If the fileName is /data/data/com.abc.android.abcd/content/2.jpeg It cannot display While, If the fileName is /data/data/com.abc.android.abcd/2.jpeg It display well. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: USB drivers for HTC Legend ? (or, how to add your own to android_winusb.inf )
I did install/uninstall the HTC Sync many times. But the windows 7 still cannot detect legend. Every time i plug the usb to pc. it will show up a dialog said that it was finding the driver software for 'Qualcomm CDMA Technology MSMM', 'Android Phone', 'Unkonwn Device' or 'USB Mass Storage'. But failed each time. I also tried to use 'Update Driver Software' and locate the driver inf file from HTC\HTC Driver\Driver Files\Win7_x86 to update the driver. But windows 7 tells me the driver software is the latest one. After that, I followed this post and added two new lines to android sdk driver inf file. It seems fine for android phone. But the device cannot be stared. :( I wanna say, I assume the usb driver software was broken then I reinstalled the Windows 7 for it, but it still doesn't work. I think I have to try it on Linux.. On May 28, 2:26 pm, Ted Chien hsiangtai.ch...@gmail.com wrote: Check the HTC Sync folder in the SD card that comes with yourLegend, install the HTC Sync program, then you will get the USB driver installed in your system. Ted On 4月10日, 下午7時31分, ThomasWrobel darkfl...@gmail.com wrote: Just got a HTCLegendand am very keen to get into Android development (having previously been expirenced with eclipse/java/gwt). However, the USB ADB driver on the SDK doesnt support it, so I wondered how I could add it myself. I feebly tried adding; ; HTCLegend %SingleAdbInterface% = USB_Install, USB\VID_0BB4PID_0C01 %CompositeAdbInterface% = USB_Install, USB\VID_0BB4PID_0C97MI_01 %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4PID_0FFF to the inf file. But it didnt help. (mainly because I have no clue what I was doing) Any help to get myLegendworking as a debug device would be most appriciated! :) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: USB drivers for HTC Legend ? (or, how to add your own to android_winusb.inf )
Chien, You can search on Google, u can find many ppl are finding the solution for the usb issue about Hero/Legend/Desire. I know you have good experience on HTC products and android development. Could you give us some suggestion about that? Thanks, On May 28, 2:26 pm, Ted Chien hsiangtai.ch...@gmail.com wrote: Check the HTC Sync folder in the SD card that comes with yourLegend, install the HTC Sync program, then you will get the USB driver installed in your system. Ted On 4月10日, 下午7時31分, ThomasWrobel darkfl...@gmail.com wrote: Just got a HTCLegendand am very keen to get into Android development (having previously been expirenced with eclipse/java/gwt). However, the USB ADB driver on the SDK doesnt support it, so I wondered how I could add it myself. I feebly tried adding; ; HTCLegend %SingleAdbInterface% = USB_Install, USB\VID_0BB4PID_0C01 %CompositeAdbInterface% = USB_Install, USB\VID_0BB4PID_0C97MI_01 %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4PID_0FFF to the inf file. But it didnt help. (mainly because I have no clue what I was doing) Any help to get myLegendworking as a debug device would be most appriciated! :) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to create a file outside the application?
Hi, Sir In my application there is one option for trial period in that user can use it for 15 days of trial. Now I am storing users IMEI number in a file which is in application local file, but when I uninstall application then that file is also get deleted. So, I want to place somewhere else (but not in SDcard). So in this situation how can I keep the record that particular user had used the trial version, so next time he can't use it. Please help me. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] CheckBoxs' labels are not updated after locale is changed
When locale is changed via Settings Language keyboard Select local, labels on buttons, textviews, and spiners are updated according to new locale (I created corresponding strings.xml in the folder values-locale), but checkboxs' are not; if I close the activity and restart it again, the checkboxs' labels become correct. Why, is it Android's bug? Thanks. -Jiang -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: where is the sdcard in emulator 2.2?
yes, i did it, but i can't find the sdcard in eclipse unter DDMS/File Explorer On May 24, 8:17 pm, Mathias Lin m...@mathiaslin.com wrote: There is no (virtual) sdcard in the emulator. You need to create it viahttp://developer.android.com/guide/developing/tools/othertools.html#m... On May 21, 7:40 pm,coolbananaralf...@web.de wrote: Hi, i am working with eclips with the new SDK2.2. i cannot find the sdcard in emulator 2.2! thanks CB -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: where is the sdcard in emulator 2.2?
hi even i m not getting, if u find it kindly inform me also Thank u On Fri, May 28, 2010 at 3:07 PM, coolbanana ralf...@web.de wrote: yes, i did it, but i can't find the sdcard in eclipse unter DDMS/File Explorer On May 24, 8:17 pm, Mathias Lin m...@mathiaslin.com wrote: There is no (virtual) sdcard in the emulator. You need to create it viahttp:// developer.android.com/guide/developing/tools/othertools.html#m... On May 21, 7:40 pm,coolbananaralf...@web.de wrote: Hi, i am working with eclips with the new SDK2.2. i cannot find the sdcard in emulator 2.2! thanks CB -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] extending voice commands
Is it possible to add you own application so it's a registered voice command application. As the navigate keyword is linked to maps, can link shop to your own application? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HTTPS to acces my wcf from android appli
Hi! I have a biiig issue, I'm developping an android app that access my wcf using soap and basichttp for now on everythg seems working perfectly but now i'm wondering if i can access to my wcf using https :s i read some articles that say that it's impossible and complicated. Plz is there anyway to resolve that issue Plz help. Thx -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can an AppWidget's RemoteViews be edited/created dynamically, or only from XML?
I suspect the answer is no, but it only seems possible at the moment to update an AppWidget via a RemoteViews object which is inflated from a static XML file. Is there any way to build a RemoteViews object on the fly, or edit the layout of one that is already there? The requirement is that I dont know until runtime exactly how many ImageViews I want to display in my AppWidget. Currently I am setting all the ImageViews I may need in the layout XML file as invisible and then just making the ones I want visible, but am I then limited to what I have in the XML file to start with. It would be far more convenient to be able to just add the ones I need on the fly, and set their properties when updating. Anyone know if there is a way to do that? Thanks James -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How can I increase the memory capacity of my Android emulator?
Hi! My application is almost 1 gig. I don't intend to sell this. This is for personal use. I have large audio files that NEEDs to be stored folder. The emulator won't launched it since it's big. How can I make the emulator accept a large APK (1gig)? 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How can I increase the memory capacity of my Android emulator?
create new emulator and make it as higher space easily !!! On Fri, May 28, 2010 at 3:40 PM, Carl Hernandez carl.hernan...@gmail.comwrote: Hi! My application is almost 1 gig. I don't intend to sell this. This is for personal use. I have large audio files that NEEDs to be stored folder. The emulator won't launched it since it's big. How can I make the emulator accept a large APK (1gig)? 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How can I increase the memory capacity of my Android emulator?
or show its property or details u can increase from there itself On Fri, May 28, 2010 at 3:51 PM, Jay Ganatra ganatra.ja...@gmail.comwrote: create new emulator and make it as higher space easily !!! On Fri, May 28, 2010 at 3:40 PM, Carl Hernandez carl.hernan...@gmail.comwrote: Hi! My application is almost 1 gig. I don't intend to sell this. This is for personal use. I have large audio files that NEEDs to be stored folder. The emulator won't launched it since it's big. How can I make the emulator accept a large APK (1gig)? 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: USB drivers for HTC Legend ? (or, how to add your own to android_winusb.inf )
Fwiw: on my htc hero, after I plug the phone in, I have to select htc sync in the phone. I don't have htc sync installed in Windows, so this fails, but after that the phone shows in DDMS. 28.05.2010 12:13 пользователь K.L doctorki...@gmail.com написал: I did install/uninstall the HTC Sync many times. But the windows 7 still cannot detect legend. Every time i plug the usb to pc. it will show up a dialog said that it was finding the driver software for 'Qualcomm CDMA Technology MSMM', 'Android Phone', 'Unkonwn Device' or 'USB Mass Storage'. But failed each time. I also tried to use 'Update Driver Software' and locate the driver inf file from HTC\HTC Driver\Driver Files\Win7_x86 to update the driver. But windows 7 tells me the driver software is the latest one. After that, I followed this post and added two new lines to android sdk driver inf file. It seems fine for android phone. But the device cannot be stared. :( I wanna say, I assume the usb driver software was broken then I reinstalled the Windows 7 for it, but it still doesn't work. I think I have to try it on Linux.. On May 28, 2:26 pm, Ted Chien hsiangtai.ch...@gmail.com wrote: Check the HTC Sync folder in the SD card that comes with yourLegend, install the HTC Sync program, then you will get the USB driver installed in your system. Ted On 4月10日, 下午7時31分, ThomasWrobel darkfl...@gmail.com wrote:... Just got a HTCLegendand am very keen to get into Android development (having previously been expirenced with eclipse/java/gwt). However, the USB ADB driver on ... Any help to get myLegendworking as a debug device would be most appriciated! :) -- You received this message because you are subscribed to the Google Groups ... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Alarm Clock quitting my application
Hi, Thanks for the answer. Any time your activity isn't in the foreground, it may be removed from the stack if the system thinks it needs the resources. Shouldn't the app be removed before the alarm is triggered? It doesn't make sense for me that the app is removed after the alarm is gone. If the alarm is gone, and my app is again in the foreground again, why the system would send the onDestroy event? thanks guich -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Strange behavior when launching app from Market
Hey! I was having exactly the same problem Rico described, as you can see in my thread ( http://groups.google.com/group/android-developers/browse_thread/thread/76fa8600833f5348/59210de050c9bd20 ). After some investigation, I found that most launchers (including Launchalot :P) start activities with FLAG_ACTIVITY_NEW_TASK and FLAG_ACTIVITY_RESET_TASK_IF_NEEDED (some also set FLAG_ACTIVITY_BROUGHT_TO_FRONT). The Android Market, however, only sets FLAG_ACTIVITY_NEW_TASK, and I guess this is the reason for the strange behavior. This causes several OutOfMemoryErrors when my users upgrades the app and launches it from the market. I couldn't use singleTask or singleInstance as these flags mess up with the history. For example if the activity stack is A - B - C and the user is in home screen, pressing the application icon should take them back to activity C, but setting singleTask or singleInstance on the main activity will interfere with this. In the end I found a workaround that prevents all those activities from eating up all your memory. If you start all activities in your app with the FLAG_ACTIVITY_CLEAR_TOP flag, you are guaranteed that no activity will have more than one instance lying around in the stack. For example if the stack is A - B - C - A, and the user starts activity B again, the OS will clear away the activities on the top and you will end up with A - B. Of course this only works if your activities are designed to be single-instance. Hope this helps. On May 28, 7:09 am, Mark Murphy mmur...@commonsware.com wrote: Rico Yao wrote: That app (Launchalot) is a launcher app (i.e. it just launches other apps). I'm not saying that Launchalot doesn't have multiple instances of itself created if launched from the Market or notifications bar. It probably does. Anyone who puts Launchalot on the Market should have their head examined. :-) -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How can I increase the memory capacity of my Android emulator?
Hi Jay! Do you know how it is done? Thanks! On Fri, May 28, 2010 at 6:22 PM, Jay Ganatra ganatra.ja...@gmail.com wrote: or show its property or details u can increase from there itself On Fri, May 28, 2010 at 3:51 PM, Jay Ganatra ganatra.ja...@gmail.com wrote: create new emulator and make it as higher space easily !!! On Fri, May 28, 2010 at 3:40 PM, Carl Hernandez carl.hernan...@gmail.com wrote: Hi! My application is almost 1 gig. I don't intend to sell this. This is for personal use. I have large audio files that NEEDs to be stored folder. The emulator won't launched it since it's big. How can I make the emulator accept a large APK (1gig)? 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Security concerns regarding in-app Paypal payment processing
I was just looking at: https://www.x.com/community/ppx/xspaces/mobile/mep and it struck me that it would be quite easy for someone to just fake those paypal activities in order to steal usernames passwords. Compare this to being taken to a browser (on a desktop) when the user has the reassurance of being able to see the URL. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How can I increase the memory capacity of my Android emulator?
which IDE r u using ??? On Fri, May 28, 2010 at 4:19 PM, Carl Hernandez carl.hernan...@gmail.comwrote: Hi Jay! Do you know how it is done? Thanks! On Fri, May 28, 2010 at 6:22 PM, Jay Ganatra ganatra.ja...@gmail.com wrote: or show its property or details u can increase from there itself On Fri, May 28, 2010 at 3:51 PM, Jay Ganatra ganatra.ja...@gmail.com wrote: create new emulator and make it as higher space easily !!! On Fri, May 28, 2010 at 3:40 PM, Carl Hernandez carl.hernan...@gmail.com wrote: Hi! My application is almost 1 gig. I don't intend to sell this. This is for personal use. I have large audio files that NEEDs to be stored folder. The emulator won't launched it since it's big. How can I make the emulator accept a large APK (1gig)? 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] AccountManager.getAuthTokenByFeatures() with null authTokenType
In Android 2.2 the private API GoogleLoginServiceHelper can no longer return auth tokens with the getCredentials() method it seems. This is fine as it is a private API and using it was always risky. However, I was using it to retrieve an auth token for use as a cookie to visit the Google Reader site in a webview. This was retrieved by setting the service string in the getCredentials() call to null. This required the permission com.google.android.googleapps.permission.GOOGLE_AUTH.OTHER_SERVICES in the manifest. I have tried using the AccountManager available since Android 2.0 and I can retrieve an auth token for the Google Reader API by setting the authTokenType to reader in getAuthTokenByFeatures(). However, this token cannot be used as a cookie in the webview. The user is asked to login in again which isn't a great experience. I have tried retrieving a second auth token with authTokenType set to null but this causes an IllegalArgumentException. I have also tried misc, all, web, generic, general, other, google and an empty string, none of which work. I guess what I am getting is, can a list of valid authTokenTypes be published please? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to intercept a Linkify web link ?
Hi, I have a page with two web links on them, to make it possible for the user to click on and show the webpages those link to I used the Linkify class... It works like a charm, but I'd like to know when an user clicks on it, for statistical reasons... So is there any way I actually can intercept a linkify-ed link ? TextView web1LinkView = (TextView) findViewById(R.id.weblink1); Linkify.addLinks(web1LinkView , Linkify.ALL); TextView web2LinkView = (TextView) findViewById(R.id.weblink2); Linkify.addLinks(web2LinkView , Linkify.ALL); -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Not able to place the custom view to dialog
Try this LayoutInflater inflater = LayoutInflater.from(context); View view = inflater.inflate(R.layout.brightness, null); setView(view); -- Paweł Zięba dziobas.blogspot.com On 28 Maj, 02:47, Jeruliu jeru@gmail.com wrote: I'm suffering from this for a week, i was trying to use the famous SeekBarPreference in a dialog -http://android.hlidskialf.com/blog/code/android-seekbar-preference I copied the class from above link into my project. Then created the xml as brightness.xml: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/layout_root android:orientation=horizontal android:layout_width=fill_parent android:layout_height=fill_parent android:padding=10dp com.yoomap.anymode.SeekBarPreference android:key=brightness android:title=Brightness android:summary=Adjust your android Brightness android:dialogMessage=Brightness android:defaultValue=120 android:text= android:max=255 / /LinearLayout Finally I try to integrate it as custom dialog: Dialog dialog = new Dialog(mContext); dialog.setContentView(R.layout.brightness); dialog.setTitle(Custom Dialog); dialog.show(); But always getting error: Error inflating class java.lang.reflect.Constructor at this line com.yoomap.anymode.SeekBarPreference in the xml Root cause: ClassCastException on SeekBarPreference Can anyone point out why? thanks a million -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Unwanted state changes of CheckBoxes in ListView
Hey, Paul is absolutely right.I feel your Application just needs minor changes in your list adapter getView() method.In your getView() method add a check condition for list-item dataset(something like isItemChecked() ).That might solve your problem.Let me know if it works for you regards, Ravi -The PPite PathPartner Tech. www.pathpartnertech.com On May 25, 9:15 am, Paul paul.rash...@gmail.com wrote: This has to do with the fact that ListView recycles views. View Romain Guy's Google I/O talk about ListView when it comes out. It is really good and explains exactly why you're seeing this happen. On Apr 30, 10:20 am, David davideberl...@googlemail.com wrote: Hey, I am facing a very mysterious Problem. I am using a ListView with CheckBoxes that can be clicked to select people. The row layout is the following: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content CheckBox android:focusable=false android:onClick=onSelectPerson android:layout_width=wrap_content android:layout_height=wrap_content android:gravity=center_vertical android:layout_marginRight=5dip android:layout_marginLeft=5dip/ TextView android:id=@+id/person_name android:text=test android:layout_width=wrap_content android:layout_height=wrap_content android:gravity=center_vertical android:textSize=18dip android:layout_marginLeft=5dip/ /LinearLayout As long as the amount of rows doesen't exceed the screen size (- no scrolling) everything works just fine. But as soon as I have more rows then the screen size (- some rows are hidden and have to be scrolled to). I have a very mysterious phenomenon: If I check the top row and scroll down some of the previously hidden rows are randomly checked too. If I scroll up again, again some of the before hidden rows are randomly vhecked (the CheckBox I clicked in first place may or may not still be checked). Also the registered onSelectPerson callback is only called for the CheckBoxes I really click. The other CheckBoxes just change their state to checked without calling the callback method. I have the same phenomenom on the Archos IT 5 and the Nexus One. This must have something to do with the ListView implementation but I can't quite figure out what the problem is. Can anyone help? Best Regards David -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Unwanted state changes of CheckBoxes in ListView
and the romain guy video you looking for http://code.google.com/events/io/2009/sessions/TurboChargeUiAndroidFast.html regards, Ravi - The PPite PathPartner Tech On May 25, 9:15 am, Paul paul.rash...@gmail.com wrote: This has to do with the fact that ListView recycles views. View Romain Guy's Google I/O talk about ListView when it comes out. It is really good and explains exactly why you're seeing this happen. On Apr 30, 10:20 am, David davideberl...@googlemail.com wrote: Hey, I am facing a very mysterious Problem. I am using a ListView with CheckBoxes that can be clicked to select people. The row layout is the following: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content CheckBox android:focusable=false android:onClick=onSelectPerson android:layout_width=wrap_content android:layout_height=wrap_content android:gravity=center_vertical android:layout_marginRight=5dip android:layout_marginLeft=5dip/ TextView android:id=@+id/person_name android:text=test android:layout_width=wrap_content android:layout_height=wrap_content android:gravity=center_vertical android:textSize=18dip android:layout_marginLeft=5dip/ /LinearLayout As long as the amount of rows doesen't exceed the screen size (- no scrolling) everything works just fine. But as soon as I have more rows then the screen size (- some rows are hidden and have to be scrolled to). I have a very mysterious phenomenon: If I check the top row and scroll down some of the previously hidden rows are randomly checked too. If I scroll up again, again some of the before hidden rows are randomly vhecked (the CheckBox I clicked in first place may or may not still be checked). Also the registered onSelectPerson callback is only called for the CheckBoxes I really click. The other CheckBoxes just change their state to checked without calling the callback method. I have the same phenomenom on the Archos IT 5 and the Nexus One. This must have something to do with the ListView implementation but I can't quite figure out what the problem is. Can anyone help? Best Regards David -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Why ADB and DDMS cannot recognize my phone in Ubuntu?
Hi Ichi, Execute the following commands: * Enter in root shell $ sudo -s * Stop the adb-server # adb stop-server * Start the server and list the devices # adb devices This works for me, Regards, Rogerio 2010/5/27 Ichi ukas...@gmail.com Hi, I am trying to connect my Acer Liquid with ADB and DDMS under Ubuntu 10.04 I read some posts and already add the VID (0502) and PID(3202) in /etc/ udev/rules.d/51-android.rules, but adb devices still list my phone's name as question mark (). When I try DDMS, I got the following error: E/DDMS: device () request rejected: device not found Is there something I missed? -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get the soft keyboard input with out edit text?
You can do the following editTextBox..setOnEditorActionListener(new TextView.OnEditorActionListener() { public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { boolean result = false; if(actionId == EditorInfo.IME_ACTION_DONE) { String enteredText = editTextBox.getText().toString().trim(); result = true; } return result; } } -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Bottom of one LinearLayout being hidden by other LinearLayout?
Hey Geoff, thanks for the response! I couldn't get it to work exactly right with just your instructions, it was basically just drawing the email field right on top of the button bar, but after some more experimenting I got it to work with adding a scrollview around the linearlayout and putting this in it: ScrollView android:layout_height=fill_parent android:layout_width=fill_parent android:orientation=vertical android:layout_alignParentTop=true android:layout_above=@+id/buttonBarLayout now it works! Thanks for putting me in the right direction. -Mike On Thu, May 27, 2010 at 6:39 PM, brucko geoff.bruck...@gmail.com wrote: Hi Mike, It appears you may be running out of room. RelativeLayout is drawing your first LinearLayout and then placing the other on top. My understanding is that Relative Layout (and FrameLayout) maintain a Z- ordering of children essentially each child is on a layer above the previous and will obscure previous children unless you tell it to do otherwise. You got lucky with your portrait layout. You could consider trying the following : 1/ Declare your button bar linear layout aligning it with the parent bottom. 2/ Declare your other LinearLayout next aligning it's top with the parent and bottom with the button bar. 3/ make this second linear layout scrollable with android:isScrollContainer=true http://developer.android.com/intl/de/reference/android/view/View.html#attr_android:isScrollContainer The idea is that your top linear layout will scroll if there is insufficient room and your layout will be more flexible to cope with more devices. If this doesn't work try a ScrollView. http://developer.android.com/intl/de/reference/android/widget/ScrollView.html Don't let any of this put you off RelativeLayout. They are extremely powerful and help to reduce the depth/levels of your view hierarchy. In fact, you might consider using a second relative layout which would allow you to get rid of all those nested LinearLayouts with one Relative Layout. They are trickier but definitely worth it. http://developer.android.com/intl/de/resources/articles/layout-tricks-efficiency.html Best Regards, Geoff -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android-dev posts from a number of authors winding up in gay sex channel
On 27 Mag, 23:26, goosedroid alexrhel...@gmail.com wrote: Why is this happening. And maybe they are also complaining for all this spam :-)) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Trying to install the latest android SDK
Hi Tad, Is the problem is occurring in eclipse?..If so Your problem could be related to ADT plugin.Check for Available software sites in eclipse.remove the old ADT from there and update with new ADT available. Later go to Available packages and update your SDK.If you still have the problem dont hesitate to come back. regards, Ravi - The PPite PathPartner Tech,Bangalore www.pathpartnertech.com On May 25, 1:02 am, Xavier Ducrohet x...@android.com wrote: Are you on linux? what JDK do you have? Xav On Fri, May 21, 2010 at 5:49 AM, Tad tdi...@e-scaping.org wrote: I'm getting the following error: Failed to fetch URLhttps://dl-ssl.google.com/android/repository/repository.xml, reason: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target I've already tried to get the cert by visiting the url (but apparently my web browser already trusts the cert) so I'm not sure how to get a copy of it to add to my cacert/jssecacert which seems to be the only solution I can find on the internet. I've tried running the android sdk and avd manager from inside eclipse and from the command line no dice same problem both times. any help would be appreciated. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Submit Entertainment Apps and win Cash!!!
Hey Fellow Developers Here’s our chance to submit apps that are all about FUN! This includes music, multimedia, and of course games! They’re basically looking for applications that truly show off all the cool features and functionality available on today’s Nokia devices. This could be apps designed to run on any of Nokia’s platforms – the choice is ours – including Series 40, S60 and Maemo. Equally, it is up to us what technologies we use to create our app, but let’s be clear: be ready to impress them. Great huh? What can we win: The top three submissions will receive the following cash prizes: • Grand Prize: 30,000 USD in cash. • 2nd Prize: 15,000 USD in cash. • 3rd Prize: 5,000 USD in cash. To submit click here http://bit.ly/aR6Vfo Hurry guys, Deadline for submissions: 10 June 2010!! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Submit Life Improvement Apps and win Cash Prizes!!!
Hey Fellow Developers Here’s our chance to submit apps that are all about FUN! This includes music, multimedia, and of course games! They’re basically looking for applications that truly show off all the cool features and functionality available on today’s Nokia devices. This could be apps designed to run on any of Nokia’s platforms – the choice is ours – including Series 40, S60 and Maemo. Equally, it is up to us what technologies we use to create our app, but let’s be clear: be ready to impress them. Great huh? What can we win: The top three submissions will receive the following cash prizes: • Grand Prize: 30,000 USD in cash. • 2nd Prize: 15,000 USD in cash. • 3rd Prize: 5,000 USD in cash. To submit click here http://bit.ly/aR6Vfo Hurry guys, Deadline for submissions: 10 June 2010!! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Bottom of one LinearLayout being hidden by other LinearLayout?
I think it would be good if u use two seperate layouts for portrait mode and landscape mode. You can save the layout for landscape mode by saving it a folder for ex:res/layout-land... You can call the lanscape layout when the phone is switched from portrait to landscape mode...This would be a easier solution to ur problem... On May 28, 5:21 pm, Mike Topper top...@gmail.com wrote: Hey Geoff, thanks for the response! I couldn't get it to work exactly right with just your instructions, it was basically just drawing the email field right on top of the button bar, but after some more experimenting I got it to work with adding a scrollview around the linearlayout and putting this in it: ScrollView android:layout_height=fill_parent android:layout_width=fill_parent android:orientation=vertical android:layout_alignParentTop=true android:layout_above=@+id/buttonBarLayout now it works! Thanks for putting me in the right direction. -Mike On Thu, May 27, 2010 at 6:39 PM, brucko geoff.bruck...@gmail.com wrote: Hi Mike, It appears you may be running out of room. RelativeLayout is drawing your first LinearLayout and then placing the other on top. My understanding is that Relative Layout (and FrameLayout) maintain a Z- ordering of children essentially each child is on a layer above the previous and will obscure previous children unless you tell it to do otherwise. You got lucky with your portrait layout. You could consider trying the following : 1/ Declare your button bar linear layout aligning it with the parent bottom. 2/ Declare your other LinearLayout next aligning it's top with the parent and bottom with the button bar. 3/ make this second linear layout scrollable with android:isScrollContainer=true http://developer.android.com/intl/de/reference/android/view/View.html... The idea is that your top linear layout will scroll if there is insufficient room and your layout will be more flexible to cope with more devices. If this doesn't work try a ScrollView. http://developer.android.com/intl/de/reference/android/widget/ScrollV... Don't let any of this put you off RelativeLayout. They are extremely powerful and help to reduce the depth/levels of your view hierarchy. In fact, you might consider using a second relative layout which would allow you to get rid of all those nested LinearLayouts with one Relative Layout. They are trickier but definitely worth it. http://developer.android.com/intl/de/resources/articles/layout-tricks... Best Regards, Geoff -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] dynamic content of a ListPreference
Hello! I want to put a ListPreference in my preference screen. But all the examples I have found in Internet the content are loaded out of a xml and I need that de options in the ListPreference are dynamic and not previously defined (in a xml). I have mi preferences.xml in the folder xml/ of my project; this is the code of preferences.xml: ?xml version=1.0 encoding=utf-8? PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/android CheckBoxPreference android:key=gcalendar_integration android:title=@string/gcalendar_integration android:summary=@string/gcalendar_integration_summary android:defaultValue=false android:persistent=true / ListPreference android:key=gcalendar_list android:title=lista android:summary=descripcion lista android:persistent=true android:dependency=gcalendar_integration / /PreferenceScreen and the PreferenceActivity which calls the xml: (i have omitted the imports) public class Preferences extends PreferenceActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); } } But I dont have a clue about how to set the contents of the ListPreference dynamically at the code. I have seen that the class ListPreference has a method .setEntries(CharSequence[] list) which is for this purposes but I don't know how to link an object of the ListPreference at the code with the ListPreference defined at the xml. Any idea? Thanks in advance! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: GLSurfaceView onPause blocked in Froyo
Could be the docs are wrong. Usually calls that start with 'on' are callbacks. Anyway I would suggest just using SurfaceView and create your own thread and manage it. That is what I did and it's also more portable. Leigh On 5/28/2010 2:20 AM, KK wrote: I am calling it because the documentation tells so. public void onPause () Since: API Level 3 Inform the view that the activity is paused. The owner of this view must call this method when the activity is paused. Calling this method will pause the rendering thread. Must not be called before a renderer has been set. If i don't call this the OpenGL rendering thread will keep on giving the onDrawFrame calls. regards KK On May 26, 11:06 pm, Indicator Veritatismej1...@yahoo.com wrote: The first thing that pops out as odd, possibly related to your problem, is that as you describe it, you are callingonPause() and onResume() yourself. These are meant to be called by the system, not the API user (you). Are you really calling these yourself? If so, why? On May 26, 6:25 am, KKkrishnakumar.ramachand...@gmail.com wrote: I am using OpenGL to do some rendering and whenever my rendering gets paused I callonPauseofGLSurfaceViewand later when I resume onResume ofGLSurfaceView. This was working fine till I upgraded my Nexus One to Froyo today. After that the thread callingonPauseseems to be blocked in that API. Anyone has any idea why this is happening? Is there anything I need to change for this to work on Froyo? -- Leigh McRae www.lonedwarfgames.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 from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: smsc
OK, it doesn't work on my motorola milestone, but it does work on G1, so it seems a problem in motorola's implementation, not in the android's framework... Maybe if they used the time to make a better phone (call quality wise), and implement the RIL interface better, instead of locking every single bit of it - then it would have been really good for everyone. Now I can't use the public API because of their poor implementation - motorola probably has something like 30% of the Android market and can't be ignored, although I don't know if the problem arises using their cdma phones.. a. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Confusion when picking contacts
Hi all, I'm using Android 2 SDK, and have a list activity in which I want to display the users contacts. So I'm retrieving the contacts cursor in a standard way : Uri contacts = ContactsContract.Contacts.CONTENT_URI; // Form an array specifying which columns to return. String[] projection = new String[] { ContactsContract.Contacts._ID, ContactsContract.Contacts.DISPLAY_NAME }; // Make the query. Cursor peopleCursor = ctx.getContentResolver().query(contacts, projection, // Which columns to return null, // Which rows to return (all rows) null, // Selection arguments (none) // Put the results in ascending order by name ContactsContract.Contacts.DISPLAY_NAME + ASC); However.. what I don't understand is that my list shows far more contacts than would appear than when I invoke the contact picker Intent, i.e. Intent i = new Intent(Intent.ACTION_PICK,ContactsContract.Contacts.CONTENT_URI) So really has anyone any idea why they both retrieve different data even though I'm using the same Uri? 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Alarm Clock quitting my application
Hi, I just found something in the logs that may help. When the alarm is loaded or when a call is received, i see: couldn't save which view has focus because the focused view totalcross.Launcher4A has no id How can i set an id to my view? thx guich -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] VideoView and MediaPlayer
Hello, I am trying to find out what's an equivalent to the release() method of MediaPlayer in VideoView? I am running out of memory coz I think I am not calling a release() method on all my Media Player resources. I have a number of instances of VideoView and I want to make sure I give up resources everytime a new instance is called. Any help? Thanks ABhi -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Setting two setImeOptions() for a EditText
Hi, I have a editText. In this, I want to set two ImeOptions as textInput.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI); textInput.setImeOptions(EditorInfo.IME_ACTION_DONE); But I can't do this, as it will overwrite and only the last one will take. How can I do these two actions. Nithin -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to update a Widget dynamically (Not waiting 30 min for onUpdate to be called)?
I am currently learning about widgets in Android. I want to create a WIFI widget that will display the SSID, the RSSI (Signal) level. But I also want to be able to send it data from a service I am running that calculates the Quality of Sound over wifi. Here is what I have after some reading and a quick tutorial: --- public class WlanWidget extends AppWidgetProvider{ RemoteViews remoteViews; AppWidgetManager appWidgetManager; ComponentName thisWidget; WifiManager wifiManager; public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { Timer timer = new Timer(); timer.scheduleAtFixedRate(new WlanTimer(context, appWidgetManager), 1, 1); } private class WlanTimer extends TimerTask{ RemoteViews remoteViews; AppWidgetManager appWidgetManager; ComponentName thisWidget; public WlanTimer(Context context, AppWidgetManager appWidgetManager) { this.appWidgetManager = appWidgetManager; remoteViews = new RemoteViews(context.getPackageName(), R.layout.widget); thisWidget = new ComponentName(context, WlanWidget.class); wifiManager = (WifiManager)context.getSystemService(Context.WIFI_SERVICE); } @Override public void run() { remoteViews.setTextViewText(R.id.widget_textview, wifiManager.getConnectionInfo().getSSID()); appWidgetManager.updateAppWidget(thisWidget, remoteViews); } } --- The above seems to work ok, it updates the SSID on the widget every 10 seconds. However what is the most efficent way to get the information from my service that will be already running to update periodically on my widget? Also is there a better approach to updating the the widget rather than using a timer and timertask? (Avoid polling) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Setting two setImeOptions() for a EditText
On Fri, May 28, 2010 at 14:41, Nithin nithin.war...@gmail.com wrote: Hi, I have a editText. In this, I want to set two ImeOptions as textInput.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI); textInput.setImeOptions(EditorInfo.IME_ACTION_DONE); textInput.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI | EditorInfo.IME_ACTION_DONE); But I can't do this, as it will overwrite and only the last one will take. How can I do these two actions. Nithin -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to Integrate SkyHook Wireless with android app
Hello all, My Gps app is fetching Lattitude Longitude. but it has no certainty of time also it is sending sometimes same Latitude Longitude to server. So, my problem is to get the best Gps solution i want to use SkyHook Wireless. how to integrate SkyHook Wireless SDK to my android app. so anybody have knowledge regarding the above problem will be appreciated. Thanks in advance, Best Regards Subrat Kumar Panda. India -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: SQLite query problems
Thanks for the answer. But for your information the item is not a float nor a double. It is a reference to an integer defined like this: item REFERENCES tbl_items(_id)); where _id is the primary key of another table defined as: _id INTEGER PRIMARY KEY AUTOINCREMENT, So I'll follow your tip and use version 2 in all my queries to prevent problems... On May 27, 2:31 pm, Nathan critter...@crittermap.com wrote: I have experienced the same thing. I'm guessing that item is a float or double, right? The SQLiteDatabase class doesn't handle floating point properly in this call. I've had to resort to version 2 in all my calls. Although this doesn't work properly, I'm not sure it would be considered a bug because of this: selectionArgs You may include ?s in selection, which will be replaced by the values from selectionArgs, in order that they appear in the selection. The values will be bound as *Strings*. Bound as strings probably means that item=46.9876 reverts to item='46.9876' down in the depths of SQLite. It has a different meaning and item will be compared as a string, not numerically. Unfortunately, I don't know an alternative to using option 2, unless a new call were added that respected types, such as public Cursor query (String table, String[] columns, String selection, Object[] selectionArgs, String groupBy, String having, String orderBy, String limit) Nathan On May 27, 11:04 am, JMichel jmbouff...@gmail.com wrote: I was trying to figure out a problem with an SQLite query and I found that it was not working when I was using ? and a list of arguments. Could someone tell me why these two version of the code doesn't return the same thing: public Cursor getTagCursor(int item) { SQLiteDatabase db = getWritableDatabase(); String [] col = {_id, type, value, item}; //VERSION 1 NOT WORKING String [] arg = {String.valueOf(item)}; Cursor cursor = db.query (tbl_tags, col, item=?, arg, null, null, type ASC, null); //VERSION 2 SUCCESSFUL String test = item=+String.valueOf(item); Cursor cursor = db.query (tbl_tags, col, test, null, null, null, type ASC, null); return cursor; } 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Skinning in Android
Thanks Ted Chien for your reply. i am trying to solve it. On Fri, May 28, 2010 at 12:00 PM, Ted Chien hsiangtai.ch...@gmail.com wrote: You can skin your own applications using Styles and Themes: http://developer.android.com/intl/fr/guide/topics/ui/themes.html If you are trying to skin the whole UI look and feel of the device (not just your own applications), you need to root your device and build your own rom for it. Regards, Ted Chien -- http://www.linkedin.com/in/htchien On 5月28日, 下午1時33分, subrat kumar panda evergreen.sub...@gmail.com wrote: Hello all, How to create user interface using skinning in android i don't know anything about skinning also i am not found any document . anybody knows about the skinning will be appreciated. Thanks in advance, Best Regards Subrat Kumar Panda. India -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to disable scroling in a ListView (GridView)?
Just to show that there is an interest to this topic... I'm looking to do the same thing. Any help appreciated. On Apr 27, 9:13 pm, alien9 alienjazz...@gmail.com wrote: I have the same question.. did you find an answer? On Apr 2, 8:24 pm, oviroa ovi...@gmail.com wrote: I need to add a drawable background to aGridViewthat scrolls with the grid, instead of having the grid scroll on top of the background. I figured the easiest way is todisablethescrollingand nest the grid inside a ScrollView. Is that possible? -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] MediaPlayer provides wrong duration on audio streaming
Hi everyone, I am having the following problem: I am using Android's MediaPlayer to play an mp3 through an HTTP connection. The audio is played correctly, but the MediaPlayer returns an incorrect duration (calling mediaPlayer.getDuration() ). Depending on the mp3 the duration is either shorter or longer. The code that plays the audio is the following: mediaPlayer = new MediaPlayer(); mediaPlayer.setOnCompletionListener(this); mediaPlayer.setOnErrorListener(this); mediaPlayer.setOnPreparedListener(this); mediaPlayer.setOnBufferingUpdateListener(this); mediaPlayer.setDataSource(a valid URL); mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mediaPlayer.prepareAsync(); The strange part is that I can reproduce the problem using the default android's music player. If I access the file directly with Android's browser, a simple music player opens up and it show the same wrong duration. If I copy the mp3 directly to the phone and play it directly from there, then it shows the correct duration. The server returns this response: HTTP/1.1 200 OK Date: Thu, 27 May 2010 20:59:48 GMT Content-Type: audio/mpeg Server: aa Content-Encoding: gzip Transfer-Encoding: chunked Does anyone has a similar problem? Or can anyone give me a clue about what I might be missing to add so the MediaPlayer can fetch the correct duration? Thanks in advance :) - Demian -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Fonts
First question: Does the default sans serif font in Android support italic? Oddly, you can see italic sans serif text if you indicate it as such in the xml of a layout file, but if you specify sans serif and italic to a typeface of a paint object it appears nonitalic. The exact same code works perfectly for bold for both serif and sans serif, but italic only works with sans serif. Has anyone else ever noticed this? Can anyone else specify sans serif italic to a paint object? Second question: So, to specify a font directly by name, it appears that it must be reference by file or path as an asset. It looks like such fonts are always specified as bundled with the app. Are they *any* internal fonts at all? I mean, how does Android draw text in the first place? It must have *some* fonts, but I have no idea how to indicate them to a Typeface object (or a Paint object). I mean, Courier? Times? Helvetica? I'm looking for basic stuff here? Where are the fonts on Android? Thank you very much. Cheers! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Zooming in on any view
I have a hack for you but it might not be that efficient and as functional.What you can do is get the snapshot of rootview enabling Drawing cache .Once you get the snapshot as a bitmap use it for some custom View whose onDraw() function controls zoom-in and zoom-out.You can change the bounds of the drawable for zooming in and out. regards, Ravi Pandit - The PPite PathPartner Tech. www.pathpartnertech.com On May 28, 3:12 am, Kasra Rahjerdi johncena4presid...@gmail.com wrote: Hello! I'm trying to figure out a way to use zoom-in features similar to those present in WebView in a standard View. My application's users include those with bad eye-sight and I would like to allow them to zoom-in on different parts of the screen and then zoom back out. I don't think this there is any method available to do this currently but I would like some direction on how to make this myself. I am planning on creating a dialog similar to that in the 1.5 Browser but I have no idea how to make that actually zoom-in/zoom-out of the screen. Is my only option to dynamically increase only the size of text used in the application? Thanks, Kasra -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HTTPS to acces my wcf from android appli
Hello! Any help plz ! 2010/5/28 Lamia Hannoun lamia.hann...@gmail.com Hi! I have a biiig issue, I'm developping an android app that access my wcf using soap and basichttp for now on everythg seems working perfectly but now i'm wondering if i can access to my wcf using https :s i read some articles that say that it's impossible and complicated. Plz is there anyway to resolve that issue Plz help. Thx -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android benchmark with rectangles
On Thu, May 27, 2010 at 3:29 PM, kish kishore.sri...@gmail.com wrote: But the only problem is that I see all the rectangles after it ran the program completely. You have one giant draw call - what do you expect? But I would like to have rectangles drawn, when I call canvas.drawRect(rec1,paint); function. I am also looking to keep the old rectangles on the screen while new ones are drawn. I tried with lots of different options nothing worked. To display the rectangles Can anybody show me the direction to which way to go ? Break out your drawing logic into two threads - one that generates rectangles one that draws them. You should get the effect you want, but your performance will surely suffer, basically invalidating your benchmarks. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] GestureOverlayView throwing exception when used with Linkify
Hi, Anyone else run into this and have a solution? Basically I have a GestureOverlayView over the top of a TextView. The TextView has Linkify.addLinks(tv, Linkify.ALL) called on it. If you click on an URL in the TextView the following exception is thrown Running 2.2 (apparently a pre-release version) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): FATAL EXCEPTION: main 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.app.ContextImpl.startActivity(ContextImpl.java:617) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.content.ContextWrapper.startActivity(ContextWrapper.java:258) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.text.style.URLSpan.onClick(URLSpan.java:62) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.text.method.LinkMovementMethod.onTouchEvent(LinkMovementMethod.java: 216) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.widget.TextView.onTouchEvent(TextView.java:6577) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.view.View.dispatchTouchEvent(View.java:3766) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.gesture.GestureOverlayView.dispatchTouchEvent(GestureOverlayView.java: 505) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1671) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java: 1107) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.app.Activity.dispatchTouchEvent(Activity.java:2086) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1655) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.view.ViewRoot.handleMessage(ViewRoot.java:1785) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.os.Handler.dispatchMessage(Handler.java:99) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.os.Looper.loop(Looper.java:123) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.app.ActivityThread.main(ActivityThread.java:4627) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at java.lang.reflect.Method.invokeNative(Native Method) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at java.lang.reflect.Method.invoke(Method.java:521) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at dalvik.system.NativeStart.main(Native Method) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] filter html and alert baised on criteria entered
On Thu, May 27, 2010 at 7:22 AM, Matthew countrycowboy...@gmail.com wrote: I'm trying to find a way to automatically search html code for a criteria that shows up each time then bring the app to the front and also send notification You may want to clarify this - I, personally, have no idea what you're asking. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Alarm Clock quitting my application
Its not related. Well, i have no more ideas guich -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] MapView Overlay Location Way Off
On Thu, May 27, 2010 at 12:36 PM, jtkendall j...@icrush.it wrote: I'm not sure if I'm just calling something too early/late, or if I'm missing something completely. Just took a cursory glance and your code looks fine - my guess is your data is bad. Double check the values - are you sure they are what you think they should be? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] FYI - Both GL and Canvas are locked to 30FPS on new phones.
I just did some testing on my EVO and found that my GL games are now locked to 30FPS. It doesn't make me particularly happy because even though 30fps should be fine, for some reason they look choppier. Perhaps the timing code to cap at 30FPS isn't as refined as it should be and the delays are a bit inconsistent. I know the decision had good intentions but it doesn't feel like the right way to do it. It seems kind of like an arbitrary way to save power. Most of my games are stuck at 35-40 any way because they are fill-bound on the GPU so the 30fps cap only saves maybe 15-30% of cycles. My prediction - many games will add more visually or new games will be developed more inefficiently as the target is no longer 60FPS but is now going to become 30FPS. Power savings will be negated and less efficient games will be the norm for Android. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: No permissions set altough permissions requested
On Thu, May 27, 2010 at 4:31 PM, Dirk Vranckaert dirkvrancka...@gmail.comwrote: Any explanation how this may be possible? Yeah - that, I don't know. Maybe check the android source project page and see if there has been a bug reported for this? Seems like a pretty blatant issue. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] We need developer feedback, STOP rating when customer has canceled order
Please let us provide feedback on the market, it hurt all of us including Android! The iPhone interface is so dumbed down that most do not have problems. I just got a bad rating because the user didn't understand how Android works. I attempted to explain the the user and he posted that the interface was complicated. thanks, Jeff -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] dynamic content of a ListPreference
Jose, I'm working on the same thing right now. I believe the answer is below :). public class EditPreferences extends PreferenceActivity { Preference.OnPreferenceChangeListener listListener = new Preference.OnPreferenceChangeListener() { @Override public boolean onPreferenceChange(Preference preference, Object newValue) { return true; } }; I will be doing some work on this today, and will let you know if/when I find the complete answer ). On 28/05/2010 6:05 AM, Jose Luis Montes wrote: Hello! I want to put a ListPreference in my preference screen. But all the examples I have found in Internet the content are loaded out of a xml and I need that de options in the ListPreference are dynamic and not previously defined (in a xml). I have mi preferences.xml in the folder xml/ of my project; this is the code of preferences.xml: ?xml version=1.0 encoding=utf-8? PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/android; CheckBoxPreference android:key=gcalendar_integration android:title=@string/gcalendar_integration android:summary=@string/gcalendar_integration_summary android:defaultValue=false android:persistent=true / ListPreference android:key=gcalendar_list android:title=lista android:summary=descripcion lista android:persistent=true android:dependency=gcalendar_integration / /PreferenceScreen and the PreferenceActivity which calls the xml: (i have omitted the imports) public class Preferences extends PreferenceActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); } } But I dont have a clue about how to set the contents of the ListPreference dynamically at the code. I have seen that the class ListPreference has a method .setEntries(CharSequence[] list) which is for this purposes but I don't know how to link an object of the ListPreference at the code with the ListPreference defined at the xml. Any idea? Thanks in advance! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://www.bgies.com http://www.bistroblurb.com http://www.bistrobot.com --- Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Strange behavior when launching app from Market
On Thu, May 27, 2010 at 6:07 PM, Rico Yao rico@gmail.com wrote: What I'm saying is that when you launch apps through Launchalot, it doesn't create multiple instances of the apps it's launching. Ah, gotcha - I didn't look deep enough to see the point of Launchalot. I was just trying to point out that it should be possible for the Market to launch apps in the same way as Launchalot same way and avoid this issue. It SHOULD - but then again there are a LOT of things the Market app SHOULD do and fails miserably at. Add this to the list. Maybe if someone files a bug and hopefully it'll get taken care of ... in like 2 - 3 years =P I guess try Max's workaround in the time being? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem in programmatically installing a 3rd party App onto the SD card
Hi Guys, I am trying to install a 3rd party free app through code. I initially download the apk from the web-site (androidfreeware.org), store it on a SD Card. I am using an emulator to check whether my app is working properly or not. I have attached a SD card to the currently running avd. Then when the user clicks on the Install, I use this code to install it on the SD card. public void onClick(View arg0) { // TODO Auto-generated method stub boolean success; int result = Settings.Secure.getInt(getContentResolver(), Settings.Secure.INSTALL_NON_MARKET_APPS, 0); if (result == 0) success = Settings.Secure.putString(getContentResolver(), Settings.Secure.INSTALL_NON_MARKET_APPS, 1); Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(downloadFile), application/vnd.android.package-archive); startActivity(intent); } I read somewhere that in order to install 3rd party apps we need to set the value of INSTALL_NON_MARKET_APPS to 1. Do we need to set any permission in the manifest file. Also, when I checked logcat I got the following error Could not read the AndroidManifest.xml file of /sdcard/test.apk and then it threw a FileNotFound Exception What could be the problem ?? 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Alarm Clock quitting my application
Hello Guich, Which phone are you testing your app on? Have you tested your app on other phones as well? Alarms do mess up on some phones. On May 28, 9:41 am, guich guiha...@gmail.com wrote: Its not related. Well, i have no more ideas guich -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problem in programmatically installing a 3rd party App onto the SD card
chaitanya wrote: Hi Guys, I am trying to install a 3rd party free app through code. I initially download the apk from the web-site (androidfreeware.org), store it on a SD Card. I am using an emulator to check whether my app is working properly or not. I have attached a SD card to the currently running avd. Then when the user clicks on the Install, I use this code to install it on the SD card. public void onClick(View arg0) { // TODO Auto-generated method stub boolean success; int result = Settings.Secure.getInt(getContentResolver(), Settings.Secure.INSTALL_NON_MARKET_APPS, 0); if (result == 0) success = Settings.Secure.putString(getContentResolver(), Settings.Secure.INSTALL_NON_MARKET_APPS, 1); Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(downloadFile), application/vnd.android.package-archive); startActivity(intent); } You cannot modify Settings.Secure values from code. Please allow the user to change that setting via the Settings application. I read somewhere that in order to install 3rd party apps we need to set the value of INSTALL_NON_MARKET_APPS to 1. Do we need to set any permission in the manifest file. Also, when I checked logcat I got the following error Could not read the AndroidManifest.xml file of /sdcard/test.apk and then it threw a FileNotFound Exception Note that you cannot have the SD card mounted both on your development machine and on the device at the same time. If you want to be able to access files on the SD card from code, you need to unmount the SD card from your development machine. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Online Training: 21-25 June 2010: http://onlc.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 from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] 2.2: wifi startScan never produces SCAN_RESULTS_AVAILABLE_ACTION
In my experience, previous versions of Android broadcast SCAN_RESULTS_AVAILABLE even when no APs are found. getScanResults() would then return a null or empty list. It seems that the behaviour has changed in 2.2, I now don't get any SCAN_RESULTS_AVAILABLE even two minutes after the scan started if there are no APs around. Can anyone confirm ? Lee -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to add screens to launcher?
On Thu, May 27, 2010 at 5:06 PM, Philip H. philiph...@gmail.com wrote: If you're trying to make an app that adds screens, then the answer is that you can't. Well, that's not true - you can make a Home replacement app that does whatever the hell you want as far as the screens are concerned, AFAIK. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How can I increase the memory capacity of my Android emulator?
Won't exactly answer your question but should work on a real device as well if needed : Store the huge audio file on the sd card then access it from your app. Yahel On 28 mai, 12:10, Carl Hernandez carl.hernan...@gmail.com wrote: Hi! My application is almost 1 gig. I don't intend to sell this. This is for personal use. I have large audio files that NEEDs to be stored folder. The emulator won't launched it since it's big. How can I make the emulator accept a large APK (1gig)? 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Cannot display image files on sdcard without media scan?
Hi All, I am writing a program to display pictures stored on sdcard, using BitmapFactory facility. But after I pushed more than 2000 pieces of pictures onto the Emulator's sdcard image, the media scanner crashed, saying cannot allocate memory. So many of the pictures on the sdcard are not scanned, The problem is that my program cannot show the picture which is not scanned. No exception catched during BitmapFactory.decodeFile(). The images just not appear. Those which are scanned are displayed well. Can anybody tell me why. And how to bypass media scanner to display pictures? Thank you very much. B.R. -Robin -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] automatic app update
is there anything we have to do as developers to enable automatic application update or will the market take care of everything? tia. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] New crash reporting - is it a function of the phone or the app?
Hi, A silly question here maybe but is the new crash reporting feature announced last week a function of the firmware on the phone or the sdk version that the app was compiled with? Do I need to compile my app against 2.2 and release an update to have crash reports (not that I want them :-) ) or will I automatically start to see them coming through even on an old app compiled against the 1.6 sdk? Thanks, Paul -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: What is the default user agent string for Android 2.2 Froyo?
On my install the user agent shows : Mozilla/5.0 (Linux; U; Android 2.2; en-gb; Nexus One Build/FRF50) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 Rgds, On May 27, 10:34 pm, Darth priyaj...@gmail.com wrote: As the title suggests, can someone list it? 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] dynamic content of a ListPreference
Ok, that will be great! thanks! On Fri, May 28, 2010 at 5:06 PM, Brad Gies rbg...@gmail.com wrote: Jose, I'm working on the same thing right now. I believe the answer is below :). public class EditPreferences extends PreferenceActivity { Preference.OnPreferenceChangeListener listListener = new Preference.OnPreferenceChangeListener() { @Override public boolean onPreferenceChange(Preference preference, Object newValue) { return true; } }; I will be doing some work on this today, and will let you know if/when I find the complete answer ). On 28/05/2010 6:05 AM, Jose Luis Montes wrote: Hello! I want to put a ListPreference in my preference screen. But all the examples I have found in Internet the content are loaded out of a xml and I need that de options in the ListPreference are dynamic and not previously defined (in a xml). I have mi preferences.xml in the folder xml/ of my project; this is the code of preferences.xml: ?xml version=1.0 encoding=utf-8? PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/android; CheckBoxPreference android:key=gcalendar_integration android:title=@string/gcalendar_integration android:summary=@string/gcalendar_integration_summary android:defaultValue=false android:persistent=true / ListPreference android:key=gcalendar_list android:title=lista android:summary=descripcion lista android:persistent=true android:dependency=gcalendar_integration / /PreferenceScreen and the PreferenceActivity which calls the xml: (i have omitted the imports) public class Preferences extends PreferenceActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); } } But I dont have a clue about how to set the contents of the ListPreference dynamically at the code. I have seen that the class ListPreference has a method .setEntries(CharSequence[] list) which is for this purposes but I don't know how to link an object of the ListPreference at the code with the ListPreference defined at the xml. Any idea? Thanks in advance! -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://www.bgies.com http://www.bistroblurb.com http://www.bistrobot.com --- Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Not able to place the custom view to dialog
Thanks, just solved myself, i don't actually need to use that SeekBarPreference. For instead, i should just define the standard component SeekBar in my custom dialog. It works that way. On May 28, 7:49 pm, Paweł Zięba pawzi...@gmail.com wrote: Try this LayoutInflater inflater = LayoutInflater.from(context); View view = inflater.inflate(R.layout.brightness, null); setView(view); -- Paweł Zięba dziobas.blogspot.com On 28 Maj, 02:47, Jeruliu jeru@gmail.com wrote: I'm suffering from this for a week, i was trying to use the famous SeekBarPreference in a dialog -http://android.hlidskialf.com/blog/code/android-seekbar-preference I copied the class from above link into my project. Then created the xml as brightness.xml: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/layout_root android:orientation=horizontal android:layout_width=fill_parent android:layout_height=fill_parent android:padding=10dp com.yoomap.anymode.SeekBarPreference android:key=brightness android:title=Brightness android:summary=Adjust your android Brightness android:dialogMessage=Brightness android:defaultValue=120 android:text= android:max=255 / /LinearLayout Finally I try to integrate it as custom dialog: Dialog dialog = new Dialog(mContext); dialog.setContentView(R.layout.brightness); dialog.setTitle(Custom Dialog); dialog.show(); But always getting error: Error inflating class java.lang.reflect.Constructor at this line com.yoomap.anymode.SeekBarPreference in the xml Root cause: ClassCastException on SeekBarPreference Can anyone point out why? thanks a million -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] FYI - Both GL and Canvas are locked to 30FPS on new phones.
There's a difference between new phones and the HTC EVO 4G. It is certainly not the goal of the Android team to ship devices locked at 30 FPS. Our target was, is and will be 60 FPS. On Fri, May 28, 2010 at 7:52 AM, Robert Green rbgrn@gmail.com wrote: I just did some testing on my EVO and found that my GL games are now locked to 30FPS. It doesn't make me particularly happy because even though 30fps should be fine, for some reason they look choppier. Perhaps the timing code to cap at 30FPS isn't as refined as it should be and the delays are a bit inconsistent. I know the decision had good intentions but it doesn't feel like the right way to do it. It seems kind of like an arbitrary way to save power. Most of my games are stuck at 35-40 any way because they are fill-bound on the GPU so the 30fps cap only saves maybe 15-30% of cycles. My prediction - many games will add more visually or new games will be developed more inefficiently as the target is no longer 60FPS but is now going to become 30FPS. Power savings will be negated and less efficient games will be the norm for Android. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] GestureOverlayView throwing exception when used with Linkify
Here's your problem: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? The problem is not using a GestureOverlayView with a TextView, the problem comes from the Context you are using. On Fri, May 28, 2010 at 7:36 AM, MrChaz mrchazmob...@gmail.com wrote: Hi, Anyone else run into this and have a solution? Basically I have a GestureOverlayView over the top of a TextView. The TextView has Linkify.addLinks(tv, Linkify.ALL) called on it. If you click on an URL in the TextView the following exception is thrown Running 2.2 (apparently a pre-release version) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): FATAL EXCEPTION: main 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.app.ContextImpl.startActivity(ContextImpl.java:617) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.content.ContextWrapper.startActivity(ContextWrapper.java:258) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.text.style.URLSpan.onClick(URLSpan.java:62) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.text.method.LinkMovementMethod.onTouchEvent(LinkMovementMethod.java: 216) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.widget.TextView.onTouchEvent(TextView.java:6577) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.view.View.dispatchTouchEvent(View.java:3766) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.gesture.GestureOverlayView.dispatchTouchEvent(GestureOverlayView.java: 505) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1671) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java: 1107) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.app.Activity.dispatchTouchEvent(Activity.java:2086) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1655) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.view.ViewRoot.handleMessage(ViewRoot.java:1785) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.os.Handler.dispatchMessage(Handler.java:99) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.os.Looper.loop(Looper.java:123) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at android.app.ActivityThread.main(ActivityThread.java:4627) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at java.lang.reflect.Method.invokeNative(Native Method) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at java.lang.reflect.Method.invoke(Method.java:521) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 05-28 15:35:04.423: ERROR/AndroidRuntime(25209): at dalvik.system.NativeStart.main(Native Method) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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] MusicVis live wallpaper
Hi, The music live wallpapers rely on APIs that we have not made public in the SDK yet. These APIs were added very late in the development process and we haven't had the time to properly turn them into maintainable and documented APIs. On Fri, May 28, 2010 at 12:48 AM, HaMMeReD adamhamm...@gmail.com wrote: The live wallpapers that do music visualization rely on a function MediaPlayer.snoop(shortarray, offset?) , but I can't seem to find these static functions in the official api. Eclipse doesn't seem to want to compile if I use the function in my code. Any idea's? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Documentation errors in Developing on a Device?
Yeah, I see that it specifies debugging as part of the goal of setting up. And since running in the emulator is enough to validate that the SDK is set up correctly, I see that consolidating the instructions for running and debugging is a valid decision. I also see that if you specify that Settings is an item on the default Home app menu, that actually makes it simpler to do it that way than to direct the user to the Settings activity. Still, that makes it even more clearly an error that Settings' was dropped from the chain of menu selections to get to that setting. This page is a very concise, but often unclear set of instructions. Lots of beginners get stuck at this point. Another example I found is that restarting the udev server is left out of the instructions for setting up the udev rule for Linux systems. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Alarm Clock quitting my application
Hi, I found the culprit. My task was sublaunched using the Intent.FLAG_ACTIVITY_NO_HISTORY. Clearing this flag solved the problem. cheers guich -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to update a Widget dynamically (Not waiting 30 min for onUpdate to be called)?
I haven't done any widget work but perhaps doing a database with a managed cursor would update it as the database changed. -or- that could be a horrible idea that would never work /shrug On May 28, 8:43 am, draf...@gmail.com draf...@gmail.com wrote: I am currently learning about widgets in Android. I want to create a WIFI widget that will display the SSID, the RSSI (Signal) level. But I also want to be able to send it data from a service I am running that calculates the Quality of Sound over wifi. Here is what I have after some reading and a quick tutorial: --- public class WlanWidget extends AppWidgetProvider{ RemoteViews remoteViews; AppWidgetManager appWidgetManager; ComponentName thisWidget; WifiManager wifiManager; public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { Timer timer = new Timer(); timer.scheduleAtFixedRate(new WlanTimer(context, appWidgetManager), 1, 1); } private class WlanTimer extends TimerTask{ RemoteViews remoteViews; AppWidgetManager appWidgetManager; ComponentName thisWidget; public WlanTimer(Context context, AppWidgetManager appWidgetManager) { this.appWidgetManager = appWidgetManager; remoteViews = new RemoteViews(context.getPackageName(), R.layout.widget); thisWidget = new ComponentName(context, WlanWidget.class); wifiManager = (WifiManager)context.getSystemService(Context.WIFI_SERVICE); } @Override public void run() { remoteViews.setTextViewText(R.id.widget_textview, wifiManager.getConnectionInfo().getSSID()); appWidgetManager.updateAppWidget(thisWidget, remoteViews); } } --- The above seems to work ok, it updates the SSID on the widget every 10 seconds. However what is the most efficent way to get the information from my service that will be already running to update periodically on my widget? Also is there a better approach to updating the the widget rather than using a timer and timertask? (Avoid polling) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SIGSEGV in system_server
This is a strange one. I'm not filing as a bug yet because I've not come up with an easy way to reproduce it (my full application can do this consistently, but it's not exactly a lightweight test case). The application I wrote HTTP POSTs a file to a remote web server. If, during this upload the phone is going through a lot of other activity - applications being opened, closed, switched; notification drawer being opened and closed - the whole phone shuts off with this error. It seems to me that this could be a bug in the Android OS. I thought I'd run the error message past the list to see if this is worth putting together a test case for and filing it with the Android developers. Thanks! 05-28 10:51:19.504: INFO/DEBUG(2585): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 05-28 10:51:19.512: INFO/DEBUG(2585): Build fingerprint: 'verizon/ voles/sholes/sholes:2.1-update1/ESE81/29593:user/release-keys' 05-28 10:51:19.519: INFO/DEBUG(2585): pid: 12748, tid: 12755 system_server 05-28 10:51:19.527: INFO/DEBUG(2585): signal 11 (SIGSEGV), fault addr deadbaad 05-28 10:51:19.527: INFO/DEBUG(2585): r0 r1 afe13329 r2 0027 r3 0054 05-28 10:51:19.527: INFO/DEBUG(2585): r4 afe3ae08 r5 r6 r7 4450f010 05-28 10:51:19.527: INFO/DEBUG(2585): r8 40009408 r9 488cd000 10 0018 fp 46e02a2c 05-28 10:51:19.527: INFO/DEBUG(2585): ip 2ed8 sp 46e02748 lr deadbaad pc afe109e0 cpsr 6030 05-28 10:51:20.285: INFO/DEBUG(2585): #00 pc 000109e0 / system/lib/libc.so 05-28 10:51:20.285: INFO/DEBUG(2585): #01 pc 6f78 / system/lib/libcutils.so 05-28 10:51:20.293: INFO/DEBUG(2585): #02 pc 00044878 / system/lib/libdvm.so 05-28 10:51:20.293: INFO/DEBUG(2585): #03 pc 000170d8 / system/lib/libdvm.so 05-28 10:51:20.293: INFO/DEBUG(2585): #04 pc 00015a98 / system/lib/libdvm.so 05-28 10:51:20.301: INFO/DEBUG(2585): #05 pc 00015d94 / system/lib/libdvm.so 05-28 10:51:20.301: INFO/DEBUG(2585): #06 pc 00016ff4 / system/lib/libdvm.so 05-28 10:51:20.301: INFO/DEBUG(2585): #07 pc 000163a4 / system/lib/libdvm.so 05-28 10:51:20.301: INFO/DEBUG(2585): #08 pc 00016b60 / system/lib/libdvm.so 05-28 10:51:20.301: INFO/DEBUG(2585): #09 pc 00016ce0 / system/lib/libdvm.so 05-28 10:51:20.301: INFO/DEBUG(2585): #10 pc 00057b64 / system/lib/libdvm.so 05-28 10:51:20.301: INFO/DEBUG(2585): #11 pc 00057cc0 / system/lib/libdvm.so 05-28 10:51:20.308: INFO/DEBUG(2585): #12 pc 000430c2 / system/lib/libdvm.so 05-28 10:51:20.308: INFO/DEBUG(2585): #13 pc 00043160 / system/lib/libdvm.so 05-28 10:51:20.308: INFO/DEBUG(2585): #14 pc 00055c42 / system/lib/libdvm.so 05-28 10:51:20.308: INFO/DEBUG(2585): #15 pc 000139b8 / system/lib/libdvm.so 05-28 10:51:20.308: INFO/DEBUG(2585): #16 pc 00019338 / system/lib/libdvm.so 05-28 10:51:20.308: INFO/DEBUG(2585): #17 pc 00018804 / system/lib/libdvm.so 05-28 10:51:20.308: INFO/DEBUG(2585): #18 pc 0004eed0 / system/lib/libdvm.so 05-28 10:51:20.316: INFO/DEBUG(2585): #19 pc 0004eef8 / system/lib/libdvm.so 05-28 10:51:20.316: INFO/DEBUG(2585): #20 pc 0005c478 / system/lib/libdvm.so 05-28 10:51:20.316: INFO/DEBUG(2585): #21 pc 0005d116 / system/lib/libdvm.so 05-28 10:51:20.316: INFO/DEBUG(2585): #22 pc 0005d17c / system/lib/libdvm.so 05-28 10:51:20.316: INFO/DEBUG(2585): #23 pc 00056d1e / system/lib/libdvm.so 05-28 10:51:20.316: INFO/DEBUG(2585): #24 pc 000139b8 / system/lib/libdvm.so 05-28 10:51:20.316: INFO/DEBUG(2585): #25 pc 00019338 / system/lib/libdvm.so 05-28 10:51:20.324: INFO/DEBUG(2585): #26 pc 00018804 / system/lib/libdvm.so 05-28 10:51:20.324: INFO/DEBUG(2585): #27 pc 0004eed0 / system/lib/libdvm.so 05-28 10:51:20.324: INFO/DEBUG(2585): #28 pc 0004eef8 / system/lib/libdvm.so 05-28 10:51:20.324: INFO/DEBUG(2585): #29 pc 000426d4 / system/lib/libdvm.so 05-28 10:51:20.324: INFO/DEBUG(2585): #30 pc fd74 / system/lib/libc.so 05-28 10:51:20.324: INFO/DEBUG(2585): #31 pc f840 / system/lib/libc.so 05-28 10:51:20.324: INFO/DEBUG(2585): code around pc: 05-28 10:51:20.324: INFO/DEBUG(2585): afe109d0 f8442001 4798000c e054f8df 26002227 05-28 10:51:20.332: INFO/DEBUG(2585): afe109e0 2000f88e ef4cf7fb f7fd2106 f04fe822 05-28 10:51:20.332: INFO/DEBUG(2585): afe109f0 91035180 460aa901 96012006 f7fc9602 05-28 10:51:20.332: INFO/DEBUG(2585): code around lr: 05-28 10:51:20.332: INFO/DEBUG(2585): deadba9c 05-28 10:51:20.332: INFO/DEBUG(2585): deadbaac 05-28 10:51:20.332: INFO/DEBUG(2585): deadbabc 05-28 10:51:20.332: INFO/DEBUG(2585): stack: 05-28 10:51:20.332: INFO/DEBUG(2585): 46e02708 0015 05-28
[android-developers] missing Lists.newArrayList()
I was trying to delete a contact using the code in the docs: ArrayListContentProviderOperation ops = Lists.newArrayList(); ops.add(ContentProviderOperation.newDelete(Data.CONTENT_URI) .withSelection(Data._ID + =?, new String[] {String.valueOf(dataId)}) .build()); getContentResolver().applyBatch(ContactsContract.AUTHORITY, ops); But Eclipse doesn't how to find Lists. What import statement do I need? Also, is there a more direct way to delete a contact? Thanks in advance! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Couldn't get the seekbar by findViewById
I'm building a dialog including seekbar but i can't locate the seekbar by findViewById, it only returns nullpoint. My code: Context mContext = this; LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(LAYOUT_INFLATER_SERVICE); View layout = inflater.inflate(R.layout.brightness, (ViewGroup) findViewById(R.id.layout_root)); builder = new AlertDialog.Builder(mContext); builder.setView(layout); builder.setTitle(Brightness); builder.setPositiveButton(Ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { /// The seekBar here is a null point however? SeekBar seekBar = (SeekBar) findViewById(R.id.seekbar); int progress = seekBar.getProgress(); Log.v(TAG, = progress is : + progress); } }); And my layouy brightness.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/layout_root android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:gravity=center ImageView android:id=@+id/brightness_level_icon android:layout_width=fill_parent android:layout_height=fill_parent android:src=@drawable/ brightness_level_icon / SeekBar android:id=@+id/seekbar android:layout_width=fill_parent android:layout_height=wrap_content android:max=255 android:progress=125 / /LinearLayout Any hints from your experts?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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to create a file outside the application?
On Fri, May 28, 2010 at 3:30 AM, pramod.deore deore.pramo...@gmail.comwrote: So, I want to place somewhere else (but not in SDcard) Well you've just eliminated your two options as far as the physical phone is concerned. Your only other real alternative is to write this information back to your own server somewhere. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] missing Lists.newArrayList()
This method is a shorthand for creating an array list. You can use this instead: .. ops = new ArrayListContentProviderOperation(); On Fri, May 28, 2010 at 10:19 AM, Pinheiro rui.c.pinhe...@gmail.com wrote: I was trying to delete a contact using the code in the docs: ArrayListContentProviderOperation ops = Lists.newArrayList(); ops.add(ContentProviderOperation.newDelete(Data.CONTENT_URI) .withSelection(Data._ID + =?, new String[] {String.valueOf(dataId)}) .build()); getContentResolver().applyBatch(ContactsContract.AUTHORITY, ops); But Eclipse doesn't how to find Lists. What import statement do I need? Also, is there a more direct way to delete a contact? Thanks in advance! -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Clear defaults programmatically
Is it even possible? No one knows this? I suppose many users don't know how to do this on their phones, because it is rather complicated to understand for non programmers. I want to give my users the option to clear defaults of my app, within my app. But how do I do this? On Apr 19, 3:01 am, Bonifaz bonifaz.kaufm...@gmail.com wrote: This clears the preferences, but not the default flag set by a user when a Intent Chooser is shown to him/her. Am I right? How can I get back the Intent Chooser Dialog when a user previously set my app as default. I know you can go to Manage Applications and click clear defaults but how do I do this in code? On Apr 18, 3:01 pm, Menion menion.as...@gmail.com wrote: I'm using this code ... hope it helps PreferenceManager.getDefaultSharedPreferences(context).edit().clear().commi t(); On Apr 16, 11:09 am,Bonifazbonifaz.kaufm...@gmail.com wrote: Does anyone know how to clear defaults of my own app by code. I know that a user can always go to Manage Applications, find my app and click the button there to clear previously assigned default actions. But for most users this isn't intuitive at all. I would like to offer my customers a solution to clear defaults within my own app if they don't like to use my app as a replacement for a specific action anymore. -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en