[android-beginners] Re: Tutorials: creating 9-patch drawables using SDK tools
Thanks Paul. I guess, this will take a lot of practice and time getting used to. On Nov 10, 2:03 pm, Paul Townsend deer...@googlemail.com wrote: Hi I use Paint.net to make a small tile like this. then I start the draw9patch and drag the tile into it like so Then all you do is mark the parts that can be stretched (Marked in red) then you will see the the result in the window. You only mark at the top and left sides, left click to mark it and right click will take it away You will notice that you cant alter the image just put dots around the edge. Then just save and drag it into your drawable folder in eclipse. - Original Message - From: Samuh samuh.va...@gmail.com To: Android Beginners android-beginners@googlegroups.com Sent: Tuesday, November 10, 2009 7:23 AM Subject: [android-beginners] Tutorials: creating 9-patch drawables using SDK tools I am new to the concept of 9-patch drawables. In fact, I happened to stumble upon them by chance.I skimmed through the following: http://developer.android.com/guide/developing/tools/draw9patch.html Now, I need some tutorial that can help me understand how to use the draw9patch tool bundled with the SDK. Please help. Thanks. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en bgtile.png 1KViewDownload 1.png 122KViewDownload 2.png 129KViewDownload -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Is your Android app on Archos Market ?
Just a small update We're translated our article at frandroid for english readers : http://www.frandroid.com/6782/the-archos-5-it-for-1e-what-it%e2%80%99... The official announcement should be happened today at appslib.com website. regards On 6 nov, 18:47, arnouf arnaud.far...@gmail.com wrote: The appslib should be updated soon... Relating the showstopper, Archos published a press release regarding this story (http://appslib.com/press/index.html) I think now that each developer can take its point of view about these allegations best On 22 oct, 14:43, Jeffrey Blattman jeffrey.blatt...@gmail.com wrote: On 10/22/09 1:31 AM, arnouf wrote: Hi Jeffrey, On 20 oct, 17:29, Jeffrey Blattmanjeffrey.blatt...@gmail.com wrote: some comments on the appslib market, 1. no way to unpublish an app? Yes you have. When you created an application, you have a link at the bottom to add release or unpublish release (one ar all) i see a link to deactive all releases (it actually says desactive all releases), but it doesn't delete the app from the store. it just deactivates it. that means the app is still on your servers i assume. 2. no way to unpublish an app release? see response above see my response above. 3. no way to edit an app release (comments, binary, or anything else) You have an input box to indicate comments really where? after i publish the release, the only thing i can click on is the publish/unpublish link. -- -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Passing a Hashtable in Intent Extras..
*Correction* : the put statement is: intent.putExtra(table,mHashTable); -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Passing a Hashtable in Intent Extras..
The ClassCastException means that the Java Runtime does not like your request to convert a Serializable into a HashMap. What is less clear is why: but the J2SE API docs give a pretty good clue when they say: Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance. (http://java.sun.com/j2se/1.4.2/docs/api/) On Nov 13, 1:32 am, Samuh samuh.va...@gmail.com wrote: I have a Hashtable, which, I need to pass to another activity. Since, Hashtable is Serializable, I am doing the following: Hashtable mHashTable = new Hashtable(); // load values Intent intent = new Intent(this,SecondActivity.class); intent.put(table,mHashTable); startActivity(intent); In the Second activity, I try to read the extras in OnCreate(..) as: Hashtable table = (Hashtable)getIntent().getSerializableExtra (table); I get ClassCastException at this line in Logcat: 11-13 14:21:15.939: ERROR/AndroidRuntime(922): Caused by: java.lang.ClassCastException: java.util.HashMap What is that I am missing or doing wrong here? Please help. Thanks. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Passing a Hashtable in Intent Extras..
The ClassCastException means that the Java Runtime does not like your request to convert a Serializable into a HashMap. I understand the meaning of ClassCastException; I did skim through the Javadocs docs before posting here. The problem is: I am not casting Serializable to HashMap but a Hashtable. Hashtable table = (Hashtable)getIntent().getSerializableExtra (table); I put Hashtable in the Intent Extras() so I thought the cast was safe. Thanks. On Nov 13, 3:38 pm, Indicator Veritatis mej1...@yahoo.com wrote: The ClassCastException means that the Java Runtime does not like your request to convert a Serializable into a HashMap. What is less clear is why: but the J2SE API docs give a pretty good clue when they say: Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance. (http://java.sun.com/j2se/1.4.2/docs/api/) On Nov 13, 1:32 am, Samuh samuh.va...@gmail.com wrote: I have a Hashtable, which, I need to pass to another activity. Since, Hashtable is Serializable, I am doing the following: Hashtable mHashTable = new Hashtable(); // load values Intent intent = new Intent(this,SecondActivity.class); intent.put(table,mHashTable); startActivity(intent); In the Second activity, I try to read the extras in OnCreate(..) as: Hashtable table = (Hashtable)getIntent().getSerializableExtra (table); I get ClassCastException at this line in Logcat: 11-13 14:21:15.939: ERROR/AndroidRuntime(922): Caused by: java.lang.ClassCastException: java.util.HashMap What is that I am missing or doing wrong here? Please help. Thanks.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Passing a Hashtable in Intent Extras..
Well the first thing that immediately springs to mind is the lack of package prefix in your key string. From the Intent API: The name must include a package prefix, for example the app com.android.contacts would use names like com.android.contacts.ShowAll So your putExtra key should be something like org.myapp.table, to match the package name that you have set in your manifest. I'm not sure if it will fix your problem, but it seems plausible. You should be check for null for casts like this as well, in case the activity is ever called without a table being passed in... Serializable data = getIntent().getSerializableExtra(table); if (data != null) { Hashtable table = (Hashtable)data; } else { // Handle missing table when intent does not have it } Cheers, Sean On Fri, Nov 13, 2009 at 9:35 AM, Samuh samuh.va...@gmail.com wrote: *Correction* : the put statement is: intent.putExtra(table,mHashTable); -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Passing a Hashtable in Intent Extras..
Sorry, I missed this mail, glad to hear you got it working. On Fri, Nov 13, 2009 at 11:07 AM, Samuh samuh.va...@gmail.com wrote: The ClassCastException means that the Java Runtime does not like your request to convert a Serializable into a HashMap. I understand the meaning of ClassCastException; I did skim through the Javadocs docs before posting here. The problem is: I am not casting Serializable to HashMap but a Hashtable. Hashtable table = (Hashtable)getIntent().getSerializableExtra (table); I put Hashtable in the Intent Extras() so I thought the cast was safe. Thanks. On Nov 13, 3:38 pm, Indicator Veritatis mej1...@yahoo.com wrote: The ClassCastException means that the Java Runtime does not like your request to convert a Serializable into a HashMap. What is less clear is why: but the J2SE API docs give a pretty good clue when they say: Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance. (http://java.sun.com/j2se/1.4.2/docs/api/) On Nov 13, 1:32 am, Samuh samuh.va...@gmail.com wrote: I have a Hashtable, which, I need to pass to another activity. Since, Hashtable is Serializable, I am doing the following: Hashtable mHashTable = new Hashtable(); // load values Intent intent = new Intent(this,SecondActivity.class); intent.put(table,mHashTable); startActivity(intent); In the Second activity, I try to read the extras in OnCreate(..) as: Hashtable table = (Hashtable)getIntent().getSerializableExtra (table); I get ClassCastException at this line in Logcat: 11-13 14:21:15.939: ERROR/AndroidRuntime(922): Caused by: java.lang.ClassCastException: java.util.HashMap What is that I am missing or doing wrong here? Please help. Thanks.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Support of JKS Keystore in Android
I got it working. I used KeyTool UIU app. Using it, worked smoothly. If anyone wants details how I did it, send me an email. I will document it and post it on list. Thanks, Swapnil On Fri, Nov 13, 2009 at 12:53 PM, swapnil kamble swap.kam...@gmail.comwrote: Hi, I am having Java SSL based server and I want to connect android SSL supported client to it. My keystore in Java is JKS, but android says no JKS implementation found. It supports BKS. Is there any way to have JKS support for android ? If not then how can use BKS in Java. I am trying using PKCS12, but documentation says using PKCS12 for trustanchors purpose is not supported. Does anybody has any suggestions about this issue ? -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Passing a Hashtable in Intent Extras..
Well I don't know why the intent is converting your Hashtable to a HashMap, the basic serialisation process returns the right thing. You should be able to work around the problem by passing the HashMap into a new Hashtable instance, however, similar to this: HashtableString, String table = null; Serializable data = getIntent().getSerializableExtra(table); if (data != null) { table = new HashtableString, String((HashMapString, String)data); } Not perfect, but should get you what you want. I suspect there is some lower-level issue with using Hashtable in the Android internals (this isn't the only time I've heard of a problem when using Hashtable). I believe the Android platform prefers the use of the more recent HashMap class - alongside Collections.synchronizedMap if you need it to be thread-safe. Cheers, Sean On Fri, Nov 13, 2009 at 11:42 AM, Samuh samuh.va...@gmail.com wrote: Sean, Please don't be sorry. I would be more than glad to hear any advices that you have to offer; it might come handy some other time. :) What you have said is more of a convention and better practice to write safe and robust code. I am fine with that. My main problem is, even if I put a Hashtable in the Intent extras using putExtra(Serializable), when I fetch it[using getSerializableExtra(..)] I have to cast it to a HashMap and NOT Hashtable. If I cast it to a Hashtable, I get a ClassCastException. I am sure there must be some reason for this which I, unfortunately fail to understand. On Nov 13, 4:19 pm, Sean Hodges seanhodge...@googlemail.com wrote: Sorry, I missed this mail, glad to hear you got it working. On Fri, Nov 13, 2009 at 11:07 AM, Samuh samuh.va...@gmail.com wrote: The ClassCastException means that the Java Runtime does not like your request to convert a Serializable into a HashMap. I understand the meaning of ClassCastException; I did skim through the Javadocs docs before posting here. The problem is: I am not casting Serializable to HashMap but a Hashtable. Hashtable table = (Hashtable)getIntent().getSerializableExtra (table); I put Hashtable in the Intent Extras() so I thought the cast was safe. Thanks. On Nov 13, 3:38 pm, Indicator Veritatis mej1...@yahoo.com wrote: The ClassCastException means that the Java Runtime does not like your request to convert a Serializable into a HashMap. What is less clear is why: but the J2SE API docs give a pretty good clue when they say: Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance. (http://java.sun.com/j2se/1.4.2/docs/api/) On Nov 13, 1:32 am, Samuh samuh.va...@gmail.com wrote: I have a Hashtable, which, I need to pass to another activity. Since, Hashtable is Serializable, I am doing the following: Hashtable mHashTable = new Hashtable(); // load values Intent intent = new Intent(this,SecondActivity.class); intent.put(table,mHashTable); startActivity(intent); In the Second activity, I try to read the extras in OnCreate(..) as: Hashtable table = (Hashtable)getIntent().getSerializableExtra (table); I get ClassCastException at this line in Logcat: 11-13 14:21:15.939: ERROR/AndroidRuntime(922): Caused by: java.lang.ClassCastException: java.util.HashMap What is that I am missing or doing wrong here? Please help. Thanks.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Is your Android app on Archos Market ?
I just checked the press release. I do have a couple of small things to say. For one, this is definitely for the courts to decide. For two, We as the community don't know what happened so if either side comes in and tries to bad mouth the other, we need to ignore that. And lastly, I from what I've seen, Archos has been much more professional in its actions so far. For example, Al has outrightly attacked them on the forums, stating his course of legal action. However, this really is not the appropriate place to share such things. By posting, I think Al could be in danger of libel (defaming a company in writing with false accusations). Archos, on the other hand, has not been flaming anyone and only responded to the allegations. I think it's good to remember what should be posted in this mailing list and what shouldn't - I don't think if you have a legal case against somebody you should be posting anything until you've reached an outcome. Otherwise you could be skimming the edges of legality. -niko On Nov 13, 3:26 am, arnouf arnaud.far...@gmail.com wrote: Just a small update We're translated our article at frandroid for english readers :http://www.frandroid.com/6782/the-archos-5-it-for-1e-what-it%e2%80%99... The official announcement should be happened today at appslib.com website. regards On 6 nov, 18:47, arnouf arnaud.far...@gmail.com wrote: The appslib should be updated soon... Relating the showstopper, Archos published a press release regarding this story (http://appslib.com/press/index.html) I think now that each developer can take its point of view about these allegations best On 22 oct, 14:43, Jeffrey Blattman jeffrey.blatt...@gmail.com wrote: On 10/22/09 1:31 AM, arnouf wrote: Hi Jeffrey, On 20 oct, 17:29, Jeffrey Blattmanjeffrey.blatt...@gmail.com wrote: some comments on the appslib market, 1. no way to unpublish an app? Yes you have. When you created an application, you have a link at the bottom to add release or unpublish release (one ar all) i see a link to deactive all releases (it actually says desactive all releases), but it doesn't delete the app from the store. it just deactivates it. that means the app is still on your servers i assume. 2. no way to unpublish an app release? see response above see my response above. 3. no way to edit an app release (comments, binary, or anything else) You have an input box to indicate comments really where? after i publish the release, the only thing i can click on is the publish/unpublish link. -- -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Support of JKS Keystore in Android
ya tell me On Fri, Nov 13, 2009 at 4:59 PM, swapnil kamble swap.kam...@gmail.comwrote: I got it working. I used KeyTool UIU app. Using it, worked smoothly. If anyone wants details how I did it, send me an email. I will document it and post it on list. Thanks, Swapnil On Fri, Nov 13, 2009 at 12:53 PM, swapnil kamble swap.kam...@gmail.comwrote: Hi, I am having Java SSL based server and I want to connect android SSL supported client to it. My keystore in Java is JKS, but android says no JKS implementation found. It supports BKS. Is there any way to have JKS support for android ? If not then how can use BKS in Java. I am trying using PKCS12, but documentation says using PKCS12 for trustanchors purpose is not supported. Does anybody has any suggestions about this issue ? -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- ...Swapnil || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare RamaHare Rama Rama RamaHare Hare || -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- Pankaj Sharma Project Engineer Mobile-09911221752 -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] plz help me ... how to implement camera intent correctly?
hi !! I am working to find out a solution to use Intent to call camera app and then call my custom function in overridden onActivityResult(). This code actually displays camera preview and return like i want it to but no actual snap is taken by it. There is no new image added to the gallery. :S Button takePictureButton = (Button) this.findViewById (R.id.camera); takePictureButton.setOnClickListener(new View.OnClickListener () { public void onClick(View v) { ContentValues values = new ContentValues(); values.put(Media.TITLE, IMAGE); values.put(Media.DISPLAY_NAME, Image Captured by Camera); Uri uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values); //Intent i = new Intent(android.media.action.action); Intent i = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); i.putExtra(output, uri); startActivityForResult(i, ACTIVITY_TAKE_PICTURE_WITH_INTENT); This is my onActivityResult() code @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { //super.onActivityResult(requestCode, resultCode, data); if (requestCode == ACTIVITY_TAKE_PICTURE_WITH_INTENT) { if (resultCode == RESULT_OK) { ///here i will call my function Toast.makeText(temp1.this, done !!, Toast.LENGTH_SHORT).show(); } } } Plz help me out what i am missing. I just used this code from a post but being a newbie i have limited know how. so kindly explain with suggestion. Regards, wahib -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Referenced part does not exist yet
Having two weird errors with one of my Android projects. What might be wrong? eclipse.buildId=M20090917-0800 java.version=1.6.0_14 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=hu_HU Framework arguments: -product org.eclipse.epp.package.java.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product Error Wed Nov 11 18:01:07 EET 2009 Referenced part does not exist yet: org.eclipse.ui.views.ProblemView. Error Wed Nov 11 17:44:23 EET 2009 Unable to restore source lookup path - unknown type source container type specified: org.eclipse.cdt.debug.core.containerType.mapping -- Márton -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: 3G connection sometimes missing from emulator
anyone on this one? this is the output for LogCat W level when the emulator starts without 3G icon. 11-13 20:04:37.287: ERROR/vold(538): Error opening switch name path '/ sys/class/switch/test2' (No such file or directory) 11-13 20:04:37.296: ERROR/vold(538): Error bootstrapping switch '/sys/ class/switch/test2' (No such file or directory) 11-13 20:04:37.338: ERROR/vold(538): Error opening switch name path '/ sys/class/switch/test' (No such file or directory) 11-13 20:04:37.338: ERROR/vold(538): Error bootstrapping switch '/sys/ class/switch/test' (No such file or directory) 11-13 20:05:08.047: ERROR/MemoryHeapBase(568): error opening /dev/ pmem: No such file or directory 11-13 20:05:08.057: ERROR/SurfaceFlinger(568): Couldn't open /sys/ power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake 11-13 20:05:08.180: ERROR/libEGL(568): couldn't load libhgl.so library (Cannot load library: load_library[984]: Library 'libhgl.so' not found) 11-13 20:05:08.207: WARN/HAL(568): load: module=/system/lib/hw/ copybit.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.goldfish.so' not found 11-13 20:05:08.218: WARN/HAL(568): load: module=/system/lib/hw/ copybit.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.default.so' not found 11-13 20:05:08.218: WARN/SurfaceFlinger(568): ro.sf.lcd_density not defined, using 160 dpi by default. 11-13 20:05:08.237: WARN/HAL(568): load: module=/system/lib/hw/ copybit.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.goldfish.so' not found 11-13 20:05:08.237: WARN/HAL(568): load: module=/system/lib/hw/ copybit.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/copybit.default.so' not found 11-13 20:05:08.237: WARN/HAL(568): load: module=/system/lib/hw/ overlay.goldfish.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/overlay.goldfish.so' not found 11-13 20:05:08.247: WARN/HAL(568): load: module=/system/lib/hw/ overlay.default.so error=Cannot load library: load_library[984]: Library '/system/lib/hw/overlay.default.so' not found 11-13 20:05:09.097: WARN/UsageStats(568): Usage stats version changed; dropping 11-13 20:05:09.337: ERROR/libEGL(585): couldn't load libhgl.so library (Cannot load library: load_library[984]: Library 'libhgl.so' not found) 11-13 20:05:11.347: WARN/PackageManager(568): Running ENG build: no pre-dexopt! 11-13 20:05:14.489: WARN/PackageParser(568): Intent filter for activity ActivityIntentInfo{43801668 com.android.camera.ReviewImage} defines no actions 11-13 20:05:18.677: WARN/PackageManager(568): Unknown permission android.permission.ADD_SYSTEM_SERVICE in package com.android.phone 11-13 20:05:18.687: WARN/PackageManager(568): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.providers.contacts 11-13 20:05:18.687: WARN/PackageManager(568): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.cp in package com.android.providers.contacts 11-13 20:05:18.697: WARN/PackageManager(568): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.development 11-13 20:05:18.697: WARN/PackageManager(568): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.ALL_SERVICES in package com.android.development 11-13 20:05:18.697: WARN/PackageManager(568): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.YouTubeUser in package com.android.development 11-13 20:05:18.697: WARN/PackageManager(568): Unknown permission com.google.android.googleapps.permission.ACCESS_GOOGLE_PASSWORD in package com.android.development 11-13 20:05:18.707: WARN/PackageManager(568): Unknown permission com.google.android.providers.gmail.permission.WRITE_GMAIL in package com.android.settings 11-13 20:05:18.707: WARN/PackageManager(568): Unknown permission com.google.android.providers.gmail.permission.READ_GMAIL in package com.android.settings 11-13 20:05:18.707: WARN/PackageManager(568): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.settings 11-13 20:05:18.716: WARN/PackageManager(568): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.google.android.providers.enhancedgooglesearch 11-13 20:05:18.716: WARN/PackageManager(568): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.OTHER_SERVICES in package com.google.android.providers.enhancedgooglesearch 11-13 20:05:18.726: WARN/PackageManager(568): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.browser 11-13 20:05:18.726: WARN/PackageManager(568): Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package com.android.contacts 11-13 20:05:19.546: WARN/ActivityManager(568): Unable to start service Intent { act=android.accounts.IAccountsService
[android-beginners] emulator gets lost from Eclipse
Hello, After a while the emulator gets lost from the Eclipse Devices space. What might be wrong? (on win7) -- Márton -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: emulator gets lost from Eclipse
now sometimes I can't even start the emulator 2009-11-13 20:21:05 - test2]-- [2009-11-13 20:21:05 - test2]Android Launch! [2009-11-13 20:21:05 - test2]adb is running normally. [2009-11-13 20:21:05 - test2]Performing com.test2.Connection activity launch [2009-11-13 20:21:05 - test2]Automatic Target Mode: launching new emulator with compatible AVD 'my_avd' [2009-11-13 20:21:05 - test2]Launching a new emulator with Virtual Device 'my_avd' [2009-11-13 20:21:06 - test2]New emulator found: emulator-5554 [2009-11-13 20:21:06 - test2]Waiting for HOME ('android.process.acore') to be launched... [2009-11-13 20:21:39 - test2]emulator-5554 disconnected! Cancelling 'com.test2.Connection activity launch'! On Nov 13, 8:15 pm, Marton Kodok pentiu...@gmail.com wrote: Hello, After a while the emulator gets lost from the Eclipse Devices space. What might be wrong? (on win7) -- Márton -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Problem transitioning to TabActivity
I wish I had an answer for you. I have seen coding with tabs using Intents to be very flakey. It will work, then not work. I'll restart the emulator and then it will work again. Very frustrating. I think there is a bug somewhere in Android, but I can't prove it. Did you ever get you issue worked out? On Nov 4, 8:54 am, Mike mrmikeree...@gmail.com wrote: Hi all, I am trying to start activity to a TabActivity intent and I keep getting the same error. I have tried to make this as simplistic as possible code wise...but no luck. My code is below the error message. java.lang.RuntimeException: Unable to start activity ComponentInfo {com.valpak.android/com.valpak.android.TabLayout}: java.lang.RuntimeException: Unable to start activity ComponentInfo {com.valpak.android/com.valpak.android.Categories}: java.lang.RuntimeException: Your content must have a TabHost whose id attribute is 'android.R.id.tabhost' 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2401) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2417) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.ActivityThread.access$2100(ActivityThread.java:116) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.os.Handler.dispatchMessage(Handler.java:99) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.os.Looper.loop(Looper.java:123) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.ActivityThread.main(ActivityThread.java:4203) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at java.lang.reflect.Method.invokeNative(Native Method) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at java.lang.reflect.Method.invoke(Method.java:521) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:791) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at dalvik.system.NativeStart.main(Native Method) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): Caused by: java.lang.RuntimeException: Unable to start activity ComponentInfo {com.valpak.android/com.valpak.android.Categories}: java.lang.RuntimeException: Your content must have a TabHost whose id attribute is 'android.R.id.tabhost' 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2401) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.ActivityThread.startActivityNow(ActivityThread.java:2242) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.LocalActivityManager.moveToState(LocalActivityManager.java: 127) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.LocalActivityManager.startActivity (LocalActivityManager.java:339) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.widget.TabHost$IntentContentStrategy.getContentView (TabHost.java:631) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.widget.TabHost.setCurrentTab(TabHost.java:317) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.widget.TabHost.addTab(TabHost.java:210) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at com.valpak.android.TabLayout.onCreate(TabLayout.java:26) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2364) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): ... 11 more This is called in MyApp.java startActivity(new Intent(getApplicationContext(), TabLayout.class)); public class TabLayout extends TabActivity{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TabHost tabHost = getTabHost(); LayoutInflater.from(this).inflate(R.layout.tabs, tabHost.getTabContentView(), true); tabHost.addTab(tabHost.newTabSpec(tab1) .setIndicator(Grid).setContent(new Intent(this, Categories.class))); } } Here is tabs.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/tabLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent /LinearLayout Any help would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to
[android-beginners] Re: Referenced part does not exist yet
Shouldn't you be using Java 1.5 instead of 1.6? Also, since the choice of Eclipse Perspective affects which views are presented, could you tell us which perspective you were using when this happened? On Nov 13, 10:01 am, Marton Kodok pentiu...@gmail.com wrote: Having two weird errors with one of my Android projects. What might be wrong? eclipse.buildId=M20090917-0800 java.version=1.6.0_14 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=hu_HU Framework arguments: -product org.eclipse.epp.package.java.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product Error Wed Nov 11 18:01:07 EET 2009 Referenced part does not exist yet: org.eclipse.ui.views.ProblemView. Error Wed Nov 11 17:44:23 EET 2009 Unable to restore source lookup path - unknown type source container type specified: org.eclipse.cdt.debug.core.containerType.mapping -- Márton -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: changing a package name
Without incident? Lucky you! But as we can see from all the people in this group who have problems nobody else seems to have, that does not mean that it is a safe procedure. On the contrary: it is all too common nowadays that what works on one system fails miserably on another, despite the Java promise of write once, run anywhere. Now the reason I said we want 1.5 instead of 1.6 is that as http://groups.google.com/group/android-platform/browse_thread/thread/bdedb17dbc349996 describes, the @Override annotation is not consistent with Java 1.6. So I am surprised that you have been able to use it without incident. Have you been omitting this annotation? On Nov 11, 12:05 pm, Mark Murphy mmur...@commonsware.com wrote: Indicator Veritatis wrote: NB: the tutorials go on and on glowingly about Java 1.6, but you really want 1.5 for Android. Why do you say that? I've been using 1.6 without incident. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: string.xml
Bingo! The original question needs to be re-worded. Until that happens, the OP is not going to get an answer he will find useful. On Nov 11, 1:54 pm, Justin Anderson janderson@gmail.com wrote: Unless I misunderstood your question... If that is the case, then can you please explain a little more what you are wanting to do? -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Wed, Nov 11, 2009 at 2:53 PM, Justin Anderson janderson@gmail.comwrote: 1) Search this group with the following: XML Array 2) Click on the very first result. It should be called Using XML array in program 3) Do some work and read through the post... it tells you how to do it. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Wed, Nov 11, 2009 at 2:49 PM, android darioamor...@gmail.com wrote: where is the answer?? On 11 Nov, 22:43, Justin Anderson janderson@gmail.com wrote: Ummm... have you tried searching the group? I searched the group with XML array and the very first result gave me the answer. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Wed, Nov 11, 2009 at 2:36 PM, android darioamor...@gmail.com wrote: you can put in the ArrayList string.xml how do? -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com android-beginners%2bunsubscr...@googlegroups.comandroid-beginners%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: How hard would it be to make a second language of sorts for the Android?
I second the motion. Not that I share Stephen's enthusiasm for the 'greatness' of Java, but I do recognize that it has the market momentum now that makes it well worth the effort to learn. Especially now that Android uses it. The tutorials at Sun/Javasoft are pretty good, too. You would be hard pressed to find better online tutorials for any CS topic than those for Java at http://java.sun.com/docs/books/tutorial. Start with Trails Covering the Basics (but you could omit the tutorial on Swing). Finally, both the API reference and the tutorials for Android will make a lot more sense to you once you have finished those trails of the Sun tutorials. You will make much faster progress learning Android. So don't hesitate, start those Sun tutorials ASAP! On Nov 11, 8:17 am, Stephen Walsh stephenwalsh@gmail.com wrote: It would probably be easier to just learn Java. It's a great language that has been around for years and is very useful in learning OOP for applications beside Android. Stephen Walsh On Fri, Nov 6, 2009 at 17:14, Anthony Walker anthonyrichardwal...@gmail.com wrote: I just started reading up on developing apps for Android and it's quite confusing as I don't know any Java. So I was thinking how hard would it be to make a simple point click Flash application that modifies your Eclipse workspace files? For example, in a game, you want your player to go left when you roll the trackball left. So in the app maker you click the character, select on - trackball left move left at a speed of __ Then it inserts template code into a few files in the workspace to make that happen, all the variables such as button, speed, direction, all defined by you. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: AVD (broken?)
Yes, Shadana is right. But don't panic if you see something a little different. Usually, I see the home screen or lock screen, but sometimes the first thing I see after the word 'Android' finally disappears is the running application. I haven't been able to figure out the pattern yet. But that may be simply because I haven't considered it worth the effort to solve this little mystery. BTW: all my Android experience is running Eclipse under Fedora11. Under Windows, results may be somewhat different. On Nov 11, 8:17 am, Shadana shadana.my...@gmail.com wrote: The screen you see is the AVD loading screen. Allow it to run for a while and then a different Android screen will appear. After the second Android screen, you should see your Home screen or the Lock screen. On Nov 9, 10:13 pm, thefiestysoldier thefiestysold...@gmail.com wrote: When I start an AVD through Eclipse with all of the attributes loaded it shows up with white text on a blck screen saying Android with a blinking cursor at the end. I am using SDK 2.0 level 5 on Ubuntu Jaunty -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: R cannot be resolved
In general, the procedure you give is a useful one. Unfortunately, for this particular problem (Eclipse complaining that R.main.java does not resolve), that procedure will bring in the wrong 'R'. Instead, what the user needs to do is get the IDE to launch the emulator. That will rebuild the object 'R.main.java' from 'main.xml', forcing the IDE to recognize R.main.java. I have been told that this is an Eclipse bug. Now the hard part is getting the IDE to launch the emulator. I haven't figured this one out entirely myself yet. My temporary workaround is to close the project, delete the project, and start all over again after closing and relaunching Eclipse. Clearly this workaround is not acceptable for a project of substantial size. But it is tolerable for going through the Android tutorials. I'm still waiting for someone to cover a more usable workaround in this forum, which really is the ideal place for it. Finally, this question (or some one of the many minor variants of it) has been asked often enough, the answer really belongs in the FAQ. After all, by now, it is clear: it really is a frequently asked question. On Nov 11, 7:50 am, eclipsed4utoo ryanalford...@gmail.com wrote: If you are using Eclipse as your IDE, put the cursor on the R and hit Ctrl + Shift + O (the letter O). That will automatically add the needed import statement. Ryan On Nov 11, 10:42 am, jbrohan jbro...@gmail.com wrote: Look at the other files in src/ There may be an R theredelete it! On Nov 8, 8:00 am, benjamin goth ben.fighting.h...@googlemail.com wrote: Hi I was doing fine going through the tutorials but suddenly whatever SDK I use to build against I get that R cannot be resolved I have the R.JAVA file in my gen folder and have not used the wrong import pleaeeese someone point out where I am being stupid Many thanks Ben -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Can we get Driving Direction using SDK?
Hi, I am developing an application that has a screen to show the current location of user. Further I need to add feature for showing the driving direction to user from his current location to any location. I have gone through the packages and classes available in android SDK 1.5, 1.6, 2.0. But I couldn't find any classes that can be used to find the driving direction between two point. So it is possible to get the driving directions using the given android SDK. Please provide your views for this. Regards, android-webline -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en