[android-developers] Re: java.lang.RuntimeException: android.view.InflateException : Binary XML file: Error inflating class
Thanks a lot!! It worked. On Mar 26, 10:23 am, Romain Guy romain...@android.com wrote: To inflate a View from XML you need to implement the constructors that take an AttributeSet. The constructor that only takes a Context is not invoked when inflating from XML. On Fri, Mar 25, 2011 at 10:06 PM, Atul Prakash atul.prakas...@gmail.comwrote: Dear Friends, I am trying to inflate View class from xml resource. Moreover i am following all the conventions of Building Custom Components given on Android developer site. I have defined View class as subclass of My Activity class which is as follows: public class MyApp extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } public static class MyAppView extends View { Bitmap menu; int menudemo[]; public MyAppView(Context context) { super(context); // TODO Auto-generated constructor stub menudemo = new int[] {R.drawable.menu,R.drawable.icon}; } @Override public void onDraw(Canvas canvas) { Resources res = getResources(); canvas.drawBitmap(BitmapFactory.decodeResource(res, menudemo[0]), 0, 0, null); System.gc(); invalidate(); } } } My main.xml is as follows: ?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 view class=com.myapp.MyApp$MyAppView android:id=@+id/my android:layout_width=fill_parent android:layout_height=fill_parent / TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / /LinearLayout I do not know what is wrong with my coding, but when i am running this application i am getting run time exception like: 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): FATAL EXCEPTION: main 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp/com.myapp.MyApp}: android.view.InflateException: Binary XML file line #7: Error inflating class com.myapp.MyApp$MyAppView 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2663) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at android.os.Handler.dispatchMessage(Handler.java:99) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at android.os.Looper.loop(Looper.java:123) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at android.app.ActivityThread.main(ActivityThread.java:4627) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at java.lang.reflect.Method.invokeNative(Native Method) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at java.lang.reflect.Method.invoke(Method.java:521) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at dalvik.system.NativeStart.main(Native Method) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class com.myapp.MyApp$MyAppView 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at android.view.LayoutInflater.createView(LayoutInflater.java:503) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 03-25 12:28:50.842: ERROR/AndroidRuntime(1107): at
[android-developers] Re: BadParcelableException
Kostya: thank you, your suggestions solved my problem But I think when I call data.getSerializableExtra(SETTINGS) and I'm sure that there is no SETTINGS extra in data intent I shouldn't get ClassNotFoundException. Maybe the problem is that it tries to read everything, not only the SETTINGS parameter and there is an object in the intent for which I don't have the class. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Custom TTF Font Problem
Hello, As I know, android supports standard true-type fonts and we can use custom TTF fonts using by createFromAsset() method. Some TTF fonts of WINDOWS works well, but some TTF fonts don't work. I put TTF font(wingding.ttf) into /assets/fonts/ directory. The wingding.ttf is symbol font of WINDOWS. Symbol NOT displayed. What's the problem ? Pls let me know whether font size is problem. What else ? Here is my code. - TextView tv = (TextView) findViewById(R.id.TextView01); Typeface mTypeface = Typeface.createFromAsset(getAssets(), fonts/ wingding.ttf); tv.setTypeface(mTypeface); tv.setText(123456789ABCDEFGabcdefg); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] display image from net
this may be more like a java question I just want to display an image placed on server onto my imageView The following is the code which m using :-- ImageView iv; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); iv=(ImageView)findViewById(R.id.iv); String stringURL = https://graph.facebook.com/618306968/ picture?access_token + =103931556876|6ad1235e03c6472b20430aad-618306968| cDUe563_MNfHUeUiTpqqh8mB0o8; InputStream is = null; BufferedInputStream bis = null; Bitmap bmp = null; try { URL url = new URL(stringURL); URLConnection conn = url.openConnection(); conn.connect(); is = conn.getInputStream(); bis = new BufferedInputStream(is); bmp = BitmapFactory.decodeStream(bis); } catch (MalformedURLException e) { } catch (IOException e) { }catch (Exception e) { } finally { try { if( is != null ) is.close(); if( bis != null ) bis.close(); } catch (IOException e) { } } iv.setImageBitmap(bmp); } I am not getting any error but also my imageview is empty and is not showing anything -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: BadParcelableException
No, you can't sure that Motorola's contact picker doesn't have an extra used for its own purposes. And it does, in fact, and its class is not defined in your application. To be fair, they could have used a qualified name (com.motoblur.settings or something), but so could you. 26.03.2011 9:56 пользователь b_t bartata...@gmail.com написал: Kostya: thank you, your suggestions solved my problem But I think when I call data.getSerializableExtra(SETTINGS) and I'm sure that there is no SETTINGS extra in data intent I shouldn't get ClassNotFoundException. Maybe the problem is that it tries to read everything, not only the SETTINGS parameter and there is an object in the intent for which I don't have the class. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Open GL texture is shown on emulator but not on the mobile
My resources are in the res\drawable-nodpi directory. It is a PNG image with 256*256 size. Shouldn't that be enough? On Mar 25, 10:34 pm, String sterling.ud...@googlemail.com wrote: Make sure your textures are power of two dimensioned. The emulator doesn't care, but most real devices do. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: AlarmManager doesnot fire after device get Boot-up
Thanks, That works Again I resetting the alarm @ bootup... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Amazon Appmarket is now open!
Unfortunately, from what I've seen, updates take just as long to go through their process as any normal submission. I currently have an update sitting in their system that has been in it for a week already (I'm almost ready to release the next update). This is definitely something they need to improve upon - and I've sent them feedback to that effect. I encourage others do too. IMO, agile deployment is crucial for us one-man developers (and is one of our few advantages over the big development houses) - as you mention, not having that capability on the Amazon market could become a problem. Of course - unless you submit to the Amazon appstore far in advance of submitting to the Android market, you'll be receiving your bug reports from the market before it goes live on Amazon. In that case, you can simply contact the Amazon appstore and ask them to cancel/reset the submission there (I've tried it - they can do it). Not sure whether they can roll back a version after a new one has gone live, but they probably can do that too. Regards, Michael A. On Mar 26, 5:21 am, Brill Pappin bpap...@sixgreen.com wrote: I have once or twice needed to deploy an update hours after a deployment because of sill setting i forgot to deploy, or some bug on a particular platform that I missed during testing. If it took two weeks for my customers to get an update, I think I'd have lost them. - Brill Pappin Sixgreen Labs Inc. On 2011-03-25, at 7:13 PM, Nathan wrote: On Mar 25, 11:37 am, Nathan critter...@crittermap.com wrote: On Mar 25, 11:20 am, TreKing treking...@gmail.com wrote: Update, they refunded my accidental purchase. *** I love these people. Well, gee, there goes my one sale! ;) Nathan I guess it wasn't Treking. This one person says that he can't see my latest update. Funny, I don't see any button for submitting an update. Perhaps I'll have to ask their support about that. I certainly hope an update doesn't take as long as submitting the first time, which was three and a half months. Yes, I know, it was two weeks for most of you. They just forgot about me for a long time. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Bluetooth
So basically I will have a background thread that periodically tried to connec and immediate disconnect? On Mar 25, 4:35 pm, Kristopher Micinski krismicin...@gmail.com wrote: On Fri, Mar 25, 2011 at 4:53 AM, ehpaul hansp...@gmail.com wrote: Hello, I am writing an android program that I need to know when a bluetooth device (I know the Mac) is in range. The program also needs to be aware when the device is not in range. Is there any way to do this without establishing a connection? Not that I've seen from the Bluetooth API exposed to the user. I don't understand the underlying protocol horribly well, but you need to actually scan for the uuid using SDP, which requires a call to the API. When the device is in range, I am able to call BluetoothAdapter.getRemoteDevice and retrieve the friendly name. But when I am not in range, it seems this information is cached. I was thinking if I can use the friendly name as an indicator whether the device is within range (i.e If friendly name is not null, then it's in range). I am certain there is better way to do this. But it seems the only way is to establishing a connection. I don't think there is a better way, at least with the current API. Unless by better way you mean a more elaborate synchronization mechanism or something like that. But yes, I think at least from the API exposed by the android system, you have to do polling. (I wanted to do what you described too, I think it's a common thing, but perhaps not the anticipated use of BT and / or the android API.) Kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] display image from net
welll i have solved dis one now i am using following code Bitmap bitmap = null; InputStream in = null; try { URL url = new URL(URL); URLConnection conn = url.openConnection(); /* HttpsURLConnection cone = url.*/ conn.connect(); in = conn.getInputStream(); bitmap = BitmapFactory.decodeStream(in); in.close(); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } return bitmap; But the problem occuring is dat my url is https and it is giving me an ssl error On Sat, Mar 26, 2011 at 2:06 PM, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com wrote: this may be more like a java question I just want to display an image placed on server onto my imageView The following is the code which m using :-- ImageView iv; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); iv=(ImageView)findViewById(R.id.iv); String stringURL = https://graph.facebook.com/618306968/ picture?access_token + =103931556876|6ad1235e03c6472b20430aad-618306968| cDUe563_MNfHUeUiTpqqh8mB0o8; InputStream is = null; BufferedInputStream bis = null; Bitmap bmp = null; try { URL url = new URL(stringURL); URLConnection conn = url.openConnection(); conn.connect(); is = conn.getInputStream(); bis = new BufferedInputStream(is); bmp = BitmapFactory.decodeStream(bis); } catch (MalformedURLException e) { } catch (IOException e) { }catch (Exception e) { } finally { try { if( is != null ) is.close(); if( bis != null ) bis.close(); } catch (IOException e) { } } iv.setImageBitmap(bmp); } I am not getting any error but also my imageview is empty and is not showing anything -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Encrypt Files
hello I tried this code but I have a problem with the exception code import java.security.*; import javax.crypto.*; // // encrypt and decrypt using the DES private key algorithm public class PrivateExample { public static void main(String[] args) throws Exception { // // check args and get plaintext if (args.length != 1) { System.err.println(Usage: java PrivateExample text); System.exit(1); } //byte[] plainText = args[0].getBytes(UTF8); String ss = Hello world, haris is here!; byte[] plainText = ss.getBytes(); // // get a DES private key System.out.println(\nStart generating DES key); KeyGenerator keyGen = KeyGenerator.getInstance(DES); keyGen.init(56); Key key = keyGen.generateKey(); System.out.println(Finish generating DES key); // // get a DES cipher object and print the provider Cipher cipher = Cipher.getInstance(DES/ECB/PKCS5Padding); System.out.println(\n + cipher.getProvider().getInfo()); // // encrypt using the key and the plaintext System.out.println(\nStart encryption); cipher.init(Cipher.ENCRYPT_MODE, key); byte[] cipherText = cipher.doFinal(plainText); System.out.println(Finish encryption: ); System.out.println(new String(cipherText, UTF8)); // // decrypt the ciphertext using the same key System.out.println(\nStart decryption); cipher.init(Cipher.DECRYPT_MODE, key); byte[] newPlainText = cipher.doFinal(cipherText); System.out.println(Finish decryption: ); System.out.println(new String(newPlainText, UTF8)); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] In-app billing does not work - although everything has been checked
Hi! I am including In-app billing in a new Android application I am currently working on. The project is nearly finished and it should go live as soon as in-app billing goes live. In this project I want that users can donate to support the application. However, I can not get In-app billing to work, although I think I did everything right. Every time it is showing me that the product is unavailable. Here is the logcat shortly after clicking the button to purchase the item (product ID donate_1) and after closing the Android Market dialog: 03-26 12:07:42.440: DEBUG/More(12297): buying: donate_1 03-26 12:07:42.440: DEBUG/BillingService(12297): RequestPurchase 03-26 12:07:42.450: DEBUG/BillingService(12297): request id: 8723043450188864909 03-26 12:07:42.450: INFO/ActivityManager(96): Starting: Intent { act=android.intent.action.VIEW cmp=com.android.vending/.billing.InAppBuyPageActivity (has extras) } from pid -1 03-26 12:07:42.770: INFO/ActivityManager(96): Displayed com.android.vending/.billing.InAppBuyPageActivity: +313ms device shows market dialog that product is unavailable. 03-26 12:12:28.500: INFO/BillingService(12297): handleCommand() action: com.android.vending.billing.RESPONSE_CODE 03-26 12:12:28.500: DEBUG/BillingService(12297): RequestPurchase: RESULT_ITEM_UNAVAILABLE 03-26 12:12:28.500: DEBUG/More(12297): donate_1: RESULT_ITEM_UNAVAILABLE 03-26 12:12:28.500: INFO/More(12297): purchase failed This is what I checked: 1) I correctly signed and uploaded my APK file to the developer console and saved it as draft, and I installed it on my real device. 2) I ensured that my test account, e.g. example_t...@googlemail.com, is listed as test account (the developer account is a different one, let's say example_...@googlemail.com) and is the primary account on my device. 3) The product donate_1 (unmanaged because multiple donations should be possible) is listed as published and has a price of 0.79 €. 4) All static responses triggered by android.test.purchased etc. have been tested and work. 5) Of course the Android Market is checked to have the latest version (2.3.4). So I believe I checked all points from http://developer.android.com/guide/market/billing/billing_testing.html#billing-testing-real - and I have no idea why it still does not work. Maybe a bug? It wouldn't be the first time that ...@googlemail.com addresses make problems, but ...@gmail.com do not. But that is just my guess. Thanks in advance regards Marc Reichelt || http://www.marcreichelt.de/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to investigate the memory leak in jni method?
Hi, I found the investigation of jni memory leak is too hard to execute. Anybody can give some clues for such problem?? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] In-app billing does not work - although everything has been checked
I am also getting ITEM_UNAVAILABLE for my own product item with both a test account and my developer's account. The application is uploaded but not published, and so it the item. In addition, purchasing authorization for android.test* items under the test account never completes. FWIW, the product list editing page says this: An in-app product will appear UNPUBLISHED until the owning application is PUBLISHED, at which point the in-app product's publishing state applies. Please use the application editor to modify the application's publishing state. Not sure what this means for testing. Also, the License Test Response field in the profile page (where you set up test accounts) doesn't appear to have any codes specific to in-app billing, just codes for LVL. -- Kostya 26.03.2011 14:32, Marc Reichelt пишет: Hi! I am including In-app billing in a new Android application I am currently working on. The project is nearly finished and it should go live as soon as in-app billing goes live. In this project I want that users can donate to support the application. However, I can not get In-app billing to work, although I think I did everything right. Every time it is showing me that the product is unavailable. Here is the logcat shortly after clicking the button to purchase the item (product ID donate_1) and after closing the Android Market dialog: 03-26 12:07:42.440: DEBUG/More(12297): buying: donate_1 03-26 12:07:42.440: DEBUG/BillingService(12297): RequestPurchase 03-26 12:07:42.450: DEBUG/BillingService(12297): request id: 8723043450188864909 03-26 12:07:42.450: INFO/ActivityManager(96): Starting: Intent { act=android.intent.action.VIEW cmp=com.android.vending/.billing.InAppBuyPageActivity (has extras) } from pid -1 03-26 12:07:42.770: INFO/ActivityManager(96): Displayed com.android.vending/.billing.InAppBuyPageActivity: +313ms device shows market dialog that product is unavailable. 03-26 12:12:28.500: INFO/BillingService(12297): handleCommand() action: com.android.vending.billing.RESPONSE_CODE 03-26 12:12:28.500: DEBUG/BillingService(12297): RequestPurchase: RESULT_ITEM_UNAVAILABLE 03-26 12:12:28.500: DEBUG/More(12297): donate_1: RESULT_ITEM_UNAVAILABLE 03-26 12:12:28.500: INFO/More(12297): purchase failed This is what I checked: 1) I correctly signed and uploaded my APK file to the developer console and saved it as draft, and I installed it on my real device. 2) I ensured that my test account, e.g. example_t...@googlemail.com, is listed as test account (the developer account is a different one, let's say example_...@googlemail.com) and is the primary account on my device. 3) The product donate_1 (unmanaged because multiple donations should be possible) is listed as published and has a price of 0.79 €. 4) All static responses triggered by android.test.purchased etc. have been tested and work. 5) Of course the Android Market is checked to have the latest version (2.3.4). So I believe I checked all points from http://developer.android.com/guide/market/billing/billing_testing.html#billing-testing-real - and I have no idea why it still does not work. Maybe a bug? It wouldn't be the first time that...@googlemail.com addresses make problems, but...@gmail.com do not. But that is just my guess. Thanks in advance regards Marc Reichelt || http://www.marcreichelt.de/ -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] findViewById returning NULL
Thanks No I only have a single landscape layout. The biggest baffle is that is works and then does not work All I do is re-type the findViewByID part and in the layout xml re-type the android:id line and 95% that fixes it. But this case where it does and does not work, while I am working on another section is frustrating to say the least Thanks again On Mar 25, 2011, at 3:13 PM, B Lyon wrote: Not sure if it applies in your case, but do you have a separate layouts for landscape and portrait and that view is defined in only one of them? I think the eclipse android plugin might not catch this kind of thing, and so you wouldn't find out until runtime that it wasn't in both layouts. On Fri, Mar 25, 2011 at 2:56 PM, New Developer secur...@isscp.com wrote: Sometimes not always the following line final ExpandableListView menuView= (ExpandableListView) findViewById(R.id.menuListing); may or may not return null and thus aborts with a NullExceptionError Any ideas how to fix this permanently to always return a valid thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to slow system clock by an app? or it is a system bug?
If your app is running 100% CPU (ie, looking rather than waiting for events) it's conceivable that it would affect the clock. On Mar 25, 9:47 pm, San Zhang dahua007...@gmail.com wrote: I found a strange problem. On my Nexus One, since upgrading to Android 2.3.3, the system clock would be slowed about one or two minutes every day during running my app. The app is an alarm clock tool. I have tested it under both cases of running/stopping my app. It is obvious that it is related to my app. However, before upgrading to Android 2.3.3, the clock is very normal. My question is: 1. Is it possible to slow system clock by an app? In my knowledge, the system time is drived by hardware. It shouldn't be disturbed by an normal app. 2. If the answer is Yes, what causes 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Encrypt Files
There is a solution. On Mar 26, 6:30 am, jaafar zbeiba jaafarinformati...@gmail.com wrote: hello I tried this code but I have a problem with the exception code import java.security.*; import javax.crypto.*; // // encrypt and decrypt using the DES private key algorithm public class PrivateExample { public static void main(String[] args) throws Exception { // // check args and get plaintext if (args.length != 1) { System.err.println(Usage: java PrivateExample text); System.exit(1); } // byte[] plainText = args[0].getBytes(UTF8); String ss = Hello world, haris is here!; byte[] plainText = ss.getBytes(); // // get a DES private key System.out.println(\nStart generating DES key); KeyGenerator keyGen = KeyGenerator.getInstance(DES); keyGen.init(56); Key key = keyGen.generateKey(); System.out.println(Finish generating DES key); // // get a DES cipher object and print the provider Cipher cipher = Cipher.getInstance(DES/ECB/PKCS5Padding); System.out.println(\n + cipher.getProvider().getInfo()); // // encrypt using the key and the plaintext System.out.println(\nStart encryption); cipher.init(Cipher.ENCRYPT_MODE, key); byte[] cipherText = cipher.doFinal(plainText); System.out.println(Finish encryption: ); System.out.println(new String(cipherText, UTF8)); // // decrypt the ciphertext using the same key System.out.println(\nStart decryption); cipher.init(Cipher.DECRYPT_MODE, key); byte[] newPlainText = cipher.doFinal(cipherText); System.out.println(Finish decryption: ); System.out.println(new String(newPlainText, UTF8)); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: In-app billing does not work - although everything has been checked
Hi Kostya, did you publish the In-app-items? Testing In-app payment will not work if you do not publish the In-app-items. You don't have to publish your app for testing it. In fact, you can not publish an application using In-app billing right now. My problem just is that I did everything the documentation says and still can not test it successfully. Regards Marc Reichelt || http://www.marcreichelt.de/ On 26 Mrz., 13:14, Kostya Vasilyev kmans...@gmail.com wrote: I am also getting ITEM_UNAVAILABLE for my own product item with both a test account and my developer's account. The application is uploaded but not published, and so it the item. In addition, purchasing authorization for android.test* items under the test account never completes. FWIW, the product list editing page says this: An in-app product will appear UNPUBLISHED until the owning application is PUBLISHED, at which point the in-app product's publishing state applies. Please use the application editor to modify the application's publishing state. Not sure what this means for testing. Also, the License Test Response field in the profile page (where you set up test accounts) doesn't appear to have any codes specific to in-app billing, just codes for LVL. -- Kostya 26.03.2011 14:32, Marc Reichelt пишет: Hi! I am including In-app billing in a new Android application I am currently working on. The project is nearly finished and it should go live as soon as in-app billing goes live. In this project I want that users can donate to support the application. However, I can not get In-app billing to work, although I think I did everything right. Every time it is showing me that the product is unavailable. Here is the logcat shortly after clicking the button to purchase the item (product ID donate_1) and after closing the Android Market dialog: 03-26 12:07:42.440: DEBUG/More(12297): buying: donate_1 03-26 12:07:42.440: DEBUG/BillingService(12297): RequestPurchase 03-26 12:07:42.450: DEBUG/BillingService(12297): request id: 8723043450188864909 03-26 12:07:42.450: INFO/ActivityManager(96): Starting: Intent { act=android.intent.action.VIEW cmp=com.android.vending/.billing.InAppBuyPageActivity (has extras) } from pid -1 03-26 12:07:42.770: INFO/ActivityManager(96): Displayed com.android.vending/.billing.InAppBuyPageActivity: +313ms device shows market dialog that product is unavailable. 03-26 12:12:28.500: INFO/BillingService(12297): handleCommand() action: com.android.vending.billing.RESPONSE_CODE 03-26 12:12:28.500: DEBUG/BillingService(12297): RequestPurchase: RESULT_ITEM_UNAVAILABLE 03-26 12:12:28.500: DEBUG/More(12297): donate_1: RESULT_ITEM_UNAVAILABLE 03-26 12:12:28.500: INFO/More(12297): purchase failed This is what I checked: 1) I correctly signed and uploaded my APK file to the developer console and saved it as draft, and I installed it on my real device. 2) I ensured that my test account, e.g. example_t...@googlemail.com, is listed as test account (the developer account is a different one, let's say example_...@googlemail.com) and is the primary account on my device. 3) The product donate_1 (unmanaged because multiple donations should be possible) is listed as published and has a price of 0.79 €. 4) All static responses triggered by android.test.purchased etc. have been tested and work. 5) Of course the Android Market is checked to have the latest version (2.3.4). So I believe I checked all points from http://developer.android.com/guide/market/billing/billing_testing.htm... - and I have no idea why it still does not work. Maybe a bug? It wouldn't be the first time that...@googlemail.com addresses make problems, but...@gmail.com do not. But that is just my guess. Thanks in advance regards Marc Reichelt || http://www.marcreichelt.de/ -- Kostya Vasilyev --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Encrypt Files
which ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: In-app billing does not work - although everything has been checked
26.03.2011 15:25, Marc Reichelt пишет: Hi Kostya, did you publish the In-app-items? Testing In-app payment will not work if you do not publish the In-app-items. You don't have to publish your app for testing it. In fact, you can not publish an application using In-app billing right now. Ah. Good point, thanks. Just published my test item, and tried to purchase it from the development phone. It short, it worked. However, even though my development phone is listed as a test account in the Developer Console profile, I still had to enter a real credit card number (no VISA--FAKE there), and they charged my card for real. Good thing I set the price to $0.99. After I submitted the purchase, the Checkout window didn't go away for a long time, then I got an error report in the logcat about the billing activity having leaked a window. A couple of minutes later the application showed that the item state changed to PURCHASED. Oh, I am using the actual release build, signed with a non-debug key, same .apk as I uploaded to Market. Are you perhaps using a debug build on your phone? -- Kostya My problem just is that I did everything the documentation says and still can not test it successfully. -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: In-app billing does not work - although everything has been checked
Hi Kostya, of course they did charge your account for real - you _definitely_ should read the In-app documentation before doing anything else! And as I pointed out I am using a correctly signed release build, not the debug build. Still having problems. Regards Marc Reichelt || http://www.marcreichelt.de/ On 26 Mrz., 13:49, Kostya Vasilyev kmans...@gmail.com wrote: 26.03.2011 15:25, Marc Reichelt пишет: Hi Kostya, did you publish the In-app-items? Testing In-app payment will not work if you do not publish the In-app-items. You don't have to publish your app for testing it. In fact, you can not publish an application using In-app billing right now. Ah. Good point, thanks. Just published my test item, and tried to purchase it from the development phone. It short, it worked. However, even though my development phone is listed as a test account in the Developer Console profile, I still had to enter a real credit card number (no VISA--FAKE there), and they charged my card for real. Good thing I set the price to $0.99. After I submitted the purchase, the Checkout window didn't go away for a long time, then I got an error report in the logcat about the billing activity having leaked a window. A couple of minutes later the application showed that the item state changed to PURCHASED. Oh, I am using the actual release build, signed with a non-debug key, same .apk as I uploaded to Market. Are you perhaps using a debug build on your phone? -- Kostya My problem just is that I did everything the documentation says and still can not test it successfully. -- Kostya Vasilyev --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: In-app billing does not work - although everything has been checked
Hi Kostya, by the way: you can refund the payment you made from your Google Merchant account. Remember that you are testing the real system there, which means real money is going to flow if you do not refund it shortly after. Regards Marc Reichelt || http://www.marcreichelt.de/ On 26 Mrz., 13:49, Kostya Vasilyev kmans...@gmail.com wrote: 26.03.2011 15:25, Marc Reichelt пишет: Hi Kostya, did you publish the In-app-items? Testing In-app payment will not work if you do not publish the In-app-items. You don't have to publish your app for testing it. In fact, you can not publish an application using In-app billing right now. Ah. Good point, thanks. Just published my test item, and tried to purchase it from the development phone. It short, it worked. However, even though my development phone is listed as a test account in the Developer Console profile, I still had to enter a real credit card number (no VISA--FAKE there), and they charged my card for real. Good thing I set the price to $0.99. After I submitted the purchase, the Checkout window didn't go away for a long time, then I got an error report in the logcat about the billing activity having leaked a window. A couple of minutes later the application showed that the item state changed to PURCHASED. Oh, I am using the actual release build, signed with a non-debug key, same .apk as I uploaded to Market. Are you perhaps using a debug build on your phone? -- Kostya My problem just is that I did everything the documentation says and still can not test it successfully. -- Kostya Vasilyev --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Amazon Appmarket is now open!
I submitted 4, 3 have been under review for 2 months almost. One went thru in a week. The under review is a business-NO. Bezos=Jobs On Mar 23, 12:38 pm, Matt M matthew.mag...@gmail.com wrote: To those who have submitted apps to Amazon how long did it take between submitting and approval? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: In-app billing does not work - although everything has been checked
26.03.2011 15:57, Marc Reichelt пишет: Hi Kostya, of course they did charge your account for real Why the of course? I set this phone up as a test account in the Market console, and the system knows this. - you_definitely_ should read the In-app documentation before doing anything Yes, definitely plan to, when I actually start implementing it in my app. So far I've only had time for a first, cursory read. Anyway, it was only $0.99, less than half the price of a pack of cigarettes. And I can issue a refund to myself. And as I pointed out I am using a correctly signed release build, not the debug build. Still having problems. Weird. From your description, we have identical setups: release builds uploaded but not published, installed on the phone, item published in the console, Market 2.3.4. And yet it worked for me and didn't work for you. -- Kostya Regards Marc Reichelt ||http://www.marcreichelt.de/ -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Encrypt Files
logcat 03-26 13:25:57.117: INFO/DEBUG(27): debuggerd: Nov 24 2009 14:48:45 03-26 13:25:57.167: INFO/vold(26): Android Volume Daemon version 2.0 03-26 13:25:57.247: ERROR/vold(26): Error opening switch name path '/ sys/class/switch/test2' (No such file or directory) 03-26 13:25:57.247: ERROR/vold(26): Error bootstrapping switch '/sys/ class/switch/test2' (No such file or directory) 03-26 13:25:57.247: ERROR/vold(26): Error opening switch name path '/ sys/class/switch/test' (No such file or directory) 03-26 13:25:57.247: ERROR/vold(26): Error bootstrapping switch '/sys/ class/switch/test' (No such file or directory) 03-26 13:25:57.247: DEBUG/vold(26): Bootstrapping complete 03-26 13:25:57.357: DEBUG/qemud(34): entering main loop 03-26 13:25:57.567: DEBUG/qemud(34): fdhandler_accept_event: accepting on fd 10 03-26 13:25:57.567: DEBUG/qemud(34): created client 0xe078 listening on fd 8 03-26 13:25:57.597: DEBUG/qemud(34): client_fd_receive: attempting registration for service 'boot-properties' 03-26 13:25:57.597: DEBUG/qemud(34): client_fd_receive:- received channel id 1 03-26 13:25:57.607: DEBUG/qemud(34): client_registration: registration succeeded for client 1 03-26 13:25:57.607: INFO/qemu-props(43): connected to 'boot- properties' qemud service. 03-26 13:25:57.617: INFO/qemu-props(43): received: dalvik.vm.heapsize=24m 03-26 13:25:57.617: INFO/qemu-props(43): received: qemu.sf.lcd_density=160 03-26 13:25:57.617: INFO/qemu-props(43): received: 03-26 13:25:57.617: INFO/qemu-props(43): invalid format, ignored. 03-26 13:25:58.168: DEBUG/AndroidRuntime(29): AndroidRuntime START 03-26 13:25:58.168: DEBUG/AndroidRuntime(29): CheckJNI is ON 03-26 13:25:58.387: DEBUG/qemud(34): fdhandler_accept_event: accepting on fd 10 03-26 13:25:58.387: DEBUG/qemud(34): created client 0xe078 listening on fd 11 03-26 13:25:58.387: DEBUG/qemud(34): fdhandler_event: disconnect on fd 11 03-26 13:25:58.417: DEBUG/qemud(34): fdhandler_accept_event: accepting on fd 10 03-26 13:25:58.417: DEBUG/qemud(34): created client 0xe078 listening on fd 11 03-26 13:25:58.417: DEBUG/qemud(34): client_fd_receive: attempting registration for service 'gsm' 03-26 13:25:58.417: DEBUG/qemud(34): client_fd_receive:- received channel id 2 03-26 13:25:58.427: DEBUG/qemud(34): client_registration: registration succeeded for client 2 03-26 13:25:58.877: INFO/(30): ServiceManager: 0xac38 03-26 13:25:58.898: INFO/AudioFlinger(30): AudioFlinger's thread ready to run for output 0 03-26 13:25:58.907: INFO/CameraService(30): CameraService started: pid=30 03-26 13:25:58.927: DEBUG/AndroidRuntime(29): --- registering native functions --- 03-26 13:25:59.307: INFO/Zygote(29): Preloading classes... 03-26 13:25:59.318: DEBUG/dalvikvm(29): GC freed 800 objects / 44048 bytes in 12ms 03-26 13:25:59.587: DEBUG/dalvikvm(29): GC freed 240 objects / 13920 bytes in 5ms 03-26 13:25:59.647: DEBUG/dalvikvm(29): GC freed 228 objects / 14376 bytes in 6ms 03-26 13:25:59.817: DEBUG/dalvikvm(29): GC freed 505 objects / 31896 bytes in 7ms 03-26 13:25:59.907: DEBUG/dalvikvm(29): Trying to load lib /system/lib/ libexif.so 0x0 03-26 13:25:59.918: DEBUG/dalvikvm(29): Added shared lib /system/lib/ libexif.so 0x0 03-26 13:25:59.918: DEBUG/dalvikvm(29): Trying to load lib /system/lib/ libFFTEm.so 0x0 03-26 13:25:59.927: DEBUG/dalvikvm(29): Added shared lib /system/lib/ libFFTEm.so 0x0 03-26 13:25:59.927: DEBUG/dalvikvm(29): Trying to load lib /system/lib/ libmedia_jni.so 0x0 03-26 13:26:00.107: DEBUG/dalvikvm(29): Added shared lib /system/lib/ libmedia_jni.so 0x0 03-26 13:26:00.107: DEBUG/dalvikvm(29): Trying to load lib /system/lib/ libmedia_jni.so 0x0 03-26 13:26:00.107: DEBUG/dalvikvm(29): Shared lib '/system/lib/ libmedia_jni.so' already loaded in same CL 0x0 03-26 13:26:00.107: INFO/dalvikvm(29): threadid=3: recursive native library load attempt (/system/lib/libmedia_jni.so) 03-26 13:26:00.107: DEBUG/dalvikvm(29): Trying to load lib /system/lib/ libmedia_jni.so 0x0 03-26 13:26:00.107: DEBUG/dalvikvm(29): Shared lib '/system/lib/ libmedia_jni.so' already loaded in same CL 0x0 03-26 13:26:00.107: INFO/dalvikvm(29): threadid=3: recursive native library load attempt (/system/lib/libmedia_jni.so) 03-26 13:26:00.107: DEBUG/dalvikvm(29): Trying to load lib /system/lib/ libmedia_jni.so 0x0 03-26 13:26:00.107: DEBUG/dalvikvm(29): Shared lib '/system/lib/ libmedia_jni.so' already loaded in same CL 0x0 03-26 13:26:00.107: INFO/dalvikvm(29): threadid=3: recursive native library load attempt (/system/lib/libmedia_jni.so) 03-26 13:26:00.137: DEBUG/dalvikvm(29): GC freed 323 objects / 20144 bytes in 8ms 03-26 13:26:00.637: DEBUG/dalvikvm(29): GC freed 3536 objects / 168944 bytes in 21ms 03-26 13:26:00.687: DEBUG/dalvikvm(29): GC freed 133 objects / 8640 bytes in 15ms 03-26 13:26:00.768: DEBUG/dalvikvm(29): GC freed 518 objects / 31504 bytes in 20ms 03-26 13:26:00.827: DEBUG/dalvikvm(29): GC freed 175 objects / 9456 bytes in 15ms 03-26 13:26:00.867: DEBUG/dalvikvm(29): GC freed 222 objects /
[android-developers] Re: In-app billing does not work - although everything has been checked
OK, I solved it - it really was a @googlemail.com / @gmail.com problem. I entered the corresponding @gmail.com address as test account, and In- app billing started to work. It seems to be an issue at Google, so I entered a new issue here: http://code.google.com/p/marketbilling/issues/detail?id=4 I hope they will catch up and solve this problem before In-app billing goes live - although it should only affect some users (e.g. Germany). IMHO they really should stop to allow these @googlemail.com accounts. Regards Marc Reichelt || http://www.marcreichelt.de/ On 26 Mrz., 14:18, Kostya Vasilyev kmans...@gmail.com wrote: 26.03.2011 15:57, Marc Reichelt пишет: Hi Kostya, of course they did charge your account for real Why the of course? I set this phone up as a test account in the Market console, and the system knows this. - you_definitely_ should read the In-app documentation before doing anything Yes, definitely plan to, when I actually start implementing it in my app. So far I've only had time for a first, cursory read. Anyway, it was only $0.99, less than half the price of a pack of cigarettes. And I can issue a refund to myself. And as I pointed out I am using a correctly signed release build, not the debug build. Still having problems. Weird. From your description, we have identical setups: release builds uploaded but not published, installed on the phone, item published in the console, Market 2.3.4. And yet it worked for me and didn't work for you. -- Kostya Regards Marc Reichelt ||http://www.marcreichelt.de/ -- Kostya Vasilyev --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to slow system clock by an app? or it is a system bug?
There is no any looking for events in My app. The only busy code is accelerometer sensor. But it is already here before upgrading to Android 2.3.3. How to check the usage of CPU? 2011/3/26 DanH danhi...@ieee.org If your app is running 100% CPU (ie, looking rather than waiting for events) it's conceivable that it would affect the clock. On Mar 25, 9:47 pm, San Zhang dahua007...@gmail.com wrote: I found a strange problem. On my Nexus One, since upgrading to Android 2.3.3, the system clock would be slowed about one or two minutes every day during running my app. The app is an alarm clock tool. I have tested it under both cases of running/stopping my app. It is obvious that it is related to my app. However, before upgrading to Android 2.3.3, the clock is very normal. My question is: 1. Is it possible to slow system clock by an app? In my knowledge, the system time is drived by hardware. It shouldn't be disturbed by an normal app. 2. If the answer is Yes, what causes 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] findViewById returning NULL
pretty weird eclipse didn't insert an import to (something I forgot).R.* did it? Seems like it will do that sometimes. Of course, you can do a Project--Clean, but it may come back anyway in this case let me know when you figure it out what it is On Sat, Mar 26, 2011 at 8:19 AM, New Developer secur...@isscp.com wrote: Thanks No I only have a single landscape layout. The biggest baffle is that is works and then does not work All I do is re-type the findViewByID part and in the layout xml re-type the android:id line and 95% that fixes it. But this case where it does and does not work, while I am working on another section is frustrating to say the least Thanks again On Mar 25, 2011, at 3:13 PM, B Lyon wrote: Not sure if it applies in your case, but do you have a separate layouts for landscape and portrait and that view is defined in only one of them? I think the eclipse android plugin might not catch this kind of thing, and so you wouldn't find out until runtime that it wasn't in both layouts. On Fri, Mar 25, 2011 at 2:56 PM, New Developer secur...@isscp.com wrote: Sometimes not always the following line final ExpandableListView menuView = (ExpandableListView) findViewById(R.id.menuListing); may or may not return null and thus aborts with a NullExceptionError Any ideas how to fix this permanently to always return a valid thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: JSONObject optString output
Hi, Tried the get methods but still the same problem. The problems seems to be that the JSON array of values doesn't have a parent key that contains it. On Mar 25, 7:18 am, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi, I'm using common get...() methods and they work with no problems or stripping of any kind. Try to switch to get...() methods and see if that makes any difference. Best regards, Filip Havlicek 2011/3/24 elioncho elion...@gmail.com Hello, I'm receiving a Json response like this: {password_confirmation:[is too short (minimum is 4 characters)],password:[is too short (minimum is 4 characters),doesn't match confirmation],email:[is too short (minimum is 6 characters),should look like an email address.],login:[is too short (minimum is 3 characters),should use only letters, numbers, spaces, and .-_@ please.]} I create a JSONObject with the previous string, but when I try to show the value of a key on my app I'm getting the output with brackets and quotes. HttpResponse mHttpResponse = mHttpClient.execute(mHttpPost); String jsonString = EntityUtils.toString(mHttpResponse.getEntity()); try { JSONObject jsonResponse = new JSONObject(jsonString); login_edit.setError(jsonResponse.optString(login)); } The optString method returns [is too short (minimum is 3 characters),should use only letters, numbers, spaces, and .-_@ please.]. Is this a normal thing or is something wrong in what I'm doing. Should I just strip brackets and quotes from the string? Thanks, Elías -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to slow system clock by an app? or it is a system bug?
How to check the usage of CPU? https://market.android.com/details?id=com.eolwral.osmonitor or read /proc/loadavg 2011/3/26 DanH danhi...@ieee.org If your app is running 100% CPU (ie, looking rather than waiting for events) it's conceivable that it would affect the clock. Since when CPU load can affect RTC unit? Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] API 10 ERROR
When i run my apps on API 8 then it run fine.But when i run my apps on API 10 then it get unexpected error automatically my app closed.Please check my mainfest file.or please suggest me any other permission required. ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.god.india android:installLocation=preferExternal android:versionCode=1 android:versionName=1.0 uses-sdk android:maxSdkVersion=10 android:targetSdkVersion=8 android:minSdkVersion=8/ uses-feature/uses-feature application android:icon=@drawable/i_c android:theme=@style/ris android:label=@string/app_name activity android:name=.india android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.list_chalisa/activity activity android:name=.sivinfo /activity activity android:name=.hanumanji/activity activity android:name=.ganesh_code/activity activity android:name=.sara_code/activity activity android:name= .durga/activity activity android:name=.Sai_chalisa/activity activity android:name=.sani_code/activity activity android:name=.Gayatri_gi/activity /application /manifest -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to slow system clock by an app? or it is a system bug?
Thanks. 2011/3/26 Marcin Orlowski webnet.andr...@gmail.com How to check the usage of CPU? https://market.android.com/details?id=com.eolwral.osmonitor or read /proc/loadavg 2011/3/26 DanH danhi...@ieee.org If your app is running 100% CPU (ie, looking rather than waiting for events) it's conceivable that it would affect the clock. Since when CPU load can affect RTC unit? Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: JSONObject optString output
Ah, now I see, sorry I didn't notice it before. You are parsing it like it's a String, but actually every value of a pair you have is an array, so proper way of parsing it is something like JSONArray array = object.getJSONArray(login); for (int i=0;iarray.length();i++){ array.getString(i)); } Best regards, Filip Havlicek 2011/3/26 elioncho elion...@gmail.com Hi, Tried the get methods but still the same problem. The problems seems to be that the JSON array of values doesn't have a parent key that contains it. On Mar 25, 7:18 am, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi, I'm using common get...() methods and they work with no problems or stripping of any kind. Try to switch to get...() methods and see if that makes any difference. Best regards, Filip Havlicek 2011/3/24 elioncho elion...@gmail.com Hello, I'm receiving a Json response like this: {password_confirmation:[is too short (minimum is 4 characters)],password:[is too short (minimum is 4 characters),doesn't match confirmation],email:[is too short (minimum is 6 characters),should look like an email address.],login:[is too short (minimum is 3 characters),should use only letters, numbers, spaces, and .-_@ please.]} I create a JSONObject with the previous string, but when I try to show the value of a key on my app I'm getting the output with brackets and quotes. HttpResponse mHttpResponse = mHttpClient.execute(mHttpPost); String jsonString = EntityUtils.toString(mHttpResponse.getEntity()); try { JSONObject jsonResponse = new JSONObject(jsonString); login_edit.setError(jsonResponse.optString(login)); } The optString method returns [is too short (minimum is 3 characters),should use only letters, numbers, spaces, and .-_@ please.]. Is this a normal thing or is something wrong in what I'm doing. Should I just strip brackets and quotes from the string? Thanks, Elías -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] API 10 ERROR
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your unexpected error. On Sat, Mar 26, 2011 at 10:33 AM, rishabh agrawal android.rish...@gmail.com wrote: When i run my apps on API 8 then it run fine.But when i run my apps on API 10 then it get unexpected error automatically my app closed.Please check my mainfest file.or please suggest me any other permission required. ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.god.india android:installLocation=preferExternal android:versionCode=1 android:versionName=1.0 uses-sdk android:maxSdkVersion=10 android:targetSdkVersion=8 android:minSdkVersion=8/ uses-feature/uses-feature application android:icon=@drawable/i_c android:theme=@style/ris android:label=@string/app_name activity android:name=.india android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.list_chalisa/activity activity android:name=.sivinfo /activity activity android:name=.hanumanji/activity activity android:name=.ganesh_code/activity activity android:name=.sara_code/activity activity android:name= .durga/activity activity android:name=.Sai_chalisa/activity activity android:name=.sani_code/activity activity android:name=.Gayatri_gi/activity /application /manifest -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Open GL texture is shown on emulator but not on the mobile
The usual advice at this point is to debug into the routine that loads your bitmap - on the device, of course - and check what the actual loaded height() and width() are. That will tell for sure, one way or another, if they're the size you think they are. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: finishActivity() does not stop child activity
Hi, I have a similar issue and I am using the same approach: Service - ProxyActivity - Activity But the Activity I want to start and finish is an android activity started with ACTION_CALL from ProxyActivity and it has singleInstance launch mode in the manifest but it seems I can not change it. According to the documentation startActivityForResult() should not be used to launch activities that wont be run in the same task so that would explain why my finishActivity() is not working. Is there a workaround or other way to finish activities are not in the same task? Thanks Juan Garibay On Mar 15, 12:05 pm, Ramsay Domloge rdoml...@gmail.com wrote: Cracked it. I removed android:launchMode=singleInstance from the Proxy Activity declaration in the Manifest and suddenly the Proxy was able to close the 3rd Party Activity. Many thanks for your help guys - your suggestions pointed me in the right direction. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] findViewById returning NULL
Thanks No there is no android.R import and I have tried the Project-Clean That is one sure way to trip it off thou at least 97% of the time that I have done a Project-Clean I have the failure occur. thanks again On Mar 26, 2011, at 10:19 AM, B Lyon wrote: pretty weird eclipse didn't insert an import to (something I forgot).R.* did it? Seems like it will do that sometimes. Of course, you can do a Project--Clean, but it may come back anyway in this case let me know when you figure it out what it is On Sat, Mar 26, 2011 at 8:19 AM, New Developer secur...@isscp.com wrote: Thanks No I only have a single landscape layout. The biggest baffle is that is works and then does not work All I do is re-type the findViewByID part and in the layout xml re-type the android:id line and 95% that fixes it. But this case where it does and does not work, while I am working on another section is frustrating to say the least Thanks again On Mar 25, 2011, at 3:13 PM, B Lyon wrote: Not sure if it applies in your case, but do you have a separate layouts for landscape and portrait and that view is defined in only one of them? I think the eclipse android plugin might not catch this kind of thing, and so you wouldn't find out until runtime that it wasn't in both layouts. On Fri, Mar 25, 2011 at 2:56 PM, New Developer secur...@isscp.com wrote: Sometimes not always the following line final ExpandableListView menuView= (ExpandableListView) findViewById(R.id.menuListing); may or may not return null and thus aborts with a NullExceptionError Any ideas how to fix this permanently to always return a valid thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android phones
Google is selling unlocked Android phones for 399.00 and 479.00. Is there a good reason for me to get one of these to develop on as opposed to a 230.00 phone at MetroPCS? Can someone help me understand the difference? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: USB Huawei E173
Hello Bala, strange .. you description is not clear for. Do you have full platform access ? And is you platform usb host enabled ? Good luck ! Frank On 24 Mrz., 06:30, Bala balachandra...@gmail.com wrote: Dear all, I want to use Huawei E173 in my Mobile Interface Device(MID). I have already burned the drivers for Huawei E173 in my device. But my problem is : I brought Airtel (India) USB Dongle Huawei E1731, I dont know how to config in my MID. Need to set APN? What is the APN settings. Please help. Is Huawei E173 and Huawei E1731 are same. It says Modem Type is Huawei E173 only. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Fetching messages from a server
I have an application that needs to fetch messages from a server, currently i do this via a service, running in the background. However, when my application is not in the foreground, it quickly gets pushed out of memory, and stops checking for messages. I've been playing with AbstractThreadedSyncAdapter, but this seems a little heavy handed. Is there some middle ground? Something i should look into? -- Thanks Kevin 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Fetching messages from a server
On Sat, Mar 26, 2011 at 12:24 PM, Kevin Anthony kevin.s.anth...@gmail.com wrote: I have an application that needs to fetch messages from a server, currently i do this via a service, running in the background. However, when my application is not in the foreground, it quickly gets pushed out of memory, and stops checking for messages. This is a good thing. An everlasting service like this is an anti-pattern and should be avoided wherever possible. I've been playing with AbstractThreadedSyncAdapter, but this seems a little heavy handed. Could be -- I haven't had a chance to mess with that yet. Is there some middle ground? Something i should look into? Use AlarmManager and fetch the messages on a periodic basis, with the user controlling the polling frequency (including an option for manual-refresh-only) via a SharedPreference. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: DashBoard
Please suggest any tutorial for creation Dashboard in API 2.2 Are we supposed to know what Dashboard is? You are tireless :-) Where do you draw the energy from ? Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to reload previous activity on back button click
Hi Filip, Thanks for your replies. But I want the functionality like how is it happening in NDTV App' which i downloaded it from Android Market. Thanks!! On Sat, Mar 26, 2011 at 1:12 AM, Filip Havlicek havlicek.fi...@gmail.comwrote: Hi Laxmi, if everything else works fine, just call finish() inside Activity 2 in step 2) of your scenario. Best regards, Filip Havlicek 2011/3/25 Laxmi Verma laxmiverma.andr...@gmail.com Hi, I am still facing this issue. I am not sure how to refresh my previous activity on back button. I had written the code of calling the intent itself of onResume() method but everytime i am press back button of next activity it goes to the previous activity's on resume method and reload that activity. And then when i click back button from there it calls that activity from which i loaded it. *Scenario is: 1) Activity 1 - Activity 2 2) From Activity 2 called back button 3) It goes onresume method of activity 1 and reloaded it. 4) When I click back button on activity 1 it goes to the activity 2. 5) Now, clicked back button on activity 2 6) It reloaded activity 1 by going into on resume method of it. * This loop continues till infinity and it never goes back to the home screen. Any suggetions would be a great help as I need it on urgent basis !! Thanks!! On Wed, Mar 23, 2011 at 2:18 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi Laxmi, if you click the item detail's back button, it does not call the onCreate method unless you specify so in the button's OnClickListener. If you press the phone's back button, the onResume of the list activity is called, so if you want it to do the same thing as onCreate, just move the code into some method and call it from both onResume and onCreate. It's the same principle as Notepad tutorial uses http://developer.android.com/resources/tutorials/notepad/index.html(populateFields() method). Best regards, Filip Havlicek 2011/3/23 Laxmi Verma laxmiverma.andr...@gmail.com Hi Filip, It is exactly the same problem which I am facing. If I am only clicking back button it does not go to oncreate method and hence not refreshing the content of the view. By clicking phone back button its going to the previous list body item, but not refreshing it. I just want to refresh that thing. so, that if some image get updated I want to show the updated image in it. Can you please provide some sample code for it. Thanks Regards On Tue, Mar 22, 2011 at 11:45 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi Laxmi, I'm not sure I fully understand. So you have some kind of list with items and when you click the item, a new type of view is shown - let's say item details. And in these details you have prev/next button to show details of neighboring items, is that correct? So if I click on item 4, i can then press prev/next button to navigate to item 3/5 details, right? And you want to go back to the list view on phone's back button press? If all of this is correct, then it is pretty much simple. This is pretty much doable in both ways (call activities and change views). If you have activities, let's try to fix them rather than going the views way. All of the items have IDs. List activity takes pressed item ID and sends it as an extra to the details activity. ID is stored in activity's member field and then item details are displayed with prev/next buttons (based on the stored ID). Now when you click on one of the buttons, you query your database (or whatever source your data are in) for a list of IDs, you find your stored ID and then find next/previous ID. You store this found ID in activity's member field overwriting previous ID and just call some refresh view method (pretty much like in Google's Notepad tutorial). Now when you press phone's back button, you will be by design taken back into the list view (no back button handling is necessary). Best regards, Filip Havlicek 2011/3/22 Laxmi Verma laxmiverma.andr...@gmail.com Hi Filip, Thanks for giving the reply. can you please clarify *why not just change the view(s) instead of trying to start/stop activities?*. I am having a list item activity and calling the list body item activity from there. Inside List Body Item activity I am having next and previous button. So, after navigating to 2 to 3 list body items and pressing back button, if I am refreshing the same activity again then I am facing this issue that it calls the list item body activity on onResume method every time I press back button and never goes back to the List Item Activity. Hope you understand my problem. Thanks!! On Tue, Mar 22, 2011 at 10:03 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi Laxmi, if you are calling the same activity over and over again, why not just change the view(s) instead of trying to start/stop activities? And then you just register the phone's back button press to perform
[android-developers] Email Intent Back Button Handling
Hi All, I am facing a problem in my application. I am having an activity in which there is an Email button from which the Email Intent is called. Now, the flow should be like that when I press back button without clicking on email button it should finish the current activity. However, once i clicked on email button and then pressing back button it should stay there in the activity as per the normal flow. I had written the code that when the back button is directly pressed in the activity, then onKeyCode() method I had called the finish() and when the email button is pressed i had checked a boolean variable in that. Now, the* problem is it never goes in the onKeyCode() method when the email intent is called and pressing back button on it. *Any help on this will be highly appreciated as i need it on urgent basis. Thanks Regards Laxmi Verma -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Starting An Android App From An Url
If you are using WebView, you can do whatever you want by looking for clicks and using the platform APIs. If you are trying to do this from a web page the user is interacting with in the standard browser, you should use the mechanism I am suggesting. On Sat, Mar 26, 2011 at 9:40 AM, Lutz Bendlin l...@pocketgpsworld.comwrote: I didn't mean access, it was more about being able to launch the other activity. Surely you could craft a webpage with callbacks to your code that would then start the launcher intents ? *From:* Dianne Hackborn [mailto:hack...@android.com] *Sent:* Friday, March 25, 2011 10:02 PM *To:* android-developers@googlegroups.com *Cc:* Lutz Bendlin; perumal316 *Subject:* Re: [android-developers] Re: Starting An Android App From An Url Yes it does. The application uses the tags I showed to indicate it can handle a particular (or set of) http: URIs. Nothing gives you direct access to any application on the phone. The application must at least opt in to being launched from the browser by supporting the BROWSABLE category for the activities it will allow to be launched. On Fri, Mar 25, 2011 at 5:37 PM, lbendlin l...@bendlin.us wrote: but http:// doesn't give you access to the local applications on the phone. That was the OP's question (as I understand it). Do you need to do a binding from the webview back to the activity, and then a local translator to start the intent? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to reload previous activity on back button click
Hi Filip, As per your suggestion i called finish() in the list body activity the problem which i discussed in the previous to last mail. But then I am facing one problem. Actually I am having an email button in it callling the email intent from there. When I am clicking on email intent and press back button it finishes the list body activity itself. *Now Required flow is *, 1) when i press directly on list body item activity it should finish it which currently it is doing. 2) When i press email button on the list body item activity it should not finish the list body item activity which currently what it is doing. For problem no. 2 i had even check a flag for this but it never goes into the onkeydown method or onbackpress method when back button is pressed on email intent. Please help. Thanks for your replies. On Sat, Mar 26, 2011 at 11:24 PM, Filip Havlicek havlicek.fi...@gmail.comwrote: Hi Laxmi, that's a seriously weirdly done application and I wouldn't go that way (they seem to start a new activity for almost every press - probably one of the source of theirs progress dialog and overall app hanging). Best regards, Filip Havlicek 2011/3/26 Laxmi Verma laxmiverma.andr...@gmail.com Hi Filip, Thanks for your replies. But I want the functionality like how is it happening in NDTV App' which i downloaded it from Android Market. Thanks!! On Sat, Mar 26, 2011 at 1:12 AM, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi Laxmi, if everything else works fine, just call finish() inside Activity 2 in step 2) of your scenario. Best regards, Filip Havlicek 2011/3/25 Laxmi Verma laxmiverma.andr...@gmail.com Hi, I am still facing this issue. I am not sure how to refresh my previous activity on back button. I had written the code of calling the intent itself of onResume() method but everytime i am press back button of next activity it goes to the previous activity's on resume method and reload that activity. And then when i click back button from there it calls that activity from which i loaded it. *Scenario is: 1) Activity 1 - Activity 2 2) From Activity 2 called back button 3) It goes onresume method of activity 1 and reloaded it. 4) When I click back button on activity 1 it goes to the activity 2. 5) Now, clicked back button on activity 2 6) It reloaded activity 1 by going into on resume method of it. * This loop continues till infinity and it never goes back to the home screen. Any suggetions would be a great help as I need it on urgent basis !! Thanks!! On Wed, Mar 23, 2011 at 2:18 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi Laxmi, if you click the item detail's back button, it does not call the onCreate method unless you specify so in the button's OnClickListener. If you press the phone's back button, the onResume of the list activity is called, so if you want it to do the same thing as onCreate, just move the code into some method and call it from both onResume and onCreate. It's the same principle as Notepad tutorial uses http://developer.android.com/resources/tutorials/notepad/index.html(populateFields() method). Best regards, Filip Havlicek 2011/3/23 Laxmi Verma laxmiverma.andr...@gmail.com Hi Filip, It is exactly the same problem which I am facing. If I am only clicking back button it does not go to oncreate method and hence not refreshing the content of the view. By clicking phone back button its going to the previous list body item, but not refreshing it. I just want to refresh that thing. so, that if some image get updated I want to show the updated image in it. Can you please provide some sample code for it. Thanks Regards On Tue, Mar 22, 2011 at 11:45 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi Laxmi, I'm not sure I fully understand. So you have some kind of list with items and when you click the item, a new type of view is shown - let's say item details. And in these details you have prev/next button to show details of neighboring items, is that correct? So if I click on item 4, i can then press prev/next button to navigate to item 3/5 details, right? And you want to go back to the list view on phone's back button press? If all of this is correct, then it is pretty much simple. This is pretty much doable in both ways (call activities and change views). If you have activities, let's try to fix them rather than going the views way. All of the items have IDs. List activity takes pressed item ID and sends it as an extra to the details activity. ID is stored in activity's member field and then item details are displayed with prev/next buttons (based on the stored ID). Now when you click on one of the buttons, you query your database (or whatever source your data are in) for a list of IDs, you find your stored ID and then find next/previous ID. You store this found ID in activity's member field overwriting previous ID and
[android-developers] Email Intent Back Button problem
Hi Filip, As per your suggestion i called finish() in the list body activity the problem which i discussed in the previous to last mail. But then I am facing one problem. Actually I am having an email button in it callling the email intent from there. When I am clicking on email intent and press back button it finishes the list body activity itself. *Now Required flow is *, 1) when i press directly on list body item activity it should finish it which currently it is doing. 2) When i press email button on the list body item activity it should not finish the list body item activity which currently what it is doing. For problem no. 2 i had even check a flag for this but it never goes into the onkeydown method or onbackpress method when back button is pressed on email intent. Please help. Thanks for your replies. -- Forwarded message -- From: Laxmi Verma laxmiverma.andr...@gmail.com Date: Sat, Mar 26, 2011 at 11:46 PM Subject: Re: [android-developers] Re: how to reload previous activity on back button click To: Filip Havlicek havlicek.fi...@gmail.com, android-developers@googlegroups.com Hi Filip, As per your suggestion i called finish() in the list body activity the problem which i discussed in the previous to last mail. But then I am facing one problem. Actually I am having an email button in it callling the email intent from there. When I am clicking on email intent and press back button it finishes the list body activity itself. *Now Required flow is *, 1) when i press directly on list body item activity it should finish it which currently it is doing. 2) When i press email button on the list body item activity it should not finish the list body item activity which currently what it is doing. For problem no. 2 i had even check a flag for this but it never goes into the onkeydown method or onbackpress method when back button is pressed on email intent. Please help. Thanks for your replies. On Sat, Mar 26, 2011 at 11:24 PM, Filip Havlicek havlicek.fi...@gmail.comwrote: Hi Laxmi, that's a seriously weirdly done application and I wouldn't go that way (they seem to start a new activity for almost every press - probably one of the source of theirs progress dialog and overall app hanging). Best regards, Filip Havlicek 2011/3/26 Laxmi Verma laxmiverma.andr...@gmail.com Hi Filip, Thanks for your replies. But I want the functionality like how is it happening in NDTV App' which i downloaded it from Android Market. Thanks!! On Sat, Mar 26, 2011 at 1:12 AM, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi Laxmi, if everything else works fine, just call finish() inside Activity 2 in step 2) of your scenario. Best regards, Filip Havlicek 2011/3/25 Laxmi Verma laxmiverma.andr...@gmail.com Hi, I am still facing this issue. I am not sure how to refresh my previous activity on back button. I had written the code of calling the intent itself of onResume() method but everytime i am press back button of next activity it goes to the previous activity's on resume method and reload that activity. And then when i click back button from there it calls that activity from which i loaded it. *Scenario is: 1) Activity 1 - Activity 2 2) From Activity 2 called back button 3) It goes onresume method of activity 1 and reloaded it. 4) When I click back button on activity 1 it goes to the activity 2. 5) Now, clicked back button on activity 2 6) It reloaded activity 1 by going into on resume method of it. * This loop continues till infinity and it never goes back to the home screen. Any suggetions would be a great help as I need it on urgent basis !! Thanks!! On Wed, Mar 23, 2011 at 2:18 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi Laxmi, if you click the item detail's back button, it does not call the onCreate method unless you specify so in the button's OnClickListener. If you press the phone's back button, the onResume of the list activity is called, so if you want it to do the same thing as onCreate, just move the code into some method and call it from both onResume and onCreate. It's the same principle as Notepad tutorial uses http://developer.android.com/resources/tutorials/notepad/index.html(populateFields() method). Best regards, Filip Havlicek 2011/3/23 Laxmi Verma laxmiverma.andr...@gmail.com Hi Filip, It is exactly the same problem which I am facing. If I am only clicking back button it does not go to oncreate method and hence not refreshing the content of the view. By clicking phone back button its going to the previous list body item, but not refreshing it. I just want to refresh that thing. so, that if some image get updated I want to show the updated image in it. Can you please provide some sample code for it. Thanks Regards On Tue, Mar 22, 2011 at 11:45 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi Laxmi, I'm not sure I fully understand. So you have
[android-developers] Combining gesture with ViewHolder
I've implemented a basic gesture detection system in my app with the following code (taken from an Android sample): mGestureLibrary = GestureLibraries.fromRawResource(this, R.raw.gestures); if (!mGestureLibrary.load()) { finish(); } gestures = (GestureOverlayView) findViewById(R.id.gestures); gestures.addOnGesturePerformedListener(this); gesturedItems = new ArrayListString(); public void onGesturePerformed(GestureOverlayView overlay, Gesture gesture) { ArrayListPrediction predictions = mGestureLibrary.recognize(gesture); if (predictions.size() 0 predictions.get(0).score 1.0) { String action = predictions.get(0).name; if (line.equals(action)) { gesturedItems.add } } } (My Activity here implements OnGesturePerformedListener). My gestures are being detected on a scrolling GridView. Each element in the GridView is implemented with a ViewHolder. So, when I open a context menu on a single item, I can get metadata about it like its ID, in order to perform further actions like delete, rename, e.t.c. I want to grab that same ViewHolder metadata information through my gesture. Is that possible? I don't necessarily want the gesture to equal a long press--I intend to build a list of IDs of each item that the gesture picks up. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] upgrade
Is there a function in the API of activity for instance that gets called when upgrading an application? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] upgrade
On Sat, Mar 26, 2011 at 2:55 PM, Hendrik Greving fourhend...@gmail.com wrote: Is there a function in the API of activity for instance that gets called when upgrading an application? Thanks ACTION_PACKAGE_REPLACED will be broadcast. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] upgrade
Thx! On Mar 26, 2011 11:55 AM, Mark Murphy mmur...@commonsware.com wrote: On Sat, Mar 26, 2011 at 2:55 PM, Hendrik Greving fourhend...@gmail.com wrote: Is there a function in the API of activity for instance that gets called when upgrading an application? Thanks ACTION_PACKAGE_REPLACED will be broadcast. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: DashBoard
On Sat, Mar 26, 2011 at 11:44 AM, Pent supp...@apps.dinglisch.net wrote: Please suggest any tutorial for creation Dashboard in API 2.2 Are we supposed to know what Dashboard is? You are tireless :-) Where do you draw the energy from ? LOL ... Yoga. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android phones
I guess the difference is the hardware... you can develop in any android phone, if you are planning application development. You just have to go to settings - applications - Develop, and check there USB debugging :) I will suggest you to check www.geeksphone.com as they sell their phones with root access :) On Sat, Mar 26, 2011 at 5:18 PM, bob b...@coolgroups.com wrote: Google is selling unlocked Android phones for 399.00 and 479.00. Is there a good reason for me to get one of these to develop on as opposed to a 230.00 phone at MetroPCS? Can someone help me understand the difference? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- http://aitorTheRed.blogspot.com http://www.last.fm/user/aitorTheRed/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] findViewById returning NULL
What version of eclipse are you using? And on what operating system? I have read that eclipse versions 3.6, sometimes gives some kind of weird errors, like the one you are describing... Just to be on the safe side, you could donwload any 3.5.X eclipse version and check if this still happens... On Sat, Mar 26, 2011 at 5:14 PM, New Developer secur...@isscp.com wrote: Thanks No there is no android.R import and I have tried the Project-Clean That is one sure way to trip it off thou at least 97% of the time that I have done a Project-Clean I have the failure occur. thanks again On Mar 26, 2011, at 10:19 AM, B Lyon wrote: pretty weird eclipse didn't insert an import to (something I forgot).R.* did it? Seems like it will do that sometimes. Of course, you can do a Project--Clean, but it may come back anyway in this case let me know when you figure it out what it is On Sat, Mar 26, 2011 at 8:19 AM, New Developer secur...@isscp.com wrote: Thanks No I only have a single landscape layout. The biggest baffle is that is works and then does not work All I do is re-type the findViewByID part and in the layout xml re-type the android:id line and 95% that fixes it. But this case where it does and does not work, while I am working on another section is frustrating to say the least Thanks again On Mar 25, 2011, at 3:13 PM, B Lyon wrote: Not sure if it applies in your case, but do you have a separate layouts for landscape and portrait and that view is defined in only one of them? I think the eclipse android plugin might not catch this kind of thing, and so you wouldn't find out until runtime that it wasn't in both layouts. On Fri, Mar 25, 2011 at 2:56 PM, New Developer secur...@isscp.com wrote: Sometimes not always the following line final ExpandableListView menuView= (ExpandableListView) findViewById(R.id.menuListing); may or may not return null and thus aborts with a NullExceptionError Any ideas how to fix this permanently to always return a valid thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- http://aitorTheRed.blogspot.com http://www.last.fm/user/aitorTheRed/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Dialog box without title
Hi all, Is there a way, I can remove title from the default dialog box ? I am using following code : Dialog alertDialog = new Dialog(getApplicationContext()); alertDialog.setContentView(R.layout.info); alertDialog.setCancelable(true); alertDialog.show(); But it shows a titlebar with no text in it. How can I avoid that? Regards, Archit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android phones
Bob, The actual difference depends on whether you plan on building and installing firmware, or just building applications. If it's the latter, any phone that has Android Market should work. -- Kostya 26.03.2011 22:21, Aitor Mendaza Ormaza ?: On Sat, Mar 26, 2011 at 5:18 PM, bob b...@coolgroups.com mailto:b...@coolgroups.com wrote: Google is selling unlocked Android phones for 399.00 and 479.00. Is there a good reason for me to get one of these to develop on as opposed to a 230.00 phone at MetroPCS? Can someone help me understand the difference? -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Where can I find the samsung android api docs?
You could take a look here: http://innovator.samsungmobile.com/ http://innovator.samsungmobile.com/ http://innovator.samsungmobile.com/galaxyTab.do http://innovator.samsungmobile.com/galaxyTab.doHope it helps! On Fri, Mar 25, 2011 at 2:37 PM, André pha...@hotmail.com wrote: What I want to do is to read a file to a edittext, but on samsung phones it cuts off at about 10 kb which sucks. It works fine on every other device except samsung. I've tried buffered reader, input streams and everything else I can think of, but still no luck. I've asked this question here before but no one seems to know the answer. So instead, does anyone know a good place where I might find some answers to this problem? Cheers André -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- http://aitorTheRed.blogspot.com http://www.last.fm/user/aitorTheRed/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Email Intent Back Button Handling
On Sat, Mar 26, 2011 at 12:42 PM, Laxmi Verma laxmiverma.andr...@gmail.comwrote: Now, the flow should be like that when I press back button without clicking on email button it should finish the current activity. That's the default behavior. However, once i clicked on email button and then pressing back button it should stay there in the activity as per the normal flow. That's not normal flow. Pressing back button finishes an activity - that's the normal flow. I had written the code that when the back button is directly pressed in the activity, then onKeyCode() method I had called the finish() and when the email button is pressed i had checked a boolean variable in that. What? That's not very clear. Now, the* problem is it never goes in the onKeyCode() method when the email intent is called and pressing back button on it. * If you're expecting your key code function to be called during another activity, that's not going to happen. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] LunarLander
I'm looking at the LunarLander sample that comes with the Android SDK. Is this sample just for the emulator? It uses the arrow keys, so I don't see how that would work on a real phone where there are no arrow keys. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Dialog box without title
On Sat, Mar 26, 2011 at 2:32 PM, Archit Jain dce.arc...@gmail.com wrote: Dialog alertDialog = new Dialog(getApplicationContext()); Never use getApplicationContext() - it's pointless and doesn't work for Dialogs. I'm surprised you're seeing anything. But it shows a titlebar with no text in it. How can I avoid that? If you don't specify a title, none will be shown. I do this *a lot*. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] notification
i post a notification and call notification.setLatestEventInfo() with the contentText argument. when it's longish - the system truncates the text. any way to tell it not to do so. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] notification
Write something shorter. Or, create your own RemoteViews for the contentView. On Sat, Mar 26, 2011 at 4:30 PM, dashman erjdri...@gmail.com wrote: i post a notification and call notification.setLatestEventInfo() with the contentText argument. when it's longish - the system truncates the text. any way to tell it not to do so. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] notification
isn't there anyway to put in on two lines? On Sat, Mar 26, 2011 at 9:36 PM, Mark Murphy mmur...@commonsware.comwrote: Write something shorter. Or, create your own RemoteViews for the contentView. On Sat, Mar 26, 2011 at 4:30 PM, dashman erjdri...@gmail.com wrote: i post a notification and call notification.setLatestEventInfo() with the contentText argument. when it's longish - the system truncates the text. any way to tell it not to do so. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Benats Guillaume. (Computer Sciences, FUNDP, Namur) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] notification
On Sat, Mar 26, 2011 at 4:41 PM, guillaume benats guillaume.ben...@gmail.com wrote: isn't there anyway to put in on two lines? Yes, by creating your own RemoteViews for the contentView. A Notification's default RemoteViews supports only one line for the description, with the marquee effect on for android:ellipsize. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] notification
ok thanks :-) On Sat, Mar 26, 2011 at 9:58 PM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Mar 26, 2011 at 4:41 PM, guillaume benats guillaume.ben...@gmail.com wrote: isn't there anyway to put in on two lines? Yes, by creating your own RemoteViews for the contentView. A Notification's default RemoteViews supports only one line for the description, with the marquee effect on for android:ellipsize. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Benats Guillaume. (Computer Sciences, FUNDP, Namur) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] MPlayer for Android
Hi All, I am trying to develop a Audio/Video library, where users can listen and view audio/video files. I was looking forward to do this with Android MPlayer. But I am running out of ways to invoke the MPlayer from the Java (android java) code. Any pointer will be really helpful. Thanks and regards, Ankur -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Getting a Google Account token to use for Google Reader calls?
I've found various sources online trying to do this but every example I found hasn't worked for me. Most simply return 401 errors from the server. I've gotten the auth token needed to make the calls from the local accounts on the phone and I've also tried making the ClientLogin call specifically with my username and password, and either way they're returning 401s. So, has anyone been successful in getting unread Google Reader posts? Extra credit if you're doing it without having to handle a user's Google Account credentials first hand, but are doing it through allowed permissions. -- Chris Stewart http://chriswstewart.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] MPlayer for Android
On Sat, Mar 26, 2011 at 5:15 PM, Ankur Avlani ankuravl...@gmail.com wrote: I am trying to develop a Audio/Video library, where users can listen and view audio/video files. I was looking forward to do this with Android MPlayer. But I am running out of ways to invoke the MPlayer from the Java (android java) code. Any pointer will be really helpful. The Linux mplayer is not part of Android. If there is an mplayer port for Android, you are better off asking that project's members any questions regarding the use of their port. If you are referring to something else, please elaborate. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Encrypt Files
I see a bunch of errors reported, but none with the exception code (whatever that means). If you want people to look at your problem you've got to adequately describe it. On Mar 26, 7:30 am, jaafar zbeiba jaafarinformati...@gmail.com wrote: which ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] MPlayer for Android
Since Android is deployed on Linux, I am guessing there should be a mechanism in Android to invoke the MPlayer? or any undocumented way? Thanks and regards, Ankur. On Sat, Mar 26, 2011 at 2:28 PM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Mar 26, 2011 at 5:15 PM, Ankur Avlani ankuravl...@gmail.com wrote: I am trying to develop a Audio/Video library, where users can listen and view audio/video files. I was looking forward to do this with Android MPlayer. But I am running out of ways to invoke the MPlayer from the Java (android java) code. Any pointer will be really helpful. The Linux mplayer is not part of Android. If there is an mplayer port for Android, you are better off asking that project's members any questions regarding the use of their port. If you are referring to something else, please elaborate. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] MPlayer for Android
On Sat, Mar 26, 2011 at 5:35 PM, Ankur Avlani ankuravl...@gmail.com wrote: Since Android is deployed on Linux, I am guessing there should be a mechanism in Android to invoke the MPlayer? or any undocumented way? Of course not, no more than you can invoke the MPlayer on a Linux-powered piece of networking equipment, like a router or firewall. MPlayer is a user application and is not necessarily installed on any given Linux-powered piece of equipment. MPlayer, in particular, is not in Android. Most Linux user applications are not in Android. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: findViewById returning NULL
I logged a bug a while back about problems with project cleaning using Eclipse and ADT 10. Please star it if it's a problem for you. Maybe it will get fixed faster. http://code.google.com/p/android/issues/detail?id=15209 Doug On Mar 26, 9:14 am, New Developer secur...@isscp.com wrote: Thanks No there is no android.R import and I have tried the Project-Clean That is one sure way to trip it off thou at least 97% of the time that I have done a Project-Clean I have the failure occur. thanks again On Mar 26, 2011, at 10:19 AM, B Lyon wrote: pretty weird eclipse didn't insert an import to (something I forgot).R.* did it? Seems like it will do that sometimes. Of course, you can do a Project--Clean, but it may come back anyway in this case let me know when you figure it out what it is On Sat, Mar 26, 2011 at 8:19 AM, New Developer secur...@isscp.com wrote: Thanks No I only have a single landscape layout. The biggest baffle is that is works and then does not work All I do is re-type the findViewByID part and in the layout xml re-type the android:id line and 95% that fixes it. But this case where it does and does not work, while I am working on another section is frustrating to say the least Thanks again On Mar 25, 2011, at 3:13 PM, B Lyon wrote: Not sure if it applies in your case, but do you have a separate layouts for landscape and portrait and that view is defined in only one of them? I think the eclipse android plugin might not catch this kind of thing, and so you wouldn't find out until runtime that it wasn't in both layouts. On Fri, Mar 25, 2011 at 2:56 PM, New Developer secur...@isscp.com wrote: Sometimes not always the following line final ExpandableListView menuView = (ExpandableListView) findViewById(R.id.menuListing); may or may not return null and thus aborts with a NullExceptionError Any ideas how to fix this permanently to always return a valid thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] LunarLander
On Sat, Mar 26, 2011 at 3:24 PM, bob b...@coolgroups.com wrote: It uses the arrow keys, so I don't see how that would work on a real phone where there are no arrow keys. Some devices have a DPad or trackball. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
RE: [android-developers] Android phones
The phones from android are rooted and able to be used on any carrier with a supported network. Like Kostya said if your just doing app development any android phone with the market on it will work (rooted or not) if you want to do firmware or mess with the android OS itself like making custom roms you would probably be better off with one from google. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Kostya Vasilyev Sent: Saturday, March 26, 2011 3:38 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Android phones Bob, The actual difference depends on whether you plan on building and installing firmware, or just building applications. If it's the latter, any phone that has Android Market should work. -- Kostya 26.03.2011 22:21, Aitor Mendaza Ormaza пишет: On Sat, Mar 26, 2011 at 5:18 PM, bob b...@coolgroups.com wrote: Google is selling unlocked Android phones for 399.00 and 479.00. Is there a good reason for me to get one of these to develop on as opposed to a 230.00 phone at MetroPCS? Can someone help me understand the difference? -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] LunarLander
One more thing about Lunar Lander is that, afaik, it's not the best place to start on your own GL project, as it has some well known, annoying bugs. The open source Replica Island doesn't have those, and just may be a better sample to learn from. 27.03.2011 1:47 пользователь TreKing treking...@gmail.com написал: On Sat, Mar 26, 2011 at 3:24 PM, bob b...@coolgroups.com wrote: It uses the arrow keys, so I don't see how that would work on a real phone where there are no arrow keys. Some devices have a DPad or trackball. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] totally 2d
Let's say you are making a totally 2d game for Android. Does it make sense to use OpenGL? Will you get a better framerate or anything besides complexity? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] notification
I have seen notifications scroll. Have you tried to use a \n in yours? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Encrypt Files
when I run the emulator it gives me an error message (the application (process com.example )has stopped unexpectedly but I gave me the code and also logcat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Dialog box without title
setCancelable(false); specify your own positive and negative button callbacks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to serialize a complex class in Android for Web Service call using Android using KSOAP2?
Hi all, I'm currently developing an android app for a public transportation system. I need to use the webservice for fetching the information regarding the public vehicles. For this purpose I'm using KSOAP2. There is a webservice(C# SOAP) for calling a method like getSchedule(param1,param2). The method returns an object of type Schedule. So I've created a class of same name in Android with the implementation of KvmSerializable Interface for Serialization. But the problem is that the Class Schedule(which is defined in WebService) is more complex. It inherits another class and also contains arraylist inside it as - class Schedule : Plan { int Id; String Name; ArrayListPlace places; . } In such situation, how such complex class can be serialized? thanx in advance Neo182 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] car dock mode
Hi is there a broadcast even when entering/leaving car dock mode? Actually, finding these kind of events is a little cumbersome in the otherwise excellent documentation... - Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: totally 2d
It all depends on how you actually write your programs that you will get better performance. However, in general, if you game really needs to eek out speed then going the OpenGL route, done well, should result in better performance than the Canvas method. Though I have not actually tested it yet and so far my games have not been complicated enough to warrant using OpenGL; Canvas has been enough for my needs and had a good frame rate too. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] car dock mode
On Sat, Mar 26, 2011 at 8:29 PM, Hendrik Greving fourhend...@gmail.comwrote: Hi is there a broadcast even when entering/leaving car dock mode? Apparently. Actually, finding these kind of events is a little cumbersome in the otherwise excellent documentation. Step 1 - Go to Intent class definition: http://developer.android.com/reference/android/content/Intent.htmlhttp://developer.android.com/reference/android/content/Intent.html#ACTION_DOCK_EVENT Step 2 - Search the page for a key word you're looking for, like dock. This leads to this: http://developer.android.com/reference/android/content/Intent.html#ACTION_DOCK_EVENT - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Augmented Reality and Spherical 360º Views
Hi, Im working on a AR framework to have the same functionality and behaviour as Layar or Wikitude does. Im working hard and now Im totally stuck and missing many hours trying to fix a problem: I cant get the screen objects to move smooth. Im trying to figure out how layar, wikitude, skymap or streetview does to have such a smooth moving overlays that follows the orientation changes of the devices. But I cant. (PLEASE: google free the skymap code) I dont even know if Im focusing the problem well so please, if someone could help me a bit It would be awesome. So here are some questions for someone who may answer it: - Any tip for the sensor noise removal? Low pass filter, threeshold? both? any value for that filters? I tried EVERYTHING but the smooth problem may not be just here (so sad) - Any useful tip to make the overlay views move smooth? Im using a framelayout witch has a camera overlay on it. Over it I paint everything else, the radar and its points, a frame, and the moving views so: - You think skymap or wikitude use a separated thread just for the painting? Should I include all the moving views on a surface or am I doing well? Do you think they are using openGL? Thank you very very much in advance. Any help would be appreciated. Im totally desperate and can go head without this issue solved. Sorry for my bad english and regards. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Bluetooth
It looks a better way is to make a l2cap connection and look at the exception. On Mar 26, 2:47 am, ehpaul hansp...@gmail.com wrote: So basically I will have a background thread that periodically tried to connec and immediate disconnect? On Mar 25, 4:35 pm, Kristopher Micinski krismicin...@gmail.com wrote: On Fri, Mar 25, 2011 at 4:53 AM, ehpaul hansp...@gmail.com wrote: Hello, I am writing an android program that I need to know when a bluetooth device (I know the Mac) is in range. The program also needs to be aware when the device is not in range. Is there any way to do this without establishing a connection? Not that I've seen from the Bluetooth API exposed to the user. I don't understand the underlying protocol horribly well, but you need to actually scan for the uuid using SDP, which requires a call to the API. When the device is in range, I am able to call BluetoothAdapter.getRemoteDevice and retrieve the friendly name. But when I am not in range, it seems this information is cached. I was thinking if I can use the friendly name as an indicator whether the device is within range (i.e If friendly name is not null, then it's in range). I am certain there is better way to do this. But it seems the only way is to establishing a connection. I don't think there is a better way, at least with the current API. Unless by better way you mean a more elaborate synchronization mechanism or something like that. But yes, I think at least from the API exposed by the android system, you have to do polling. (I wanted to do what you described too, I think it's a common thing, but perhaps not the anticipated use of BT and / or the android API.) Kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Bluetooth
Nice find then, I hadn't known about that, but is it possible from Java? Kris On Sat, Mar 26, 2011 at 10:24 PM, ehpaul hansp...@gmail.com wrote: It looks a better way is to make a l2cap connection and look at the exception. On Mar 26, 2:47 am, ehpaul hansp...@gmail.com wrote: So basically I will have a background thread that periodically tried to connec and immediate disconnect? On Mar 25, 4:35 pm, Kristopher Micinski krismicin...@gmail.com wrote: On Fri, Mar 25, 2011 at 4:53 AM, ehpaul hansp...@gmail.com wrote: Hello, I am writing an android program that I need to know when a bluetooth device (I know the Mac) is in range. The program also needs to be aware when the device is not in range. Is there any way to do this without establishing a connection? Not that I've seen from the Bluetooth API exposed to the user. I don't understand the underlying protocol horribly well, but you need to actually scan for the uuid using SDP, which requires a call to the API. When the device is in range, I am able to call BluetoothAdapter.getRemoteDevice and retrieve the friendly name. But when I am not in range, it seems this information is cached. I was thinking if I can use the friendly name as an indicator whether the device is within range (i.e If friendly name is not null, then it's in range). I am certain there is better way to do this. But it seems the only way is to establishing a connection. I don't think there is a better way, at least with the current API. Unless by better way you mean a more elaborate synchronization mechanism or something like that. But yes, I think at least from the API exposed by the android system, you have to do polling. (I wanted to do what you described too, I think it's a common thing, but perhaps not the anticipated use of BT and / or the android API.) Kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Time Out on Insistent Notifications
My app provides preferences to allow the user to control how they wish to be notified - any combination of Sound, Vibrate, LED - and whether it should be a persistent notification. Depending on their settings I set the Notification.defaults and Notification.flags accordingly. When insistent notification is active, all the selected forms of notification behave insistently as I'd expect - and I don't have to do much coding to make it happen. Is there an easy way to set a time limit on the insistent notification? Or is there a way to manually clear the notification sound/vibrate/LED but without removing the text from the notification list? -- Jake Colman -- Android Tinkerer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] car dock mode
Ah ok, thanks. On Mar 26, 2011 6:57 PM, TreKing treking...@gmail.com wrote: On Sat, Mar 26, 2011 at 8:29 PM, Hendrik Greving fourhend...@gmail.com wrote: Hi is there a broadcast even when entering/leaving car dock mode? Apparently. Actually, finding these kind of events is a little cumbersome in the otherwise excellent documentation. Step 1 - Go to Intent class definition: http://developer.android.com/reference/android/content/Intent.html http://developer.android.com/reference/android/content/Intent.html#ACTION_DOCK_EVENT Step 2 - Search the page for a key word you're looking for, like dock. This leads to this: http://developer.android.com/reference/android/content/Intent.html#ACTION_DOCK_EVENT - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Webviews and javascript alerts
HI all, I have been trying to solve the following issue and I am wondering if anyone else has run into a similar case: I load an html page that is associated with a set of javascript functions. When the user presses on one of the buttons a javascript function is executed and it generates a new page using: document.getElementById('parenthtml').innerHTML=newhtml; In addition a javascript alert displays a particular warning for the user to read using the following in the the webview class: wv.setWebChromeClient(new WebChromeClient() { public boolean onJSAlert(WebView view, String url, String message, JsResult result) { return true; } }); When the page switches to the one the generated one the alerts do not work anymore. Is this normail? Since the page and its functions are generated in the same control as the main page I was expecting the alerts to work there as well. Any ideas? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Augmented Reality and Spherical 360º Views
On Mar 26, 10:01 pm, miguel miguelp...@gmail.com wrote: - Any tip for the sensor noise removal? Low pass filter, threeshold? both? any value for that filters? I tried EVERYTHING but the smooth problem may not be just here (so sad) - Any useful tip to make the overlay views move smooth? Threading only helps separate the computation from the visuals, so neither one gets too hung up on the other. The most common filtering done, from Wiimotes to Google Star Map, is kalman filtering. It can take a bit of time and effort to tune it right, but it will work better than anything else to remove sensor nonrepeatability noise and jitter from an arbitrary motion. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] car dock mode
Better: http://developer.android.com/reference/android/app/UiModeManager.html On Sat, Mar 26, 2011 at 8:21 PM, fourhend...@gmail.com fourhend...@gmail.com wrote: Ah ok, thanks. On Mar 26, 2011 6:57 PM, TreKing treking...@gmail.com wrote: On Sat, Mar 26, 2011 at 8:29 PM, Hendrik Greving fourhend...@gmail.com wrote: Hi is there a broadcast even when entering/leaving car dock mode? Apparently. Actually, finding these kind of events is a little cumbersome in the otherwise excellent documentation. Step 1 - Go to Intent class definition: http://developer.android.com/reference/android/content/Intent.html http://developer.android.com/reference/android/content/Intent.html#ACTION_DOCK_EVENT Step 2 - Search the page for a key word you're looking for, like dock. This leads to this: http://developer.android.com/reference/android/content/Intent.html#ACTION_DOCK_EVENT - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Dialog box without title
don't use this while writing your dialog box code--- dialog.setTitle(Title name); On Mar 27, 12:32 am, Archit Jain dce.arc...@gmail.com wrote: Hi all, Is there a way, I can remove title from the default dialog box ? I am using following code : Dialog alertDialog = new Dialog(getApplicationContext()); alertDialog.setContentView(R.layout.info); alertDialog.setCancelable(true); alertDialog.show(); But it shows a titlebar with no text in it. How can I avoid that? Regards, Archit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Dialog box without title
I haven't used dialog.setTitle(Title name); but it still shows a titel with no tex in it ...as in the snapshot in last image. Regards, Archit Jain On Sun, Mar 27, 2011 at 10:33 AM, Dixi dixitwadhw...@gmail.com wrote: don't use this while writing your dialog box code--- dialog.setTitle(Title name); On Mar 27, 12:32 am, Archit Jain dce.arc...@gmail.com wrote: Hi all, Is there a way, I can remove title from the default dialog box ? I am using following code : Dialog alertDialog = new Dialog(getApplicationContext()); alertDialog.setContentView(R.layout.info); alertDialog.setCancelable(true); alertDialog.show(); But it shows a titlebar with no text in it. How can I avoid that? Regards, Archit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Dialog box without title
Use: requestWindowFeature(Window.FEATURE_NO_TITLE); On Sat, Mar 26, 2011 at 10:03 PM, Dixi dixitwadhw...@gmail.com wrote: don't use this while writing your dialog box code--- dialog.setTitle(Title name); On Mar 27, 12:32 am, Archit Jain dce.arc...@gmail.com wrote: Hi all, Is there a way, I can remove title from the default dialog box ? I am using following code : Dialog alertDialog = new Dialog(getApplicationContext()); alertDialog.setContentView(R.layout.info); alertDialog.setCancelable(true); alertDialog.show(); But it shows a titlebar with no text in it. How can I avoid that? Regards, Archit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/ http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: New tablet-specific area in the Market
This could be a good example of why there is still a lot of room in the Android ecosystem for sites like appbrain, which let you do a truly full featured search of the market. On Mar 25, 12:18 pm, Chris Stewart cstewart...@gmail.com wrote: Right, and that was my assumption. If they're actually being picked by a human, then yeah I wouldn't assume someone would spill how that works. But, if they're being automatically updated based on apps that are set to be Honeycomb specific, that's what I was hoping to gain insight to assuming anyone would know if that's the case. As far as I can tell, that view is the only way to say show me tablet apps. You can't see them by category, or really in any other form, so I wouldn't be surprised in the least bit if there really are only about 50 of them available on the Market at this point. If that's the case, I would hope there's some automatic way that view is being updated as new Honeycomb-specific apps are being released. Until there's enough to justify the category and hand-picked featured system we see for the phone apps. -- Chris Stewarthttp://chriswstewart.com On Fri, Mar 25, 2011 at 3:06 PM, TreKing treking...@gmail.com wrote: On Fri, Mar 25, 2011 at 1:54 PM, Chris Stewart cstewart...@gmail.comwrote: I know we're very much left in the dark as to how some of those things work, but does anyone have any insight as to how this list works? If you're talking about the Featured Apps for Tablets section on the website, then the answer is probably the same as the old Featured section: no one here knows how they're picked and the people that do aren't going to tell you. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Dialog box without title
Thanks Miguel ... it worked :) Regards, Archit Jain On Sun, Mar 27, 2011 at 10:46 AM, Miguel Morales therevolti...@gmail.comwrote: Use: requestWindowFeature(Window.FEATURE_NO_TITLE); On Sat, Mar 26, 2011 at 10:03 PM, Dixi dixitwadhw...@gmail.com wrote: don't use this while writing your dialog box code--- dialog.setTitle(Title name); On Mar 27, 12:32 am, Archit Jain dce.arc...@gmail.com wrote: Hi all, Is there a way, I can remove title from the default dialog box ? I am using following code : Dialog alertDialog = new Dialog(getApplicationContext()); alertDialog.setContentView(R.layout.info); alertDialog.setCancelable(true); alertDialog.show(); But it shows a titlebar with no text in it. How can I avoid that? Regards, Archit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/ http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en