[android-developers] Re: Error Receiving Broadcast Null in [IntentReceiver] (Very Easy)
Hello Dan, I still see this error, but much rarely. Why is this happening? Thanks, Noam. On Apr 6, 3:05 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Awesome! I don't see the error anymore! Thanks, Noam. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: bitmap image changed. but why?
On Apr 9, 1:42 pm, Gibson [EMAIL PROTECTED] wrote: Hi Steve, Thanks for you advice. But i think there is no need to synchronize the bitmap. Because onCreate() method and onDraw() method won't strive for bitmap(I don't know whether you understand what i mean. English is not my mother language.) So I think there won't be two thread to deal with bitmap. Any Google guys can give me some advice? Thanks very much for any advice. BR I understand you. I was thinking the onDraw could be called by two different threads, even though there is only supposed to be one UI thread (you probably aren't supposed to put that thread to sleep either ;) ). It would only take a minute to test a synchronized block on the bitmap where you call the get and set pixels - if that doesn't change things then you know it is not a thread issue. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Can android work with API
Dear all I just now start with android but i focuse only on map viewer. So i don't know is android will soport with API or not, may you can send me some example or documentation Thank in best --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Single .apk from Multiple projects
Because, it seems for the submission, several apk files bundled in a zip file may not be accepted. See: http://groups.google.com/group/android-challenge/browse_frm/thread/c3045773ffeb9c2d/a504bc9d2bc33b2b#a504bc9d2bc33b2b A clear statement whether several apk files are ok or not would be helpful... Peli On Apr 9, 12:38 am, Megha Joshi [EMAIL PROTECTED] wrote: Why would you want to do that? On Tue, Apr 8, 2008 at 3:23 AM, Harsh Jain [EMAIL PROTECTED] wrote: Is there an easy way to create a single .apk from multiple eclipse projects ? Regards, harsh --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Dynamic UI-Processing - without XML files.
Ok. That was a good tip. Thanx for that. I managed to create a UI without XML files plus a Database Adapter. But does UI-Processing without XML really cover all functions and possibilities that you have by using XML files? I did not manage to make the list I created look good. that means it looks like the list in the notepad example. the highlight of a selected list item always reaches into the upper and lower list item. and i don't know what i can do about it. Is this just the still buggy platform or am i doing anything wrong? On 3 Apr., 21:22, hackbod [EMAIL PROTECTED] wrote: On Apr 3, 11:55 am, Dan U. [EMAIL PROTECTED] wrote: But if he's trying to use the CursorAdapter, is that even possible? The constructor needs an id of a layout xml file. The base adapter interface just has a method to get a new view. You can implement that however you want. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] SSL client side authentication
hi, I have server side authentication working on android (using HttpsURLConnection). Now I would like client side authentication too. Short version: question: does client side ssl/tls authentication work with android? Loing version: From what I have seen in the HttpsURLConnection, there is no way of enabling client side authentication. But there seems to be a method in the SSLSocket (which can be created using the SocketFactory) that addresses client side authentication, but it's not documented. Does somebody have already experiences with this? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: webview not showing data
Maybe it's related with this problem http://groups.google.com/group/android-developers/browse_thread/thread/819374b1b0f77ab8/fb1aa6a3b2f96b46?lnk=gstq=webview#fb1aa6a3b2f96b46 On Apr 9, 8:33 am, vinnu [EMAIL PROTECTED] wrote: hi, im writing a bare bones application on android...and my webview doesnt seem to work. i mean its not showing any data on the emulator screen. the textview and editview all work fine..but the webview doesnt show any data on screen. am i missing something? below is the part of the code that is relevant public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.login); WebView wView = (WebView) findViewById(R.id.wview); wView.loadData( htmlbodyPlease click /body/html, text/html, utf-8); } my login.xml looks like this -- ?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=Username / EditText android:id=@+id/username android:layout_width=fill_parent android:layout_height=wrap_content / TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=Password / EditText android:id=@+id/password android:password=true android:layout_width=fill_parent android:layout_height=wrap_content / Button android:id=@+id/login android:layout_width=wrap_content android:layout_height=wrap_content android:text=Login / WebView android:id=@+id/wview android:layout_width=fill_parent android:layout_height=wrap_content android:focusable=false/ /LinearLayout thanx --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Single .apk from Multiple projects
On Wed, Apr 9, 2008 at 7:28 AM, Harsh Jain [EMAIL PROTECTED] wrote: Hi, I am aware of this. However My framework is an android project, The messy way is to move all code, manually merge manifest and other xml files. I was looking for some nice easy way. The code that I use to do something similar with Hecl is open source under the Apache license, and you're welcome to it. Here's a description of the hoops I jump through to make it possible to create new Hecl applications: http://journal.dedasys.com/articles/2008/03/11/mass-customization-of-android-applications -- David N. Welton http://www.welton.it/davidw/ http://www.dedasys.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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Is android sqlite support querying data from a view
I create a view using CREATE VIEW myview AS select col1, col2 from tab. then I do SQLiteQueryBuilder.setTbales(myview). During runtime, I got a exception showing myview is missing. Does android support query data from a database view? could some one help? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: About load '.so' library file with JNI
Macro wrote: [...] But while running loadLibrary(libNativeAdd), the same as before, it throw a UnsatisfiedLinkError exception. You almost certainly have unresolved symbols in your library. Try using objdump -T to dump the symbols in the .so and see if there's anything interesting there. Look for a thread with the title 'Unresolved symbols JNI' for more information. -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Annotations and reflection
Hi, I have described how to use Retrotranslator with ADT, see http://retrotranslator.sourceforge.net/index.html#android If you have any troubles when using Retrotranslator don't hesitate to ask :) Regards, Taras. On 7 Кві, 12:50, srakyi [EMAIL PROTECTED] wrote: Hi, thanks for response. In the meantime, I found some old issue about this here: http://code.google.com/p/android/issues/detail?id=29 And there is also some workaround, with usage of Retrotranslator: http://retrotranslator.sourceforge.net/#android .. unfortunatelly, I didn't convince it to work (yet). Is the next SDK comming out soon? :) Thanks for response, srakyi On Apr 7, 5:12 pm, Romain Guy [EMAIL PROTECTED] wrote: Hi, I don't know about M5 but I can confirm you thatannotationsand isAnnotationPresent work great in the next SDK. I recently used this method successfully. -- Romain Guywww.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Wii-mote into Android
I've just hooked up a wii-mote to the Android simulator (via OpenIntents). More info here: http://blog.dalethatcher.com/2008/04/wii-mote-accelerometer-into-android.html thanks, - Dale --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] GTALK CONNECTION PROBLEM
Hi, I get java.lang.IllegalStateException: [EMAIL PROTECTED], mConnection=null, mState=1 when trying to connect to gtalk. GTALKSESSION is not null. But GtalkSession.isConnected returns false. Any clues? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Wii-mote into Android
Hi, How did you did that? How the connection is made etc? On Apr 9, 12:36 pm, Dale Thatcher [EMAIL PROTECTED] wrote: I've just hooked up a wii-mote to the Android simulator (via OpenIntents). More info here:http://blog.dalethatcher.com/2008/04/wii-mote-accelerometer-into-andr... thanks, - Dale --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Dynamic UI-Processing - without XML files.
OK, let me give you an example: if i do this on a TextView that gets added to a List: TextView tv = new TextView(ctx); tv.setText(text); tv.setTextAppearance(ctx, android.R.attr.textAppearanceLargeInverse); tv.setTextColor(16); the method setTextAppearance() does not have any influence on the text at all. and if i use setTextColor() the text is not there anymore! is that how it's meant to be (then i don't get it) or is this a bug? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Date and time pickers in an XML layout file - how to get to work?
They were also inside a LinearLayout, and a ScrollView: ScrollView android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; LinearLayout android:id=@+id/wtb_layout android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:padding=7px !-- the above layouts here -- /LinearLayout /ScrollView Though there's quite a lot of other stuff above them, but nothing that should matter, as they aren't parents of those views. Dan U. wrote: I put those within a LinearLayout and it worked fine. Can you post more of your layout and/or code? On a side note, I notice DatePicker likes to throw null pointers during onKey. On Apr 8, 2:17 pm, NTR [EMAIL PROTECTED] wrote: I've tried including date and time pickers in the XML file, like the following: DatePicker xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=wrap_content android:layout_height=wrap_content / TimePicker android:id=@+id/wtb_event_time android:layout_width=wrap_content android:layout_height=wrap_content / But I get: ERROR/AndroidRuntime(2930): Caused by: java.lang.RuntimeException: Binary XML file line #40: You must supply a layout_width attribute. ERROR/AndroidRuntime(2930): at android.content.Resources $StyledAttributes.getLayoutDimension(Resources.java:1247) ERROR/AndroidRuntime(2930): at android.view.ViewGroup $LayoutParams.setBaseAttributes(ViewGroup.java:2641) ERROR/AndroidRuntime(2930): at android.view.ViewGroup $LayoutParams.init(ViewGroup.java:2605) ERROR/AndroidRuntime(2930): at android.view.ViewGroup.generateLayoutParams(ViewGroup.java:2101) ERROR/AndroidRuntime(2930): at android.view.ViewInflate.inflate(ViewInflate.java:358) ERROR/AndroidRuntime(2930): at android.view.ViewInflate.inflate(ViewInflate.java:292) ERROR/AndroidRuntime(2930): at android.view.ViewInflate.inflate(ViewInflate.java:241) There is a layout_width attribute, so what's wrong? I've tried putting only one of those views inside of a layout file, and even if the Eclipse Android project doesn't complain, the emulator does. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Date and time pickers in an XML layout file - how to get to work?
It's also clear that the exceptions are caused by those views, since whenever I comment them out, everything works just fine. NTR wrote: They were also inside a LinearLayout, and a ScrollView: ScrollView android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; LinearLayout android:id=@+id/wtb_layout android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:padding=7px !-- the above layouts here -- /LinearLayout /ScrollView Though there's quite a lot of other stuff above them, but nothing that should matter, as they aren't parents of those views. Dan U. wrote: I put those within a LinearLayout and it worked fine. Can you post more of your layout and/or code? On a side note, I notice DatePicker likes to throw null pointers during onKey. On Apr 8, 2:17 pm, NTR [EMAIL PROTECTED] wrote: I've tried including date and time pickers in the XML file, like the following: DatePicker xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=wrap_content android:layout_height=wrap_content / TimePicker android:id=@+id/wtb_event_time android:layout_width=wrap_content android:layout_height=wrap_content / But I get: ERROR/AndroidRuntime(2930): Caused by: java.lang.RuntimeException: Binary XML file line #40: You must supply a layout_width attribute. ERROR/AndroidRuntime(2930): at android.content.Resources $StyledAttributes.getLayoutDimension(Resources.java:1247) ERROR/AndroidRuntime(2930): at android.view.ViewGroup $LayoutParams.setBaseAttributes(ViewGroup.java:2641) ERROR/AndroidRuntime(2930): at android.view.ViewGroup $LayoutParams.init(ViewGroup.java:2605) ERROR/AndroidRuntime(2930): at android.view.ViewGroup.generateLayoutParams(ViewGroup.java:2101) ERROR/AndroidRuntime(2930): at android.view.ViewInflate.inflate(ViewInflate.java:358) ERROR/AndroidRuntime(2930): at android.view.ViewInflate.inflate(ViewInflate.java:292) ERROR/AndroidRuntime(2930): at android.view.ViewInflate.inflate(ViewInflate.java:241) There is a layout_width attribute, so what's wrong? I've tried putting only one of those views inside of a layout file, and even if the Eclipse Android project doesn't complain, the emulator does. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Wii-mote into Android
This looks really amazing! Well done! :-) Peli PS: In case some people don't know the SensorSimulator yet, the link is here: http://www.openintents.org/sensorsimulator On Apr 9, 12:36 pm, Dale Thatcher [EMAIL PROTECTED] wrote: I've just hooked up a wii-mote to the Android simulator (via OpenIntents). More info here:http://blog.dalethatcher.com/2008/04/wii-mote-accelerometer-into-andr... thanks, - Dale --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: cannot get attribute from XMLReader (SAX)
I dont know why specifying the namespace causes it to fail on android String base = atts.getValue(http://www.w3.org/XML/1998/ namespace, xml:base); with the second method of getting the parser fails. On Apr 8, 6:50 pm, Anil [EMAIL PROTECTED] wrote: wow, that worked. thanks much! On Apr 8, 6:46 pm, Dan U. [EMAIL PROTECTED] wrote: I think the problem is with your first example of getting the parser. Try the second one. On Apr 8, 4:20 pm, Anil [EMAIL PROTECTED] wrote: Hi Dan, I tried your solution. Unfortunately it didn't work. String base = atts.getValue(,xml:base); Dont know why it can get the href value, but not the base. thanks, Anil On Apr 8, 5:55 pm, Dan U. [EMAIL PROTECTED] wrote: Well, I can't give you an explanation at this time, but if you do String base = atts.getValue(, xml:base);, it should work. On Apr 8, 2:33 pm, Anil [EMAIL PROTECTED] wrote: This works fine in j2se, but am stumped why it fails in android. Cannot get attribute base from XMLReader (SAX). It is always null. Any help appreciated. thanks, Anil schema: --- xs:complexType name=RelativeURI xs:simpleContent xs:extension base=xs:anyURI xs:attribute ref=xml:base/ xs:attribute name=href type=xs:string/ /xs:extension /xs:simpleContent /xs:complexType xs:element name=imgLocation type=RelativeURI minOccurs=0 maxOccurs=1/ data: --- imgLocation xml:base=file:/data/data/com.jo.blockpad/files/jo- files/ href=hasaudio.jpg/ allocating parser: - System.setProperty(org.xml.sax.driver,org.xmlpull.v1.sax2.Driver); parser = XMLReaderFactory.createXMLReader(); *OR* SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp; sp = spf.newSAXParser(); // Get the XMLReader of the SAXParser we created. parser = sp.getXMLReader(); trying to retrieve the attribute, *base is always null* String base = atts.getValue(http://www.w3.org/XML/1998/ namespace, xml:base); *OR* String base = atts.getValue(, base); --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem installing .apk
Hello, I have developed a few application for android but have problem with one of them. After installing my app on emulator, I can not see it on applications' list -- I do not have problem with my other application, only with this one. What I do wrong? I ran emulator: C:\android_sdk_windows_m3-rc37a\tools\emulator After that, I executed adb logcat and installed application: adb install C:\MyApp.apk It is possible to see file in shell: # ls /data/app -rw-rw-rw- root rot 70480 2008-01-20 21:40 MyApp.apk Logcat has reported: D/PackageManager( 467): Removing package com.mydomain.android.myapp D/PackageManager( 467): Services: com.mydomain.android.myapp.LocalService D/PackageManager( 467): Activities: com.mydomain.android.myapp .MyApp com.mydomain.android.myapp.Menu com.mydomain.android.myapp.Settings com.mydomain.android.myapp.Alarm D/ActivityManager( 467): Force removing app null (com.mydomain.android.myapp) D/PackageParser( 467): Scanning package: /data/app/MyApp.apk D/PackageManager( 467): Adding package com.mydomain.android.myapp D/PackageManager( 467): Services: com.mydomain.android.myapp.LocalService D/PackageManager( 467): Activities: com.mydomain.android.myapp .MyApp com.mydomain.android.myapp.Menu com.mydomain.android.myapp.Settings com.mydomain.android.myapp.Alarm Thanks in advance for help. Robbo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android:password first letter problem
Thanx guys, I am new to mobile developement and I didn't know that this is normal. On 8 Apr., 16:11, Carl H. [EMAIL PROTECTED] wrote: This is normal behavior as usually phones have only numbers on the keypad (click 3 times '1' would be equivalent to 'c'). thus you need to briefly see the last letter in order to ensure the password is correct. On Apr 7, 9:11 pm, Romain Guy [EMAIL PROTECTED] wrote: When you type a letter in a password field, the letter is briefly shown in clean but should be replaced by a dot after a very short amount of time. -- Romain Guywww.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Wii-mote into Android
I wrote a small C program that reads the wii-mote accelerometer data and outputs to a file. A modified version of the OpenIntents sensor simulator then reads the file and sends the data over a socket to Android. I'll upload everything later today. thanks, - Dale On Apr 9, 1:05 pm, szeldon [EMAIL PROTECTED] wrote: Hi, How did you did that? How the connection is made etc? On Apr 9, 12:36 pm, Dale Thatcher [EMAIL PROTECTED] wrote: I've just hooked up awii-moteto the Android simulator (via OpenIntents). More info here:http://blog.dalethatcher.com/2008/04/wii-mote-accelerometer-into-andr... thanks, - Dale --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: listview refresh data
Call notifyDataSetChanged() after the list has been changed. On 3月23日, 下午11时22分, andronir [EMAIL PROTECTED] wrote: and then - reload the CursorAdapter? by reloading the database data? Is there a more efficient way to do it? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Displaying already existing activities
Any other comments are welcome! Mihai On Apr 8, 3:12 pm, Mihai Fonoage [EMAIL PROTECTED] wrote: The solution you mentioned was also the one I found on this forum, and which requires the task id for the activity to be passed in the moveTaskToFront method call. Unfortunately, every activity I create has the same task id. This would not be the case if the activity would be created with singleInstance, but I detailed the problem I have with this solution. Thank you, Mihai On Apr 8, 2:35 pm, David Welton [EMAIL PROTECTED] wrote: It would have been nice to be able to get a list of all existing (background) activities and close them manually, but I don't think it's possible. My guess is that you're going to have to go fishing in the undocumented stuff, which might all change tomorrow. This class looks interesting: public final class android.server.am.ActivityManagerService extends android.app.ActivityManagerNative{ It has this method, for instance: public void moveTaskToFront(int); No idea of course whether any of it's accessible. -- David N. Welton http://www.welton.it/davidw/ http://www.dedasys.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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] how to play a JSpeex encoded audio file?
I am trying to figure out how to play a JSpeex encoded audio file on android but am stuck. Speex or JSpeex (the Java implementation) is royalty free and is well suited to voice applications. It provides as much compression as mp3. Apparently it will be implemented in android: http://code.google.com/p/android/issues/detail?id=354can=4colspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary the project page is here http://sourceforge.net/project/showfiles.php?group_id=84548 I am trying to figure out how to fit it into the android calls MediaPlayer mp = new android.media.MediaPlayer(); mp.setDataSource(/data/data/com.jo.blockpad/files/jo-russkelly_files/ 2-0.spx); mp.prepare(); mp.start(); Any help appreciated. thanks, Anil - calling it from Java Sound example -- import java.io.IOException; import java.net.URL; import java.util.Observable; import java.util.Observer; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.DataLine; import javax.sound.sampled.LineEvent; import javax.sound.sampled.LineListener; import javax.sound.sampled.LineUnavailableException; import javax.sound.sampled.Mixer; import javax.sound.sampled.SourceDataLine; import javax.swing.JOptionPane; /** * Audio playing code has been adapted from Matthias Pfisterer's * AudioPlayer.java * * Anil */ private MyObservable observable = new MyObservable(); private static int DEFAULT_EXTERNAL_BUFFER_SIZE = 128000; int nExternalBufferSize = DEFAULT_EXTERNAL_BUFFER_SIZE; int nInternalBufferSize = AudioSystem.NOT_SPECIFIED; boolean bForceConversion = false; private static boolean DEBUG = false; SourceDataLine line = null; private Object snippet = null; public void playClip(String urlStr) throws Exception { // important - otherwise skim() will fail to move to the next node this.snippet = snippetRef; /** * Flag for forcing a conversion. If set to true, a conversion of the * AudioInputStream (AudioSystem.getAudioInputStream(..., * AudioInputStream)) is done even if the format of the original * AudioInputStream would be supported for SourceDataLines directly. * This flag is set by the command line options -E and -S. */ boolean bForceConversion = false; /** * Endianess value to use in conversion. If a conversion of the * AudioInputStream is done, this values is used as endianess in the * target AudioFormat. The default value can be altered by the command * line option -B. */ boolean bBigEndian = false; /** * Sample size value to use in conversion. If a conversion of the * AudioInputStream is done, this values is used as sample size in the * target AudioFormat. The default value can be altered by the command * line option -S. */ int nSampleSizeInBits = 16; String strMixerName = null; int nExternalBufferSize = DEFAULT_EXTERNAL_BUFFER_SIZE; int nInternalBufferSize = AudioSystem.NOT_SPECIFIED; AudioInputStream audioInputStream = null; URL url = new URL(urlStr); audioInputStream = AudioSystem.getAudioInputStream(url); if (DEBUG) out(AudioPlayer.main(): primary AIS: + audioInputStream); /* * From the AudioInputStream, i.e. from the sound file, we fetch * information about the format of the audio data. These information * include the sampling frequency, the number of linkSnippets and the * size of the samples. These information are needed to ask Java Sound * for a suitable output line for this audio stream. */ AudioFormat audioFormat = audioInputStream.getFormat(); if (DEBUG) out(AudioPlayer.main(): primary format: + audioFormat); DataLine.Info info = new DataLine.Info(SourceDataLine.class, audioFormat, nInternalBufferSize); boolean bIsSupportedDirectly = AudioSystem.isLineSupported(info); if (!bIsSupportedDirectly || bForceConversion) { AudioFormat sourceFormat = audioFormat; AudioFormat targetFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, sourceFormat.getSampleRate(),
[android-developers] Make LinearLayout behave like a button when clicked?
Hi Everyone, Is there any way to make a whole LinearLayout instance behave like a big button, so it flashes when clicked? Similar to an ImageButton, but I'd like to be able to set the entire layout as the button really. Thanks, Mark --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] AlertDialog that looks like ProgressDialog?
To keep things consistent I would like to have my AlertDialog look similar to the default ProgressDialog (minus the spinning icon). But I want the text to be in the same style. The default AlertDialog looks more clunky bigger text and thicker lines. Any one have any odeas on how to accomplish this? 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Error receiving broadcast ... on Activity Finish
I tried emulator -wipe-data and it still doesn't work..Does anyone have a suggestion? Thanks, Noam. On Mar 13, 9:33 pm, cirion [EMAIL PROTECTED] wrote: Argh, never mind. This seems to be one of those problems that can be fixed with emulator -wipe-data. On Mar 13, 7:47 pm, cirion [EMAIL PROTECTED] wrote: I'm having the exact same problem. This is in a MapActivity. Does anyone know of a solution? Thanks! On Mar 7, 3:46 am, Mark [EMAIL PROTECTED] wrote: Occassionally, I am getting an exception like this when I finish my activity. ERROR/AndroidRuntime(605): java.lang.RuntimeException:Errorreceiving broadcastnullin [EMAIL PROTECTED] ERROR/AndroidRuntime(605): at android.app.ActivityThread $PackageInfo$ReceiverDispatcher.run(ActivityThread.java:492) ERROR/AndroidRuntime(605): at android.os.Handler.handleCallback(Handler.java:455) ERROR/AndroidRuntime(605): at android.os.Handler.dispatchMessage(Handler.java:78) ERROR/AndroidRuntime(605): at android.os.Looper.loop(Looper.java: 91) ERROR/AndroidRuntime(605): at android.app.ActivityThread.main(ActivityThread.java:3052) ERROR/AndroidRuntime(605): at java.lang.reflect.Method.invokeNative(Native Method) ERROR/AndroidRuntime(605): at java.lang.reflect.Method.invoke(Method.java:356) ERROR/AndroidRuntime(605): at android.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:1547) ERROR/AndroidRuntime(605): at android.os.ZygoteInit.main(ZygoteInit.java:1445) ERROR/AndroidRuntime(605): at android.dalvik.NativeStart.main(Native Method) ERROR/AndroidRuntime(605): Caused by: java.lang.NullPointerException ERROR/AndroidRuntime(605): at android.app.ActivityThread $PackageInfo$ReceiverDispatcher.run(ActivityThread.java:476) ERROR/AndroidRuntime(605): ... 9 more Inside my activity, I am using an IntentReceiver as a inner class to receive location update from location manager. I register the IntentFilter and call requestUpdates in onResume, and unregister and removeUpdates in onPause. I don't think this exception is generated by my onReceiveIntent code, as I have tried to place a try catch block around all the code and this still happens. Has anyone had similar problem?- 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AlertDialog that looks like ProgressDialog?
Create an activity and define android:theme=@android:style/ Theme.Dialog in the manifest for this activity. On Apr 9, 5:40 pm, Redhunt [EMAIL PROTECTED] wrote: To keep things consistent I would like to have my AlertDialog look similar to the default ProgressDialog (minus the spinning icon). But I want the text to be in the same style. The default AlertDialog looks more clunky bigger text and thicker lines. Any one have any odeas on how to accomplish this? 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView custom items and OnClick events
Use the onClickMethods of the buttons/imageviews inside the listview and you know what item was clicked. On Apr 9, 4:42 pm, Redhunt [EMAIL PROTECTED] wrote: thanks xingye. Something to look into. On Apr 8, 8:42 pm, xingye [EMAIL PROTECTED] wrote: Perhaps grid is better for this job. On 4月9日, 上午5时07分, Redhunt [EMAIL PROTECTED] wrote: Hi, After some work I was able to get the custom items on a ListView working. Very cool stuff. I have a quesiton about click events. My custom list item view has 2 imageViews and a TextView. On the listView I capture onItemClick(AdapterView parent, View v, int position, long id) And everything works great. But what about the possibility of finding out what actual view inside the custom list item view the user clicked on?. Did he click on an image, on the text ... I looked at v View passed in to the above method, but that tells me that the user clicked on the LinearLayout which is the base view for the cutom item so no help there. Note, It is important that when I capture the event I know what item (position) object was clicked. Any thoughts. Thanks- Hide quoted text - - Show quoted text -- 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Make LinearLayout behave like a button when clicked?
Actually there is. Home for instance uses a LinearLayout to create the buttons on the right. Simply call setClickable() and setFocusable() on your LinearLayout then add an OnClickListener. On Wed, Apr 9, 2008 at 9:23 AM, Hielko [EMAIL PROTECTED] wrote: It's possible to implement, but there is no default method that can do that for you. On Apr 9, 5:39 pm, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi Everyone, Is there any way to make a whole LinearLayout instance behave like a big button, so it flashes when clicked? Similar to an ImageButton, but I'd like to be able to set the entire layout as the button really. Thanks, Mark -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Will switching to a different layout type speedup my application
At the moment I have a listview with fairy complex items: every item contains two different pictures and three lines of text with two textviews on every line. To position everything correctly I use nested linearlayouts that are three levels deep. At the moment the activity isn't really fast, and using traceview I can see that a lot of time is spend on methods like onMeasure, TraverseChilds etc. Would a different layouttype be faster (the only other option would be an relativelayout) a) Almost certainly b) The difference won't be huge c) RelativeLayout will be slower... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Error receiving broadcast ... on Activity Finish
Check if your onResume and onPause methods are called properly. There are some bugs in the lifecycle model, sometimes onPauze will be called but onResume isn't called when you go back to the activity so that could generate some problems. On Apr 9, 5:54 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I tried emulator -wipe-data and it still doesn't work..Does anyone have a suggestion? Thanks, Noam. On Mar 13, 9:33 pm, cirion [EMAIL PROTECTED] wrote: Argh, never mind. This seems to be one of those problems that can be fixed with emulator -wipe-data. On Mar 13, 7:47 pm, cirion [EMAIL PROTECTED] wrote: I'm having the exact same problem. This is in a MapActivity. Does anyone know of a solution? Thanks! On Mar 7, 3:46 am, Mark [EMAIL PROTECTED] wrote: Occassionally, I am getting an exception like this when I finish my activity. ERROR/AndroidRuntime(605): java.lang.RuntimeException:Errorreceiving broadcastnullin [EMAIL PROTECTED] ERROR/AndroidRuntime(605): at android.app.ActivityThread $PackageInfo$ReceiverDispatcher.run(ActivityThread.java:492) ERROR/AndroidRuntime(605): at android.os.Handler.handleCallback(Handler.java:455) ERROR/AndroidRuntime(605): at android.os.Handler.dispatchMessage(Handler.java:78) ERROR/AndroidRuntime(605): at android.os.Looper.loop(Looper.java: 91) ERROR/AndroidRuntime(605): at android.app.ActivityThread.main(ActivityThread.java:3052) ERROR/AndroidRuntime(605): at java.lang.reflect.Method.invokeNative(Native Method) ERROR/AndroidRuntime(605): at java.lang.reflect.Method.invoke(Method.java:356) ERROR/AndroidRuntime(605): at android.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:1547) ERROR/AndroidRuntime(605): at android.os.ZygoteInit.main(ZygoteInit.java:1445) ERROR/AndroidRuntime(605): at android.dalvik.NativeStart.main(Native Method) ERROR/AndroidRuntime(605): Caused by: java.lang.NullPointerException ERROR/AndroidRuntime(605): at android.app.ActivityThread $PackageInfo$ReceiverDispatcher.run(ActivityThread.java:476) ERROR/AndroidRuntime(605): ... 9 more Inside my activity, I am using an IntentReceiver as a inner class to receive location update from location manager. I register the IntentFilter and call requestUpdates in onResume, and unregister and removeUpdates in onPause. I don't think this exception is generated by my onReceiveIntent code, as I have tried to place a try catch block around all the code and this still happens. Has anyone had similar problem?- Hide quoted text - - Show quoted text -- 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Wii-mote into Android
Ok I've uploaded the code and written some instructions: http://blog.dalethatcher.com/2008/04/howto-get-wii-mote-data-into-android.html Let me know if you try it. thanks, - Dale On 9 Apr, 14:21, Dale Thatcher [EMAIL PROTECTED] wrote: I wrote a small C program that reads thewii-moteaccelerometerdata and outputs to a file. A modified version of the OpenIntents sensor simulator then reads the file and sends the data over a socket toAndroid. I'll upload everything later today. thanks, - Dale On Apr 9, 1:05 pm, szeldon [EMAIL PROTECTED] wrote: Hi, How did you did that? How the connection is made etc? On Apr 9, 12:36 pm, Dale Thatcher [EMAIL PROTECTED] wrote: I've just hooked up awii-moteto theAndroidsimulator (via OpenIntents). More info here:http://blog.dalethatcher.com/2008/04/wii-mote-accelerometer-into-andr... thanks, - Dale --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Two small questions about the pause-state and touchscreen
I got a few small issues I hope to resolve before submitting my entry to the Challange. 1. How can I get the game into the pause state. Always when I try for example to press the green phone it seems to remove the application completely from memory? And is there any other way to store the applications state than create a boundle with all variables? What if I have alot of them? 2. When I touch the screen the keys don't react at all for a while. It could be a problem if you want to control my game with the keys but control the menu with the touch screen. Thanks in advance! Niklas --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: copyWindowBitmap don't work
To take a snapshot of a View use View.getDrawingCache() You should have turned cache on before that View.setDrawingCacheEnabled(true) br On Mar 23, 6:50 pm, Diego Pino [EMAIL PROTECTED] wrote: So, what to use instead of copyWindowBitmap to take asnapshotof a view? On Feb 29, 3:53 am, Dan U. [EMAIL PROTECTED] wrote: FYI, the challenge date was changed a long long time ago. You have more than 2 weeks. On Feb 28, 12:57 pm, endl [EMAIL PROTECTED] wrote: It is very nice that you've done it before 2 weeks before challenge deadline. Why did you add the method to the current SDK? Instead of this you could simply remove it and it would be clear that is not supported any more. And now you have a function that simply crashes the application! Do you have any other functions that simply crash? On 28 фев, 23:07, hackbod [EMAIL PROTECTED] wrote: Hi all, This function will be removed in the next SDK. It is not feasible to support it along with hardware accelerated rendering into surfaces. On Feb 28, 9:55 am, endl [EMAIL PROTECTED] wrote: It is not the solution. They will run the code with the last SDK and it will fail. Write working code or don't write it at all. Have a nice day, Volodya! On 28 фев, 20:13, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Use previous SDK On Feb 26, 11:40 pm, Yoshi [EMAIL PROTECTED] wrote: This function don't work well on the m5 version of SDK. Log.d(cap1, cap1); screen = mMapView.copyWindowBitmap(); Log.d(cap2, cap2); When the functioncopyWindowBitmapis executed, the activity is crushed; the first Log is printed on LogCat but second one is not. There are some strange messages on LobCat before crushing. DEBUG/SurfaceFlinger(527): Surface 1, heap=0x1aa960 destroyed DEBUG/SurfaceFlinger(527): Surface 0, heap=0x1aa960 destroyed DEBUG/SurfaceFlinger(527): Surface 1, heap=0x1aa960 destroyed DEBUG/SurfaceFlinger(527): Surface 0, heap=0x1aa960 destroyed DEBUG/SurfaceFlinger(527): Surface 1, heap=0x1ab098 destroyed The function was work well on the previous SDK. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Take a screenshot and save as a picture file
To take a snapshot of a View use View.getDrawingCache() You should have turned cache on before that View.setDrawingCacheEnabled(true) br --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] cant hook onto xml -- quick help?
i am getting null pointer exceptions when i am trying to run this method. it gets errors at the title.setText(currenttrack.getTitle()); line because title was set as null. i dont see what happend, and when i set content view it ruins the popup things behind it. what can i go about doing? public void popuptrack(View v, SeeqPodTrack currenttrack){ v.setId(R.layout.trackinfo); TextView title = (TextView)findViewById(R.id.Title); title.setText(currenttrack.getTitle()); TextView creator = (TextView)findViewById(R.id.Creator); creator.setText(currenttrack.getCreator()); TextView album = (TextView)findViewById(R.id.Album); album.setText(currenttrack.getAlbum()); TextView genre = (TextView)findViewById(R.id.Genre); genre.setText(currenttrack.getGenre()); TextView location = (TextView)findViewById(R.id.Location); location.setText(currenttrack.getLocation()); PopupWindow pw = new PopupWindow(getViewInflate().inflate(R.layout.trackinfo, null, null)); pw.setHeight(320); pw.setWidth(200); pw.setBackground(v.getBackground()); pw.setFocusable(false); pw.show(v); pw.update(0, 50, -1, -1); } --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Gallery OnItemClicked event issue!
I'm implementing an application using Gallery obj. I want to allow the user to do something by clicking on a image. I tried to setOnItemClickedListener to handle the user's click action however my listener method seems never respond. I don't know why? Could someone please provide me some hints? I searched for that issue in this discussion group and found out that there's another person asked about Mouse Click event of Gallery before and he was answered that it is a bug of Android and will be fixed and released soon in the future. However I don't see that bug in the bug tracker. Am I not sure whether it's a bug of Android or not, or it's just because I did something wrong. Thanks in advance. Colin --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: cant hook onto xml -- quick help?
i take it back. if i change v.setId to setContentView(R.layout.trackinfo) it still gets a null pointer. here is my R.layout.trackinfo ?xml version=1.0 encoding=UTF-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical android:padding=10dip TextView android:id=@+id/TitleLabel android:layout_width=wrap_content android:layout_height=wrap_content android:text=Title: / TextView android:id=@+id/Title android:layout_width=wrap_content android:layout_height=wrap_content android:text= / TextView android:id=@+id/CreatorLabel android:layout_width=wrap_content android:layout_height=wrap_content android:text=Artist: / TextView android:id=@+id/Creator android:layout_width=wrap_content android:layout_height=wrap_content android:text= / TextView android:id=@+id/AlbumLabel android:layout_width=wrap_content android:layout_height=wrap_content android:text=Album: / TextView android:id=@+id/Album android:layout_width=wrap_content android:layout_height=wrap_content android:text= / TextView android:id=@+id/GenreLabel android:layout_width=wrap_content android:layout_height=wrap_content android:text=Genre: / TextView android:id=@+id/Genre android:layout_width=wrap_content android:layout_height=wrap_content android:text= / TextView android:id=@+id/LocationLabel android:layout_width=wrap_content android:layout_height=wrap_content android:text=Web Address: / TextView android:id=@+id/Location android:layout_width=wrap_content android:layout_height=wrap_content android:text= / Button android:id=@+id/CloseButton android:paddingTop=15dip android:layout_width=fill_parent android:layout_height=wrap_content android:text=Close Window / Button android:id=@+id/DownloadButton android:paddingTop=15dip android:layout_width=fill_parent android:layout_height=wrap_content android:text=Download / /LinearLayout On Apr 9, 12:28 pm, Rahul [EMAIL PROTECTED] wrote: i am getting null pointer exceptions when i am trying to run this method. it gets errors at the title.setText(currenttrack.getTitle()); line because title was set as null. i dont see what happend, and when i set content view it ruins the popup things behind it. what can i go about doing? public void popuptrack(View v, SeeqPodTrack currenttrack){ v.setId(R.layout.trackinfo); TextView title = (TextView)findViewById(R.id.Title); title.setText(currenttrack.getTitle()); TextView creator = (TextView)findViewById(R.id.Creator); creator.setText(currenttrack.getCreator()); TextView album = (TextView)findViewById(R.id.Album); album.setText(currenttrack.getAlbum()); TextView genre = (TextView)findViewById(R.id.Genre); genre.setText(currenttrack.getGenre()); TextView location = (TextView)findViewById(R.id.Location); location.setText(currenttrack.getLocation()); PopupWindow pw = new PopupWindow(getViewInflate().inflate(R.layout.trackinfo, null, null)); pw.setHeight(320); pw.setWidth(200); pw.setBackground(v.getBackground()); pw.setFocusable(false); pw.show(v); pw.update(0, 50, -1, -1); } --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group
[android-developers] Re: Logcat stopped working
Since this morning when I rebooted, it is working. When I rebooted yesterday, it did not. On Apr 8, 3:19 pm, Anil [EMAIL PROTECTED] wrote: Clicking on the Logcat view doesn't show any of my Log.v messages. I used -wipe-data, restarted eclipse, rebooted computer. Doesn't show it any more. File explorer also stopped. rc15 Any help appreciated. thanks, Anil console: [2008-04-08 14:15:59 - yo android] -- [2008-04-08 14:15:59 - yo android] Android Launch! [2008-04-08 14:15:59 - yo android] adb is running normally. [2008-04-08 14:15:59 - yo android] Launching: com.yo.blockpad.yoViewer [2008-04-08 14:15:59 - yo android] Automatic Target Mode: launch emulator. [2008-04-08 14:15:59 - yo android] Launching a new emulator. [2008-04-08 14:16:03 - yo android] New emulator found: emulator- tcp- [2008-04-08 14:16:58 - yo android] HOME is up on device 'emulator- tcp-' [2008-04-08 14:16:58 - yo android] Pushing yo android.apk to /data/ app on device 'emulator-tcp-' [2008-04-08 14:17:01 - yo android] Starting activity on device: com.yo.blockpad.yoViewer [2008-04-08 14:17:12 - yo android] ActivityManager: Starting: Intent { comp={com.yo.blockpad/com.yo.blockpad.yoViewer} } [2008-04-08 14:17:14 - yo android] Attempting to connect debugger to 'com.yo.blockpad' on port 8606 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem with EasyEclipse Mobile Java?
Hi : I am a maintainer of EasyEclipse. This is a known problem. We are working on it . On Mar 15, 2:37 am, testtus [EMAIL PROTECTED] wrote: Hello, I have a problem withEasyEclipseMobile Java version 1.3.1.1! Impossible to install ADT, here is the generated errors: Eclipse Data Tools (1.5.1) requires plug-in system.bundle. Android Editors(0.2.0.200802081635) requires plug-in org.eclipse.wst.sse.ui. I looked everywhere but I found nothing on this system.bundle I hope that you could help me to resolve this problem. 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Dynamic UI-Processing - without XML files.
You don't need to supply a style reference, as long as you are instantiating them from a Context with the desired theme set up. This is one reason to use the Activity context (or Dialog context) to instantiate the views -- this context has a theme set that matches the desired activity/dialog style. Fwiw, the way a view resolves its style is to either use the style resource you explicitly give it, or look up a style resource from an attribute it has defined for itself in the current theme. Details on all of these are in the documentation for Theme.obtainStyledAttributes(): http://code.google.com/android/reference/android/content/Resources.Theme.html#obtainStyledAttributes(android.util.AttributeSet,%20int[],%20int,%20int) This is the method that the view classes call to load their attributes out of the XML file / style resource given to them. On Apr 9, 9:15 am, Hielko [EMAIL PROTECTED] wrote: You can create exactly the same things without xml I think, but if you want things to look the same you should probably supply a reference to the style you want to use for some views when you construct them. On Apr 9, 11:40 am, simon [EMAIL PROTECTED] wrote: Ok. That was a good tip. Thanx for that. I managed to create a UI without XML files plus a Database Adapter. But does UI-Processing without XML really cover all functions and possibilities that you have by using XML files? I did not manage to make the list I created look good. that means it looks like the list in the notepad example. the highlight of a selected list item always reaches into the upper and lower list item. and i don't know what i can do about it. Is this just the still buggy platform or am i doing anything wrong? On 3 Apr., 21:22, hackbod [EMAIL PROTECTED] wrote: On Apr 3, 11:55 am, Dan U. [EMAIL PROTECTED] wrote: But if he's trying to use the CursorAdapter, is that even possible? The constructor needs an id of a layout xml file. The base adapter interface just has a method to get a new view. You can implement that however you want.- 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: TextView as button in m3
Does anybody have any ideas on how to do this? Also, for a bit of clarification, my TextViews are inside of a TableLayout. On Apr 8, 10:59 pm, wamoc [EMAIL PROTECTED] wrote: is there a way to use a TextView as a button in m3 rc37? In a program I am writing a TextView will look the best, but it needs to be clickable like a button. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Sqlite problem, urgent request!
Hi, With m3-rc20a SDK version, I can use: SELECT * FROM myTable WHERE Name like '%abc%' LIMIT 1, 10 But with m5-rc15 SDK verion, I can't use the same query. I try to use: String[] mArgs = new String[] {'% + txtSearch + %'}; String mSelection = Name like ? LIMIT 1, 10; Cursor c = mConn.query(Data, null, mSelection, mArgs, null, null, null); Size of the c cursor always return 0 value. Help me to solve my problem please! 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Logcat stopped working
I also encountered the problem several times. When it happens, I just restart eclipse and click the emulator item in device view in DDMS perspective. It works again in most time. In few times I have to kill adb process and restart eclispe, and it works again. 2008/4/10, Anil [EMAIL PROTECTED]: Since this morning when I rebooted, it is working. When I rebooted yesterday, it did not. However, command line adb logcat still worked. thanks, Anil On Apr 8, 3:19 pm, Anil [EMAIL PROTECTED] wrote: Clicking on the Logcat view doesn't show any of my Log.v messages. I used -wipe-data, restarted eclipse, rebooted computer. Doesn't show it any more. File explorer also stopped. rc15 Any help appreciated. thanks, Anil console: [2008-04-08 14:15:59 - yo android] -- [2008-04-08 14:15:59 - yo android] Android Launch! [2008-04-08 14:15:59 - yo android] adb is running normally. [2008-04-08 14:15:59 - yo android] Launching: com.yo.blockpad.yoViewer [2008-04-08 14:15:59 - yo android] Automatic Target Mode: launch emulator. [2008-04-08 14:15:59 - yo android] Launching a new emulator. [2008-04-08 14:16:03 - yo android] New emulator found: emulator- tcp- [2008-04-08 14:16:58 - yo android] HOME is up on device 'emulator- tcp-' [2008-04-08 14:16:58 - yo android] Pushing yo android.apk to /data/ app on device 'emulator-tcp-' [2008-04-08 14:17:01 - yo android] Starting activity on device: com.yo.blockpad.yoViewer [2008-04-08 14:17:12 - yo android] ActivityManager: Starting: Intent { comp={com.yo.blockpad/com.yo.blockpad.yoViewer} } [2008-04-08 14:17:14 - yo android] Attempting to connect debugger to 'com.yo.blockpad' on port 8606 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Make LinearLayout behave like a button when clicked?
Hi Romain Guy, The LinearLayout instance is indeed clickable, but is there a way to get it to flash orange like a normal button? I guess that's the only part missing to making it look more button-ish, Thanks, Mark On Apr 9, 12:39 pm, Romain Guy [EMAIL PROTECTED] wrote: Actually there is. Home for instance uses a LinearLayout to create the buttons on the right. Simply call setClickable() and setFocusable() on your LinearLayout then add an OnClickListener. On Wed, Apr 9, 2008 at 9:23 AM, Hielko [EMAIL PROTECTED] wrote: It's possible to implement, but there is no default method that can do that for you. On Apr 9, 5:39 pm, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi Everyone, Is there any way to make a whole LinearLayout instance behave like a big button, so it flashes when clicked? Similar to an ImageButton, but I'd like to be able to set the entire layout as the button really. Thanks, Mark -- Romain Guywww.curious-creature.org- 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Open for Tutorial Requests
Pocket Journey would never have made it without all the tutorials and discussions people have posted. I've created a few tutorials myself, but wanted to make an offer to help some of you as the deadline nears. I just posted an announcement video screenshots of Pocket Journey: www.pocketjourney.com/androidVideo.do If there's anything on the video or screenshots that you find of interest, let me know I'll do my best to get another tutorial out to help you. The few tutorials I've created already cover some of the coding techniques shown in the screenshots: www.pocketjourney.com/androidTutorials.do Of course, a major effort of Pocket Journey has been getting a community of content created to populate the application along with server-side data feeds to send the information. That tutorial would have to be about partnering and marketing. ; - ) Anthony --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to play a JSpeex encoded audio file?
*bump* On Apr 9, 9:43 am, Anil [EMAIL PROTECTED] wrote: I am trying to figure out how to play a JSpeex encoded audio file on android but am stuck. Speex or JSpeex (the Java implementation) is royalty free and is well suited to voice applications. It provides as much compression as mp3. Apparently it will be implemented in android:http://code.google.com/p/android/issues/detail?id=354can=4colspec=I... the project page is herehttp://sourceforge.net/project/showfiles.php?group_id=84548 I am trying to figure out how to fit it into the android calls MediaPlayer mp = new android.media.MediaPlayer(); mp.setDataSource(/data/data/com.jo.blockpad/files/jo-russkelly_files/ 2-0.spx); mp.prepare(); mp.start(); Any help appreciated. thanks, Anil - calling it from Java Sound example -- import java.io.IOException; import java.net.URL; import java.util.Observable; import java.util.Observer; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.DataLine; import javax.sound.sampled.LineEvent; import javax.sound.sampled.LineListener; import javax.sound.sampled.LineUnavailableException; import javax.sound.sampled.Mixer; import javax.sound.sampled.SourceDataLine; import javax.swing.JOptionPane; /** * Audio playing code has been adapted from Matthias Pfisterer's * AudioPlayer.java * * Anil */ private MyObservable observable = new MyObservable(); private static int DEFAULT_EXTERNAL_BUFFER_SIZE = 128000; int nExternalBufferSize = DEFAULT_EXTERNAL_BUFFER_SIZE; int nInternalBufferSize = AudioSystem.NOT_SPECIFIED; boolean bForceConversion = false; private static boolean DEBUG = false; SourceDataLine line = null; private Object snippet = null; public void playClip(String urlStr) throws Exception { // important - otherwise skim() will fail to move to the next node this.snippet = snippetRef; /** * Flag for forcing a conversion. If set to true, a conversion of the * AudioInputStream (AudioSystem.getAudioInputStream(..., * AudioInputStream)) is done even if the format of the original * AudioInputStream would be supported for SourceDataLines directly. * This flag is set by the command line options -E and -S. */ boolean bForceConversion = false; /** * Endianess value to use in conversion. If a conversion of the * AudioInputStream is done, this values is used as endianess in the * target AudioFormat. The default value can be altered by the command * line option -B. */ boolean bBigEndian = false; /** * Sample size value to use in conversion. If a conversion of the * AudioInputStream is done, this values is used as sample size in the * target AudioFormat. The default value can be altered by the command * line option -S. */ int nSampleSizeInBits = 16; String strMixerName = null; int nExternalBufferSize = DEFAULT_EXTERNAL_BUFFER_SIZE; int nInternalBufferSize = AudioSystem.NOT_SPECIFIED; AudioInputStream audioInputStream = null; URL url = new URL(urlStr); audioInputStream = AudioSystem.getAudioInputStream(url); if (DEBUG) out(AudioPlayer.main(): primary AIS: + audioInputStream); /* * From the AudioInputStream, i.e. from the sound file, we fetch * information about the format of the audio data. These information * include the sampling frequency, the number of linkSnippets and the * size of the samples. These information are needed to ask Java Sound * for a suitable output line for this audio stream. */ AudioFormat audioFormat = audioInputStream.getFormat(); if (DEBUG) out(AudioPlayer.main(): primary format: + audioFormat); DataLine.Info info = new DataLine.Info(SourceDataLine.class, audioFormat, nInternalBufferSize); boolean bIsSupportedDirectly = AudioSystem.isLineSupported(info); if (!bIsSupportedDirectly || bForceConversion) { AudioFormat sourceFormat = audioFormat; AudioFormat targetFormat =
[android-developers] Re: Error Receiving Broadcast Null in [IntentReceiver] (Very Easy)
I can't explain it. Maybe someone from Google (who knows the Android code behind the scenes) can. The only thing I could do is speculate that there is a race condition in there somewhere (probably not in your code). On Apr 9, 8:59 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: To clarify even further, I am not getting this anymore when I close the activity (onDestroy). I happens kind of randomly, or maybe just when I start the activity. Still, it is very rare, but I don't want it to be like this anyway. Could you maybe explain this? Thanks, Noam. On Apr 9, 12:01 am, Dan U. [EMAIL PROTECTED] wrote: Oddly enough, lot of people all of a sudden are having thiserror:-) It might be best to search the groups to find the other threads. As best we can tell, there is still some kind of race condition. I don't know if it's been reported though. On Apr 8, 11:36 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello Dan, I still see thiserror, but much rarely. Why is this happening? Thanks, Noam. On Apr 6, 3:05 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Awesome! I don't see theerroranymore! Thanks, Noam.- 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Error receiving broadcast ... on Activity Finish
I don't have an onPause. Could this be the problem? However, I have a onResume and a onFreeze: @Override public void onFreeze(Bundle icicle) { this.unregisterReceiver(this.myIntentReceiver); super.onFreeze(icicle); } @Override public void onResume() { super.onResume(); this.registerReceiver(this.myIntentReceiver, this.myIntentFilter); } What am I doing wrong? Thanks, Noam. On Apr 9, 9:18 am, Hielko [EMAIL PROTECTED] wrote: Check if your onResume and onPause methods are called properly. There are some bugs in the lifecycle model, sometimes onPauze will be called but onResume isn't called when you go back to the activity so that could generate some problems. On Apr 9, 5:54 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I tried emulator -wipe-data and it still doesn't work..Does anyone have a suggestion? Thanks, Noam. On Mar 13, 9:33 pm, cirion [EMAIL PROTECTED] wrote: Argh, never mind. This seems to be one of those problems that can be fixed with emulator -wipe-data. On Mar 13, 7:47 pm, cirion [EMAIL PROTECTED] wrote: I'm having the exact same problem. This is in a MapActivity. Does anyone know of a solution? Thanks! On Mar 7, 3:46 am, Mark [EMAIL PROTECTED] wrote: Occassionally, I am getting an exception like this when I finish my activity. ERROR/AndroidRuntime(605): java.lang.RuntimeException:Errorreceiving broadcastnullin [EMAIL PROTECTED] ERROR/AndroidRuntime(605): at android.app.ActivityThread $PackageInfo$ReceiverDispatcher.run(ActivityThread.java:492) ERROR/AndroidRuntime(605): at android.os.Handler.handleCallback(Handler.java:455) ERROR/AndroidRuntime(605): at android.os.Handler.dispatchMessage(Handler.java:78) ERROR/AndroidRuntime(605): at android.os.Looper.loop(Looper.java: 91) ERROR/AndroidRuntime(605): at android.app.ActivityThread.main(ActivityThread.java:3052) ERROR/AndroidRuntime(605): at java.lang.reflect.Method.invokeNative(Native Method) ERROR/AndroidRuntime(605): at java.lang.reflect.Method.invoke(Method.java:356) ERROR/AndroidRuntime(605): at android.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:1547) ERROR/AndroidRuntime(605): at android.os.ZygoteInit.main(ZygoteInit.java:1445) ERROR/AndroidRuntime(605): at android.dalvik.NativeStart.main(Native Method) ERROR/AndroidRuntime(605): Caused by: java.lang.NullPointerException ERROR/AndroidRuntime(605): at android.app.ActivityThread $PackageInfo$ReceiverDispatcher.run(ActivityThread.java:476) ERROR/AndroidRuntime(605): ... 9 more Inside my activity, I am using an IntentReceiver as a inner class to receive location update from location manager. I register the IntentFilter and call requestUpdates in onResume, and unregister and removeUpdates in onPause. I don't think this exception is generated by my onReceiveIntent code, as I have tried to place a try catch block around all the code and this still happens. Has anyone had similar problem?- Hide quoted text - - Show quoted text -- 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: cant hook onto xml -- quick help?
I'd expect the v.setId to not do what you want. I think it only sets an id, doesn't set the layout for that view. I tried your example with setContentView and it seems to work fine for me. On Apr 9, 10:31 am, Rahul [EMAIL PROTECTED] wrote: i take it back. if i change v.setId to setContentView(R.layout.trackinfo) it still gets a null pointer. here is my R.layout.trackinfo ?xml version=1.0 encoding=UTF-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical android:padding=10dip TextView android:id=@+id/TitleLabel android:layout_width=wrap_content android:layout_height=wrap_content android:text=Title: / TextView android:id=@+id/Title android:layout_width=wrap_content android:layout_height=wrap_content android:text= / TextView android:id=@+id/CreatorLabel android:layout_width=wrap_content android:layout_height=wrap_content android:text=Artist: / TextView android:id=@+id/Creator android:layout_width=wrap_content android:layout_height=wrap_content android:text= / TextView android:id=@+id/AlbumLabel android:layout_width=wrap_content android:layout_height=wrap_content android:text=Album: / TextView android:id=@+id/Album android:layout_width=wrap_content android:layout_height=wrap_content android:text= / TextView android:id=@+id/GenreLabel android:layout_width=wrap_content android:layout_height=wrap_content android:text=Genre: / TextView android:id=@+id/Genre android:layout_width=wrap_content android:layout_height=wrap_content android:text= / TextView android:id=@+id/LocationLabel android:layout_width=wrap_content android:layout_height=wrap_content android:text=Web Address: / TextView android:id=@+id/Location android:layout_width=wrap_content android:layout_height=wrap_content android:text= / Button android:id=@+id/CloseButton android:paddingTop=15dip android:layout_width=fill_parent android:layout_height=wrap_content android:text=Close Window / Button android:id=@+id/DownloadButton android:paddingTop=15dip android:layout_width=fill_parent android:layout_height=wrap_content android:text=Download / /LinearLayout On Apr 9, 12:28 pm, Rahul [EMAIL PROTECTED] wrote: i am getting null pointer exceptions when i am trying to run this method. it gets errors at the title.setText(currenttrack.getTitle()); line because title was set as null. i dont see what happend, and when i set content view it ruins the popup things behind it. what can i go about doing? public void popuptrack(View v, SeeqPodTrack currenttrack){ v.setId(R.layout.trackinfo); TextView title = (TextView)findViewById(R.id.Title); title.setText(currenttrack.getTitle()); TextView creator = (TextView)findViewById(R.id.Creator); creator.setText(currenttrack.getCreator()); TextView album = (TextView)findViewById(R.id.Album); album.setText(currenttrack.getAlbum()); TextView genre = (TextView)findViewById(R.id.Genre); genre.setText(currenttrack.getGenre()); TextView location = (TextView)findViewById(R.id.Location); location.setText(currenttrack.getLocation()); PopupWindow pw = new PopupWindow(getViewInflate().inflate(R.layout.trackinfo, null, null)); pw.setHeight(320); pw.setWidth(200); pw.setBackground(v.getBackground()); pw.setFocusable(false); pw.show(v); pw.update(0, 50, -1, -1); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to
[android-developers] Setting click handler for a WebView?
Hi, Has anyone tried setting an on click handler for WebView? I've done this but my handler never gets called on a click. I also tried deriving from WebView and overriding onTouchEvent, and onInterceptTouchEvent() to no effect. I just want to get notified when the user clicks on my WebView, Thanks, Mark --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Make LinearLayout behave like a button when clicked?
No, it's just a drawable. So you put it in res/drawable/my_background.xml for instance. On Wed, Apr 9, 2008 at 12:52 PM, Mark Wyszomierski [EMAIL PROTECTED] wrote: That looks exactly like what I need. Where exactly do you create that selector definition though, does that go in the styles.xml file? Then you somehow set that as the background of the LinearLayout instance? Right now I've simply defined my LinearLayout in an xml file: LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical .. other stuff /LinearLayout so I just need to add the android:background attribute of the above definition to point to that selector definition? Thanks a lot, Mark On Apr 9, 2:27 pm, Romain Guy [EMAIL PROTECTED] wrote: To do this you will need to give your LinearLayout a background that supports states. For instance: selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=true android:state_pressed=true android:drawable=@drawable/pressed_application_background_static / item android:state_focused=false android:state_pressed=true android:drawable=@drawable/pressed_application_background_static / item android:state_focused=true android:drawable=@drawable/focused_application_background_static / item android:state_focused=false android:drawable=@android:drawable/empty / /selector On Wed, Apr 9, 2008 at 11:20 AM, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi Romain Guy, The LinearLayout instance is indeed clickable, but is there a way to get it to flash orange like a normal button? I guess that's the only part missing to making it look more button-ish, Thanks, Mark On Apr 9, 12:39 pm, Romain Guy [EMAIL PROTECTED] wrote: Actually there is. Home for instance uses a LinearLayout to create the buttons on the right. Simply call setClickable() and setFocusable() on your LinearLayout then add an OnClickListener. On Wed, Apr 9, 2008 at 9:23 AM, Hielko [EMAIL PROTECTED] wrote: It's possible to implement, but there is no default method that can do that for you. On Apr 9, 5:39 pm, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi Everyone, Is there any way to make a whole LinearLayout instance behave like a big button, so it flashes when clicked? Similar to an ImageButton, but I'd like to be able to set the entire layout as the button really. Thanks, Mark -- Romain Guywww.curious-creature.org-Hide quoted text - - Show quoted text - -- Romain Guywww.curious-creature.org- Hide quoted text - - Show quoted text - -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: webview not showing data
Hi Diego, thanx for ur reply. the problem is, im not even loading a webpage here..i just want my webview to print a little html. im not sure why im not getting it on the emulator screen. On Apr 9, 2:01 am, Diego Torres Milano [EMAIL PROTECTED] wrote: Maybe it's related with this problemhttp://groups.google.com/group/android-developers/browse_thread/threa... On Apr 9, 8:33 am, vinnu [EMAIL PROTECTED] wrote: hi, im writing a bare bones application on android...and mywebviewdoesnt seem to work. i mean its not showing any data on the emulator screen. the textview and editview all work fine..but thewebviewdoesnt show any data on screen. am i missing something? below is the part of the code that is relevant public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.login); WebViewwView = (WebView) findViewById(R.id.wview); wView.loadData( htmlbodyPlease click /body/html, text/html, utf-8); } my login.xml looks like this -- ?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=Username / EditText android:id=@+id/username android:layout_width=fill_parent android:layout_height=wrap_content / TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=Password / EditText android:id=@+id/password android:password=true android:layout_width=fill_parent android:layout_height=wrap_content / Button android:id=@+id/login android:layout_width=wrap_content android:layout_height=wrap_content android:text=Login / WebView android:id=@+id/wview android:layout_width=fill_parent android:layout_height=wrap_content android:focusable=false/ /LinearLayout thanx --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: webview not showing data
also does webview has anything to do with browser..all i want is a view which can understand html tags and display content accordingly on my app's layout. i thot webview meant to do this? On Apr 9, 12:59 pm, vinnu [EMAIL PROTECTED] wrote: Hi Diego, thanx for ur reply. the problem is, imnoteven loading a webpage here..i just want my webview to print a little html. imnotsure why imnotgetting it on the emulator screen. On Apr 9, 2:01 am, Diego Torres Milano [EMAIL PROTECTED] wrote: Maybe it's related with this problemhttp://groups.google.com/group/android-developers/browse_thread/threa... On Apr 9, 8:33 am, vinnu [EMAIL PROTECTED] wrote: hi, im writing a bare bones application on android...and mywebviewdoesnt seem to work. i mean itsnotshowing any data on the emulator screen. the textview and editview all work fine..but thewebviewdoesnt show any data on screen. am i missing something? below is the part of the code that is relevant public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.login); WebViewwView = (WebView) findViewById(R.id.wview); wView.loadData( htmlbodyPlease click /body/html, text/html, utf-8); } my login.xml looks like this -- ?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=Username / EditText android:id=@+id/username android:layout_width=fill_parent android:layout_height=wrap_content / TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=Password / EditText android:id=@+id/password android:password=true android:layout_width=fill_parent android:layout_height=wrap_content / Button android:id=@+id/login android:layout_width=wrap_content android:layout_height=wrap_content android:text=Login / WebView android:id=@+id/wview android:layout_width=fill_parent android:layout_height=wrap_content android:focusable=false/ /LinearLayout thanx --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Error receiving broadcast ... on Activity Finish
Now it tells me that the receiver isn't registered: Unable to pause activity [package]: java.lang.IllegalArgumentException: Receiver not registered: [package]$ [IntentReceiver]. Why is this happening? Thanks, Noam. On Apr 9, 12:54 pm, cirion [EMAIL PROTECTED] wrote: Hi, unregisterReceiver should definitely be called from onPause. onFreeze will only get called if another Activity is starting and your own Activity may be destroyed. In contrast, onPause will be called every time your Activity stops displaying. Hope this helps, Chris On Apr 9, 12:37 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I don't have an onPause. Could this be the problem? However, I have a onResume and a onFreeze: @Override public void onFreeze(Bundle icicle) { this.unregisterReceiver(this.myIntentReceiver); super.onFreeze(icicle); } @Override public void onResume() { super.onResume(); this.registerReceiver(this.myIntentReceiver, this.myIntentFilter); } What am I doing wrong? Thanks, Noam. On Apr 9, 9:18 am, Hielko [EMAIL PROTECTED] wrote: Check if your onResume and onPause methods are called properly. There are some bugs in the lifecycle model, sometimes onPauze will be called but onResume isn't called when you go back to the activity so that could generate some problems. On Apr 9, 5:54 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I tried emulator -wipe-data and it still doesn't work..Does anyone have a suggestion? Thanks, Noam. On Mar 13, 9:33 pm, cirion [EMAIL PROTECTED] wrote: Argh, never mind. This seems to be one of those problems that can be fixed with emulator -wipe-data. On Mar 13, 7:47 pm, cirion [EMAIL PROTECTED] wrote: I'm having the exact same problem. This is in a MapActivity. Does anyone know of a solution? Thanks! On Mar 7, 3:46 am, Mark [EMAIL PROTECTED] wrote: Occassionally, I am getting an exception like this when I finish my activity. ERROR/AndroidRuntime(605): java.lang.RuntimeException:Errorreceiving broadcastnullin [EMAIL PROTECTED] ERROR/AndroidRuntime(605): at android.app.ActivityThread $PackageInfo$ReceiverDispatcher.run(ActivityThread.java:492) ERROR/AndroidRuntime(605): at android.os.Handler.handleCallback(Handler.java:455) ERROR/AndroidRuntime(605): at android.os.Handler.dispatchMessage(Handler.java:78) ERROR/AndroidRuntime(605): at android.os.Looper.loop(Looper.java: 91) ERROR/AndroidRuntime(605): at android.app.ActivityThread.main(ActivityThread.java:3052) ERROR/AndroidRuntime(605): at java.lang.reflect.Method.invokeNative(Native Method) ERROR/AndroidRuntime(605): at java.lang.reflect.Method.invoke(Method.java:356) ERROR/AndroidRuntime(605): at android.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:1547) ERROR/AndroidRuntime(605): at android.os.ZygoteInit.main(ZygoteInit.java:1445) ERROR/AndroidRuntime(605): at android.dalvik.NativeStart.main(Native Method) ERROR/AndroidRuntime(605): Caused by: java.lang.NullPointerException ERROR/AndroidRuntime(605): at android.app.ActivityThread $PackageInfo$ReceiverDispatcher.run(ActivityThread.java:476) ERROR/AndroidRuntime(605): ... 9 more Inside my activity, I am using an IntentReceiver as a inner class to receive location update from location manager. I register the IntentFilter and call requestUpdates in onResume, and unregister and removeUpdates in onPause. I don't think this exception is generated by my onReceiveIntent code, as I have tried to place a try catch block around all the code and this still happens. Has anyone had similar problem?- Hide quoted text - - Show quoted text -- 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Why not display Vertical Scroll bar and can not scroll down.
Hi There, I have created Linearlayout dynamatically. and added some Checkbox, and RadioButton to. which can not display within one screen. however, it does not show Vertical Scroll bar, and down - arrow does not work neither. here is the source code that I am using, mLL = new LinearLayout(mCtx); mLL.setOrientation(LinearLayout.VERTICAL); mLL.setLayoutParams(new LinearLayout.LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); mLL.setVerticalScrollBarEnabled(true); mLL.setBackgroundColor(0xcc99); and it is displayed within TabPanel. 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AlertDialog that looks like ProgressDialog?
Thanks Hielko. But creating an activity just for a alertDialog seems a bit much. :( On Apr 9, 11:10 am, Hielko [EMAIL PROTECTED] wrote: Create an activity and define android:theme=@android:style/ Theme.Dialog in the manifest for this activity. On Apr 9, 5:40 pm, Redhunt [EMAIL PROTECTED] wrote: To keep things consistent I would like to have my AlertDialog look similar to the default ProgressDialog (minus the spinning icon). But I want the text to be in the same style. The default AlertDialog looks more clunky bigger text and thicker lines. Any one have any odeas on how to accomplish this? Thanks- 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Failed to open database file
The mediaplayer sample does work on m5. I am not sure what the issue is in your case. Do other samples like ApiDemos work on your machine? Thanks, Megha On Tue, Apr 8, 2008 at 5:38 PM, Hongliang Tong [EMAIL PROTECTED] wrote: Hi Megha Thanks for your response. I had searched internet for the issue before i post it in developer groups and find the solution as ' http://groups.google.com/group/android-developers/msg/2db1c1a3305f23b7' said . I reinstalled my windows and eclipse. The eclipse plugin is the latest one updated from livelink ' https://dl-ssl.google.com/android/eclipse/' and the android sdk is the m5-rc15. But the issue is the same. Thanks for your further help in advance. 2008/4/9, Megha Joshi [EMAIL PROTECTED]: Hi, These are errors are due to your development environment not being updated properly for using the m5 version of SDK . Please see the response from David below for the same issue: http://groups.google.com/group/android-developers/msg/2db1c1a3305f23b7 Thanks, Megha On Tue, Apr 8, 2008 at 8:26 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: When I run the MediaRecorder of http://android-developers.googlegroups.com/web/MediaRecorder.zip?gda=FXkzyEICK9_YAb0a1Nwh0gUZZf4AZGicXnJhUmy3pBE2rNh3q2G1qiJ7UbTIup-M2XPURDRx2u_6bIk_N_dzuceWXQ3dR3EF-MqJXdm-zvpgwRZgvQ ,ihttp://android-developers.googlegroups.com/web/MediaRecorder.zip?gda=FXkzyEICK9_YAb0a1Nwh0gUZZf4AZGicXnJhUmy3pBE2rNh3q2G1qiJ7UbTIup-M2XPURDRx2u_6bIk_N_dzuceWXQ3dR3EF-MqJXdm-zvpgwRZgvQ,igot the following errors. Would you like to give me your comments? Thank you very much. ERROR/Database(517): Failed to open database file /data/data/ com.google.android.providers.settings/databases/settings.db - unable to open database file ERROR/Database(517): Failed to open database file /data/data/ com.google.android.providers.settings/databases/settings.db - unable to open database file ERROR/Database(517): Failed to open database file /data/checkin.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.providers.googleapps/databases/accounts.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.providers.googleapps/databases/accounts.db - unable to open database file ERROR/EventHub(517): could not get driver version for /dev/input/mice, Not a typewriter ERROR/EventHub(517): could not get driver version for /dev/input/ mouse0, Not a typewriter ERROR/Database(563): Failed to open database file /data/data/ com.google.android.providers.contacts/databases/contacts.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.providers.contacts/databases/contacts.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.providers.im/databases/im.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.providers.im/databases/im.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.maps/databases/maps.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.maps/databases/maps.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.providers.media/databases/media.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.providers.media/databases/media.db - unable to open database file ERROR/Database(581): Failed to open database file /data/data/ com.google.android.providers.telephony/databases/telephony.db - unable to open database file ERROR/Database(581): Failed to open database file /data/data/ com.google.android.providers.telephony/databases/telephony.db - unable to open database file ERROR/Database(581): Failed to open database file /data/data/ com.google.android.providers.telephony/databases/mmssms.db - unable to open database file ERROR/org.bluez.*(581): D-Bus error: The name org.bluez was not provided by any .service files --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Location and geocoding question for Google devs
Hi, as per http://groups.google.com/group/android-challenge/browse_thread/thread/4412631fb4d5e285/27e9df98fd31c5c1#27e9df98fd31c5c1 , devs particpating the android-challenge aren't allowed to provide a mock kml file and properties file (for LBS) or a mock geodb file for geocoding. As per the thread, judges will not be able to run adb push to push the kml, properties or geodb files. I have two questions for google. 1. It is possible that the challenge-rules are cast in stone, but I figure it is worth asking anyway. Android just provides mock functionality now and the default geocoder mock file just has 4 locations in it. All 4 point to the White house,Washington DC. The location provider does a loop in San Francisco. Can you work with the challenge-rules people to support mock LBS and geocoder files that are submitted by devs ? 2. The thread referenced above also suggests storing the geodb or kml/ properties files as raw resources and writing it to SD on first run. However, I'm not sure if the SD card suggestion is a viable option. The LBS documentation specifically notes that mock providers should go to /data/misc/location/provider_name. This directory is inaccessible to Android applications at runtime. Can you please let us know if it is possible to create a mock location provider and mock geocoding by writing properties/kml files into the SD card ? (If the answer to 1 is no and the answer to 2 is no or very expensive in terms of time, I'll probably work on hard-coding the geodb data.) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Why not display Vertical Scroll bar and can not scroll down.
Hi, I think you have not placed your LinearLayout inside a ScrollView, this is needed if you want the scrollbars. ScrollView xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:id=@+id/linearLayout /LinearLayout /ScrollView Thanks, Megha On Wed, Apr 9, 2008 at 1:25 PM, Android-Berry [EMAIL PROTECTED] wrote: Hi There, I have created Linearlayout dynamatically. and added some Checkbox, and RadioButton to. which can not display within one screen. however, it does not show Vertical Scroll bar, and down - arrow does not work neither. here is the source code that I am using, mLL = new LinearLayout(mCtx); mLL.setOrientation(LinearLayout.VERTICAL); mLL.setLayoutParams(new LinearLayout.LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); mLL.setVerticalScrollBarEnabled(true); mLL.setBackgroundColor(0xcc99); and it is displayed within TabPanel. 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Make LinearLayout behave like a button when clicked?
Note: that code is from the Home application actually. On Wed, Apr 9, 2008 at 2:12 PM, Romain Guy [EMAIL PROTECTED] wrote: They are application specific. It was just an example. On Wed, Apr 9, 2008 at 2:09 PM, Mark Wyszomierski [EMAIL PROTECTED] wrote: I see, hate to drag this on, but where are: @drawable/pressed_application_background_static - pressed_application_background_static being defined? Are those standard android images, or do I have to make all those myself? Thanks, Mark On Apr 9, 3:55 pm, Romain Guy [EMAIL PROTECTED] wrote: No, it's just a drawable. So you put it in res/drawable/my_background.xml for instance. On Wed, Apr 9, 2008 at 12:52 PM, Mark Wyszomierski [EMAIL PROTECTED] wrote: That looks exactly like what I need. Where exactly do you create that selector definition though, does that go in the styles.xml file? Then you somehow set that as the background of the LinearLayout instance? Right now I've simply defined my LinearLayout in an xml file: LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical .. other stuff /LinearLayout so I just need to add the android:background attribute of the above definition to point to that selector definition? Thanks a lot, Mark On Apr 9, 2:27 pm, Romain Guy [EMAIL PROTECTED] wrote: To do this you will need to give your LinearLayout a background that supports states. For instance: selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=true android:state_pressed=true android:drawable=@drawable/pressed_application_background_static / item android:state_focused=false android:state_pressed=true android:drawable=@drawable/pressed_application_background_static / item android:state_focused=true android:drawable=@drawable/focused_application_background_static / item android:state_focused=false android:drawable=@android:drawable/empty / /selector On Wed, Apr 9, 2008 at 11:20 AM, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi Romain Guy, The LinearLayout instance is indeed clickable, but is there a way to get it to flash orange like a normal button? I guess that's the only part missing to making it look more button-ish, Thanks, Mark On Apr 9, 12:39 pm, Romain Guy [EMAIL PROTECTED] wrote: Actually there is. Home for instance uses a LinearLayout to create the buttons on the right. Simply call setClickable() and setFocusable() on your LinearLayout then add an OnClickListener. On Wed, Apr 9, 2008 at 9:23 AM, Hielko [EMAIL PROTECTED] wrote: It's possible to implement, but there is no default method that can do that for you. On Apr 9, 5:39 pm, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi Everyone, Is there any way to make a whole LinearLayout instance behave like a big button, so it flashes when clicked? Similar to an ImageButton, but I'd like to be able to set the entire layout as the button really. Thanks, Mark -- Romain Guywww.curious-creature.org-Hidequoted text - - Show quoted text - -- Romain Guywww.curious-creature.org-Hide quoted text - - Show quoted text - -- Romain Guywww.curious-creature.org- Hide quoted text - - Show quoted text - -- Romain Guy www.curious-creature.org -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Programatically query ContentProvider
Hello everyone, is there a possibility to programmatically query a ContentProvider? I've successfully managed to get every currently on the device installed ContentProvider via the PackageManager. This gives me every Content Provider by it's Base-URI in the form of e.g. com.google.android.notepad.NotePadProvider. What I want now is to programmatically access this ContentProvider. But since I don't know the provided tables (in the case of a DB based provider) and the exposed fields, I can't query the provider. What I would need is to programmatically access the exact CONTENT_URI and the fields of the ContentProvider. But since this is not strictly specified and every ContentProvider can do it differently (e.g. com.google.provider.NotePad) I don't see a chance to programmatically query a ContentProvider discovered via the PackageManager. The only idea that comes to my mind is to do it via reflection, but e.g. the constant name CONTENT_URI is only a suggestion by Android and can't be taken for granted as the exact URI to a provider table. So my question is, does anyone have an idea on how I could programmatically get all the data from a ContentProvider without knowing it's tables/fields beforehand? Thx in advance, Chris --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Make LinearLayout behave like a button when clicked?
If you want the standard button image, use android:background=? android:buttonStyle. This says to find the android platform buttonStyle in the current theme, and use that value for the background drawable resource. This is as opposed to android:background=@android:style/Widget.Button, which says to use that explicit resource as the background. (In the default black theme, android:buttonStyle is set to android:style/ Widget.Button, so these boil down to the same thing. But by using the ? version, if you change to a different theme or make your own then the layout will get whatever value you specify in it.) On Apr 9, 2:12 pm, Romain Guy [EMAIL PROTECTED] wrote: Note: that code is from the Home application actually. On Wed, Apr 9, 2008 at 2:12 PM, Romain Guy [EMAIL PROTECTED] wrote: They are application specific. It was just an example. On Wed, Apr 9, 2008 at 2:09 PM, Mark Wyszomierski [EMAIL PROTECTED] wrote: I see, hate to drag this on, but where are: @drawable/pressed_application_background_static - pressed_application_background_static being defined? Are those standard android images, or do I have to make all those myself? Thanks, Mark On Apr 9, 3:55 pm, Romain Guy [EMAIL PROTECTED] wrote: No, it's just a drawable. So you put it in res/drawable/my_background.xml for instance. On Wed, Apr 9, 2008 at 12:52 PM, Mark Wyszomierski [EMAIL PROTECTED] wrote: That looks exactly like what I need. Where exactly do you create that selector definition though, does that go in the styles.xml file? Then you somehow set that as the background of the LinearLayout instance? Right now I've simply defined my LinearLayout in an xml file: LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical .. other stuff /LinearLayout so I just need to add the android:background attribute of the above definition to point to that selector definition? Thanks a lot, Mark On Apr 9, 2:27 pm, Romain Guy [EMAIL PROTECTED] wrote: To do this you will need to give your LinearLayout a background that supports states. For instance: selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=true android:state_pressed=true android:drawable=@drawable/pressed_application_background_static / item android:state_focused=false android:state_pressed=true android:drawable=@drawable/pressed_application_background_static / item android:state_focused=true android:drawable=@drawable/focused_application_background_static / item android:state_focused=false android:drawable=@android:drawable/empty / /selector On Wed, Apr 9, 2008 at 11:20 AM, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi Romain Guy, The LinearLayout instance is indeed clickable, but is there a way to get it to flash orange like a normal button? I guess that's the only part missing to making it look more button-ish, Thanks, Mark On Apr 9, 12:39 pm, Romain Guy [EMAIL PROTECTED] wrote: Actually there is. Home for instance uses a LinearLayout to create the buttons on the right. Simply call setClickable() and setFocusable() on your LinearLayout then add an OnClickListener. On Wed, Apr 9, 2008 at 9:23 AM, Hielko [EMAIL PROTECTED] wrote: It's possible to implement, but there is no default method that can do that for you. On Apr 9, 5:39 pm, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi Everyone, Is there any way to make a whole LinearLayout instance behave like a big button, so it flashes when clicked? Similar to an ImageButton, but I'd like to be able to set the entire layout as the button really. Thanks, Mark -- Romain Guywww.curious-creature.org-Hidequotedtext - - Show quoted text - -- Romain Guywww.curious-creature.org-Hidequoted text - - Show quoted text - -- Romain Guywww.curious-creature.org-Hide quoted text - - Show quoted text - -- Romain Guy www.curious-creature.org -- Romain Guywww.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To
[android-developers] Re: Taking care of proxy Internet access for Dev Challenge?
Yes; just as your end-user may end up using your app from behind a proxy, you should assume that your judges may also. Thanks, David On Apr 8, 8:54 am, joos [EMAIL PROTECTED] wrote: Hello, I am building a client/server application for the Developer Challenge where my Android Client accesses some Server to retrieve information. Does anyone know if I have to take care handling Internet access through a firewall/proxy within my application? (I would have to read the proxy values from the settings.db and add the values to my openConnection call - I guess) Greetings, Joos --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: cant hook onto xml -- quick help?
What do you mean calling it from another contentview? Can you post some example code? On Apr 9, 1:14 pm, Rahul [EMAIL PROTECTED] wrote: hmm.. maybe if i am calling it from another contentview, that might have some problem to? im not sure how else i can explain this. On Apr 9, 2:39 pm, Dan U. [EMAIL PROTECTED] wrote: I'd expect the v.setId to not do what you want. I think it only sets an id, doesn't set the layout for that view. I tried your example with setContentView and it seems to work fine for me. On Apr 9, 10:31 am, Rahul [EMAIL PROTECTED] wrote: i take it back. if i change v.setId to setContentView(R.layout.trackinfo) it still gets a null pointer. here is my R.layout.trackinfo ?xml version=1.0 encoding=UTF-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical android:padding=10dip TextView android:id=@+id/TitleLabel android:layout_width=wrap_content android:layout_height=wrap_content android:text=Title: / TextView android:id=@+id/Title android:layout_width=wrap_content android:layout_height=wrap_content android:text= / TextView android:id=@+id/CreatorLabel android:layout_width=wrap_content android:layout_height=wrap_content android:text=Artist: / TextView android:id=@+id/Creator android:layout_width=wrap_content android:layout_height=wrap_content android:text= / TextView android:id=@+id/AlbumLabel android:layout_width=wrap_content android:layout_height=wrap_content android:text=Album: / TextView android:id=@+id/Album android:layout_width=wrap_content android:layout_height=wrap_content android:text= / TextView android:id=@+id/GenreLabel android:layout_width=wrap_content android:layout_height=wrap_content android:text=Genre: / TextView android:id=@+id/Genre android:layout_width=wrap_content android:layout_height=wrap_content android:text= / TextView android:id=@+id/LocationLabel android:layout_width=wrap_content android:layout_height=wrap_content android:text=Web Address: / TextView android:id=@+id/Location android:layout_width=wrap_content android:layout_height=wrap_content android:text= / Button android:id=@+id/CloseButton android:paddingTop=15dip android:layout_width=fill_parent android:layout_height=wrap_content android:text=Close Window / Button android:id=@+id/DownloadButton android:paddingTop=15dip android:layout_width=fill_parent android:layout_height=wrap_content android:text=Download / /LinearLayout On Apr 9, 12:28 pm, Rahul [EMAIL PROTECTED] wrote: i am getting null pointer exceptions when i am trying to run this method. it gets errors at the title.setText(currenttrack.getTitle()); line because title was set as null. i dont see what happend, and when i set content view it ruins the popup things behind it. what can i go about doing? public void popuptrack(View v, SeeqPodTrack currenttrack){ v.setId(R.layout.trackinfo); TextView title = (TextView)findViewById(R.id.Title); title.setText(currenttrack.getTitle()); TextView creator = (TextView)findViewById(R.id.Creator); creator.setText(currenttrack.getCreator()); TextView album = (TextView)findViewById(R.id.Album); album.setText(currenttrack.getAlbum()); TextView genre = (TextView)findViewById(R.id.Genre); genre.setText(currenttrack.getGenre()); TextView location = (TextView)findViewById(R.id.Location);
[android-developers] Re: WebView designMode doesn't work?
Gentle Bump. On Apr 8, 9:35 pm, Jason von Nieda [EMAIL PROTECTED] wrote: I am attempting to use the designMode property of a document in WebView but it doesn't seem to work. Is this something that is just not implemented yet, or will not be implemented? For background, setting designMode = on on a document should make that document editable in the browser. This is how rich text controls are often implemented in web pages. WebView seems to recognize the property and in some cases behaves differently depending on whether or not it's set, but I cannot seem to actually edit text. This small HTML file shows the issue. This works fine in Safari (Mac) and Firefox (Mac) but does not in a WebView or Browser under Android. If it is working properly then clicking the Enable Design Mode button should cause the entire document to become editable. html body Lorem ipsum dolor sit amet, consectetur adipisicing elit,br/ sed do eiusmod tempor incididunt ut labore et dolore magna,br/ aliqua. Ut enim ad minim veniam, quis nostrud exercitation,br/ ullamco laboris nisi ut aliquip ex ea commodo consequat.,br/ Duis aute irure dolor in reprehenderit in voluptate velit,br/ esse cillum dolore eu fugiat nulla pariatur. Excepteur,br/ sint occaecat cupidatat non proident, sunt in culpa,br/ qui officia deserunt mollit anim id est laborum.,br/ br/ script language=JavaScript function enableDesignMode() { var elem = document; elem.designMode = on; } /script br/ input type=button value=Enable Design Mode onClick=return enableDesignMode();/ /body /html --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Deactivating the new zoom dialog in map views
Can anyone help in replying this issue? I also want to deactivate zoom dialog somehow. Thanks, Niket On Mar 10, 5:52 am, Xenome [EMAIL PROTECTED] wrote: Hi all, ¿Do anyone know how todeactivatethe new (m5 release)zoomdialog that appears when double clicking on a map view? I'm capturing the double click events to launch another subactivity, and it's pretty annoying to have thisdialogopened when you return to the map activity... 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Enhacement for CompressFormat.valueOf(String)
I would like to suggest an enhacement for valueOf method in CompressFormat. It is kind of usual to select a CompressFormat accordding to a file extension. However CompressFormat.valueOf(String) just expects the already defined constants in CompressFormat: jpeg, png, zlib. Right now, for instance, CompressFormat.valueOf(jpg) throws an IllegalArgumentException. I would have expect it to return CompressFormat.JPEG. br --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Sqlite problem, urgent request!
On Thu, Apr 10, 2008 at 1:44 AM, vinh2b [EMAIL PROTECTED] wrote: Hi, With m3-rc20a SDK version, I can use: SELECT * FROM myTable WHERE Name like '%abc%' LIMIT 1, 10 But with m5-rc15 SDK verion, I can't use the same query. I try to use: String[] mArgs = new String[] {'% + txtSearch + %'}; String mSelection = Name like ? LIMIT 1, 10; Cursor c = mConn.query(Data, null, mSelection, mArgs, null, null, null); Size of the c cursor always return 0 value. Help me to solve my problem please! try db4o if there's no workaround for you ;) Thanks -- Best regards, Andrew Zhang db4o - database for Android: www.db4o.com http://zhanghuangzhu.blogspot.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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: WebView very weird behavior loading http://google.com
It seems to be a bug, please go ahead and log this in the android issue tracker. On Fri, Apr 4, 2008 at 5:30 PM, Diego Torres Milano [EMAIL PROTECTED] wrote: Thanks a lot for your answer. Would you tell me why the simplest URL isn't displayed correctly ? I can see the DDMS logs and the page is downloaded. On Apr 4, 1:25 am, Megha Joshi [EMAIL PROTECTED] wrote: Hi, Try using: w.loadUrl(http://www.google.com/ig?hl=en;); That should work. Thanks, Megha On Thu, Apr 3, 2008 at 2:35 AM, Diego Torres Milano [EMAIL PROTECTED] wrote: This is really weird ! WebView can load and display any web page buthttp://google.com! I've tried this: public class WebActivity extends Activity { private WebView webView; @Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); webView = new WebView(this); //webView.loadUrl(http://google.com;); webView.loadUrl(http://google.com/ig;); setContentView(webView); } } http://google.com/igor any other web page is displayed but loading http://google.comI (you?) only get an empty page. Could this be 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] ListView along with buttons
Is there anyway to have a listview a spinner and a button in the same activity? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: TanslateAnimation
ok, that seems simple enough. What about if I want to press a button and slide a view 20 pixels down. Then press another button and slide the same view 20 pixels up from where it currently is. So it is back to its original position. Can I do this? On Apr 9, 7:38 pm, Romain Guy [EMAIL PROTECTED] wrote: 100%p means 100% of the parent. If you want to move your View up 20 pixels your fromYDelta should be 0 and your toYDelta should be -20dip. On Wed, Apr 9, 2008 at 5:33 PM, Redhunt [EMAIL PROTECTED] wrote: Could someone explain to me how TranslateAnimation works? What does 100%p mean exactly. 100% of what? How can I create a transformation (in XML or code) to move a view up say 20 pixels ? What should the FromYDelta and ToYDelta be? Thanks I know this should be easy so I know I am missing something obvious. -- Romain Guywww.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Failed to open database file
Yeah. ApiDemos is ok on my computer. 2008/4/10, Megha Joshi [EMAIL PROTECTED]: The mediaplayer sample does work on m5. I am not sure what the issue is in your case. Do other samples like ApiDemos work on your machine? Thanks, Megha On Tue, Apr 8, 2008 at 5:38 PM, Hongliang Tong [EMAIL PROTECTED] wrote: Hi Megha Thanks for your response. I had searched internet for the issue before i post it in developer groups and find the solution as ' http://groups.google.com/group/android-developers/msg/2db1c1a3305f23b7' said . I reinstalled my windows and eclipse. The eclipse plugin is the latest one updated from livelink ' https://dl-ssl.google.com/android/eclipse/' and the android sdk is the m5-rc15. But the issue is the same. Thanks for your further help in advance. 2008/4/9, Megha Joshi [EMAIL PROTECTED]: Hi, These are errors are due to your development environment not being updated properly for using the m5 version of SDK . Please see the response from David below for the same issue: http://groups.google.com/group/android-developers/msg/2db1c1a3305f23b7 Thanks, Megha On Tue, Apr 8, 2008 at 8:26 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: When I run the MediaRecorder of http://android-developers.googlegroups.com/web/MediaRecorder.zip?gda=FXkzyEICK9_YAb0a1Nwh0gUZZf4AZGicXnJhUmy3pBE2rNh3q2G1qiJ7UbTIup-M2XPURDRx2u_6bIk_N_dzuceWXQ3dR3EF-MqJXdm-zvpgwRZgvQ ,i got the following errors. Would you like to give me your comments? Thank you very much. ERROR/Database(517): Failed to open database file /data/data/ com.google.android.providers.settings/databases/settings.db - unable to open database file ERROR/Database(517): Failed to open database file /data/data/ com.google.android.providers.settings/databases/settings.db - unable to open database file ERROR/Database(517): Failed to open database file /data/checkin.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.providers.googleapps/databases/accounts.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.providers.googleapps/databases/accounts.db - unable to open database file ERROR/EventHub(517): could not get driver version for /dev/input/mice, Not a typewriter ERROR/EventHub(517): could not get driver version for /dev/input/ mouse0, Not a typewriter ERROR/Database(563): Failed to open database file /data/data/ com.google.android.providers.contacts/databases/contacts.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.providers.contacts/databases/contacts.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.providers.im/databases/im.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.providers.im/databases/im.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.maps/databases/maps.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.maps/databases/maps.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.providers.media/databases/media.db - unable to open database file ERROR/Database(563): Failed to open database file /data/data/ com.google.android.providers.media/databases/media.db - unable to open database file ERROR/Database(581): Failed to open database file /data/data/ com.google.android.providers.telephony/databases/telephony.db - unable to open database file ERROR/Database(581): Failed to open database file /data/data/ com.google.android.providers.telephony/databases/telephony.db - unable to open database file ERROR/Database(581): Failed to open database file /data/data/ com.google.android.providers.telephony/databases/mmssms.db - unable to open database file ERROR/org.bluez.*(581): D-Bus error: The name org.bluez was not provided by any .service files --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: TanslateAnimation
Make sure you see fillAfter=true on the animation and keepAnimations=true on the layout that contains the view you are animating. On Wed, Apr 9, 2008 at 6:21 PM, Redhunt [EMAIL PROTECTED] wrote: Right. But now I see what is happening to me :( So this view I am talking about is being drawn over the Google Map (it is not an overlay, it has nothing to do wtih the map). So when I start a down animation (say by 20 pixels or whatever) everything looks good. But then if I happen to click on the map scrolling the map (a redraw takes place, I assume) and now my view pops automatically back to its original location without me doing anything. A very undesirable effect in my case. :) Am I doing something wrong ? On Apr 9, 8:00 pm, Romain Guy [EMAIL PROTECTED] wrote: Yes but you will need to use two different animations. On Wed, Apr 9, 2008 at 5:54 PM, Redhunt [EMAIL PROTECTED] wrote: ok, that seems simple enough. What about if I want to press a button and slide a view 20 pixels down. Then press another button and slide the same view 20 pixels up from where it currently is. So it is back to its original position. Can I do this? On Apr 9, 7:38 pm, Romain Guy [EMAIL PROTECTED] wrote: 100%p means 100% of the parent. If you want to move your View up 20 pixels your fromYDelta should be 0 and your toYDelta should be -20dip. On Wed, Apr 9, 2008 at 5:33 PM, Redhunt [EMAIL PROTECTED] wrote: Could someone explain to me how TranslateAnimation works? What does 100%p mean exactly. 100% of what? How can I create a transformation (in XML or code) to move a view up say 20 pixels ? What should the FromYDelta and ToYDelta be? Thanks I know this should be easy so I know I am missing something obvious. -- Romain Guywww.curious-creature.org -- Romain Guywww.curious-creature.org- Hide quoted text - - Show quoted text - -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Failed to open database file
thanks. the error is as below when run the application. ERROR/jdwp(517): Failed writing handshake bytes: Broken pipe (-1 of 14) ERROR/SurfaceFlinger(517): GL error 0x0500 ERROR/PackageManager(517): Package com.google.android.development has mismatched uid: 1000 on disk, 10008 in settings; read messages: ERROR/PackageManager(517): Read completed successfully: 6 packages, 3 shared uids ERROR/Database(517): Failed to open database file /data/checkin.db - unable to open database file ERROR/EventHub(517): could not get driver version for /dev/input/mice, Not a typewriter ERROR/EventHub(517): could not get driver version for /dev/input/mouse0, Not a typewriter ERROR/Database(579): Failed to open database file /data/data/com.google.android.providers.telephony/databases/mmssms.db - unable to open database file ERROR/org.bluez.*(579): D-Bus error: The name org.bluez was not provided by any .service files ERROR/AndroidRuntime(623): Uncaught handler: thread Main exiting due to uncaught exception ERROR/AndroidRuntime(623): java.lang.NullPointerException ERROR/AndroidRuntime(623): at android.content.ContentResolver.getProvider(ContentResolver.java:380) ERROR/AndroidRuntime(623): at android.content.ContentResolver.insert(ContentResolver.java:281) ERROR/AndroidRuntime(623): at mysamples.android.MyMediaRecorder.initiateMediaRecorder(MyMediaRecorder.java:100) ERROR/AndroidRuntime(623): at mysamples.android.MyMediaRecorder$1.onClick(MyMediaRecorder.java:64) ERROR/AndroidRuntime(623): at android.view.View.performClick(View.java:1857) ERROR/AndroidRuntime(623): at android.view.View.onTouchEvent(View.java:2966) ERROR/AndroidRuntime(623): at android.widget.TextView.onTouchEvent(TextView.java:2850) ERROR/AndroidRuntime(623): at android.view.View.dispatchTouchEvent(View.java:2706) ERROR/AndroidRuntime(623): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:641) ERROR/AndroidRuntime(623): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:641) ERROR/AndroidRuntime(623): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:641) ERROR/AndroidRuntime(623): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:641) ERROR/AndroidRuntime(623): at android.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1193) ERROR/AndroidRuntime(623): at android.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:876) ERROR/AndroidRuntime(623): at android.app.Activity.dispatchTouchEvent(Activity.java:1520) ERROR/AndroidRuntime(623): at android.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1177) ERROR/AndroidRuntime(623): at android.view.ViewRoot.handleMessage(ViewRoot.java:617) ERROR/AndroidRuntime(623): at android.os.Handler.dispatchMessage(Handler.java:80) ERROR/AndroidRuntime(623): at android.os.Looper.loop(Looper.java:91) ERROR/AndroidRuntime(623): at android.app.ActivityThread.main(ActivityThread.java:3052) ERROR/AndroidRuntime(623): at java.lang.reflect.Method.invokeNative(Native Method) ERROR/AndroidRuntime(623): at java.lang.reflect.Method.invoke(Method.java:356) ERROR/AndroidRuntime(623): at android.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1547) ERROR/AndroidRuntime(623): at android.os.ZygoteInit.main(ZygoteInit.java:1445) ERROR/AndroidRuntime(623): at android.dalvik.NativeStart.main(Native Method) 2008/4/10, Megha Joshi [EMAIL PROTECTED]: I will try a fresh install on my windows machine and check on it. Thanks, Megha On Wed, Apr 9, 2008 at 6:05 PM, Hongliang Tong [EMAIL PROTECTED] wrote: Yeah. ApiDemos is ok on my computer. 2008/4/10, Megha Joshi [EMAIL PROTECTED]: The mediaplayer sample does work on m5. I am not sure what the issue is in your case. Do other samples like ApiDemos work on your machine? Thanks, Megha On Tue, Apr 8, 2008 at 5:38 PM, Hongliang Tong [EMAIL PROTECTED] wrote: Hi Megha Thanks for your response. I had searched internet for the issue before i post it in developer groups and find the solution as ' http://groups.google.com/group/android-developers/msg/2db1c1a3305f23b7' said . I reinstalled my windows and eclipse. The eclipse plugin is the latest one updated from livelink ' https://dl-ssl.google.com/android/eclipse/' and the android sdk is the m5-rc15. But the issue is the same. Thanks for your further help in advance. 2008/4/9, Megha Joshi [EMAIL PROTECTED]: Hi, These are errors are due to your development environment not being updated properly for using the m5 version of SDK . Please see the response from David below for the same issue: http://groups.google.com/group/android-developers/msg/2db1c1a3305f23b7 Thanks, Megha On Tue, Apr 8, 2008 at 8:26 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: When I run the MediaRecorder of
[android-developers] Re: how to play a JSpeex encoded audio file?
can any of the google engineers assigned to the codecs help? On Apr 9, 1:34 pm, Anil [EMAIL PROTECTED] wrote: *bump* On Apr 9, 9:43 am, Anil [EMAIL PROTECTED] wrote: I am trying to figure out how to play a JSpeex encoded audio file on android but am stuck. Speex or JSpeex (the Java implementation) is royalty free and is well suited to voice applications. It provides as much compression as mp3. Apparently it will be implemented in android:http://code.google.com/p/android/issues/detail?id=354can=4colspec=I... the project page is herehttp://sourceforge.net/project/showfiles.php?group_id=84548 I am trying to figure out how to fit it into the android calls MediaPlayer mp = new android.media.MediaPlayer(); mp.setDataSource(/data/data/com.jo.blockpad/files/jo-russkelly_files/ 2-0.spx); mp.prepare(); mp.start(); Any help appreciated. thanks, Anil - calling it from Java Sound example -- import java.io.IOException; import java.net.URL; import java.util.Observable; import java.util.Observer; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.DataLine; import javax.sound.sampled.LineEvent; import javax.sound.sampled.LineListener; import javax.sound.sampled.LineUnavailableException; import javax.sound.sampled.Mixer; import javax.sound.sampled.SourceDataLine; import javax.swing.JOptionPane; /** * Audio playing code has been adapted from Matthias Pfisterer's * AudioPlayer.java * * Anil */ private MyObservable observable = new MyObservable(); private static int DEFAULT_EXTERNAL_BUFFER_SIZE = 128000; int nExternalBufferSize = DEFAULT_EXTERNAL_BUFFER_SIZE; int nInternalBufferSize = AudioSystem.NOT_SPECIFIED; boolean bForceConversion = false; private static boolean DEBUG = false; SourceDataLine line = null; private Object snippet = null; public void playClip(String urlStr) throws Exception { // important - otherwise skim() will fail to move to the next node this.snippet = snippetRef; /** * Flag for forcing a conversion. If set to true, a conversion of the * AudioInputStream (AudioSystem.getAudioInputStream(..., * AudioInputStream)) is done even if the format of the original * AudioInputStream would be supported for SourceDataLines directly. * This flag is set by the command line options -E and -S. */ boolean bForceConversion = false; /** * Endianess value to use in conversion. If a conversion of the * AudioInputStream is done, this values is used as endianess in the * target AudioFormat. The default value can be altered by the command * line option -B. */ boolean bBigEndian = false; /** * Sample size value to use in conversion. If a conversion of the * AudioInputStream is done, this values is used as sample size in the * target AudioFormat. The default value can be altered by the command * line option -S. */ int nSampleSizeInBits = 16; String strMixerName = null; int nExternalBufferSize = DEFAULT_EXTERNAL_BUFFER_SIZE; int nInternalBufferSize = AudioSystem.NOT_SPECIFIED; AudioInputStream audioInputStream = null; URL url = new URL(urlStr); audioInputStream = AudioSystem.getAudioInputStream(url); if (DEBUG) out(AudioPlayer.main(): primary AIS: + audioInputStream); /* * From the AudioInputStream, i.e. from the sound file, we fetch * information about the format of the audio data. These information * include the sampling frequency, the number of linkSnippets and the * size of the samples. These information are needed to ask Java Sound * for a suitable output line for this audio stream. */ AudioFormat audioFormat = audioInputStream.getFormat(); if (DEBUG) out(AudioPlayer.main(): primary format: + audioFormat); DataLine.Info info = new DataLine.Info(SourceDataLine.class, audioFormat, nInternalBufferSize); boolean
[android-developers] Re: About load '.so' library file with JNI
I had read the discussion about Unresolved symbol JNI, But I believe there are some difference with my problem. Logcat : DEBUG/dalvikvm(786): +++ not scanning '/system/lib/libwebcore.so' for 'add' (wrong CL) DEBUG/dalvikvm(786): +++ not scanning '/system/lib/libmedia_jni.so' for 'add' (wrong CL) WARN/dalvikvm(786): No implementation found for native Lproject/ testjni/NativeAdd;.add (I)I DEBUG/dalvikvm(786): Exception Ljava/lang/UnsatisfiedLinkError; from TestJNI.java:15 not caught locally DEBUG/dalvikvm(786): Exception Ljava/lang/UnsatisfiedLinkError; from ZygoteInit.java:1555 not caught locally DEBUG/AndroidRuntime(786): Shutting down VM my symbol table: $ arm-none-linux-gnueabi-objdump -T libNativeAdd.so libNativeAdd.so: file format elf32-littlearm DYNAMIC SYMBOL TABLE: 022c ld .text .text 0268 gD *ABS* __exidx_end 02cc gD *ABS* _bss_end__ 02cc gD *ABS* __bss_start__ 0268 gD *ABS* __exidx_start 02cc gD *ABS* __bss_end__ 022c gDF .text 003c Java_project_testjni_TestJNI_add 02cc gD *ABS* __bss_start 02cc gD *ABS* __end__ 02cc gD *ABS* _edata 02cc gD *ABS* _end 02cc gD .got __data_start I didn't call any other function in the library, the function Java_project_testjni_TestJNI_add do nothing except return a const value. My shared library name is libNativeAdd.so, but system doesn't find it ? Need I register it somewhere? On 4月9日, 下午6时05分, David Given [EMAIL PROTECTED] wrote: Macro wrote: [...] But while running loadLibrary(libNativeAdd), the same as before, it throw a UnsatisfiedLinkError exception. You almost certainly have unresolved symbols in your library. Try using objdump -T to dump the symbols in the .so and see if there's anything interesting there. Look for a thread with the title 'Unresolved symbols JNI' for more information. -- David Given [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView along with buttons
sure. Nest them all in a top level layout like LinearLayout. Just make sure the children views don't have fill_parent both width and height or else anything that comes after it won't be visible. There are lots of examples in the API demo. On Apr 9, 8:50 pm, GUS [EMAIL PROTECTED] wrote: Is there anyway to have a listview a spinner and a button in the same activity? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Will switching to a different layout type speedup my application
Hi, From your description of the Layout it seems that using RelativeLayout will reduce number of the nested levels, and if it really does than your layout process will speed up. Thanks, Megha On Wed, Apr 9, 2008 at 9:22 AM, Hielko [EMAIL PROTECTED] wrote: At the moment I have a listview with fairy complex items: every item contains two different pictures and three lines of text with two textviews on every line. To position everything correctly I use nested linearlayouts that are three levels deep. At the moment the activity isn't really fast, and using traceview I can see that a lot of time is spend on methods like onMeasure, TraverseChilds etc. Would a different layouttype be faster (the only other option would be an relativelayout) a) Almost certainly b) The difference won't be huge c) RelativeLayout will be slower... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: TanslateAnimation
Well I am 80% of the way there. Now my problem is that it seems like the coordinates are not considered translated for the views inside my translating view. So the input does not move with the main View for the children views. Any ideas. Thanks for the help so far. I have been banging my head on this for hours ! :( I coudl have done my own implementation in much less time but I am trying to use Android SDK as much as possible. On Apr 9, 8:22 pm, Romain Guy [EMAIL PROTECTED] wrote: Make sure you see fillAfter=true on the animation and keepAnimations=true on the layout that contains the view you are animating. On Wed, Apr 9, 2008 at 6:21 PM, Redhunt [EMAIL PROTECTED] wrote: Right. But now I see what is happening to me :( So this view I am talking about is being drawn over the Google Map (it is not an overlay, it has nothing to do wtih the map). So when I start a down animation (say by 20 pixels or whatever) everything looks good. But then if I happen to click on the map scrolling the map (a redraw takes place, I assume) and now my view pops automatically back to its original location without me doing anything. A very undesirable effect in my case. :) Am I doing something wrong ? On Apr 9, 8:00 pm, Romain Guy [EMAIL PROTECTED] wrote: Yes but you will need to use two different animations. On Wed, Apr 9, 2008 at 5:54 PM, Redhunt [EMAIL PROTECTED] wrote: ok, that seems simple enough. What about if I want to press a button and slide a view 20 pixels down. Then press another button and slide the same view 20 pixels up from where it currently is. So it is back to its original position. Can I do this? On Apr 9, 7:38 pm, Romain Guy [EMAIL PROTECTED] wrote: 100%p means 100% of the parent. If you want to move your View up 20 pixels your fromYDelta should be 0 and your toYDelta should be -20dip. On Wed, Apr 9, 2008 at 5:33 PM, Redhunt [EMAIL PROTECTED] wrote: Could someone explain to me how TranslateAnimation works? What does 100%p mean exactly. 100% of what? How can I create a transformation (in XML or code) to move a view up say 20 pixels ? What should the FromYDelta and ToYDelta be? Thanks I know this should be easy so I know I am missing something obvious. -- Romain Guywww.curious-creature.org -- Romain Guywww.curious-creature.org-Hide quoted text - - Show quoted text - -- Romain Guywww.curious-creature.org- 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Make LinearLayout behave like a button when clicked?
Sorry I am stupid... you want to use style=?android:buttonStyle or style=@android:style/Widget.Button. This is a style resource, which contains a whole collection of related attributes. For Widget.Button it looks something like this: style name=Widget.Button item name=android:background@android:drawable/btn_default/ item item name=android:focusabletrue/item item name=android:clickabletrue/item item name=android:textAppearance?android:attr/ textAppearanceSmallInverse/item item name=android:textColor?android:attr/ textColorBrightInverse/item item name=android:gravitycenter_vertical| center_horizontal/item /style The textAppearance and textColor attributes are relevant to TextView, so they will be ignored in the LinearLayout. On Apr 9, 5:19 pm, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi hackbod, I tried with both your variations, with interesting results. Setting the following: android:background=?android:buttonStyle gives me a background of an indeterminate progress bar. Trying: android:background=@android:style/Widget.Button just gives me a runtime error: Bimary XML file line #38: Error inflating class java.lang.reflect.Constructor Any ideas? Thanks, Mark On Apr 9, 5:31 pm, hackbod [EMAIL PROTECTED] wrote: If you want the standard button image, use android:background=? android:buttonStyle. This says to find the android platform buttonStyle in the current theme, and use that value for the background drawable resource. This is as opposed to android:background=@android:style/Widget.Button, which says to use that explicit resource as the background. (In the default black theme, android:buttonStyle is set to android:style/ Widget.Button, so these boil down to the same thing. But by using the ? version, if you change to a different theme or make your own then the layout will get whatever value you specify in it.) On Apr 9, 2:12 pm, Romain Guy [EMAIL PROTECTED] wrote: Note: that code is from the Home application actually. On Wed, Apr 9, 2008 at 2:12 PM, Romain Guy [EMAIL PROTECTED] wrote: They are application specific. It was just an example. On Wed, Apr 9, 2008 at 2:09 PM, Mark Wyszomierski [EMAIL PROTECTED] wrote: I see, hate to drag this on, but where are: @drawable/pressed_application_background_static - pressed_application_background_static being defined? Are those standard android images, or do I have to make all those myself? Thanks, Mark On Apr 9, 3:55 pm, Romain Guy [EMAIL PROTECTED] wrote: No, it's just a drawable. So you put it in res/drawable/my_background.xml for instance. On Wed, Apr 9, 2008 at 12:52 PM, Mark Wyszomierski [EMAIL PROTECTED] wrote: That looks exactly like what I need. Where exactly do you create that selector definition though, does that go in the styles.xml file? Then you somehow set that as the background of the LinearLayout instance? Right now I've simply defined my LinearLayout in an xml file: LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical .. other stuff /LinearLayout so I just need to add the android:background attribute of the above definition to point to that selector definition? Thanks a lot, Mark On Apr 9, 2:27 pm, Romain Guy [EMAIL PROTECTED] wrote: To do this you will need to give your LinearLayout a background that supports states. For instance: selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=true android:state_pressed=true android:drawable=@drawable/pressed_application_background_static / item android:state_focused=false android:state_pressed=true android:drawable=@drawable/pressed_application_background_static / item android:state_focused=true android:drawable=@drawable/focused_application_background_static / item android:state_focused=false android:drawable=@android:drawable/empty / /selector On Wed, Apr 9, 2008 at 11:20 AM, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi Romain Guy, The LinearLayout instance is indeed clickable, but is there a way to get it to flash orange like a normal button? I guess that's the only part missing to making it look more button-ish, Thanks, Mark On Apr 9, 12:39 pm, Romain Guy [EMAIL PROTECTED]
[android-developers] Re: Make LinearLayout behave like a button when clicked?
Hi hackbod, I really appreciate your help, I tried setting the style for the linear layout but that doesn't seem to be a valid attribute? android:style=?android:buttonStyle This is a compile time error. Any ideas? Thanks! On Apr 9, 10:53 pm, hackbod [EMAIL PROTECTED] wrote: Sorry I am stupid... you want to use style=?android:buttonStyle or style=@android:style/Widget.Button. This is a style resource, which contains a whole collection of related attributes. For Widget.Button it looks something like this: style name=Widget.Button item name=android:background@android:drawable/btn_default/ item item name=android:focusabletrue/item item name=android:clickabletrue/item item name=android:textAppearance?android:attr/ textAppearanceSmallInverse/item item name=android:textColor?android:attr/ textColorBrightInverse/item item name=android:gravitycenter_vertical| center_horizontal/item /style The textAppearance and textColor attributes are relevant to TextView, so they will be ignored in the LinearLayout. On Apr 9, 5:19 pm, Mark Wyszomierski [EMAIL PROTECTED] wrote: Hi hackbod, I tried with both your variations, with interesting results. Setting the following: android:background=?android:buttonStyle gives me a background of an indeterminate progress bar. Trying: android:background=@android:style/Widget.Button just gives me a runtime error: Bimary XML file line #38: Error inflating class java.lang.reflect.Constructor Any ideas? Thanks, Mark On Apr 9, 5:31 pm, hackbod [EMAIL PROTECTED] wrote: If you want the standard button image, use android:background=? android:buttonStyle. This says to find the android platform buttonStyle in the current theme, and use that value for the background drawable resource. This is as opposed to android:background=@android:style/Widget.Button, which says to use that explicit resource as the background. (In the default black theme, android:buttonStyle is set to android:style/ Widget.Button, so these boil down to the same thing. But by using the ? version, if you change to a different theme or make your own then the layout will get whatever value you specify in it.) On Apr 9, 2:12 pm, Romain Guy [EMAIL PROTECTED] wrote: Note: that code is from the Home application actually. On Wed, Apr 9, 2008 at 2:12 PM, Romain Guy [EMAIL PROTECTED] wrote: They are application specific. It was just an example. On Wed, Apr 9, 2008 at 2:09 PM, Mark Wyszomierski [EMAIL PROTECTED] wrote: I see, hate to drag this on, but where are: @drawable/pressed_application_background_static - pressed_application_background_static being defined? Are those standard android images, or do I have to make all those myself? Thanks, Mark On Apr 9, 3:55 pm, Romain Guy [EMAIL PROTECTED] wrote: No, it's just a drawable. So you put it in res/drawable/my_background.xml for instance. On Wed, Apr 9, 2008 at 12:52 PM, Mark Wyszomierski [EMAIL PROTECTED] wrote: That looks exactly like what I need. Where exactly do you create that selector definition though, does that go in the styles.xml file? Then you somehow set that as the background of the LinearLayout instance? Right now I've simply defined my LinearLayout in an xml file: LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical .. other stuff /LinearLayout so I just need to add the android:background attribute of the above definition to point to that selector definition? Thanks a lot, Mark On Apr 9, 2:27 pm, Romain Guy [EMAIL PROTECTED] wrote: To do this you will need to give your LinearLayout a background that supports states. For instance: selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=true android:state_pressed=true android:drawable=@drawable/pressed_application_background_static / item android:state_focused=false android:state_pressed=true android:drawable=@drawable/pressed_application_background_static / item android:state_focused=true android:drawable=@drawable/focused_application_background_static / item android:state_focused=false android:drawable=@android:drawable/empty / /selector On Wed, Apr 9, 2008 at 11:20 AM, Mark Wyszomierski [EMAIL
[android-developers] Load a class from another .apk file dynamic?
I want to develop an application, it was form by plugins. Then I need to load a class from plugin. Use Class.forName() to load a class from the same apk file, it's successful, but if the class is in another apk file, the method throw ClassNotFoundException. How to load the class from another apk file? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: View Activity Communicaton
Once again thank you for the feedback. I would then suggest for someone to review the examples, since I'm 99% sure that I got the Application suggestion, from an Android Documentation example, I just can't pin point it right now. Currently, it's working a lot better and faster, by using activity, and start subactivity, since it's not launching a new Task everytime. The make your view an inner class of activity suggestion, doesn't work when we want to reuse a view, but for the other more common cases it's fine, althought currently all my views are not inner classes (I'm passing the activity, so no problem their now). By the way, once we launch the application we get a Dark Grey Back ground, with a Title on top, stating our application name, has defined in the AndroidManifest.xml file and res/values/strings.xml, which is perfectly fine. However, all my Activities are setup so that I don't get a title or even a status bar at the top, by having startup code in onCreate like the following: /** Called when the activity is first created. */ @Override public void onCreate( Bundle icicle ) { super.onCreate( icicle ); // We do NOT need a title. requestWindowFeature( Window.FEATURE_NO_TITLE ); // remove status bar, to get FULLSCREEN getWindow().setFlags( WindowManager.LayoutParams.NO_STATUS_BAR_FLAG | WindowManager.LayoutParams.LAYOUT_IN_SCREEN_FLAG, WindowManager.LayoutParams.NO_STATUS_BAR_FLAG | WindowManager.LayoutParams.LAYOUT_IN_SCREEN_FLAG ); setContentView( new AppView( this ) ); ... } Is there a way to avoid the Dark Grey background while the application is starting, like setting up a layout.xml or similar, so that we get either a predefined background or at the worst case a full Black background while the application is loading ? I have tryed using a loading something similar to a splash screen, whcih loads faster, but I always get the dark grey background with title to pop up before actually loading the first activity. A hint for getting rid of this would be great ! Once again, thank you for the feedback. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: dynamic resource
Hi, Try to use the Resources.getIdentifier(String, String, String). Look at its documentation for more details: http://code.google.com/android/reference/android/content/Resources.html#getIdentifier(java.lang.String,%20java.lang.String,%20java.lang.String) Regards, Adriano Crestani On Apr 6, 4:48 pm, xingye [EMAIL PROTECTED] wrote: use Map structure On 4月7日, 上午2时15分, Dan U. [EMAIL PROTECTED] wrote: But if you already know ahead of time that the resource name is my.package.R.drawable.resname, then you already know what imageID is, so you wouldn't need that. Or am I misunderstanding what you are trying to do? On Apr 6, 6:36 am, Max Binshtok [EMAIL PROTECTED] wrote: Is there a mechanism to dynamically obtain a resource? I mean, let's say I want to show some image depending on context out of 5 images I have in drawable dir. So I would expect something like getResourceByName(String s) : int which would take a string that points to the resource and will get me the int of that resource. for example, I could do then: ImageView iv = (ImageView) findViewById(R.id.sign_icon); int imageID getResourceByName(my.package.R.drawable.resname); iv.setImageResource(imageID); One way to overcome it would be to hold a hashmap where resname point to appropriate resource and then use the resname to get it, but I think this should be native. Or it is but I can't figure it out. Thanks for the help! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SQL WHERE clause?
That's because I posted the whole query and the whereClause is only supposed to be where association.parentid = 'guid'. I'm not sure how to do the join here though. If it used a regular PreparedStatement, it'd be easy :-). I'm just not used to doing it this way. Maybe you can search google or the groups for info on how to do a join. On Apr 9, 7:40 pm, SnowDrifter [EMAIL PROTECTED] wrote: So I think I have the where clause setup right now but I can't seem to get it to work. currently I am using it like so: db.query(child, new String[] {_id, title}, whereClause, null, null, null, null); my where clause looks like so: String whereClause = select * from child join association on association.childid = child._id where association.parentid = 'guid'; where I replace 'guid' with my passed in guid for the lookup parent guid. I think I am doing it wrong since I get a error about a syntax error near select. I don't believe I am allowed to use the where in this location but I can't find a function that will take it. What should I be using? On Apr 6, 12:59 pm, Dan U. [EMAIL PROTECTED] wrote: I haven't tested this but it should be something like... select child.* from child join association on child.guid = association.child_guid where association.parent_guid = ? And of course, you should change child.* to be whatever columns you need and the ? should be your particular parent guid. On Apr 6, 10:24 am, SnowDrifter [EMAIL PROTECTED] wrote: I am trying to figure out how to create a where clause (I think that is what I need) to filter one table with the data from another table. I have three tables. One is for parents one is for children and one is for associations between these two tables. The way I have done this is using GIUD identifiers to identify the parents and children. In the association table I just have GUID pairs to show the association. So a parent or child table might look like so: GUID, title, data and the association table might look like so: GUID(parent), GUID(child) so I want to be able to do a query that does a query against the child table and returns only a cursor of children that are associated with a particular parent. I can't seem to find any good tutorials on how to do such a thing. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] ListView getCount question
Hi, ListView.getCount() returns the total number of data items in the listview. Does anyone know how to find out the total number of visible views in the listbox. Alternately, does anyone know how to see whether the listview will scroll or not (i.e. if number of visible views getCount()) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Remove Names in Map
Is there a way to remove the Country names etc from a MapView? 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView getCount question
ListView.getChildCount(). On Wed, Apr 9, 2008 at 9:04 PM, Ram [EMAIL PROTECTED] wrote: Hi, ListView.getCount() returns the total number of data items in the listview. Does anyone know how to find out the total number of visible views in the listbox. Alternately, does anyone know how to see whether the listview will scroll or not (i.e. if number of visible views getCount()) -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Deploy from a webserver
I guess that this is probably a common problem. In the first public release of the SDK, it merely required adding: uses-permission id=android.permission.INSTALL_PACKAGES/ to the android manifest and then pushing the application to the /system/app directory. Android would pick up your app as running under elevated or system privileges. By the latest SDK, this hack had been closed. Deploying under /system/app no longer bumped the privileges. I only found that the apps running under pid 508 had permission to install packages. The solution I came up with was simple. I created an external service that takes whatever URL it is handed, downloads it and then runs the adb install program. From the client side, it only requires: Socket socket = new Socket(10.0.2.2, 8090); os = socket.getOutputStream(); os.write(uri.toString().getBytes()); and you are done. You can get the JAR and more info, here: http://code.google.com/p/slideme/wiki/InstallingOTA Shane On Fri, Apr 4, 2008 at 12:25 PM, BMT [EMAIL PROTECTED] wrote: Did any of you get the remote download to work? I am working on a similar probelm. The basic system is supposed to work like this: The user gets a message containing a personalized link this link points to a personalized application that gets downloaded and installed to the phone. The current APP works by sending an SMS that contains a url where the user can download the application specifically a JAD file, that then triggers a download and installation of the JAR on the users device. Any help would be greatly apreciated /Mikael On Feb 11, 9:11 pm, Jeff [EMAIL PROTECTED] wrote: I have been working on remote deployment modules as part of my project. The thing about the PackageManager is that, while it has an installPackage method, as far as I can tell there is no means of programatically removing a package, or to temporarily install a package. So you can imagine the package bloat. Instead, I have an activity that responds to a remote package url. I intend to either force the remote package to be signed before running it or just allow the user to run anything at their own risk after a warning. I can fast track this aspect of my project and get it out there if anyone is interested. On Feb 11, 7:51 pm, mathiastck [EMAIL PROTECTED] wrote: Please to repost if you find anyone that has solved this and posted their solution. On Feb 11, 12:07 pm, bdadkiss [EMAIL PROTECTED] wrote: Thanks for the quick respose On Feb 11, 1:17 pm, Zach Hobbs [EMAIL PROTECTED] wrote: Can't do it through thebrowseryet, however it would be possible to do it with a program using PackageManager. -- Zach Hobbs HelloAndroid.com Android OS news, tutorials, downloads On Monday 11 February 2008 14:04:57 bdadkiss wrote: Can anyone give any insight to deploying myapkfile from a webserver to the emulator? I have a working application I have developed and I am at a point where I would like to try deployment from a website. I am trying to place theapkfile in a web server and using the emulator browsergo to the web page and have theapkinstall on the emulator. When I go to the url the emulator opens the file as if it was opened with a text editor. Thanks Brent- 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Aver the air download and install application
I just commented on this in another thread: see here for solution - http://code.google.com/p/slideme/wiki/InstallingOTA Shane On Sat, Apr 5, 2008 at 8:49 AM, Shane Isbell [EMAIL PROTECTED] wrote: I've build SAM, an android client that handles OMA OTA download and install of android applications. I'm releasing this Monday under Apache License 2.0. In the mean time, you can take a look at the provisioning server, also open-source. It handles stocking and OTA delivery. Released here: http://code.google.com/p/jvending Shane On Sat, Apr 5, 2008 at 6:24 AM, james [EMAIL PROTECTED] wrote: I was thinking of doing OTA updates for the competition as well, but then reasoned it's probably more work than it's worth at the moment. Probably only worth the hassle for running on real phones, and that probably won't be until 3rd or 4th Q 2008 (if we're lucky). I note that OTA does not work in BlackBerry simulators either (using MDS and AFAIK). Google would surely make note of the MIME type to use on the server and how to do it if it were currently supported in the emulator. My guess is it is not (OTA provisioning of an apk). On Apr 4, 3:15 pm, BMT [EMAIL PROTECTED] wrote: Thanks Dan: Seems like I am not alone looking for a solution. This seems like something that would be fundametal for a wireless device. The ability to download and install an application. Is there a preferred way of installing applications on the device? Thanks, I'll keep looking, and the referense helped. On Apr 4, 9:35 am, Dan U. [EMAIL PROTECTED] wrote: I thinkhttp:// groups.google.com/group/android-developers/browse_thread/threa... is about the only place I've seen mention of doing this. Sounds like it's not possible with the browser, or at least not yet. On Apr 4, 6:25 am, BMT [EMAIL PROTECTED] wrote: Dear developers: I must have missed something obvious: I am developing an application that is required to be downloaded and installed on a pristine Android phone. When I try to download the .apk file by itself the browser tries to display it, and when I send it as a .zip file it turns out as a unsuported content type. What is the preferred method for application download? Is there a specific MIME type the application server should give? /BMT- 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Take a screenshot and save as a picture file
This will be only for a view i guessBut if i want that for the whole screen, can it be done?? On Apr 9, 10:11 pm, Diego Pino [EMAIL PROTECTED] wrote: To take a snapshot of a View use View.getDrawingCache() You should have turned cache on before that View.setDrawingCacheEnabled(true) br --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Gallery OnItemClicked event issue!
Colin, Have you tried clicking the center button of the keypad? I can't just click the image in gallery using mouse but if focus the gallery and then click the center button then I am able to see that the event is delivered to your callback. JY On Apr 9, 10:28 am, ColinHo [EMAIL PROTECTED] wrote: I'm implementing an application using Gallery obj. I want to allow the user to do something by clicking on a image. I tried to setOnItemClickedListener to handle the user's click action however my listener method seems never respond. I don't know why? Could someone please provide me some hints? I searched for that issue in this discussion group and found out that there's another person asked about Mouse Click event of Gallery before and he was answered that it is a bug of Android and will be fixed and released soon in the future. However I don't see that bug in the bug tracker. Am I not sure whether it's a bug of Android or not, or it's just because I did something wrong. Thanks in advance. Colin --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView getCount question
I forgot to mention that the listview is bound to ArrayAdapterString. ListView.GetChildCount() returns 0 (presumably, because the list elements aren't android views. They are strings from the array adapter.) Do you know how I can find the number of visible strings within the listbox Thanks Ram On Apr 9, 9:11 pm, Romain Guy [EMAIL PROTECTED] wrote: ListView.getChildCount(). On Wed, Apr 9, 2008 at 9:04 PM, Ram [EMAIL PROTECTED] wrote: Hi, ListView.getCount() returns the total number of data items in the listview. Does anyone know how to find out the total number of visible views in the listbox. Alternately, does anyone know how to see whether the listview will scroll or not (i.e. if number of visible views getCount()) -- Romain Guywww.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] APK file rename
If I export APK file from the project and at the time of saving if I save it into different file name , will it work? do i need to keep the same name as project for the APk file as we need to do for class and file name in java? if any one tested on different computer other than developing computer, please reply. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView getCount question
OK, then I'm not sure why the following test code isn't working String[] testArray = new String[30]; ArrayAdapterString adapter = new ArrayAdapterString(m_context, R.layout.list_row, R.id.textCol1, testArray); list1.setAdapter(adapter); int count = list1.getCount(); int countVisible = list1.getChildCount(); Xml for the listview is ListView android:id=@+id/list1 android:layout_width=wrap_content android:layout_height=0dip android:layout_weight=999 / The listview renders correctly. I see around 12 entries on the first page and I can scroll to see the other list entries The value of list1.getCount() is 30. However, list1.getChildCount() returns 0 I'm using M5-rc14 Ram On Apr 9, 10:16 pm, Romain Guy [EMAIL PROTECTED] wrote: As I just said, listView.getChildCount() returns the number of views currently displayed on screen by ListView. It has nothing to do with the fact that the adapter is bounds by String. On Wed, Apr 9, 2008 at 10:13 PM, Ram [EMAIL PROTECTED] wrote: I forgot to mention that the listview is bound to ArrayAdapterString. ListView.GetChildCount() returns 0 (presumably, because the list elements aren't android views. They are strings from the array adapter.) Do you know how I can find the number of visible strings within the listbox Thanks Ram On Apr 9, 9:11 pm, Romain Guy [EMAIL PROTECTED] wrote: ListView.getChildCount(). On Wed, Apr 9, 2008 at 9:04 PM, Ram [EMAIL PROTECTED] wrote: Hi, ListView.getCount() returns the total number of data items in the listview. Does anyone know how to find out the total number of visible views in the listbox. Alternately, does anyone know how to see whether the listview will scroll or not (i.e. if number of visible views getCount()) -- Romain Guywww.curious-creature.org -- Romain Guywww.curious-creature.org- 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView getCount question
Because you are calling getChildCount() before the Views are on the screen. You must call it after the first layout, when the views are visible on screen. On Wed, Apr 9, 2008 at 10:26 PM, Ram [EMAIL PROTECTED] wrote: OK, then I'm not sure why the following test code isn't working String[] testArray = new String[30]; ArrayAdapterString adapter = new ArrayAdapterString(m_context, R.layout.list_row, R.id.textCol1, testArray); list1.setAdapter(adapter); int count = list1.getCount(); int countVisible = list1.getChildCount(); Xml for the listview is ListView android:id=@+id/list1 android:layout_width=wrap_content android:layout_height=0dip android:layout_weight=999 / The listview renders correctly. I see around 12 entries on the first page and I can scroll to see the other list entries The value of list1.getCount() is 30. However, list1.getChildCount() returns 0 I'm using M5-rc14 Ram On Apr 9, 10:16 pm, Romain Guy [EMAIL PROTECTED] wrote: As I just said, listView.getChildCount() returns the number of views currently displayed on screen by ListView. It has nothing to do with the fact that the adapter is bounds by String. On Wed, Apr 9, 2008 at 10:13 PM, Ram [EMAIL PROTECTED] wrote: I forgot to mention that the listview is bound to ArrayAdapterString. ListView.GetChildCount() returns 0 (presumably, because the list elements aren't android views. They are strings from the array adapter.) Do you know how I can find the number of visible strings within the listbox Thanks Ram On Apr 9, 9:11 pm, Romain Guy [EMAIL PROTECTED] wrote: ListView.getChildCount(). On Wed, Apr 9, 2008 at 9:04 PM, Ram [EMAIL PROTECTED] wrote: Hi, ListView.getCount() returns the total number of data items in the listview. Does anyone know how to find out the total number of visible views in the listbox. Alternately, does anyone know how to see whether the listview will scroll or not (i.e. if number of visible views getCount()) -- Romain Guywww.curious-creature.org -- Romain Guywww.curious-creature.org- Hide quoted text - - Show quoted text - -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] LocationManager: getLastKnownLocation and getBestProvider broken?
Do either of these methods work? When I use LocationManager.getBestProvider, I always get a null back no matter what Criteria I pass it. When I use getLastKnownLocation, LocationManagerService gets this exception: LocationManager.getCurrentLocation seems to work fine. 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---