Re: [android-developers] Re: Possible to check .apk signature?
On Thu, Oct 7, 2010 at 6:22 PM, DanH danhi...@ieee.org wrote: So what is protecting the application from forgery? What do you mean? This is the cert it is signed with. Do you have some way to force the cert? -- 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] OpenGL version info
hi, how to find programatically which version of opengl es is being used for any 3D project.? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] Keeping IntentService alive even if app is killed
No there is nothing you can do about that. You just have to tell your users to stop breaking your app with their $#^!! task killers. (Starting with Froyo task killers will not be able to do this.) On Thu, Oct 7, 2010 at 7:37 PM, William Ferguson william.ferguson.au@ gmail.com wrote: I have an app that occassionally starts an IntentService (bundled in the same app) in which to process some backrgound work. Its not unusual for the user to exit the app (ie move on to somethign else) and the backrgound work should continue until it is complete, which the IntentService handles nicely. But if the user decides to explicilty kill my app using ManageApps then it kills not only the remnants of my application but also the IntentService. And that's not so great. If they had specifically targetted the running service I could live with it. Is there a way that I can configure the IntentService (without bundling it in its own app) so that killing the app does not kill the IntentService too? I tried setting a different Process for the Activity, the IntentService, the application. But it didn't have a positive effect. Anyone know how I can manage 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.comandroid-developers%2bunsubscr...@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
Re: [android-developers] Keeping IntentService alive even if app is killed
Oh sorry, I see that you are specifically talking about manage apps. In that case... the whole point of the force stop in manage apps is for a user to stop an app that they really want to make stop. As such, there is nothing you can do about it. The next version of the platform will include an interstitial dialog warning the user that the force stop could break the app they are stopping. On Thu, Oct 7, 2010 at 11:02 PM, Dianne Hackborn hack...@android.comwrote: No there is nothing you can do about that. You just have to tell your users to stop breaking your app with their $#^!! task killers. (Starting with Froyo task killers will not be able to do this.) On Thu, Oct 7, 2010 at 7:37 PM, William Ferguson william.ferguson.au@ gmail.com wrote: I have an app that occassionally starts an IntentService (bundled in the same app) in which to process some backrgound work. Its not unusual for the user to exit the app (ie move on to somethign else) and the backrgound work should continue until it is complete, which the IntentService handles nicely. But if the user decides to explicilty kill my app using ManageApps then it kills not only the remnants of my application but also the IntentService. And that's not so great. If they had specifically targetted the running service I could live with it. Is there a way that I can configure the IntentService (without bundling it in its own app) so that killing the app does not kill the IntentService too? I tried setting a different Process for the Activity, the IntentService, the application. But it didn't have a positive effect. Anyone know how I can manage 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.comandroid-developers%2bunsubscr...@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. -- 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: Anybody experiencing a boost in sales since opening up to other countries?
Yes, this happened to me as well. I think there must have been something wrong with the market, as I haven't had a sale for about 10 hrs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Design/flowchart scheme for Android apps?
what's 'sequential programming'? :P (couldn't resist) I'm guessing that you're looking for a tool to help with documenting your OO architectural/design thoughts? I'd say that any tool capable of handling UML could do that. These come with many price tags, from 0$ to very expensive, and sometimes functionalty reflects this. If you want a drawing tool, take a look at StarUML (free) or Visio (not free). At the other end of the scale you'd find tools like Together, Rational Rose and others. BR Per On 7 Okt., 19:37, DanH danhi...@ieee.org wrote: I'm not looking for a flowcharting tool, but rather something to design the relationships between Activities, Intents, Providers, etc. Android isn't a conventional sequential programming environment, and sequential programming design tools are of little help. On Oct 7, 12:15 pm, Bret Foreman bret.fore...@gmail.com wrote: I think the Rational toolset (RUP) has a generic tool for creating flowcharts for most languages, including Java. That's not free, but it would be a good thing to study before recreating the same functionality in open source. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Anybody experiencing a boost in sales since opening up to other countries?
Yesterday was fantastic. Today was quite a bit slower. Not a plummet, but back down to previous levels. I did have a long stent today where sales barely moved. Maybe there was a problem... On Oct 7, 11:20 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Yes, this happened to me as well. I think there must have been something wrong with the market, as I haven't had a sale for about 10 hrs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] 2.2 apk does not install in 2.1 droid
Hi All, I have created a project in Android 2.2 SDK . The droid I am having is of OS 2.1 . I am not able to install the project in droid,because of OS change version. How to make it install apk in old OS versions. Please reply,it is urgent. Thanks Kavitha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Possible to check .apk signature?
In my implementation, the danger is not that the hacker will use my key to sign the apk after modifying it (not possible), but that the hacker will debug the post variables being sent to the server and copy the key, then hard code the string into the api call, do his other modifications, sign it with his key, and poof, my anti-piracy measures are broken. However, I also log a the CRC32 of the current app with each api call. If I see a particular CRC32 that I know I didn't sign, I can block its api access selectively. Since I already require users to stay up to date within 2 versions, I have fairly good knowledge of what legitimate CRC32s are out there. On Oct 8, 2:01 am, Dianne Hackborn hack...@android.com wrote: On Thu, Oct 7, 2010 at 6:22 PM, DanH danhi...@ieee.org wrote: So what is protecting the application from forgery? What do you mean? This is the cert it is signed with. Do you have some way to force the cert? -- 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] Bluetooth Service registration in Android
Hi I am working on a Android app that require a Bluetooth Access Server that try to Discover the Application on Android phone and once connected send the Ads back to the phone. However the access server is not able to discover the Service that i have registered using the BluetoothAdapter listenUsingRfcommWithServiceRecord(BlueToothFriendFinder,MY_UUID ), Please let me know either i have sucessfully register the Bluetooth service or not,Please let me know if anyone has work on this before. Below is the Code packet that i am using : private class AcceptThread extends Thread { private final BluetoothServerSocket mmServerSocket; public AcceptThread() { BluetoothServerSocket tmp = null; try { UUID MY_UUID = UUID.fromString(fa87c0d0-afac-11de-8a39-0800200c9a66); tmp = mBluetoothAdapter.listenUsingRfcommWithServiceRecord(BlueToothFriendFinder,MY_UUID ); } catch (IOException e) { } mmServerSocket = tmp; } public void run() { BluetoothSocket socket = null; while (true) { try { Log.v(Working ,Server Register...); socket = mmServerSocket.accept(); bluetoothFinder.runOnUiThread(new Runnable() { public void run() { Toast.makeText(bluetoothFinder, Connected Connected Conect, Toast.LENGTH_SHORT).show(); } }); } catch (IOException e) { break; } if (socket != null) { manageConnectedSocket(socket); try { mmServerSocket.close(); } catch (IOException e) { e.printStackTrace(); } break; } } } -- *Thanks and Regards Ajmer Singh* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Anybody experiencing a boost in sales since opening up to other countries?
On Oct 8, 4:00 am, Julian Bunn jjb...@gmail.com wrote: I saw a temporary boost over a few days, then a plummet ... to below the previous levels. What's going on?! I guess it's more or less just the usual procedure: People are getting their salaries/allowances either at the beginning/end or middle of a month, so sales usually increase during those days (some people spend the money as long as the've got it, others like to check what remained of the last). With more countries, those tides are a bit distinctive. And of course, everything new is exiting for a short while, but the effect wears off quickly. I guess a lot of people used the chance to finally buy the apps they longed for as soon as it's been possible, but now they've done that already, the account is empty, and it's nothing special anymore... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] even i have an color state issue with list view selection swipe
Requirement : on touch / pressed d-pad scroll : list elements should highlight should be white list background should be magenta color during swipe left / right , up / down the list view should not get highlighted but i am facing problem ... list background is becoming white ( default ) but the highlight of list elements ( white ) - so i am seeing like white ... can any one help me to solve this issue list selector ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=true android:drawable=@drawable/magenta_bg / item android:state_pressed=true android:drawable=@drawable/magenta_bg / item android:state_selected=true android:drawable=@drawable/magenta_bg / /selector List Text element color ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_selected=true android:color=@color/white / item android:state_pressed=true android:color=@color/white / item android:color=@color/black / /selector -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Lost Checked state of check box in ListView while scrolling
Hey, Thanx for reply, but i'm getting ClassCastException at ((ListView)parent).isItemChecked(position) On Fri, Oct 8, 2010 at 11:14 AM, ravi pandit rhpan...@gmail.com wrote: Hey, Its supported from the android ListView .Set CHOICE_MODE and use methods like ((ListView)parent).isItemChecked(position) ((ListView)parent).setItemChecked(position, value) in your getView() or bindView() regards, ravi On Oct 7, 1:20 pm, Zsolt Vasvari zvasv...@gmail.com wrote: No, won't write the code for you. Just keep the selected item ids in a member SparseArray or something. Add/remove the items as they are clicked on and query it when you are binding the view. On Oct 7, 2:46 pm, Rocky rkjhaw1...@gmail.com wrote: thanks for replay, but how to handle it, please provide the logic or code. --RKJ On Thu, Oct 7, 2010 at 11:06 AM, Kumar Bibek coomar@gmail.com wrote: Since the ListView recylces the convertViews, you will have to keep track of the items which are selected when they go off the screen. This happens when you use convert views for lists and recycle it. On Thu, Oct 7, 2010 at 11:04 AM, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hi, I'm facing problem in scrolling. I've 20-25 items in my List, if i checked first check box, scroll down, then come up, my checked status lost (becomes unchecked), in cursor adaptor. If i use base adaptor problem is resolved but major issue with base adaptor is performance, if my list goes beyond the 100 items. I need help, i'm stuck here since more than 7-8 days -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: ImageView slow when using SetImageResource and MediaPlayer
isn't that what I am doing with the above code? Thread t = new Thread() { public void run() { ... thanks On Oct 5, 8:02 am, Simon Platten simonaplat...@googlemail.com wrote: Hi, Why don't you play your audio in one thread and play your animation in another thread? The way you have it now, its single synchronous process. Regards, Simon On Tue, Oct 5, 2010 at 3:50 PM, ArcDroid jacobrjohn...@gmail.com wrote: Hello, I am trying to play a sound and also show a new picture. The pictures are only ~1Kb in size, but it slows down the audio when I add in the setImageResource. Is it faster to use an array? I have tried running the audio in a new thread, but that doesn't seem to help. Thanks private Integer[] mImageIds = { R.drawable.gallery_photo_1, R.drawable.gallery_photo_2, R.drawable.gallery_photo_3, R.drawable.gallery_photo_4, R.drawable.gallery_photo_5, R.drawable.gallery_photo_6, R.drawable.gallery_photo_7, R.drawable.gallery_photo_8 }; private void playsound(final int i){ Thread t = new Thread() { public void run() { mp = MediaPlayer.create(getBaseContext(),i); mp.start(); mp.setOnCompletionListener(new OnCompletionListener() { public void onCompletion(MediaPlayer mp) { mp.release(); view.setImageResource(R.drawable.xyz); } }); }}; t.start(); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?
Very likely to be true. I did kind of think whelp, I guess everybody in Argentina who wanted my app bought it yesterday. Saturated that market. On Oct 7, 11:42 pm, mort m...@sto-helit.de wrote: On Oct 8, 4:00 am, Julian Bunn jjb...@gmail.com wrote: I saw a temporary boost over a few days, then a plummet ... to below the previous levels. What's going on?! I guess it's more or less just the usual procedure: People are getting their salaries/allowances either at the beginning/end or middle of a month, so sales usually increase during those days (some people spend the money as long as the've got it, others like to check what remained of the last). With more countries, those tides are a bit distinctive. And of course, everything new is exiting for a short while, but the effect wears off quickly. I guess a lot of people used the chance to finally buy the apps they longed for as soon as it's been possible, but now they've done that already, the account is empty, and it's nothing special anymore... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: 2.2 apk does not install in 2.1 droid
In your manifest file, you have probably set the minSDKVersion to 8. Set it to 7 or maybe lower. If you set it at 8, it will be a 2.2 only app. 7 is 2.1 and so on. 5 and 6 are irrelevant. If you want to work on 1.6 (there are still new devices being sold with 1.6), you need to set it to 4. On Oct 7, 11:36 pm, kavitha b kkavith...@gmail.com wrote: Hi All, I have created a project in Android 2.2 SDK . The droid I am having is of OS 2.1 . I am not able to install the project in droid,because of OS change version. How to make it install apk in old OS versions. Please reply,it is urgent. Thanks Kavitha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: 2.2 apk does not install in 2.1 droid
Sorry, I should have linked to the relevant documentation. http://developer.android.com/guide/topics/manifest/uses-sdk-element.html and http://developer.android.com/guide/topics/manifest/manifest-intro.html On Oct 7, 11:59 pm, JonFHancock jonfhanc...@gmail.com wrote: In your manifest file, you have probably set the minSDKVersion to 8. Set it to 7 or maybe lower. If you set it at 8, it will be a 2.2 only app. 7 is 2.1 and so on. 5 and 6 are irrelevant. If you want to work on 1.6 (there are still new devices being sold with 1.6), you need to set it to 4. On Oct 7, 11:36 pm, kavitha b kkavith...@gmail.com wrote: Hi All, I have created a project in Android 2.2 SDK . The droid I am having is of OS 2.1 . I am not able to install the project in droid,because of OS change version. How to make it install apk in old OS versions. Please reply,it is urgent. Thanks Kavitha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Simulating USB connection
On 7 Okt., 15:06, { Devdroid } webnet.andr...@gmail.com wrote: On 7 October 2010 14:26, DanH danhi...@ieee.org wrote: You sure the problem doesn't only occur when the USB is attached in SD sharing mode? No. Plug the cable - boom :) That's why I wonder how can I debug this w/o doing extensive logging and hoping it got written to the log. Unfortunately, for obvious reason I can't debug it on device ;) IMHO you can't simulate this without modifiying the kernel .. USB connected event has changed in froyo and is send via a sysfs state file in my opinion. And you can debug such usb connection problems with adb over wlan. Good luck ! Frank -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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 convert xml to svg in Android
How to convert xml to svg in Android, Anybody anyideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Create Image from String
Hi, I've been doing some tests and apparently the problem is not in the drawable, but in the way I create the InputStream. file_handle = new RandomAccessFile(payload.file(), r); file_handle.read(result); String output = new String(result); ImageView img = (ImageView) this.findViewById(R.id.DTNApps_DTNReceive_ImageView); byte[] bytes = output.getBytes(); InputStream in = new BufferedInputStream(new ByteArrayInputStream(bytes)); Where am I doing something wrong?? Do I have to indicate any encoding string (output.getBytes(US-ASCII) or something?? On 7 oct, 12:55, Gorka gork...@gmail.com wrote: Hi, I am trying to depict on the screen the image I receive from my neighbour via a text message. I mean, the other node sends me a message where an image is encode (I can read the PNG header, ...) and now I want to show it on the screen, but it doesn't appear nothing. I must be doing something wrong ¬¬. Here is my code: ImageView img = (ImageView) this.findViewById(R.id.DTNApps_DTNReceive_ImageView); byte[] bytes = input.getBytes(US-ASCII); InputStream in = new BufferedInputStream(new ByteArrayInputStream(bytes)); Drawable drw = Drawable.createFromStream(in, src); img.setImageDrawable(drw); As I said, nothing appears on the screen. The img hsa a correct value since I try img.setImageDrawable(getResources().getDrawable(R.drawable.sample_0)); and shows the picture. Can anyone help me?? Bye and thanks for your time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: System Settings.db corruption
Sorry, but what do you mean with Settings.db ? On 8 Okt., 00:54, cumhur cevik alice...@gmail.com wrote: Hi, When sqlite db corrupts it is creating a new one. But What happens when system Settings.db corruption? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to send data to server while recording
On Oct 8, 2:44 am, cindy ypu01...@yahoo.com wrote: why we need base64 encoding? Is that AMR ? Because HTTP is text based protocol - your server will barf on binary data (mine does ;) ) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why doesn't my 2d polygon get filled?
I can draw polygons with canvas.drawVertices, but I can not fill them. I have set Paint.Style.FILL on the paint object,but the polygon doesn't get filled. Why doesn't the polygon get filled? This is my code: mLinePaint2 = new Paint(); mLinePaint2.setARGB(255, 255, 0, 0); mLinePaint2.setStyle(Paint.Style.FILL); canvas.drawVertices(Canvas.VertexMode.TRIANGLES, verts.length, verts, 0, null, 0, null, 0, null, 0, 0, mLinePaint2); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Samsung Galaxy Camera flash-mode and zoom-supported oddities
I have no Galaxy S Epic to test with, and I essentially use something like if (camera.getParameters().getFlashMode(camera.getParameters()) != null) parameters.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH) to turn on the torch, so from your description I gather that this ought to work also on the Galaxy. However, I used FLASH_MODE_OFF to turn the torch LED off, which works fine on the HTC Desire with Android 2.2, but according to your description this would fail with the Galaxy. You can try my app The vOICe for Android (search Market for seeingwithsound, and toggle the color identification on/off via the Menu key (second entry) to see if indeed it fails to turn off the torch when done with the color identification feature. You could use this to validate your analysis of the Galaxy S Epic. On Oct 8, 5:26 am, mjmeyer mjmeye...@gmail.com wrote: I've been stunned by how different Samsung's camera behaves compared to the other devices I've tested camera preview stuff with. Mind you, this is in 2.1 so the SDK 8 Camera.getZoomRatios() and Camera.isZooomSupported() are not available. Looking at the Camera.getParameters().flatten() result shows that the common zoom-supported that I see in HTC, N1, and Mototrolla devices is not there. Instead there's something called digi-zoom. I couldnt find any documentation or posts about its usage but a little experimenting revealed it takes numerals 1..10 as string and will zoom accordingly. I have no idea what the ratios would be. Also, there's some madness with the flash mode on the Galaxy S Epic that I have tested with. Calls to getSupportedFlashModes() return only auto,on,off. There is no torch supported. However, if you do params.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH) it will turn the LED on! Sadly, subsequently setting it to FLASH_MODE_OFF or FLASH_MODE_AUTO does not turn the LED off! It's stuck on until Camera.release(), or maybe Camera.stopPreview(), I havent traced into it yet to see which actually turns it off. I suppose that's why Samsung doesnt return torch in the supported list. I'd prefer not to have to stop and restart the preview to turn it off for this model. Any suggestions or knowledge of apps that successfully turn torch on and then off on Galaxy? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Any proposed changes to the Android Market?
I think squelch button for app / developer in your market client would be sufficient - you just stop seeing it. This data could be collected by market and analyzed. BTW, is there some URL where one can see actual ranking of applications? 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: Lost Checked state of check box in ListView while scrolling
You might be using AdapterView other than the ListView like GridView etc try changing it.It should work. regards, ravi The PPite On Oct 8, 11:47 am, Rocky rkjhaw1...@gmail.com wrote: Hey, Thanx for reply, but i'm getting ClassCastException at ((ListView)parent).isItemChecked(position) On Fri, Oct 8, 2010 at 11:14 AM, ravi pandit rhpan...@gmail.com wrote: Hey, Its supported from the android ListView .Set CHOICE_MODE and use methods like ((ListView)parent).isItemChecked(position) ((ListView)parent).setItemChecked(position, value) in your getView() or bindView() regards, ravi On Oct 7, 1:20 pm, Zsolt Vasvari zvasv...@gmail.com wrote: No, won't write the code for you. Just keep the selected item ids in a member SparseArray or something. Add/remove the items as they are clicked on and query it when you are binding the view. On Oct 7, 2:46 pm, Rocky rkjhaw1...@gmail.com wrote: thanks for replay, but how to handle it, please provide the logic or code. --RKJ On Thu, Oct 7, 2010 at 11:06 AM, Kumar Bibek coomar@gmail.com wrote: Since the ListView recylces the convertViews, you will have to keep track of the items which are selected when they go off the screen. This happens when you use convert views for lists and recycle it. On Thu, Oct 7, 2010 at 11:04 AM, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hi, I'm facing problem in scrolling. I've 20-25 items in my List, if i checked first check box, scroll down, then come up, my checked status lost (becomes unchecked), in cursor adaptor. If i use base adaptor problem is resolved but major issue with base adaptor is performance, if my list goes beyond the 100 items. I need help, i'm stuck here since more than 7-8 days -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Anybody experiencing a boost in sales since opening up to other countries?
I had my best week up until yesterday. It wasn't related to the new countries as they have only come online a 3-4 days ago and I didn't see a significant uptick of non-US customers. But then yesterday, I had nothing for half a day and ended up with half the previous weeks' average sales. Today it's back to normal so far. Yes, it could have been a fluke, but I've never had an 8 hour period with 0 sales since day 1, so I will blame the Market :) On Oct 8, 2:42 pm, mort m...@sto-helit.de wrote: On Oct 8, 4:00 am, Julian Bunn jjb...@gmail.com wrote: I saw a temporary boost over a few days, then a plummet ... to below the previous levels. What's going on?! I guess it's more or less just the usual procedure: People are getting their salaries/allowances either at the beginning/end or middle of a month, so sales usually increase during those days (some people spend the money as long as the've got it, others like to check what remained of the last). With more countries, those tides are a bit distinctive. And of course, everything new is exiting for a short while, but the effect wears off quickly. I guess a lot of people used the chance to finally buy the apps they longed for as soon as it's been possible, but now they've done that already, the account is empty, and it's nothing special anymore... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Jumpnote
I was wondering if its possible to get the notifications from other's account on android with the help of Android? Jumpnote uses a two-way synchronization technique and I get the notifications at my android phone from my own account. What if i want to get the notifications from my friend. How do i achieve that with jumpnote? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Jumpnote
What is jumpnote and how does it relate to developing for the Android platform? On Oct 8, 4:13 pm, Rosebeat rosebeat2...@gmail.com wrote: I was wondering if its possible to get the notifications from other's account on android with the help of Android? Jumpnote uses a two-way synchronization technique and I get the notifications at my android phone from my own account. What if i want to get the notifications from my friend. How do i achieve that with jumpnote? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] App2SD
On 8 October 2010 02:16, Zaid zaid.a...@gmail.com wrote: i added android:installLocation=auto to my manifest and changed the project target api in eclipse to 8(was 3 b4) so my app can be installed to SD card, but i kept the minisdkversion to 3, so people with android 1.5 can use my app. my question is, can people with android version 1.5 still be able to download my app from the market after changing my target api to 8? Yes. Target API is one thing, but android:minSdkVersion is what limits in that case -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: 2.2 apk does not install in 2.1 droid
Thanks JonFHancock. It solved my problem. On Fri, Oct 8, 2010 at 12:31 PM, JonFHancock jonfhanc...@gmail.com wrote: Sorry, I should have linked to the relevant documentation. http://developer.android.com/guide/topics/manifest/uses-sdk-element.html and http://developer.android.com/guide/topics/manifest/manifest-intro.html On Oct 7, 11:59 pm, JonFHancock jonfhanc...@gmail.com wrote: In your manifest file, you have probably set the minSDKVersion to 8. Set it to 7 or maybe lower. If you set it at 8, it will be a 2.2 only app. 7 is 2.1 and so on. 5 and 6 are irrelevant. If you want to work on 1.6 (there are still new devices being sold with 1.6), you need to set it to 4. On Oct 7, 11:36 pm, kavitha b kkavith...@gmail.com wrote: Hi All, I have created a project in Android 2.2 SDK . The droid I am having is of OS 2.1 . I am not able to install the project in droid,because of OS change version. How to make it install apk in old OS versions. Please reply,it is urgent. Thanks Kavitha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Checkbox are not getting selected
Hi, I want to display list of items in my application and user will select checkbox which is present in front of each item. List is displayed well. It also shows checkbox infront of list item but when I click on checkBox it is not getting selected. My code is like this public void onCreate(Bundle icicle) { super.onCreate(icicle); String[] names = new String[] { 123, 234, 345, 456, 567, 678, 789, 980}; this.setListAdapter(new ArrayAdapterString(this,android.R.layout.simple_list_item_multiple_choice, names)); } @Override protected void onListItemClick(ListView lv, View v, int pos, long id) { super.onListItemClick(lv, v, pos, id); Object obj = this.getListAdapter().getItem(pos); String keyword = obj.toString(); Toast.makeText(this, User selected: + keyword, Toast.LENGTH_LONG) .show(); } what's wrong in this code? Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: numeric input by default
Thank you for reply. if I use the lines the edit field is not allow to enter the text symbols after switching from numiric to alfa mode. Best Regards, Sergey. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: WebView - Unable to call a dynamically added Javascript (part of a HTML) inside a DIV using innerHTML
@Kypriakos - I am not sure that we're discussing the same thing here. I am talking about DOM manipulation for setting the HTML and you seem to be talking about HTML headers written by an AJAX call. On Oct 5, 11:08 pm, kypriakos demet...@ece.neu.edu wrote: Hi Swaroop - I posted something similar in this post. I am a bit skeptic about how the default browser deals with js/ajax in Android vs how FF works: http://groups.google.com/group/android-developers/msg/9ea3fe940a397b88 I don't seem to have an issue with the innerHTML in the script i am using as much as I do with the output HTTP headers of the request. Anything here that we can help each other with let me know. On Oct 2, 11:11 pm, Swaroop gnanaswar...@gmail.com wrote: I agree that this is more of a HTML/JS question, but I've posted it here because the Browser implementation behind WebView is Android Specific and wish to understand a generic way to put innerHTML if any one has done the same in Android Development. Android's WebView and browser implement the innerHTML in the same way that HTML spec wants, but its just different when talking about Javascript availability (in question here) Swaroop On Oct 2, 4:15 am, Doug beafd...@gmail.com wrote: This is an HTML/DOM/JavaScript question, not an Android question. The fact that what you're doing doesn't work in FF should be a clue that you're probably depending on IE-specific behavior. Consider learning to use jQuery or some other JavaScript framework to do what you need to do to manipulate the DOM and that should work OK on mobile phones. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] [USSD] Any API's or code flow ?
Hi, Is there any APIs for USSD [*Unstructured Supplementary Service Data*] or how the code flow in Google's Android could some one point me. Some info that I have found here : /frameworks/base/telephony/java/com/android/internal/telephony//RIL.java /frameworks/base/telephony/java/com/android/internal/telephony/RILConstants.java /hardware/ril/include/telephony/ril.h /hardware/ril/libril/ril.cpp /hardware/ril/libril/ril_unsol_commands.h /vendor/qcom/proprietary/qcril/qcril_fusion/qcril_log.c Basics file which handles the USSD. -Thanks, Atul -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: caller id spoofing
Hi Greg, I think caller id is not sent by the phone that makes the call but is actually served to the receiving phone by the company at the other end. This might exists as an option in some professionnal phone contract. You should call the phone company which have the sale's staff contract. I'm not sure but you could also take a look at google voice that gives a fair amount of freedom with what you do with your phone numbers. But It won't be Android related. Yahel On 7 oct, 23:40, Greg Donald gdon...@gmail.com wrote: I've searched and found nothing helpful so I'm now asking for guidance. I have a client who wishes to spoof the caller id for his phones he assigns to his sales staff. He wants the number to appear to be from his main office to better handle return calls from potential buyers. Is this possible? After reading many posts on this list and much time Google'ng, I'm thinking it's not. Meanwhile he is pointing to his internal phone system which does exactly as he described. All his office phones appear to dial out from the same number as far as the receivers caller id is concerned. How can I pull off the same on Android? Thanks, -- Greg Donald destiney.com | gregdonald.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: [USSD] Any API's or code flow ?
From some other mail thread I found some good info : There is protected Registrant mUSSDRegistrant in package com.android.internal.telephony; in BaseCommands.java There is code to process USSD Response from RIL (telephony / java / com / android / internal / telephony / RIL.java) 2381 case RIL_UNSOL_ON_USSD: 2382 String[] resp = (String[])ret; 2383 2384 if (resp.length 2) { 2385 resp = new String[2]; 2386 resp[0] = ((String[])ret)[0]; 2387 resp[1] = null; 2388 } 2389 if (RILJ_LOGD) unsljLogMore(response, resp[0]); 2390 if (mUSSDRegistrant != null) { 2391 mUSSDRegistrant.notifyRegistrant( 2392 new AsyncResult (null, resp, null)); 2393 } Message displayed at device screen package com.android.phone; in class PhoneUtils static void displayMMIComplete -Regards Atul On Fri, Oct 8, 2010 at 2:29 PM, Atul Raut atul.dr...@gmail.com wrote: Hi, Is there any APIs for USSD [*Unstructured Supplementary Service Data*] or how the code flow in Google's Android could some one point me. Some info that I have found here : /frameworks/base/telephony/java/com/android/internal/telephony//RIL.java /frameworks/base/telephony/java/com/android/internal/telephony/RILConstants.java /hardware/ril/include/telephony/ril.h /hardware/ril/libril/ril.cpp /hardware/ril/libril/ril_unsol_commands.h /vendor/qcom/proprietary/qcril/qcril_fusion/qcril_log.c Basics file which handles the USSD. -Thanks, Atul -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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 debug APK in emulator with maven dependency
Hi I'm using maven-android-plugin in my android application. I'm a dependency which maven download from remote repository before APK build. But if I want to debug the APK in emulator it does not include the those maven dependency and as a result APK does not run with normal Run (using Eclipse) and can not be debug as well. Could someone know how to debug in this situation? Any suggestion is highly appreciated. Regards Mohammad Haque -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Wierd memory leak
On Thu, Oct 7, 2010 at 6:40 PM, DanH danhi...@ieee.org wrote: Right. The main difference is that StringBuffer is threadsafe, and nothing else in Android is threadsafe, so little point in using StringBuffer. Well, there are few places, where Java (Android) are thread safe (Vector, Stack, few classes in javax.nio.* and quite few classes in java.util.concurrent.*) If String modification is happening by multiple actors (user generated events, network) then it makes sense using StringBuffer. (That said, the performance edge of StringBuilder over StringBuffer is unlikely to be noticed.) True -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: thousands of strings
Thank you all! Evi On okt. 5, 01:40, DanH danhi...@ieee.org wrote: I think the main difference here is that I am not discounting alternative approaches. I'll admit that I overspoke slightly when I said it was dumb to use a DB in this case. I wouldn't say that it's smart or at all optimal, but it's not as outrageous as some other setups I've seen. But it seems a bit silly to me to be working on Android, that is so heavily (over) optimized in favor of lightweight, and then use a database sledgehammer to kill a tiny data access fly. (Incidentally, I used a binary radix tree (a form of trie) in the project that I'm just completing on a different platform. Used it to find data (via a KWIC index) in an SQL DB, since regular searching is so awkward on a phone.) On Oct 4, 6:25 pm, Tom Gibara tomgib...@gmail.com wrote: There's no index lookup -- it's a look-at operation -- no searching. I didn't mean to imply that there was searching. And you have to write the code to build the other ways too. One way or another there must be logic to read the (presumably plain-text) source file and insert it into: -- An XML document -- An SQL row -- Something else The android SDK comes bundled with sqlite3 which includes an import command which could help a lot (I've not used it so I couldn't say for sure). And with both the XML document and the SQL row you still need some logic on the other end to extract the data and make it live, so no savings there (probably a loss). Not sure where XML has come into it, but as for a SQL database, yes, this will need to be copied out of the raw resources before it can be opened and used as such. I didn't say that a database is less work, I wanted to draw attention to the fact that the algorithmics are only part of the effort involved. In terms of dynamic update, you've got a problem in any case as to how you manage that atomically. Easiest is to download the new files and then swap them in in place of the old, a simple process, and no more subject to problems on a crash (actually less so) than swapping in a new copy of the DB. I anticipate that swapping out a copy of the DB would only require the additional step of first closing it beforehand and reopening it afterwards -- little different than closing and reopening the 'packed string' file. Of course, with such a file, you are limited to supplying complete updates (or at best incremental updates) to the file. A database affords more flexibility. And the OP specifically framed it as a read-only data problem. The absence of a requirement stating that data are changeable is not the same thing as the stated requirement that they are not. I think the main difference here is that I am not discounting alternative approaches -- I have used a compact frequency weighted trie to package a 250k word corpus into an apk and I wouldn't have considered a sqlite DB for this task -- whereas you have said it's dumb to use a database. I don't think it is necessarily dumb, even if there are more efficient alternatives, because applications evolve, and a database might actually be less work in the long run. Tom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Lost Checked state of check box in ListView while scrolling
Hey Ravi, I'm using ListView not adapterView, but still i'm getting same exception On Fri, Oct 8, 2010 at 1:15 PM, ravi pandit rhpan...@gmail.com wrote: You might be using AdapterView other than the ListView like GridView etc try changing it.It should work. regards, ravi The PPite On Oct 8, 11:47 am, Rocky rkjhaw1...@gmail.com wrote: Hey, Thanx for reply, but i'm getting ClassCastException at ((ListView)parent).isItemChecked(position) On Fri, Oct 8, 2010 at 11:14 AM, ravi pandit rhpan...@gmail.com wrote: Hey, Its supported from the android ListView .Set CHOICE_MODE and use methods like ((ListView)parent).isItemChecked(position) ((ListView)parent).setItemChecked(position, value) in your getView() or bindView() regards, ravi On Oct 7, 1:20 pm, Zsolt Vasvari zvasv...@gmail.com wrote: No, won't write the code for you. Just keep the selected item ids in a member SparseArray or something. Add/remove the items as they are clicked on and query it when you are binding the view. On Oct 7, 2:46 pm, Rocky rkjhaw1...@gmail.com wrote: thanks for replay, but how to handle it, please provide the logic or code. --RKJ On Thu, Oct 7, 2010 at 11:06 AM, Kumar Bibek coomar@gmail.com wrote: Since the ListView recylces the convertViews, you will have to keep track of the items which are selected when they go off the screen. This happens when you use convert views for lists and recycle it. On Thu, Oct 7, 2010 at 11:04 AM, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hi, I'm facing problem in scrolling. I've 20-25 items in my List, if i checked first check box, scroll down, then come up, my checked status lost (becomes unchecked), in cursor adaptor. If i use base adaptor problem is resolved but major issue with base adaptor is performance, if my list goes beyond the 100 items. I need help, i'm stuck here since more than 7-8 days -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android
[android-developers] Re: Checkbox are not getting selected
Anybody knows how to do this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] reliable app store?
Hello all, I think it's a common problem. I'd like to sell my apps, but my country is not supported for merchants already. Do you know a reliable app store where I can sell apps? Evi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Jumpnote
On 8 October 2010 10:18, Zsolt Vasvari zvasv...@gmail.com wrote: What is jumpnote and how does it relate to developing for the Android platform? Not your best day, huh? http://tinyurl.com/2af8fb -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Jumpnote
On 8 October 2010 12:29, { Devdroid } webnet.andr...@gmail.com wrote: http://tinyurl.com/2af8fb That's the right one http://tinyurl.com/2v5znr7 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Any proposed changes to the Android Market?
String said: Also, app markets have (unfortunately) become a numbers game in the eyes of the public. It's important for Google to be able to say they have 150,000 (or whatever) apps in the Market; clearing the dregs would drop that number considerably, probably by an order of magnitude. Although this would probably be a better situation, for both devs and users, it's a net loss on the mindshare front. And that's not unimportant to the decision makers. But that kind of marketing is even less sophisticated than quantity over quality - all Google would be selling on is quantity alone, which is non-sense. I give mobile application users and developers more credit than to simply assume that most of them would only care about how many apps exist on a market. Once you've reached any figure over 10,000 - I think you've already established yourself as a dominant market in terms of popularity as a platform for publishing and downloading apps. I agree with William Ferguson that Google should go for a more sophisticated marketing approach for Android, and establish the Android Market as a compelling user experience that delivers professional apps that are not spam. Whether they do this through an approach of moderation or introducing clever algorithms is up to them - as long as it works I think it can only help to boost Android's market share as a whole. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Checkbox are not getting selected
send details code, (xml, java), then any one can resolved ur issue. On Fri, Oct 8, 2010 at 3:55 PM, pramod.deore deore.pramo...@gmail.comwrote: Anybody knows how to do this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Wierd memory leak
Well, I would hope that the Java threadsafe classes are still threadsafe. But essentially none of the UI is, and the structure of the system greatly discourages sharing data between threads. On Oct 8, 5:00 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Thu, Oct 7, 2010 at 6:40 PM, DanH danhi...@ieee.org wrote: Right. The main difference is that StringBuffer is threadsafe, and nothing else in Android is threadsafe, so little point in using StringBuffer. Well, there are few places, where Java (Android) are thread safe (Vector, Stack, few classes in javax.nio.* and quite few classes in java.util.concurrent.*) If String modification is happening by multiple actors (user generated events, network) then it makes sense using StringBuffer. (That said, the performance edge of StringBuilder over StringBuffer is unlikely to be noticed.) True -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to convert xml to svg in Android
Rename it from .xml to .svg? (Of course, this will only work if it's the valid XML for an SVG image.) On Oct 8, 2:12 am, 大风 jindafeng2...@gmail.com wrote: How to convert xml to svg in Android, Anybody anyideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Checkbox are not getting selected
Here is my .java file import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget.ListView; import android.widget.Toast; public class MyList extends ListActivity { /** Called when the activity is first created. */ public void onCreate(Bundle icicle) { super.onCreate(icicle); // Create an array of Strings, that will be put to our ListActivity String[] names = new String[] { Linux, Windows7, Eclipse, Suse, Ubuntu, Solaris, Android, iPhone}; // Create an ArrayAdapter, that will actually make the Strings above // appear in the ListView this.setListAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_multiple_choice, names)); } @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); // Get the item that was clicked Object o = this.getListAdapter().getItem(position); String keyword = o.toString(); Toast.makeText(this, You selected: + keyword, Toast.LENGTH_LONG) .show(); } } and xml file is just auto generated main.xml file. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] onactivityresult() does not return any changed result
hi all, i am facing a problem with resulcode onActivityResult(); i have an activity, which opens up the system date and time activity.. startActivityForResult(new Intent( android.provider.Settings.ACTION_DATE_SETTINGS), 0); when i make any change, consider i change the date format, and i come back to my activity, using the back button! my OnActivityResult method callback, the result code is always RESULT_CANCELLED. HOW CAN I GET THE FORMAT CHANGE? THANKS IN ADVANCE Parag -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Possible to check .apk signature?
What I mean is that if the bad actor can manipulate the apk bytes while still maintaining the same checksum, then the whole scheme is insecure -- there's no point in having it signed. A CRC32 checksum is easily spoofed -- the apk bytes need to be checksummed with a cryptographic checksum of some sort. On Oct 8, 1:01 am, Dianne Hackborn hack...@android.com wrote: On Thu, Oct 7, 2010 at 6:22 PM, DanH danhi...@ieee.org wrote: So what is protecting the application from forgery? What do you mean? This is the cert it is signed with. Do you have some way to force the cert? -- 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: Possible to check .apk signature?
In my implementation, the danger is not that the hacker will use my key to sign the apk after modifying it (not possible), but that the hacker will debug the post variables being sent to the server and copy the key, then hard code the string into the api call, do his other modifications, sign it with his key, and poof, my anti-piracy measures are broken. Well, you're partly right, but more wrong than right. The first/ biggest danger, as you suggest, is that the hacker will crack your code and hard-code values in the program you're using to detect impostors. But the hacker could also take your APK, modify it without changing the signature, and then spoof the checksum so that it still appears to be validly signed by you. This is a bit harder to do, but much worse, in that the hacker is using your identity to possibly do very nefarious things. If the checksum used in the APK is not cryptographically strong then this is a possibility. On Oct 8, 1:38 am, JonFHancock jonfhanc...@gmail.com wrote: In my implementation, the danger is not that the hacker will use my key to sign the apk after modifying it (not possible), but that the hacker will debug the post variables being sent to the server and copy the key, then hard code the string into the api call, do his other modifications, sign it with his key, and poof, my anti-piracy measures are broken. However, I also log a the CRC32 of the current app with each api call. If I see a particular CRC32 that I know I didn't sign, I can block its api access selectively. Since I already require users to stay up to date within 2 versions, I have fairly good knowledge of what legitimate CRC32s are out there. On Oct 8, 2:01 am, Dianne Hackborn hack...@android.com wrote: On Thu, Oct 7, 2010 at 6:22 PM, DanH danhi...@ieee.org wrote: So what is protecting the application from forgery? What do you mean? This is the cert it is signed with. Do you have some way to force the cert? -- 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] Undetectable Android Service
Hi, Is it possible to write a background service in android which is undetectable ? it should not me present is app manager also. Thankyou -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Possible to check .apk signature?
What CRC32 checksum? Trevor Johns, in a discussion of LVL, offered up CRC32 as a means of helping detect tampering, but that was simply an example. Otherwise, I am coming up with zero references to the use of CRC32 with respect to APKs. Do you have a pointer to somewhere in the open source code where they are using a CRC32 checksum in this fashion? Thanks! On Fri, Oct 8, 2010 at 7:12 AM, DanH danhi...@ieee.org wrote: What I mean is that if the bad actor can manipulate the apk bytes while still maintaining the same checksum, then the whole scheme is insecure -- there's no point in having it signed. A CRC32 checksum is easily spoofed -- the apk bytes need to be checksummed with a cryptographic checksum of some sort. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] onactivityresult() does not return any changed result
On Fri, Oct 8, 2010 at 7:12 AM, parag parag.shetgaon...@gmail.com wrote: i am facing a problem with resulcode onActivityResult(); i have an activity, which opens up the system date and time activity.. startActivityForResult(new Intent( android.provider.Settings.ACTION_DATE_SETTINGS), 0); when i make any change, consider i change the date format, and i come back to my activity, using the back button! my OnActivityResult method callback, the result code is always RESULT_CANCELLED. That activity does not support startActivityForResult(). HOW CAN I GET THE FORMAT CHANGE? First, by not shouting. Your activity, in onStart() or onResume(), can get the current date format via the DATE_FORMAT system setting: http://developer.android.com/reference/android/provider/Settings.System.html#DATE_FORMAT -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] Undetectable Android Service
On Fri, Oct 8, 2010 at 7:21 AM, Amit Mangal forum.amit.man...@gmail.com wrote: Is it possible to write a background service in android which is undetectable ? Fortunately, no. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Simulating USB connection
Maybe you can think of some other way to cause the equivalent juggling of the notification area. On Oct 7, 8:06 am, { Devdroid } webnet.andr...@gmail.com wrote: On 7 October 2010 14:26, DanH danhi...@ieee.org wrote: You sure the problem doesn't only occur when the USB is attached in SD sharing mode? No. Plug the cable - boom :) That's why I wonder how can I debug this w/o doing extensive logging and hoping it got written to the log. Unfortunately, for obvious reason I can't debug it on device ;) Do you get the same failure with just a charger? Are you accessing files on the SD chip? Not at all. Not even setting sd card access perm. In fact I suspect it got something to do with pull down notification area as once you plug OS adds own icon there and I got custom view there. Some users also reported my app conflict with some 3rd party apps but this is very rare (I never seen that here anyway) I do not know these apps so not sure if do something similar OS does. Anyway, the cable crash happens each time. Once I disable my custom view it's gone. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] posibility of Video calls in android
Does android support video calls? Is any api is there to achive video call? Please need help ,on which version of android os video calls are possible. -- Regards, Narendra . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Simulating USB connection
On 8 October 2010 13:31, DanH danhi...@ieee.org wrote: Maybe you can think of some other way to cause the equivalent juggling of the notification area. The problem is that anny other juggling just works. USB connection crashes each time, so that would be perfect to have this simulated. I may check android sources too, but it's not what I'd like to do now Will keep trying anyway -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] Undetectable Android Service
On 8 October 2010 13:21, Amit Mangal forum.amit.man...@gmail.com wrote: Hi, Is it possible to write a background service in android which is undetectable ? it should not me present is app manager also. No. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to convert xml to svg in Android
Well,Now I want to parse the svg file in Android.What do I need to do? On Oct 8, 7:06 pm, DanH danhi...@ieee.org wrote: Rename it from .xml to .svg? (Of course, this will only work if it's the valid XML for an SVG image.) On Oct 8, 2:12 am, 大风 jindafeng2...@gmail.com wrote: How to convert xml to svg in Android, Anybody anyideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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 - landscape-right and landscape-left orientation
I have an application, that looks good in landscape orientation only and i want to support both landscape-left and landscape-right orientation. If use setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE), my application gets restricted to landscape-right orientation (home key is in the right direction) and does not go to landscape-left orientation on device rotation. If use setRequestedOrientation(SCREEN_ORIENTATION_SENSOR), application goes to both landscape-left and landscape-right orientation but the problem is that it goes to portrait orientation also, on device rotation. Can somebody please highlight, how can both landscape-right and landscape-left orientations be supported without moving to portrait orientation? Are there are API to set the orientation to both landscape-left and landscape right orientation or some mechanism to prevent application from moving to portrait orientation when setRequestedOrientation(SCREEN_ORIENTATION_SENSOR) is used. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Checkbox are not getting selected
Hey Pramod, just add this line getListView().setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); On Fri, Oct 8, 2010 at 4:39 PM, pramod.deore deore.pramo...@gmail.comwrote: Here is my .java file import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget.ListView; import android.widget.Toast; public class MyList extends ListActivity { /** Called when the activity is first created. */ public void onCreate(Bundle icicle) { super.onCreate(icicle); // Create an array of Strings, that will be put to our ListActivity String[] names = new String[] { Linux, Windows7, Eclipse, Suse, Ubuntu, Solaris, Android, iPhone}; // Create an ArrayAdapter, that will actually make the Strings above // appear in the ListView this.setListAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_multiple_choice, names)); } @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); // Get the item that was clicked Object o = this.getListAdapter().getItem(position); String keyword = o.toString(); Toast.makeText(this, You selected: + keyword, Toast.LENGTH_LONG) .show(); } } and xml file is just auto generated main.xml file. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Live wallpaper not showing up on Samsung Captivate 2.1 update 1 while shows up fine on Droid1 Froyo
Dan Yes I do. Still!! Thanks Jeremy is it all wallpapers or newly published ones, because I can see others. On Oct 7, 12:24 pm, dan raaka danra...@gmail.com wrote: Do you specify the the uses-feature string android.software.live_wallpaper on you manifest ? -Dan On Wed, Oct 6, 2010 at 7:41 AM, Jai sharma...@gmail.com wrote: I have a live wallpaper published in the market called Painter ants live, it shows up fine on my Droid1 froyo but not on Samsung Captivate 2.1 update 1. Any inputs will be helpful. Thanks. The minSDKVersion and targetSDKVersion are both 7. The only problem that I can see is that the first version was built with targetsdk8 but was rectified later (twice) with targetsdk7. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Launch camera app with an intent?
On Thu, Oct 7, 2010 at 5:23 PM, Ozymandias jor...@gmail.com wrote: I can't find any intent which opens the camera. http://developer.android.com/reference/android/provider/MediaStore.html#ACTION_IMAGE_CAPTURE Standard Intent action that can be sent to have the camera application capture an image and return it. - 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] Re: onactivityresult() does not return any changed result
thanks :) :) On Oct 8, 4:23 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Oct 8, 2010 at 7:12 AM, parag parag.shetgaon...@gmail.com wrote: i am facing a problem with resulcode onActivityResult(); i have an activity, which opens up the system date and time activity.. startActivityForResult(new Intent( android.provider.Settings.ACTION_DATE_SETTINGS), 0); when i make any change, consider i change the date format, and i come back to my activity, using the back button! my OnActivityResult method callback, the result code is always RESULT_CANCELLED. That activity does not support startActivityForResult(). HOW CAN I GET THE FORMAT CHANGE? First, by not shouting. Your activity, in onStart() or onResume(), can get the current date format via the DATE_FORMAT system setting: http://developer.android.com/reference/android/provider/Settings.Syst... -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] button placement problem
On Thu, Oct 7, 2010 at 6:13 PM, Varun Khanduja varunkhand...@gmail.comwrote: I am trying to get a button at bottom of a screen having a list view. Could you add more detail to the problem you're having and the outcome you're trying to achieve? A picture of each case would help as well if you have it. - 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] Re: CTS Install TIMEOUT error - Android source Froyo - SDK 2.2, ARM emulator ,Linux Ubuntu
On Aug 10, 9:51 am, sunil kumar sunilmk...@gmail.com wrote: Dear all , I'm facing problem inCTSexecution, can any one provide me inputs regarding InstallTIMEOUTerror, 1. Is this expected behaviour ? 2. If this is an issue pls let me know if it is fixed in any latest release. Steps : 1. make (//Android-path/mydorid/) 2. makects(//Android-path/mydorid/) 3. cd /out/host/linux-x86/cts/android-cts/tools 4. ./startcts 5. start --planCTS(Tried Java plan) This failure is random during the execution ofCTS, but sameInstallTIMEOUTerroris happening at android.core.tests.math Thanks and regards Sunil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: [USSD] Any API's or code flow ?
The MMI messages on screen displayed at package com.android.phone; in class PhoneUtils static void displayMMIComplete will this used to display USSD messages also. On Fri, Oct 8, 2010 at 4:17 PM, Jignesh Kakkad(Jiggy) jig2n...@gmail.comwrote: Hi, I am also looking for this information . First of all, Thanking you for sharing this. Does this mean that if want to make any chance then we need to care about RIL.java ?? Or is there java file which are being used for USSD call? Any help will appreciated Thank you Regards Jiggy On Fri, Oct 8, 2010 at 8:37 PM, Atul Raut atul.dr...@gmail.com wrote: From some other mail thread I found some good info : There is protected Registrant mUSSDRegistrant in package com.android.internal.telephony; in BaseCommands.java There is code to process USSD Response from RIL (telephony / java / com / android / internal / telephony / RIL.java) 2381 case RIL_UNSOL_ON_USSD: 2382 String[] resp = (String[])ret; 2383 2384 if (resp.length 2) { 2385 resp = new String[2]; 2386 resp[0] = ((String[])ret)[0]; 2387 resp[1] = null; 2388 } 2389 if (RILJ_LOGD) unsljLogMore(response, resp[0]); 2390 if (mUSSDRegistrant != null) { 2391 mUSSDRegistrant.notifyRegistrant( 2392 new AsyncResult (null, resp, null)); 2393 } Message displayed at device screen package com.android.phone; in class PhoneUtils static void displayMMIComplete -Regards Atul On Fri, Oct 8, 2010 at 2:29 PM, Atul Raut atul.dr...@gmail.com wrote: Hi, Is there any APIs for USSD [Unstructured Supplementary Service Data] or how the code flow in Google's Android could some one point me. Some info that I have found here : /frameworks/base/telephony/java/com/android/internal/telephony//RIL.java /frameworks/base/telephony/java/com/android/internal/telephony/RILConstants.java /hardware/ril/include/telephony/ril.h /hardware/ril/libril/ril.cpp /hardware/ril/libril/ril_unsol_commands.h /vendor/qcom/proprietary/qcril/qcril_fusion/qcril_log.c Basics file which handles the USSD. -Thanks, Atul -- You received this message because you are subscribed to the Google Groups android-platform group. To post to this group, send email to android-platf...@googlegroups.com. To unsubscribe from this group, send email to android-platform+unsubscr...@googlegroups.comandroid-platform%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/android-platform?hl=en. -- You received this message because you are subscribed to the Google Groups android-platform group. To post to this group, send email to android-platf...@googlegroups.com. To unsubscribe from this group, send email to android-platform+unsubscr...@googlegroups.comandroid-platform%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/android-platform?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: [USSD] Any API's or code flow ?
Hi Jagdish : is there java file which are being used for USSD call? No RIL.java is used to handled the USSD call. -Atul On Fri, Oct 8, 2010 at 4:17 PM, Jignesh Kakkad(Jiggy) jig2n...@gmail.comwrote: Hi, I am also looking for this information . First of all, Thanking you for sharing this. Does this mean that if want to make any chance then we need to care about RIL.java ?? Or is there java file which are being used for USSD call? Any help will appreciated Thank you Regards Jiggy On Fri, Oct 8, 2010 at 8:37 PM, Atul Raut atul.dr...@gmail.com wrote: From some other mail thread I found some good info : There is protected Registrant mUSSDRegistrant in package com.android.internal.telephony; in BaseCommands.java There is code to process USSD Response from RIL (telephony / java / com / android / internal / telephony / RIL.java) 2381 case RIL_UNSOL_ON_USSD: 2382 String[] resp = (String[])ret; 2383 2384 if (resp.length 2) { 2385 resp = new String[2]; 2386 resp[0] = ((String[])ret)[0]; 2387 resp[1] = null; 2388 } 2389 if (RILJ_LOGD) unsljLogMore(response, resp[0]); 2390 if (mUSSDRegistrant != null) { 2391 mUSSDRegistrant.notifyRegistrant( 2392 new AsyncResult (null, resp, null)); 2393 } Message displayed at device screen package com.android.phone; in class PhoneUtils static void displayMMIComplete -Regards Atul On Fri, Oct 8, 2010 at 2:29 PM, Atul Raut atul.dr...@gmail.com wrote: Hi, Is there any APIs for USSD [Unstructured Supplementary Service Data] or how the code flow in Google's Android could some one point me. Some info that I have found here : /frameworks/base/telephony/java/com/android/internal/telephony//RIL.java /frameworks/base/telephony/java/com/android/internal/telephony/RILConstants.java /hardware/ril/include/telephony/ril.h /hardware/ril/libril/ril.cpp /hardware/ril/libril/ril_unsol_commands.h /vendor/qcom/proprietary/qcril/qcril_fusion/qcril_log.c Basics file which handles the USSD. -Thanks, Atul -- You received this message because you are subscribed to the Google Groups android-platform group. To post to this group, send email to android-platf...@googlegroups.com. To unsubscribe from this group, send email to android-platform+unsubscr...@googlegroups.comandroid-platform%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/android-platform?hl=en. -- You received this message because you are subscribed to the Google Groups android-platform group. To post to this group, send email to android-platf...@googlegroups.com. To unsubscribe from this group, send email to android-platform+unsubscr...@googlegroups.comandroid-platform%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/android-platform?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] Display Detail Overlay when touch a marker on the map
On Thu, Oct 7, 2010 at 10:38 PM, Donald hasitharand...@gmail.com wrote: and i have tried to use onTap method to capture marker event but failed. How have you failed? What does it do or not do that's not working for 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
[android-developers] Re: Possible to check .apk signature?
On Oct 8, 12:21 pm, Mark Murphy mmur...@commonsware.com wrote: What CRC32 checksum? Trevor Johns, in a discussion of LVL, offered up CRC32 as a means of helping detect tampering, but that was simply an example. Otherwise, I am coming up with zero references to the use of CRC32 with respect to APKs. Note that JonFHancock also mentions using CRC32: On Oct 8, 7:38 am, JonFHancock jonfhanc...@gmail.com wrote: However, I also log a the CRC32 of the current app with each api call. If I see a particular CRC32 that I know I didn't sign, I can block its api access selectively. I think this is who DanH is addressing... saying JonFHancock really should be using a cryptographically secure checksum algo if he's going to take this approach. 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: Anybody experiencing a boost in sales since opening up to other countries?
On Oct 8, 7:20 am, Zsolt Vasvari zvasv...@gmail.com wrote: Yes, this happened to me as well. I think there must have been something wrong with the market, as I haven't had a sale for about 10 hrs. You might want to see if your app is visible in the Market. My top app has suddenly vanished, from both my G1 and N1, for no readily apparent reason. I think the Market is going through one of its usual periods of instability. 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: Possible to check .apk signature?
I may have misinterpreted. Presumably there's a checksum of the APK data in the signed certificate. I would assume (hope) that's a cryptographically strong checksum. (If not, the entire Android platform is in jeopardy.) If one wants a sure signature (in a generic sense) that uniquely and reliably identifies a SPECIFIC version of code, that cryptographic checksum would be what you want (though I don't know how you'd access that). Otherwise, the public key (which Diane has finally explained is what the package signature is) is a secure, reliable way to identify the publisher (and, with the package name, the specific app (though not it's version)). There's no point in creating a separate CRC32 over the app, to use as an identity to send back to a server or whatever. On Oct 8, 6:21 am, Mark Murphy mmur...@commonsware.com wrote: What CRC32 checksum? Trevor Johns, in a discussion of LVL, offered up CRC32 as a means of helping detect tampering, but that was simply an example. Otherwise, I am coming up with zero references to the use of CRC32 with respect to APKs. Do you have a pointer to somewhere in the open source code where they are using a CRC32 checksum in this fashion? Thanks! On Fri, Oct 8, 2010 at 7:12 AM, DanH danhi...@ieee.org wrote: What I mean is that if the bad actor can manipulate the apk bytes while still maintaining the same checksum, then the whole scheme is insecure -- there's no point in having it signed. A CRC32 checksum is easily spoofed -- the apk bytes need to be checksummed with a cryptographic checksum of some sort. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to convert xml to svg in Android
Android doesn't currently have SVG support: http://developer.android.com/guide/appendix/media-formats.html On Oct 8, 1:03 pm, 大风 jindafeng2...@gmail.com wrote: Well,Now I want to parse the svg file in Android.What do I need to do? On Oct 8, 7:06 pm, DanH danhi...@ieee.org wrote: Rename it from .xml to .svg? (Of course, this will only work if it's the valid XML for an SVG image.) On Oct 8, 2:12 am, 大风 jindafeng2...@gmail.com wrote: How to convert xml to svg in Android, Anybody anyideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Anybody experiencing a boost in sales since opening up to other countries?
I had a pretty good week but I'm not sure the new markets are the reason why. It would be a lot easier to tell if we had something like Analytics for Google Checkout. --SJ On Fri, Oct 8, 2010 at 8:58 AM, String sterling.ud...@googlemail.com wrote: On Oct 8, 7:20 am, Zsolt Vasvari zvasv...@gmail.com wrote: Yes, this happened to me as well. I think there must have been something wrong with the market, as I haven't had a sale for about 10 hrs. You might want to see if your app is visible in the Market. My top app has suddenly vanished, from both my G1 and N1, for no readily apparent reason. I think the Market is going through one of its usual periods of instability. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Anybody experiencing a boost in sales since opening up to other countries?
I can find my app if I search for it, but not if I just list the apps in my category. On Oct 8, 8:58 pm, String sterling.ud...@googlemail.com wrote: On Oct 8, 7:20 am, Zsolt Vasvari zvasv...@gmail.com wrote: Yes, this happened to me as well. I think there must have been something wrong with the market, as I haven't had a sale for about 10 hrs. You might want to see if your app is visible in the Market. My top app has suddenly vanished, from both my G1 and N1, for no readily apparent reason. I think the Market is going through one of its usual periods of instability. 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: Anybody experiencing a boost in sales since opening up to other countries?
I just unpublushed and republished it and it showed up immediately. WTF On Oct 8, 9:24 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I can find my app if I search for it, but not if I just list the apps in my category. On Oct 8, 8:58 pm, String sterling.ud...@googlemail.com wrote: On Oct 8, 7:20 am, Zsolt Vasvari zvasv...@gmail.com wrote: Yes, this happened to me as well. I think there must have been something wrong with the market, as I haven't had a sale for about 10 hrs. You might want to see if your app is visible in the Market. My top app has suddenly vanished, from both my G1 and N1, for no readily apparent reason. I think the Market is going through one of its usual periods of instability. String- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Incoming call recording
Hi Is this possible to run an application in back ground and record incoming call on android phone ? Any body having any link or some thing for learning recording call. Thankyou. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: caller id spoofing
On Oct 7, 5:40 pm, Greg Donald gdon...@gmail.com wrote: I've searched and found nothing helpful so I'm now asking for guidance. I have a client who wishes to spoof the caller id for his phones he assigns to his sales staff. He wants the number to appear to be from his main office to better handle return calls from potential buyers. Is this possible? After reading many posts on this list and much time Google'ng, I'm thinking it's not. Meanwhile he is pointing to his internal phone system which does exactly as he described. All his office phones appear to dial out from the same number as far as the receivers caller id is concerned. How can I pull off the same on Android? Thanks, -- Greg Donald destiney.com | gregdonald.com Greg, You can spoof the caller's number (referred to as the A-Number or ANI) if you make the call through a VoIP provider. There is no way to spoof the ANI if calling with the SIM, because the ANI is attached to the SIM in the operator's switch. Many apps currently do this by integrating their app with a SIP client such as PJSIP, and then connecting the call through a VoIP provider that supports CLI (caller line ID). There are hundreds of VoIP providers out there that support CLI - we use www.grnvoip.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] reliable app store?
2010/10/8 Éva Lovrencsics lovi...@gmail.com Do you know a reliable app store where I can sell apps? I don't know about reliable as I've not used them, but AndAppStore, SlideMe, and apparently upcoming Amazon store are some to look into. There's probably others if you just Google. - 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] automotive related project ideas
Hi Guys, Can any one help me by providing some innovative automobile(car ) related projects. -- k.kalyankumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to convert xml to svg in Android
So I want to write it myself, there are already apps that implement it but no source code. On Oct 8, 9:15 pm, jamesc jame...@gmail.com wrote: Android doesn't currently have SVG support:http://developer.android.com/guide/appendix/media-formats.html On Oct 8, 1:03 pm, 大风 jindafeng2...@gmail.com wrote: Well,Now I want to parse the svg file in Android.What do I need to do? On Oct 8, 7:06 pm, DanH danhi...@ieee.org wrote: Rename it from .xml to .svg? (Of course, this will only work if it's the valid XML for an SVG image.) On Oct 8, 2:12 am, 大风 jindafeng2...@gmail.com wrote: How to convert xml to svg in Android, Anybody anyideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: automotive related project ideas
An app that will drive my car to destination using GPS. On Oct 8, 9:55 am, kalyan kumar kalyankumar2...@gmail.com wrote: Hi Guys, Can any one help me by providing some innovative automobile(car ) related projects. -- k.kalyankumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] Checkbox with multiple lines with different font size
I am trying to put CheckBox with multiple lines and all lines after fist with smaller font size same as we have under from home page Menu-Settings-Sound Display-Silent mode. It shows text Silent mode on first line and then some more text (kind of help/current settings) for this option and still CheckBox itself is aligned in the center of all the lines (may be on left or right side). Is that can be done by only one control/widget or group of many controls/widgets? I can only think of by using table but it is complex. I tried android:contentDescription but it did not work. Looks like it is for accessibility. Any help will be appreciated. Thanks, JP -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] WebView class from android supports xhtml, html4, html5 ?
Hello, Does anyone know if the WebView class from android supports xhtml, html4, html5 for all platforms (from 1.5 to 2.2)? I need to use an internal browser in my app from which to open a sample page that contains some images. What is the best way to develop this pages, to make compatibbble for all phones? Has onyone idea? Thank you Lidia -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: Goo Market Frustration(s) -- a request to experienced app developers
Also, your app may not work on HIS hero-phone. It could be tons of things, depending on your app, that may have nothing to do with a particular (brand of) device, but with software loaded on it. E.g. your app uses services that a task-manager on his device keeps killing. E.g. your app may use some cache that is running (too) low on his device. E.g. your app may use a content-provider typpe for which he has a different provider installed (besides the default provider). E.g. his SD-card may be corrupt. E.g. he may have a custom ROM installed. etc. etc. etc. And i agree with Nathan; someone giving a one-star rating with just a Does not work type of comment is unlikely to contact you even if he or she could so easily. On Oct 7, 10:45 am, Nathan critter...@crittermap.com wrote: On Oct 7, 7:27 am, tony obrien tobsourcecode...@gmail.com wrote: I was going to say, So if I can't test on EVERY device... but perhaps that's my first question... {a} Was I absent the day they told us in Android SDK class that any actual DEVICE may react differently from some other? I understand that if the device does not support somthing then, of course, it can't comply to my app's request. Example: I have 100's of downloads for an app... then I get a 1-STAR with the comment: Does not work on HERO. So I can imagine that he may be right OR he might be a twit and many others with HEROs had no problem. Yep. I find the communications facilities between the DEVELOPER and his AUDIENCE via the GOO Market to be quite unsophisticated. Yep So... {b} Is there some mechanism that I am not aware of that allows me to 'confront' my downloaders directly (i.e. an email address or something?) so that I can help them or at least discover what the heck someone means by It don't work ?? No. The one star person is unlikely to come back or help you anyway. At the moment I am planning on adding an entire new layout to all of my apps which would beg them to get in touch with me if they have *any* problem at all ... is this my only means to accomplish this? Yes, that is probably your best option. Loading up the app with admonitions is what works best. Get them subscribed to your newsletter, give them handy error report buttons, walk them through every step they have to take avoid errors. Even then, you won't completely prevent comments like you've seen. Many don't spend more than seven seconds on an app, and not everyone wants to help improve or fix an app. The app can be working fine, but not work the way *they* expect, and you will still get that comment. 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
[android-developers] Re: Unit testing a class that uses android.os.Handler
Handler has multiple constructors. The ones that take a Looper argument can take the Looper for a Thread other than the current one. That way you don't need to create the Handler on that Thread and it is easier to ensure it is not null on the Thread using it. There's also an android.os.HandlerThread utility class that is pretty much just a Thread with a Looper. It has a getLooper method that's easy to feed into the Handler constructor and that avoids the issue with prepare() taking a while sometimes and leaving you with a null longer than you'd expect. On Oct 7, 8:04 pm, DanH danhi...@ieee.org wrote: Come to think of it, how would one create a Handler for another thread? You'd have to dispatch the thread and have it create the Handler and pass the pointer back to you (we won't worry about how), but then that thread needs to go into a message receive loop. Apparently this is done via Looper. I'm guessing the code would be like this: class LooperThread extends Thread { public Handler mHandler; public void run() { Looper.prepare(); mHandler = new Handler(); Looper.loop(); } } You'd start this thread and then use your pointer to it to access mHandler (though you'd have to guard somehow against getting a null before the reference was set). Then dispatch Runnables or Messages via that handler. (Gotta wonder where Looper stashes the instance it creates of itself to attach to the Thread. I suppose it uses ThreadLocal.) On Oct 7, 4:38 pm, DanH danhi...@ieee.org wrote: But I don't see anywhere in the Handler spec where it says the thread will be dispatched. It appears to me that when the thread is posted, Handler will just run its run method, without starting the thread. If you wanted to run on a separate thread it appears to me that you'd have to start the thread, have that thread create a Handler and pass it back to you somehow, and then post via THAT Handler. At least that's how I'd interpret this: Each Handler instance is associated with a single thread and that thread's message queue. When you create a new Handler, it is bound to the thread / message queue of the thread that is creating it -- from that point on, it will deliver messages and runnables to that message queue and execute them as they come out of the message queue. On Oct 7, 4:25 pm, Jeremy Wadsack jeremy.wads...@gmail.com wrote: Fair point. The // Do some tasks is doing long-running (Internet- connected) stuff, so I want it to run in a separate thread. As I understand, posting the Runnable without a thread would run it on the main thread. I assume the gc will clean up the Threads as they expire, but I could also redesign this to have a single active thread that posts Runnables (or even just messages) to it's own MessageQueue at specified intervals. Then I'd be managing the looper myself (that is, calling Looper.loop), which would probably resolve this issue. That doesn't answer the original question but it may be the right approach if it's more android-y. -- Jeremy Wadsack On Oct 7, 1:20 pm, DanH danhi...@ieee.org wrote: Kind of off-topic, but why are you creating a new Thread with each post, vs simply posting the Runnable? On Oct 5, 5:47 pm, Jeremy Wadsack jeremy.wads...@gmail.com wrote: I have a class that uses a Handler for a timed, asynchronous activity. Something like this: public class SampleClass { private static final long DELAY = 3; private boolean isRunning = false; private Handler handler = new Handler(); public start() { if (!isRunning) { isRunning = true; handler.post(new Thread(task)); } } public stop() { isRunning = false; } private Runnable task = new Runnable() { public void run() { if (!isRunning) { return; } // Do some tasks handler.postDelayed(new Thread(this), DELAY); } } } I am trying to write a unit test (without having to implement an activity that instantiates the class) but I can't seem to get the items that are posted to the MessageQueue to ever be fired. Inheriting from junit.framework.TestCase doesn't work, but then there wouldn't be a MessageQueue for the handler, I'd expect (although, there's no error, but the Runnable never gets called). I tried inheriting the test class from AndroidTestCase and ApplicationTestCaseApplication but neither of those works, even though the former is supposed to provide a Context and the latter all the life cycle of an application. Anyone have any pointers? -- Jeremy Wadsack -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to
[android-developers] Re: How to convert xml to svg in Android
If at all possible you should use a utility to convert the SVG to some other format before loading it onto the phone. On Oct 8, 9:11 am, 大风 jindafeng2...@gmail.com wrote: So I want to write it myself, there are already apps that implement it but no source code. On Oct 8, 9:15 pm, jamesc jame...@gmail.com wrote: Android doesn't currently have SVG support:http://developer.android.com/guide/appendix/media-formats.html On Oct 8, 1:03 pm, 大风 jindafeng2...@gmail.com wrote: Well,Now I want to parse the svg file in Android.What do I need to do? On Oct 8, 7:06 pm, DanH danhi...@ieee.org wrote: Rename it from .xml to .svg? (Of course, this will only work if it's the valid XML for an SVG image.) On Oct 8, 2:12 am, 大风 jindafeng2...@gmail.com wrote: How to convert xml to svg in Android, Anybody anyideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Why doesn't my 2d polygon get filled?
That is not how drawVertices() works. drawVertices() only fills with shaders. If you want to draw an arbitrary shape, just use a Path instead. On Fri, Oct 8, 2010 at 12:35 AM, MobileVisuals eyv...@astralvisuals.com wrote: I can draw polygons with canvas.drawVertices, but I can not fill them. I have set Paint.Style.FILL on the paint object,but the polygon doesn't get filled. Why doesn't the polygon get filled? This is my code: mLinePaint2 = new Paint(); mLinePaint2.setARGB(255, 255, 0, 0); mLinePaint2.setStyle(Paint.Style.FILL); canvas.drawVertices(Canvas.VertexMode.TRIANGLES, verts.length, verts, 0, null, 0, null, 0, null, 0, 0, mLinePaint2); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Goo Market Frustration(s) -- a request to experienced app developers
When my app encounters an error it pops up a message with two buttons - Dismiss and Email Error Report. The error report builds an XML document with every detail I can query about the phone and emails it to a dedicated address. This tends to give me at least basic data even from someone who just downloaded, tried it once, discovered it didn't work on their phone, and uninstalled it. Half the time, they also click the Email Error Report button so I have both their email address (in case I have questions or want to let them know I fixed their problem) and the report data. In the next release of my app, I plan to record a menu history which will be included in the error report, enabling me to replay the user's actions. All of this is fairly easy to implement, especially compared to the normal cat-and-mouse game of trying to get enough data from a user to diagnose his/her issue. Users also get a chance to add comments to the email before it's sent, or to opt out at the last minute. So far this approach is working great and total implementation time was about a day. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: automotive related project ideas
Use the accelerometer to give people advice about how to achieve better fuel economy by minimizing excessive braking and moderating acceleration. Make the screen graphics big and simple so they don't have to look down for more than a split second - no text, just shapes and colors. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] Undetectable Android Service
On Fri, Oct 8, 2010 at 6:21 AM, Amit Mangal forum.amit.man...@gmail.comwrote: Hi, Is it possible to write a background service in android which is undetectable ? it should not me present is app manager also. Negative. - 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] Re: Undetectable Android Service
Well, sort of. You can build a service that listens for an Intent, then wakes up and does something. This will not be running in the background, but it will be waiting to spring into action when the right event occurs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: button placement problem
The button at the bottom of the picture in the tutorial is somethign I am trying to achieve. http://blog.maxaller.name/2010/05/attaching-a-sticky-headerfooter-to-an-android-listview/ On Oct 8, 5:33 am, TreKing treking...@gmail.com wrote: On Thu, Oct 7, 2010 at 6:13 PM, Varun Khanduja varunkhand...@gmail.comwrote: I am trying to get a button at bottom of a screen having a list view. Could you add more detail to the problem you're having and the outcome you're trying to achieve? A picture of each case would help as well if you have it. --- -- 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] Follow up for the active install count problem
Just received this from the Market support: We wanted to follow-up. By now, you should have noticed that the installs metrics for your applications have been restored. We identified the problem as occurring with application updates only, have made some changes recently that should resolve and prevent this problem. Please let us know if this error persists. If we can assist you further, please let us know. In my case, things have not changed at all. Downloads are increasing (1550) and active installs stabilized at 29% (the value before the drop was 44/45%). So, indeed active installs are increasing again - 29% is stable since three weeks - but the original percentage was not restored. Now, I don't know what to think... Maybe the problem is not solved, maybe in my specific case the active installs really dropped for a while (but it's curious that it only happened for a while...). BTW, I didn't release any new upgrade since then (I have a new one almost ready, but I'm beyond schedule because of personal problems) - and maybe the count would fix itself with new upgrades... What would you do now? Is there anybody else for which the problem was not solved? -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. java.net/blog/fabriziogiudici - www.tidalwave.it/people fabrizio.giud...@tidalwave.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: javax.sound alternative
Does Android supports recording in u-law format. I can see PCM-16 and PCM-8bit raw format. If not, what can be done like adding header separately? On Oct 7, 4:37 pm, Mrid mrid@gmail.com wrote: Thank you Mark for the reply. I am here uptil now. int bufferSize = AudioRecord.getMinBufferSize(8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT); AudioRecord recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT,bufferSize*4); recorder.startRecording(); al.length(4000); byte[] tempBuffer = new byte[bufferSize]; bufferRead = recorder.read(tempBuffer, 0, bufferSize); for (int idxBuffer = 0; idxBuffer bufferRead; ++idxBuffer) { Log.i(+idxBuffer, +tempBuffer[idxBuffer]); } recorder.stop(); return tempBuffer; which is uptil step 7 in my above post. I dont know how to proceed from here. I tried to pass this byte array on to the server (which accepts above format), and the server responded me with incorrect format error. Do you have any idea how to proceed from here? On Oct 7, 2:56 pm, OldSkoolMark m...@sublimeslime.com wrote: The current Android audio API's are rather spotty in terms of what they provide. You'll have to write your own .wav converter at the very least. On Oct 7, 2:09 pm, Mrid mrid@gmail.com wrote: can anyone please help me on this ? On Oct 6, 3:37 pm, Mrid mrid@gmail.com wrote: Hi All, wanted to know is there any alternative ofjavax.sound.sampled package specially AudioSystem and TargetDataLine class. Here is the sample code in java I am referring to : 1 AudioFormat af = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 8000.0F, 16, 1, 2, 8000.0F, false); 2 DataLine.Info info = new DataLine.Info(TargetDataLine.class, af); 3 TargetDataLine line = (TargetDataLine) AudioSystem.getLine(info); 4 line.open(af, 800); 5 SoundRecorder recorder = new SoundRecorder(line, this, seconds); // this class records the sound and returns recording in byte array 6 recorder.start(); 7 recorder.join(); 8 9 // Write with headers 10 ByteArrayInputStream soundbytes = new ByteArrayInputStream(recorder.getRecording()); 11 ByteArrayOutputStream byteswithheaders = new ByteArrayOutputStream(); 12 AudioSystem.write(new AudioInputStream(soundbytes, af, soundbytes.available() / 2), AudioFileFormat.Type.WAVE, byteswithheaders); 13 return byteswithheaders.toByteArray(); So far I am able to record the data in format specified in step 1. and convert it into byte array. My doubts: -I recorded sound without using Dataline class, will that make any difference -Which class should I use in Android, instead of step 12. - or some one has any other idea?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] Horizontal scrolling list with image and text
It seems like the best way to create a horizontal scrolling list of images is to use the Gallery widget. I need to display sidebar text with each image.The examples I have seen showing how to use the Gallery widget only show images. Is it possible to display a list of images+text descriptions in a Gallery, and if it is, does anyone have an example of how to do this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to 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: Undetectable Android Service
Even so, the process can still be around and visible in a task killer / process manager / settings screen. -- Kostya 08.10.2010 20:08, Bret Foreman пишет: Well, sort of. You can build a service that listens for an Intent, then wakes up and does something. This will not be running in the background, but it will be waiting to spring into action when the right event occurs. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- 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