[android-developers] Re: Displaying the ProgressDialog from the OpenGL thread.
Create an android.os.Handler subclass on the UI thread and pass that to the renderer instead of a Runnable. It has methods for sending messages and handling them. The renderer would send a message. The subclass would handle it to show a dialog on the UI thread. On May 9, 6:25 am, Dmitriy Shilonosov shilono...@gmail.com wrote: Hi! Does anyone have expirience with opengl-ui-opengl threading interraction? I'am developing a small opengl application. I'am a little bit confused with separate opengl thread... Currently, my application is logically separated in two parts - the controlling one and the rendering one. The controlling part interracts with user - accepting user input, changing activities, dealing with files and so on. The rendering part - just render everything it should. Ok, so when I need to load new texture to opengl (unfortunatelly its large and I cant reduce its size), I'd like to show a ProgerssDialog dialog. Trying to show it from the open gl thread brings me an exception: Can't create handler inside thread that has not called Looper.prepare(). Because the initiator of loading is in the ui thread (for example - user selected a menu option), I'am opening the dialog, adding the load Runnable to stack on Runnables that will be called in Render.onDrawFrame and passing there a callback that will be executed after texture is loaded. Like this: //ui public class Controller extends Activity { ... protected void loadTexture(InputStream aStream) { final ProgressDialog dialog = new ProgressDialog(this); dialog.setTitle(Please wait...); dialog.setMessage(Loading texture); dialog.show(); _renderer.loadTexture(_stream, new Runnable() { @Override public void run() { dialog.dismiss(); }}); } ... } //gl public class SceneRenderer implements Renderer { @Override public void onDrawFrame(GL10 aGL) { this.runGLRunnables(aGL); } public void loadTexture(final InputStream aStream, final Runnable aCallback) { _glRunnablesStack.push(new GLRunnable() { @Override public void run(GL10 aGL) { SceneRenderer.this.doLoadTexture(aStream); aCallback.run(); };}); } } So the question is: Is there any way to show ProgressDialog from the opengl thread? I need exactly the ProgressDialog. There is a way to show some picture, previously loaded, like a splashscreen using opengl renderer, but I'd like to avoid it. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to detect orientation change in home screen widget?
Hi , Did you get idea about the orientation change in widgets ? Kamal On Mar 16, 2:32 am, kknight pan...@gmail.com wrote: I am writing a home screenwidgetand want to update (modify) the home screenwidgetwhen the deviceorientationchanges from portrait to landscape or the other way. How can I make it? Currently, I tried to register to CONFIGURATION_CHANGED action like the code below, but the Android didn't allow me to do that by saying IntentReceiver components are not allowed to register to receive intents. The reason that I register to CONFIGURATION_CHANGED is that, the Android spec said about ACTION_CONFIGURATION_CHANGED: You can not receive this through components declared in manifests, only by explicitly registering for it with Context.registerReceiver(). Can someone help me? Thanks. public class MyWidget extends AppWidgetProvider { @Override public void onEnabled(Context context) { super.onEnabled(context); this.registerReceiver(this, new IntentFilter(Intent.ACTION_CONFIGURATION_CHANGED)); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 tools for analyzing API level compatibility in my Android code?
Why don't you simply compile your app against API 4? (It's a setting in the project properties). If you use any methods or classes that don't exist yet, you will get compile errors. Unless you're using reflection or hard-code flags, this should be a good enough test. SHOULD, just off the top of my head. -Mike On May 12, 10:12 pm, CliveW evil...@gmail.com wrote: I have developed an app for my customer at API level 5 (2.0) and above, and set my minSDKVersion as 5. Now my customer would like to know if it can be made backward compatible with API level 4 (1.6). I have a vague idea which areas might not immediately be compatible without doing some conditional code, but... Does anyone know if there are any tools that can do a simple analysis of my code and list for me any API calls I have that and their API levels (preferably sorted, though I can do this if I can export the info)? This seems like a very useful tool if someone has it? (I'm not expecting a full static code analysis, just API levels of all API calls in a project)... Thanks in advance for your comments... Clive -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Does Google supply an interface?
Hello,everyone.Recently I'm doing an application (A) about password verification.I don't want to add some code to the protected application (B).That is , befor B's activity starts I want to switch to A'activity.Does Google supply that interface for developers? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 tools for analyzing API level compatibility in my Android code?
Doesn't just compiling against the Level 4 libraries and see what kind of errors you are getting sufficient? On May 13, 1:12 pm, CliveW evil...@gmail.com wrote: I have developed an app for my customer at API level 5 (2.0) and above, and set my minSDKVersion as 5. Now my customer would like to know if it can be made backward compatible with API level 4 (1.6). I have a vague idea which areas might not immediately be compatible without doing some conditional code, but... Does anyone know if there are any tools that can do a simple analysis of my code and list for me any API calls I have that and their API levels (preferably sorted, though I can do this if I can export the info)? This seems like a very useful tool if someone has it? (I'm not expecting a full static code analysis, just API levels of all API calls in a project)... Thanks in advance for your comments... Clive -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to tell if phone lock screen is up?
I want to do something kind of disruptive to the user experience :-) so I want to do it only when the phone is locked. Is there a way to tell this? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Does Google supply an interface?
Can you elaborate? You're trying to prevent activity B from being accessed before the password check in activity A has been successful? I assume that activity B is any arbitrary activity? -Mike On May 12, 11:41 pm, gujian outspacem...@gmail.com wrote: Hello,everyone.Recently I'm doing an application (A) about password verification.I don't want to add some code to the protected application (B).That is , befor B's activity starts I want to switch to A'activity.Does Google supply that interface for developers? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to tell if phone lock screen is up?
I RTFM and found the answer: return ((KeyguardManager)getSystemService(KEYGUARD_SERVICE)).inKeyguardRestrictedInputMode(); On May 12, 11:52 pm, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: I want to do something kind of disruptive to the user experience :-) so I want to do it only when the phone is locked. Is there a way to tell this? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Does Google supply an interface?
yes,I just want to know wheather Google supply any interface.I want to guarantee the mobile's s *security.* *That is ,you want to enter activity B ,first you must input the right password.In another words,A can *intercept B without adding any words to B! 2010/5/13 EboMike ebom...@gmail.com Can you elaborate? You're trying to prevent activity B from being accessed before the password check in activity A has been successful? I assume that activity B is any arbitrary activity? -Mike On May 12, 11:41 pm, gujian outspacem...@gmail.com wrote: Hello,everyone.Recently I'm doing an application (A) about password verification.I don't want to add some code to the protected application (B).That is , befor B's activity starts I want to switch to A'activity.Does Google supply that interface for developers? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Cheap Embedded Android Phone (M2M device?)
Maybe the XMM 6181 from Infineon migh be interesting: http://www.infineon.com/cms/en/corporate/press/news/releases/2010/INFWLS201002-032.html Friedger On 5 Mai, 02:03, Pete clubpe...@gmail.com wrote: Hey all, I'm playing around with some ideas and was wondering if anyone knew of an Android-based device that was basically a cell-phone with no screen. Here's the requirements I'm looking for: - Support GSM - Single SIM slot or eSIM (3G preferred but not required) - Support GPS - Support BlueTooth - Optionally have an accelerometer - No display (this is an embedded device) - Would be willing to provide my own packaging (raw boards would be ok) - Priced around $40 - $80 I've debated taking the guts out of old G1s for this project. But if there is a specific device that meets my needs all the better. If there's any Manufacturers out there that have Android phone guts available, let me know too. Thanks -pete -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: accessing sqlite db
On 12 May, 22:53, Christine christine.kar...@gmail.com wrote: 1. where you open and close depends on your app. You can keep the db open, and close and re-open in onResume and onPause, or you can open and close before and after you access the db. ok I know I can ;] but it was more question about performance and design ;] as I didnt see any close call in tutorial I assumed It is handled by the system somehow but then I got exceptions so I was wondering 3. just retrieve the data that you need in the getView of your list adapter, don't retrieve complete tables if you don't need them. Of course, it depends on your app and on the size of the table whether you want to keep the table in memory or not. so the answer is to handle data fetching from db by myself when user interacts with the view ok, I think I can leave with 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: understanding intents and notepad sample
blup On 11 May, 23:10, kamiseq kami...@gmail.com wrote: hi, can somebody clarify few things here. I readhttp://developer.android.com/guide/topics/intents/intents-filters.html about intents and tried to listen for CALL action so my application could start if user dial a number and start conversation. I tried with something like intent-filter action android:name=android.intent.action.CALL / category android:name=android.intent.category.LAUNCHER / /intent-filter but it doesnt seem to work. But now after I ve examine the notepad sample (http:// developer.android.com/resources/samples/NotePad/index.html) I am even more confused. I expected filters intent-filter action android:name=android.intent.action.VIEW / action android:name=android.intent.action.EDIT / action android:name=android.intent.action.PICK / category android:name=android.intent.category.DEFAULT / data android:mimeType=vnd.android.cursor.dir/ vnd.google.note / /intent-filter intent-filter action android:name=android.intent.action.GET_CONTENT / category android:name=android.intent.category.DEFAULT / data android:mimeType=vnd.android.cursor.item/ vnd.google.note / /intent-filter to define kind of call back in an activity code but in turn I found @Override protected void onListItemClick(ListView l, View v, int position, long id) { Uri uri = ContentUris.withAppendedId(getIntent().getData(), id); String action = getIntent().getAction(); if (Intent.ACTION_PICK.equals(action) || Intent.ACTION_GET_CONTENT.equals(action)) { // The caller is waiting for us to return a note selected by // the user. The have clicked on one, so return it now. setResult(RESULT_OK, new Intent().setData(uri)); } else { // Launch activity to view/edit the currently selected item startActivity(new Intent(Intent.ACTION_EDIT, uri)); }} so I dont know what to think about it and I cant find any explanation for this sample. could somebody guide me here in good direction, point me to some resources that I obviously missed?? thanks for help!! cheers -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Maintaining the state when changing the orientation
I am having an application showing ListItems and Dialog boxes in it.. I want that when i change the orientation from Portrait to landscape mode, i need to maintain the state of the application .. I have seperate XMLs for landscape and portrait mode.. What is the best way to achieve this Thanks , Alok. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Does Android support videos played when downloading?
Hi all, When I am downloading a video from internet, I want to play the video, does Android support this? How can I do it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to 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 prevent zooming in browser on Legend?
Hi all I made a map library and have implemented a zoom function. An HTC Legend there is a simple multitouch zoom function implemented. In the new version I installed yesterday, I don't know how to prevent this multitouch zooming. If my application is zooming AND the browser is zooming, there is a problem. I have set the meta tag meta name=viewport content=width=device-width, initial-scale=1.0, maximum-scale=1.0; minimum-scale=1.0; user-scalable=0/ and do lots of evt.preventDefault() but no success. Any idea how to solve that? The map: http://khtml.org (doubletouch for zooming) Bernhard -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] App losing downloads/active installs data
Hi Devs, Have anyone notice yesterday anything strange in the downloads/active install data from your apps? My app lost more than 100 downloads(which should be impossible) from which most of them were active installs, so now my apps is 15 places down and my percentage of active installs badly affected. Has anyone else been affected? Alberto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 use PathClassLoader for files that are not installed.
Hi guys, I'm having a bit of trouble getting this to work. If I want to put an apk file in my app what folder should I put it in. And how do I access it? I've tried putting it in the res/raw folder and the assets folder but I can't seem to get it to work. Thanks in advance. Best Regards, Craig On Mar 22, 7:00 pm, Craig O Connor craigoc...@gmail.com wrote: Sorry for the delay. Only just now realised my question had been approved. Thanks for pointing me in the right direction. I will try this now. Thanks, Craig On Mar 15, 8:02 pm, fadden fad...@android.com wrote: On Mar 12, 8:38 pm, Lance Nanek lna...@gmail.com wrote: I saw a thread with people loading APKs via DexClassLoader here:http://stackoverflow.com/questions/1001944/android-remote-code-loading Yes, use DexClassLoader. Tthe app needs a place to unpack and fix up the DEX data (the alternative being to hold the entire thing in unshared memory). Unless you have a rooted phone, you can't store it in /data/dalvik-cache like the system 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] Is there any dictionary of words in android platform?
Is there any dictionary of words present in android platform ? If yes how can I use this dictionary in my applications to populate suggestions/predictions ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Does Google supply an interface?
gujian wrote: Hello,everyone.Recently I'm doing an application (A) about password verification.I don't want to add some code to the protected application (B).That is , befor B's activity starts I want to switch to A'activity.Does Google supply that interface for developers? No, sorry. -- 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] Does Google supply an interface?
sir,can broadcast help me about the problem?Maybe I said above words very absolutely.Instead of without adding codes adding few will be suitable. 2010/5/13 Mark Murphy mmur...@commonsware.com gujian wrote: Hello,everyone.Recently I'm doing an application (A) about password verification.I don't want to add some code to the protected application (B).That is , befor B's activity starts I want to switch to A'activity.Does Google supply that interface for developers? No, sorry. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Does Google supply an interface?
gujian wrote: sir,can broadcast help me about the problem?Maybe I said above words very absolutely.Instead of without adding codes adding few will be suitable. There are no broadcast Intents to announce the opening of an activity. Please bear in mind that while you may wish to use this capability for positive ends, what you are really asking for is a recipe for malware. If Application A can prevent the user from using Application B (by popping in front), malware authors will use this to harm Android users and, therefore, Android by extension. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.x Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] requestRouteToHost doesn't work
Hi all, my appliation must use gprs/edge/other sim connection, not wifi. Based on http://code.google.com/p/android/issues/detail?id=6518 and http://blogs.msdn.com/zhengpei/ I wrote: ret = connMan.requestRouteToHost(ConnectivityManager.TYPE_MOBILE, hostAddress); To lookup host I used function from http://stackoverflow.com/questions/2295998/requestroutetohost-ip-argument unfortunetly requestRouteToHost returns false when wifi is enabled. Logcat shows: DEBUG/ConnectivityService(1161): requestRouteToHost on down network (0 - dropped Any idea what might be wrong? I've two ideas: 1) I've access only to gprs, not 3g connection, issue 6518 regards to 3G/CDMA 2) hostAddress is less than zero, is that ok? Thanks for any hint/help Cheers -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Does Google supply an interface?
I know.Thanks for you warning.What you said is very correctly.I ignore that.But I want to do an application for managing passwords of some application which need to protect the Android user.How can I realize it? Thank you! 2010/5/13 Mark Murphy mmur...@commonsware.com gujian wrote: sir,can broadcast help me about the problem?Maybe I said above words very absolutely.Instead of without adding codes adding few will be suitable. There are no broadcast Intents to announce the opening of an activity. Please bear in mind that while you may wish to use this capability for positive ends, what you are really asking for is a recipe for malware. If Application A can prevent the user from using Application B (by popping in front), malware authors will use this to harm Android users and, therefore, Android by extension. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.x Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: samsung app store
Yeah I got one of those emails as well. Working on a new version of my app and won't be ready to upload for a little while anyway. It looks reasonably legit and the domain name looks like it is registered by samsung (e.g. samsung.com contacts). I would be interested to hear what other people thing? Cheers, Mike On May 13, 4:11 am, schwiz sch...@gmail.com wrote: I have been receiving some emails from someone claiming to be a rep for samsung and they are opening a new app store selling android apps. They have asked that I publish one of my apps they found on the android market on their store. Just wondering if anyone else has been getting emails like that and if it is legit? I am a little weary to give them my bank info to say the least. The website looks legit but I dunno...http://seller.samsungapps.com/login/signIn.as?returnURL=/main/sellerM... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: (Bug?) Back button triggers several times in different tasks
1) I'm using Android 1.6 2) Sorry, but I was not asking for workaround (which I think should be clear from description). I wanted (and still want) to know why does it work in this (IMO) BROKEN way! I can not use onKeyDown() in my real-life code which suffers from this problem. I only put this minimalistic sample to clearly show the problem On 12 May, 13:25, Mark Murphy mmur...@commonsware.com wrote: inbrainwrote: Please read more carefully through my description. First I spawning ANOTHER activity in the same task and pressing BACK button while IT IS VISIBLE. BACK button triggers both on this activity (effectively closing it) and also shows toast (so triggers the second time) for the base activity (which is activity A) Don't use onKeyUp(). Use onBackPressed (Android 2.x) or onKeyDown() (Android 1.x). -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _Beginning Android 2_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Getting and Sending Data From the Web (URLConnection via http)
Are you inside your network or outside, using wi-fi or 3g? Do you have to authenticate the connection? Is there a protocol(provided by multimedia vendor) for establishing a connection with the server? Jason http://www.simplycontrolledsystems.com On Thu, May 13, 2010 at 12:54 AM, Vinay S s.vinay@gmail.com wrote: Hi, Did you try sending the data back using the same HTTP connection? Try opening a new HTTP connection and send the data back.. This might give you some clue, is this the problem of HTTP.. Regards, Vinay On May 10, 10:27 pm, strog droid.j...@googlemail.com wrote: Hi Guys, I wanted to create a an android application that works like a remote control for a multimedia system. This client server dialog is done on the json class api. The class that I use for establishing the communication is the HttpURLConnection. I used the following example for writing my programm(http://www.anddev.org/getting_data_from_the_web_urlconnection_via_htt... ). I ran wireshark to monitor the communication, and i see the data that is being sent from the server, but sending orders back to the server from my milestone doesn't happen at all. I turned off all my firewalls that could interfere with the communication. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Killing Activity / onPause() / isFinishing()
Is isFinishing() guaranteed to return true in onPause() when an activity is being killed by the system ? If not, how is it possible to differentiate activity-being-killed and one of the other reasons for onPause() being called ? It must apparently be done in onPause(), since that's the only one guaranteed to be called by the system according to the lifecycle doc. Thanks, Lee -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] method.getAnnotation( ) or method.isAnnotationPresent( ) not working
-- Sent from my Palm Prē On 13 May 2010 03:35, Nehal lt;droidwond...@gmail.comgt; wrote: Hello, I am trying to use annotation - method.getAnnotation( ) or method.isAnnotationPresent( ) and it is not working. I am using eclipse emulator for 2.1 OS version with JDK 1.6. Following is information about what I did. Please advise if I am doing something wrong. 1) Added annotation type public static final int METHOD_UNDEFINED = -1; public @interface MethodInfo { int id() default METHOD_UNDEFINED; } 2) Added annotation for my method final public static int METHOD_TESTMSG = 1; @MethodInfo(id=METHOD_TESTMSG) public void testMsg(String msg, int data1, boolean bool1) { // code here } 3) Now I am trying to find this method using annotation. Method [] methodList = instanceClass.getDeclaredMethods(); for(int i=0; ilt; methodList.length; i++) { if (methodList[i].isAnnotationPresent(MethodInfo.class)) { // stuff here } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Image download problem
Hi. I have some question regarding image downloading from the server. In my application i had to continually call one method in which image download code is placed But java.net.MalformedURLException is there when i call image download method continually so any suggestion why i get java.net.MalformedURLException in my code. try { URL aURL = new URL(url); URLConnection conn = aURL.openConnection(); conn.connect(); InputStream is = conn.getInputStream(); BufferedInputStream bis = new BufferedInputStream(is); int i = bis.available(); if(i!=0) { bm = BitmapFactory.decodeStream(bis); setOriginalImage(bm); bm = resizeBitmap(bm, 30, 30); } /* bm = BitmapFactory.decodeStream(bis); setOriginalImage(bm); bm = resizeBitmap(bm, 30, 30);*/ bis.close(); is.close(); } catch (IOException e) { Log.e(TAG, Error getting bitmap, e); } catch(Exception e) { e.printStackTrace(); } retrun bm; here is my code -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Ensure GPS has fix before proceeding..
On Tue, May 11, 2010 at 5:56 PM, mcvetyty mcvet...@gmail.com wrote: 1) I want to ensure I am using a current 'fixed' location and not a previously stored one, so I am trying to avoid using getLastKnownLocation, but cannot seem to figure out the alternate to this? That's not really a question ... 2) What is the best way to display a please wait message or something along those lines while the GPS service is attempting to get a fix (and ideally periodically allow the user to cancel out)? Best is debatable - but you could use an AsyncTask that does whatever it is you need your GPS fix for and include getting a fix as one of it's steps, during which time you show an indeterminate progress dialog that says Getting your current location ... please wait... or something. That's what I do when the last known location will not suffice. Works well enough. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: (Bug?) Back button triggers several times in different tasks
I think this situation depend on A'status.you can debug it with Log.d()and then you can get your answer! 2010/5/13 inbrain inbr...@gmail.com 1) I'm using Android 1.6 2) Sorry, but I was not asking for workaround (which I think should be clear from description). I wanted (and still want) to know why does it work in this (IMO) BROKEN way! I can not use onKeyDown() in my real-life code which suffers from this problem. I only put this minimalistic sample to clearly show the problem On 12 May, 13:25, Mark Murphy mmur...@commonsware.com wrote: inbrainwrote: Please read more carefully through my description. First I spawning ANOTHER activity in the same task and pressing BACK button while IT IS VISIBLE. BACK button triggers both on this activity (effectively closing it) and also shows toast (so triggers the second time) for the base activity (which is activity A) Don't use onKeyUp(). Use onBackPressed (Android 2.x) or onKeyDown() (Android 1.x). -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguyhttp://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twitter.com/commonsguy _Beginning Android 2_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: (Bug?) Back button triggers several times in different tasks
Excuse me, what is A's status? And what I should be able to debug? On 13 May, 16:43, gujian outspacem...@gmail.com wrote: I think this situation depend on A'status.you can debug it with Log.d()and then you can get your answer! 2010/5/13 inbrain inbr...@gmail.com 1) I'm using Android 1.6 2) Sorry, but I was not asking for workaround (which I think should be clear from description). I wanted (and still want) to know why does it work in this (IMO) BROKEN way! I can not use onKeyDown() in my real-life code which suffers from this problem. I only put this minimalistic sample to clearly show the problem On 12 May, 13:25, Mark Murphy mmur...@commonsware.com wrote: inbrainwrote: Please read more carefully through my description. First I spawning ANOTHER activity in the same task and pressing BACK button while IT IS VISIBLE. BACK button triggers both on this activity (effectively closing it) and also shows toast (so triggers the second time) for the base activity (which is activity A) Don't use onKeyUp(). Use onBackPressed (Android 2.x) or onKeyDown() (Android 1.x). -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguyhttp://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twit... _Beginning Android 2_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%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 athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Gallery elasticity at the ends
I added 2 dummy views at the ends of the Gallery then wrote a onItemSelectedListener that essentially listens for items 0 and the last item (the dummy views) and sets the selection to 1 and the last item -1 respectively. This creates the bounce me having to do any animations! I created a full screen gallery view and each item in the adapter takes up the entire screen (just like a home screen with various full screen panels). I also modified the onFling so the gallery only moves one screen at a time (much like an Android or iPhone home screen). I uploaded the code and a sample movie of what I did on Google Code: http://code.google.com/p/androidanimations/downloads/detail?name=androidmodifiedgallery.movcan=2q= http://code.google.com/p/androidanimations/downloads/list Here are some snippets of the modified Gallery: - package com.nikb.gallery; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.Display; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; import android.widget.AdapterView; import android.widget.BaseAdapter; import android.widget.Gallery; import android.widget.SpinnerAdapter; import android.widget.TextView; import android.widget.AdapterView.OnItemSelectedListener; public class ModifiedGallery extends Gallery { private static final boolean ISLOG = true; private static final String TAG = ModifiedGallery.class.getSimpleName(); private float modifiedVelocityX; public ModifiedGallery(Context context) { super(context); init(); } public ModifiedGallery(Context context, AttributeSet attrs) { super(context, attrs); init(); } public ModifiedGallery(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); init(); } private void init() { Display display = ((WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay(); int width = display.getWidth(); int height = display.getHeight(); if (ISLOG) Log.d(TAG, Width is + display.getWidth() + and height is + display.getHeight()); modifiedVelocityX = (float) (width * 1.7); setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView? arg0, View arg1, int arg2, long arg3) { int pos = getSelectedItemPosition(); Log.d(TAG, Selected item is + getSelectedItemPosition()); if (pos == 0) { Log.d(TAG, Animating to the first item); setSelection(1); } else { int count = getCount(); if (pos == count - 1) { Log.d(TAG, Animating to + (count - 2)); setSelection(count - 2); } } } @Override public void onNothingSelected(AdapterView? arg0) { } }); } @Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { float mod = velocityX 0 ? -modifiedVelocityX : modifiedVelocityX; if (getSelectedItemPosition() == 1 || getSelectedItemPosition() == getAdapter().getCount() - 2) { mod = velocityX 0 ? -1 : 1; } if (ISLOG) Log.d(TAG, Original velocity X was + velocityX + modified velocity is + mod); return super.onFling(e1, e2, mod, velocityY); } @Override public void setAdapter(SpinnerAdapter adapter) { super.setAdapter(new BounceGalleryAdapter(adapter)); setSelection(1); // set it to the first position by default } class BounceGalleryAdapter extends BaseAdapter { private static final int ELASTICITY_DIP = 50; //how far to stretch at the ends private SpinnerAdapter mAdapter; private TextView dummyText2; private TextView dummyText1; private LayoutInflater layoutInflater; public BounceGalleryAdapter(SpinnerAdapter adapter)
[android-developers] Can I send an image byte[] to ACTION_VIEW intent?
Hi all, Just wondering if its possible to use the built in image viewer to display an image sourced from a database. I'm hoping I can pass the byte[] as an extra to the ACTION_VIEW intent, but can't find any docs on it so far. Alternatively I'll have to roll my own viewer or first write the image out to a file and pass that to the intent. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get selected items in a ListView (multi selection check boxes)? - URGENT PLZ
Hi Gyan, Thanks for your reply... can you please post the code snippet? Regards, -DK On May 12, 3:22 pm, Gyan gnanesh@gmail.com wrote: Have experienced this myself. implement a ListAdapter for the same and handle ur items from there... Additionally u can use onDataSetChanged to check for the multiple check and uncheck options.i mean to say you can actually debug this at this overridden method! Gyan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Blocking current Activity/Screen till current task is complete
Hi, The default behavior of an activity when BACK softkey is pressed is, GO BACK TO PREVIOUS ACTIVITY.. If some the same activity is waiting for some response from server or some data updation is going on and then press BACK, I want to wait on the same screen till the current task is completely processed and then move out to the previous activity. I would appreciate if someone can send me some sample code or way to do.. Thanks, Regards, DK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Blocking current Activity/Screen till current task is complete
Show an AlertDialog box that can not be cancelled (by pressing the back button). Dismiss this dialog when your task has completed. The AlertDialog, if it can not be cancelled, will prevent the back- button from going back to the previous activity. Be absolutely sure that the task finishes properly and the AlertDialog is being dismissed in reasonable amount of time. If not, your users are going to be pissed off for waiting a long time. Also, the user can still exit your app by pressing the Home key. On May 13, 10:15 am, dillipk codersnet2...@gmail.com wrote: Hi, The default behavior of an activity when BACK softkey is pressed is, GO BACK TO PREVIOUS ACTIVITY.. If some the same activity is waiting for some response from server or some data updation is going on and then press BACK, I want to wait on the same screen till the current task is completely processed and then move out to the previous activity. I would appreciate if someone can send me some sample code or way to do.. Thanks, Regards, DK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: (Bug?) Back button triggers several times in different tasks
http://android-developers.blogspot.com/2009/12/back-and-other-hard-keys-three-stories.html On May 13, 9:54 am, inbrain inbr...@gmail.com wrote: Excuse me, what is A's status? And what I should be able to debug? On 13 May, 16:43, gujian outspacem...@gmail.com wrote: I think this situation depend on A'status.you can debug it with Log.d()and then you can get your answer! 2010/5/13 inbrain inbr...@gmail.com 1) I'm using Android 1.6 2) Sorry, but I was not asking for workaround (which I think should be clear from description). I wanted (and still want) to know why does it work in this (IMO) BROKEN way! I can not use onKeyDown() in my real-life code which suffers from this problem. I only put this minimalistic sample to clearly show the problem On 12 May, 13:25, Mark Murphy mmur...@commonsware.com wrote: inbrainwrote: Please read more carefully through my description. First I spawning ANOTHER activity in the same task and pressing BACK button while IT IS VISIBLE. BACK button triggers both on this activity (effectively closing it) and also shows toast (so triggers the second time) for the base activity (which is activity A) Don't use onKeyUp(). Use onBackPressed (Android 2.x) or onKeyDown() (Android 1.x). -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguyhttp://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twit... _Beginning Android 2_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%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 athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Image download problem
What is the value of 'url'? The code complains that the value of 'url' is not formed correctly, that it isn't a proper URL. On May 13, 9:42 am, jaimin mehta jaimin.r.me...@gmail.com wrote: Hi. I have some question regarding image downloading from the server. In my application i had to continually call one method in which image download code is placed But java.net.MalformedURLException is there when i call image download method continually so any suggestion why i get java.net.MalformedURLException in my code. try { URL aURL = new URL(url); URLConnection conn = aURL.openConnection(); conn.connect(); InputStream is = conn.getInputStream(); BufferedInputStream bis = new BufferedInputStream(is); int i = bis.available(); if(i!=0) { bm = BitmapFactory.decodeStream(bis); setOriginalImage(bm); bm = resizeBitmap(bm, 30, 30); } /* bm = BitmapFactory.decodeStream(bis); setOriginalImage(bm); bm = resizeBitmap(bm, 30, 30);*/ bis.close(); is.close(); } catch (IOException e) { Log.e(TAG, Error getting bitmap, e); } catch(Exception e) { e.printStackTrace(); } retrun bm; here is my code -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenCore / Possible Issue w/ Streaming MP3 over HTTP?
Hi Ravi, Regarding the missing Content-Length header, this was on different streams. The test case you have has the Content-Length header (which is one reason I provided that test case specifically, to simplify the issue). Believe it or not, I'm having success with 128kbps MP3's to the device over 3G. Same goes with 192kbps and 256kbps. At 320kbps the problem becomes apparent again. What I find most strange about this is that the test case I sent you was at 192kbps but I'm still having problems with that particular track. The tracks I'm tsting with today are being transcoded on the fly by FFmpeg, so bitrate aside the encoder may be the notable difference there. Your thoughts? On May 12, 10:01 pm, rktb yend...@pv.com wrote: Hi, I was actually able to see the content length in the http response. Here is a snippet from my log: PVLOG:TID(0xe9bf8):Time=830:HttpParsingBasicObject::parseResponse() file size = 5346201 But, yes, the auto-pause/auto-resume does indeed depend on whether or not the content length is present in the header. If you try to put the new OpenCORE code under your application, you would need to write a new MIO [media input/output component] that would dump the raw PCM data back to the java layer, which would then use the AudioTrack API to render the data. But, I think that this would be a bit involving. I am still trying to think what other properties could be a factor. Did you try: - smaller content? - lower bitrate content? -Ravi On May 12, 8:39 pm, SDS sstrea...@gmail.com wrote: Hi Ravi, Thank you kindly for your responses. I've tried MP3 streams without ID3v2, but I should point out a difference that may or may not be significant in the context of this defect. The HTTP headers for the MP3 streams were without a Content- Length header. In terms of the initial observations I reported, the intermittent behavior is identical but without the increasing buffer % callbacks. I'm assuming this is expected, but I'll let you decide. Regarding deployment of the latest code for OpenCORE with our application, so that we can take advantage of your fix, what would be involved from a development perspective, and how would you compare that level of effort with us rolling our own HTTP streaming / MP3 decoding framework using native code? On May 12, 9:33 pm, rktb yend...@pv.com wrote: One thing to try is to encode a clip without Id3v2, and see the behavior. That would reduce the probability of insufficient data by a bit. -Ravi On May 12, 5:02 pm, rktb yend...@pv.com wrote: Hi, I was able to reproduce the problem, and it is definitely timing dependent. For the eclair codebase, I found a problem in OpenCORE's mp3 parser node. That, however, has been fixed on the latest codebase available at kernel.org. Now, for applications that are being written for existing Android SDK releases, I don't have a way out yet. -Ravi On May 12, 12:47 pm, SDS sstrea...@gmail.com wrote: I’m experiencing an intermittent and very frustrating issue with MediaPlayer on Android when streaming MP3 over HTTP. I’ve done as much research and debugging as I possibly can to try and find a solution, but am coming up short. I can’t find reference to this issue anywhere, including b.android.com. Essentially, what’s happening is MediaPlayer will not come out of the preparing state. The device is receiving audio data during this time, as indicated by network sniffs and the MediaPlayer buffering callback being invoked repeatedly with increasing percentage values, but eventually the buffer appears to become full and stops receiving. Because prepare() never returns, or more accurately when prepareAsync() is used and the onPrepared callback is never invoked, and neither the onError() nor onInfo() callbacks are invoked, the application can neither call MediaPlayer.start() nor make any sort of recovery. Other notable observations: - The problem is intermittent, meaning that subsequent attempts to play the exact same MP3 stream from the exact same server may exhibit this behavior or not - The problem seems to be exasperated when the device is connected via 3G versus wifi - The problem occurs on different MP3’s encoded by different software - The problem occurs when streaming from different HTTP servers - The problem cannot be reproduced on any of the Android SDK emulators - The problem can be reproduced on the HTC Incredible, Verizon Motorola DROID, and HTC Touch - When MediaPlayer successfully returns from the preparing state, there is an info message (what=1, extra=44) received. This info message is not received during the problematic case. Anyone ever experienced this, or even find a solution?
[android-developers] How to scan Access Points and select strongest signal?
I am currently trying to write a class in Android that will Scan for access points, calculate which access point has the best signal and then connect to that access point. So the application will be able to scan on the move and attach to new access points on the go. I have the scanning and calculation of the best signal working. But when it comes to attaching to the best access point I am having trouble. It appears that enableNetwork(netid, othersTrueFalse) is the only method for attaching to an Access point but this causes problems as from my Scan Results I am not able to get the id of the access point with the strongest signal. This is my code: --- public void doWifiScan(){ scanTask = new TimerTask() { public void run() { handler.post(new Runnable() { public void run() { sResults = wifiManager.scan(getBaseContext()); if(sResults!=null) Log.d(TIMER, sResults count + sResults.size()); ScanResult scan = wifiManager.calculateBestAP(sResults); wifiManager.addNewAccessPoint(scan); } }); }}; t.schedule(scanTask, 3000, 3); } --- public ScanResult calculateBestAP(ListScanResult sResults){ ScanResult bestSignal = null; for (ScanResult result : sResults) { if (bestSignal == null || WifiManager.compareSignalLevel(bestSignal.level, result.level) 0) bestSignal = result; } String message = String.format(%s networks found. %s is the strongest. %s is the bsid, sResults.size(), bestSignal.SSID, bestSignal.BSSID); Log.d(sResult, message); return bestSignal; } --- public void addNewAccessPoint(ScanResult scanResult){ WifiConfiguration wc = new WifiConfiguration(); wc.SSID = '\' + scanResult.SSID + '\'; //wc.preSharedKey = \password\; wc.hiddenSSID = true; wc.status = WifiConfiguration.Status.ENABLED; wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP); wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP); wc.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP); wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP); wc.allowedProtocols.set(WifiConfiguration.Protocol.RSN); int res = mainWifi.addNetwork(wc); Log.d(WifiPreference, add Network returned + res ); boolean b = mainWifi.enableNetwork(res, false); Log.d(WifiPreference, enableNetwork returned + b ); } --- When I try to use addNewAccessPoint(ScanResult scanResult) it just adds another AP to the list in the settings application with the same name as the one with the best signal, so I end up with loads of duplicates and not actually attaching to them. Can anyone point me in the direction of a better solution? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: FLAG_BLUR_BEHIND extremely slow on Droid?
The blur effect seems to be done in software on the NexusOne as well. One can see that in Launcher2, when using an animated Live Wallpaper and opening the Power Options menu (long press on HW power button): The background scene has to be redrawn continuously and the whole device feels VERY slow. A. On 12 mai, 19:21, EboMike ebom...@gmail.com wrote: Sure, it works, but it's unacceptably slow, so in the end I'm just dimming the background now. -Mike On May 10, 8:09 am, John Woods jtwoo...@gmail.com wrote: Did you ever get the surface blur to work? -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of EboMike Sent: Sunday, May 09, 2010 10:10 PM To: Android Developers Subject: [android-developers]FLAG_BLUR_BEHINDextremely slow on Droid? It seems like usingFLAG_BLUR_BEHINDmakes an activity extremely slow - every redraw takes forever, even when just editing an EditText. It almost sounds like the blur effect is being redone on the entire screen in software (actually, even that couldn't possibly be that slow with a normal blur kernel). Is that specific to the Droid? Or the OS? It seems to happen on both 2.0.1 and 2.1.FLAG_BLUR_BEHINDis lightning fast on a puny G1 with 1.1/1.5/1.6, so it sounds like it's using a GL extension that's not supported on the Droid, or something similar. Are there any known work- arounds, or is there any word about a fix? I've seen source codes that check for the OS version and do not setFLAG_BLUR_BEHINDif something = Eclair is detected, which sounds hacky. If anything, it would be nice to see what exactly is missing here (GL extension?), and check for that instead. -Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] broken pipe over ssl
hi i've posted the question on stack overflow but no answer - any ideas ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: broken pipe over ssl
:) i forgot to put the link http://stackoverflow.com/questions/2820284/ssl-on-android-strange-issue On Thu, May 13, 2010 at 6:48 PM, manigault manig...@gmail.com wrote: hi i've posted the question on stack overflow but no answer - any ideas ? -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Blocking current Activity/Screen till current task is complete
On Thu, May 13, 2010 at 9:15 AM, dillipk codersnet2...@gmail.com wrote: If some the same activity is waiting for some response from server or some data updation is going on and then press BACK, I want to wait on the same screen till the current task is completely processed and then move out to the previous activity. On top of what SOB said, this is a bad idea - don't block the user from doing anything, especially if it's going to take a long time. If I press back while you're doing some long-running operation (presumably with a progress dialog running) I expect that operation to cancel out - not to sit there trying to finish what it started. If you ignore that and make me wait or hit the Home screen to exit your ongoing process, you can be fairly certain your app will not be installed for long... - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: JetPlayer help
Solved it! Turns out that I was setting my DLS flag in queueJetSegment() to 0 instead of -1 since I don't have any DLS resources. Oops! Documentation on all the JetPlayer stuff could be a bit more clear... On May 12, 2:42 pm, Justin jtgi...@gmail.com wrote: I've just started looking at JetPlayer and have (I think) created the appropriate files needed in JetCreator (*.zip and *.jet files). When I test an implementation out, I get the following error in the logcat: E/JET_JNI ( 1869): android_media_JetPlayer_queueSegment(): failed with EAS error code -13 Any ideas what this means? I followed the JetBoy example in the SDK. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Ensure GPS has fix before proceeding..
Best is debatable - but you could use an AsyncTask that does whatever it is you need your GPS fix for and include getting a fix as one of it's steps, during which time you show an indeterminate progress dialog that says Getting your current location ... please wait... or something. That's what I do when the last known location will not suffice. Works well enough. What I did is to setup a locationlistener, and assume that the gps gets the fix only after the first update (when the onLocationChanged is fired the first time). You can also listen to the other callbacks like onStatusChanged in order to decide if the gps is down again. Hope this helps, Federico -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OpenCore / Possible Issue w/ Streaming MP3 over HTTP?
Ravi, I'm not seeing your commit for the timing fix on android.git.kernel.org. Am I looking in the wrong place? On May 13, 10:47 am, SDS sstrea...@gmail.com wrote: Hi Ravi, Regarding the missing Content-Length header, this was on different streams. The test case you have has the Content-Length header (which is one reason I provided that test case specifically, to simplify the issue). Believe it or not, I'm having success with 128kbps MP3's to the device over 3G. Same goes with 192kbps and 256kbps. At 320kbps the problem becomes apparent again. What I find most strange about this is that the test case I sent you was at 192kbps but I'm still having problems with that particular track. The tracks I'm tsting with today are being transcoded on the fly by FFmpeg, so bitrate aside the encoder may be the notable difference there. Your thoughts? On May 12, 10:01 pm, rktb yend...@pv.com wrote: Hi, I was actually able to see the content length in the http response. Here is a snippet from my log: PVLOG:TID(0xe9bf8):Time=830:HttpParsingBasicObject::parseResponse() file size = 5346201 But, yes, the auto-pause/auto-resume does indeed depend on whether or not the content length is present in the header. If you try to put the new OpenCORE code under your application, you would need to write a new MIO [media input/output component] that would dump the raw PCM data back to the java layer, which would then use the AudioTrack API to render the data. But, I think that this would be a bit involving. I am still trying to think what other properties could be a factor. Did you try: - smaller content? - lower bitrate content? -Ravi On May 12, 8:39 pm, SDS sstrea...@gmail.com wrote: Hi Ravi, Thank you kindly for your responses. I've tried MP3 streams without ID3v2, but I should point out a difference that may or may not be significant in the context of this defect. The HTTP headers for the MP3 streams were without a Content- Length header. In terms of the initial observations I reported, the intermittent behavior is identical but without the increasing buffer % callbacks. I'm assuming this is expected, but I'll let you decide. Regarding deployment of the latest code for OpenCORE with our application, so that we can take advantage of your fix, what would be involved from a development perspective, and how would you compare that level of effort with us rolling our own HTTP streaming / MP3 decoding framework using native code? On May 12, 9:33 pm, rktb yend...@pv.com wrote: One thing to try is to encode a clip without Id3v2, and see the behavior. That would reduce the probability of insufficient data by a bit. -Ravi On May 12, 5:02 pm, rktb yend...@pv.com wrote: Hi, I was able to reproduce the problem, and it is definitely timing dependent. For the eclair codebase, I found a problem in OpenCORE's mp3 parser node. That, however, has been fixed on the latest codebase available at kernel.org. Now, for applications that are being written for existing Android SDK releases, I don't have a way out yet. -Ravi On May 12, 12:47 pm, SDS sstrea...@gmail.com wrote: I’m experiencing an intermittent and very frustrating issue with MediaPlayer on Android when streaming MP3 over HTTP. I’ve done as much research and debugging as I possibly can to try and find a solution, but am coming up short. I can’t find reference to this issue anywhere, including b.android.com. Essentially, what’s happening is MediaPlayer will not come out of the preparing state. The device is receiving audio data during this time, as indicated by network sniffs and the MediaPlayer buffering callback being invoked repeatedly with increasing percentage values, but eventually the buffer appears to become full and stops receiving. Because prepare() never returns, or more accurately when prepareAsync() is used and the onPrepared callback is never invoked, and neither the onError() nor onInfo() callbacks are invoked, the application can neither call MediaPlayer.start() nor make any sort of recovery. Other notable observations: - The problem is intermittent, meaning that subsequent attempts to play the exact same MP3 stream from the exact same server may exhibit this behavior or not - The problem seems to be exasperated when the device is connected via 3G versus wifi - The problem occurs on different MP3’s encoded by different software - The problem occurs when streaming from different HTTP servers - The problem cannot be reproduced on any of the Android SDK emulators - The problem can be reproduced on the HTC Incredible, Verizon
[android-developers] Re: Blocking current Activity/Screen till current task is complete
I completely agree with TreKing. But sometimes bending the 'rules' (disallowing the user to go back when (s)he wants to) is permissible but you'd better have a very good reason :-) ... AlertDialog is being dismissed in reasonable amount of time ... Reasonable means a few seconds, certainly no more than that. On May 13, 11:52 am, TreKing treking...@gmail.com wrote: On Thu, May 13, 2010 at 9:15 AM, dillipk codersnet2...@gmail.com wrote: If some the same activity is waiting for some response from server or some data updation is going on and then press BACK, I want to wait on the same screen till the current task is completely processed and then move out to the previous activity. On top of what SOB said, this is a bad idea - don't block the user from doing anything, especially if it's going to take a long time. If I press back while you're doing some long-running operation (presumably with a progress dialog running) I expect that operation to cancel out - not to sit there trying to finish what it started. If you ignore that and make me wait or hit the Home screen to exit your ongoing process, you can be fairly certain your app will not be installed for long... ----- TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Slow viewing image with ACTION_VIEW
Anyone experienced a very slow response (i.e. 10 seconds) when simple calling an ACTION_VIEW intent for an image on the sdcard? There is around a 10 second delay, eventually there are two INFO level log entries Texture Creation fail, qlError 1281 Built thumbnail and screennail for 0 in 25 So it looks like its trying to do something but I wish I could tell it not to.. Rgds -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to scan Access Points and select strongest signal?
Hi, 1. Regarding duplicates. Android maintains a list of known networks - for each, it stores the SSID, encryption configuration, along with the password, if necessary. Each known network also has a unique numeric ID. You can only connect to networks on this known list, because, as you correctly figured out, connecting to a network is done by its id. However, it's not necessary to add the network to this list if it's already been added (by Android or by your application). You can get the list of known networks from the WifiManager: http://developer.android.com/reference/android/net/wifi/WifiManager.html#getConfiguredNetworks () You can match these networks to your live scan results using their SSIDs. If the network is already in the known list, just use its numeric id. If not, you get the numeric ID back from addNetwork(). 2. Once you have the numeric ID, call enableNetwork(networkId, true) to connect. The second parameter means disconnect from others, not forget all other network as its name might seem to imply. -- Kostya Vasilyev 2010/5/13 draf...@gmail.com draf...@gmail.com I am currently trying to write a class in Android that will Scan for access points, calculate which access point has the best signal and then connect to that access point. So the application will be able to scan on the move and attach to new access points on the go. I have the scanning and calculation of the best signal working. But when it comes to attaching to the best access point I am having trouble. It appears that enableNetwork(netid, othersTrueFalse) is the only method for attaching to an Access point but this causes problems as from my Scan Results I am not able to get the id of the access point with the strongest signal. This is my code: --- public void doWifiScan(){ scanTask = new TimerTask() { public void run() { handler.post(new Runnable() { public void run() { sResults = wifiManager.scan(getBaseContext()); if(sResults!=null) Log.d(TIMER, sResults count + sResults.size()); ScanResult scan = wifiManager.calculateBestAP(sResults); wifiManager.addNewAccessPoint(scan); } }); }}; t.schedule(scanTask, 3000, 3); } --- public ScanResult calculateBestAP(ListScanResult sResults){ ScanResult bestSignal = null; for (ScanResult result : sResults) { if (bestSignal == null || WifiManager.compareSignalLevel(bestSignal.level, result.level) 0) bestSignal = result; } String message = String.format(%s networks found. %s is the strongest. %s is the bsid, sResults.size(), bestSignal.SSID, bestSignal.BSSID); Log.d(sResult, message); return bestSignal; } --- public void addNewAccessPoint(ScanResult scanResult){ WifiConfiguration wc = new WifiConfiguration(); wc.SSID = '\' + scanResult.SSID + '\'; //wc.preSharedKey = \password\; wc.hiddenSSID = true; wc.status = WifiConfiguration.Status.ENABLED; wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP); wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP); wc.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP); wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP); wc.allowedProtocols.set(WifiConfiguration.Protocol.RSN); int res = mainWifi.addNetwork(wc); Log.d(WifiPreference, add Network returned + res ); boolean b = mainWifi.enableNetwork(res, false); Log.d(WifiPreference, enableNetwork returned + b ); } --- When I try to use addNewAccessPoint(ScanResult scanResult) it just adds another AP to the list in the settings application with the same name as the one with the best signal, so I end up with loads of duplicates and not actually attaching to them. Can anyone point me in the direction of a better solution? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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,
[android-developers] Re: Blocking current Activity/Screen till current task is complete
Is there any api which would wait there on the activity/screen till there is a response from a server or the task is complete instead of displaying ProgressDialog etc,,? Thanks, -DK On May 13, 12:16 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I completely agree with TreKing. But sometimes bending the 'rules' (disallowing the user to go back when (s)he wants to) is permissible but you'd better have a very good reason :-) ... AlertDialog is being dismissed in reasonable amount of time ... Reasonable means a few seconds, certainly no more than that. On May 13, 11:52 am, TreKing treking...@gmail.com wrote: On Thu, May 13, 2010 at 9:15 AM, dillipk codersnet2...@gmail.com wrote: If some the same activity is waiting for some response from server or some data updation is going on and then press BACK, I want to wait on the same screen till the current task is completely processed and then move out to the previous activity. On top of what SOB said, this is a bad idea - don't block the user from doing anything, especially if it's going to take a long time. If I press back while you're doing some long-running operation (presumably with a progress dialog running) I expect that operation to cancel out - not to sit there trying to finish what it started. If you ignore that and make me wait or hit the Home screen to exit your ongoing process, you can be fairly certain your app will not be installed for long... ----- TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Finally published my first app - thanks to this group!
Hi, I have been lurking on this group for a few months now learning lots from all your questions and answers. It has helped me enormously with writing my first app for Android (PuzzleQube). I started knowing about programming but had to learn Java, the Android Framework AND OpenGL so the journey has been challenging but fun and the result is, I hope, a fun 3D picture puzzle. Many thanks to everyone who shares their knowledge on this group and who have helped to make my journey less frustrating (I still find the Android docs somewhat lacking in areas!) If any of you want to try out my app you can find it on the Market (search for PuzzleQube). I hope you like it! Meantime I hope to move from lurking to contributing to the group now that I feel I have achieved something and may have something to add to the discussions. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Listening for Bluetooth events and AVRCP profile
Mort, Thanks for your reply. Well for some reason I believe, and might be wrong, that using the current Bluetooth APIs technically I could send the text info to the paired stereo device. I would probably need to learn the bluetooth AVRCP profile comunication structure... I hope some other developers can jump into this conversation :) Thanks! On May 10, 3:37 am, mort m...@sto-helit.de wrote: You get AVRCP keys with the MEDIA_BUTTON Intent. But I don't know of support for track information. I'm afraid you need to do that low level, if it's possible at all (that is, without having to flash a patched ROM or at least having root access and using NDK...). On 10 Mai, 01:13, Moto medicalsou...@gmail.com wrote: Any info :) On May 3, 1:10 pm, Moto medicalsou...@gmail.com wrote: Before I invest my time developing the AVRCP profile... Can I actually achieve this without hacking the Android platform using the given Bluetooth APIs? Thanks! On May 2, 11:32 pm, Moto medicalsou...@gmail.com wrote: I need to find out the following information or guidance to achieve a solution: 1. I want to be able to capture bluetooth state changes, particularly when it's paired and when it's not. I do see I can possibly catch the intent android.bluetooth.a2dp.intent.action.SINK_STATE_CHANGED but how reliable is this throughout devices since I can't find it on the APIs? 2. I want to be able to send now playing information to the paired device. I assume this is done via the AVRCP profile. Does Android support this profile? I could not find it in the APIs but did find some info that is supported by android on this site.http://sites.google.com/a/android.com/opensource/projects/bluetooth-faq Thanks for all the help in advance! -Moto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Upgrading 2009 I/O device from Donut (1.6) to Eclair (2.0/2.1)?
A helpful developer sent this to me privately: http://forum.cyanogenmod.com/index.php?/topic/2688-cyanogenmod-5-for-dreammagic-would-you-like-a-pony-v507-test4-05122010/ I will take the plunge after IO 2010. Thanks for all the info John. - Rob On May 12, 6:10 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I think you're out of luck for now. Hopefully, an update will be forthcoming however, it may be the device doesn't have enough memory or CPU to handle 2.1, perhaps 2.2 is skinnier and that one will be able to be ported to the MyTouch/ION. I have that device as well (got it at IO 2009). Since I have ATT, I've just forwarded my regular phone number to the Droid for now, when the free deal runs out, I'll go back to the ION. It's a nice phone and I like it a lot. The Droid is ok too, just a bit too heavy for my personal taste. -John Coryat On May 12, 3:55 pm,tatlarrobertlnew...@gmail.com wrote: Hi John, Thanks for the information. I am aware of this, and have my Droid device already (thanks Google!). However, my 2009 I/O device is my main smartphone, and I wish to update the OS on it to Eclair. My comment about the 2010 conference app was just a minor sideline irritation. Best regards. On May 11, 3:23 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: If you're attending IO 2010, you should have (or will receive) a new device. US residents receive the Droid (by mail) and non-US residents receive the N1 upon registration. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: APKTool - decoding our apps
Ryszard You should rethink, whether there is really any sense in stealing something from your app. Ideas, design and appearance could be stolen by just looking at it. Algorithms? It is really hard to analyze simple loop in smali code - it's asm, you know. If you really want to not let other people even look at your work, you should consider moving to iPhones. With this tool, you could take an existing app that took perhaps months to develop and in a day or two, change all the logos and cosmetics, and resell it as your own work. I don't say that you personally would do that, but it's certainly possible. What you are stealing is the time it took to write all those layouts and handlers and providers and so on. Let's say then, that someone comes out with a really nice way to handle some ui issues. It's very likely that they spent quite a bit of time evolving those ideas, trying things and throwing away a lot of things that didn't work. Sure, these ideas, this design, can be imitated, but writing the app that imitates them takes a lot of work. Unless someone uses your tool. In essence, your tool allows someone to pretend that they did work that was in fact done by someone else. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Finally published my first app - thanks to this group!
Welcome! And I hope your app will be very succesful! On May 13, 12:32 pm, Geefer paul.gee...@googlemail.com wrote: Hi, I have been lurking on this group for a few months now learning lots from all your questions and answers. It has helped me enormously with writing my first app for Android (PuzzleQube). I started knowing about programming but had to learn Java, the Android Framework AND OpenGL so the journey has been challenging but fun and the result is, I hope, a fun 3D picture puzzle. Many thanks to everyone who shares their knowledge on this group and who have helped to make my journey less frustrating (I still find the Android docs somewhat lacking in areas!) If any of you want to try out my app you can find it on the Market (search for PuzzleQube). I hope you like it! Meantime I hope to move from lurking to contributing to the group now that I feel I have achieved something and may have something to add to the discussions. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why is the android jar stubbed?
Hi! I am trying to figure out a way to run unit tests with some android provided classes (e.g. org.json). I would like to be able to run these outside the emulator for performance reasons. The only way I can think of at this stage is to have a separate module that uses org.json (not the android one) that runs all the tests and so that I then include in my android project. The problem is that if I try to use the android jar (including the provided) in my tests all methods will throw exceptions (well know fact..) Now I am just trying to understand why this is the case. My hunch is that the android.jar implementation classes are pretty tightly coupled to the underlying archticture and libraries (e.g. via jni to opencore, opengl and so on and son) and it would be a pretty difficult task to unbundle this all and make it run on the jvm rather then the android stack with the dalvik vm. Can somebody confirm it I am right or totally wrong? Is there a chance that at least some stuff can be tested outside if I create a android jar that contains the actual implementations by building android open source or is this all going to end in a huge misery for myself? manfred -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SIP Stack
mike, i just saw this open defect with sipdroid/pbxes: http://code.google.com/p/sipdroid/issues/detail?id=158q=batterysort=-priority i wonder if this defect comes from a belief in TCP between sipdroid/ pbxes and a thought that TCP connections can persist longer with less overhead (thus use less battery power) than UDP. On May 10, 11:46 am, mike enervat...@gmail.com wrote: On 05/10/2010 11:24 AM, HeHe wrote: when i mentioned ...not be able to receive incoming calls.., i was not thinking about just server-client streaming. Mike, you knew it :) what is your mobile service provider? the sentence IP address changes are probably pretty rare looks strange to a T-Moble user like me. at least i find my G1 ip frequently changes :( So I haven't actually tested this, and I disclaimed because I wasn't sure :) If you're getting lots of IP address changes regardless of what's happening at the 3gpp/l2 layer, you're probably not going to not have a very good experience with streaming media of any kind because once the IP address changes, the RTP stream is going to tank regardless of SIP, RTSP, Skype, etc. That's why you'd need to deal with it more directly like using IP handoffs using Mobile IP, etc. Handoffs could be done using SIP, but it would be ugly. Which probably means that somebody has proposed it and that the working group has taken it on :) AFAIK, mobile IP is still not deployed widely, even though we were working on it the handoff probelm almost 10 years ago... Part of the reason probably is because 3GPP's latency is really awful for real time conversations so there's still too high an energy barrier to actually deal with the truly difficult problem of dealing with handoffs when TDM still works just fine. Maybe 4G will get rid of all that bizarre leftovers from the ATM/bellhead days that 3G had to live with to get standardized. In any case as far as SIP registration goes, it should be relatively easy to camp on an event for when the IP address changes and quickly reregister inside the SIP stack. It wouldn't be surprising that most of the SIP stacks already have that feature. How bad this is on battery life is obviously dependent on how often IP addresses are actually changing, but you have the exact same problem with IM so at some level it's acceptable since people do use IM... Mike On May 10, 10:47 am, mikeenervat...@gmail.com wrote: On 05/10/2010 10:24 AM, HeHe wrote: i was not thinking about media. i guess the reason why sipdroid+TCP+pbxes can lower battery use is to enlarge sip registration expiration, eg. to 5 minutes or longer. what if mobile service provider changes phone IP earlier than 5 min when the provider finds no traffic to/from the phone? it will not be able to receive incoming calls without re-registration. anyway, i am just guessing. do you know the usual (or by default) registration expiration between sipdroid and pbxes? Again, if this is just server-client streaming this is yet another reason to avoid SIP and look at RTSP. SIP is a rendezvous protocol, and all rendezvous protocols are complicated, with lots of things to consider. AFAIK -- it's been a long time -- SIP registrations can be very long lasting. Unless something has actually changed -- like your IP address moved -- it shouldn't be a problem. I'm not entirely convinced that this is a huge issue anyway because the cellular guys are probably moving you around at L2 for the most part (again, it's been a long time since I've paid attention to the 3gpp guys), so IP address changes are probably pretty rare. I have no idea if anybody's been deploying mobile IP which would more directly solve this issue. Mike, who used to like to make fun of Henning, Cullen and Jonathan and many others in the SIP WG because of SIP's complexity. On May 10, 9:32 am, mikeenervat...@gmail.com wrote: On 05/10/2010 09:04 AM, HeHe wrote: i saw this in sipdroid project FAQ: Sipdroid now uses TCP for the signaling connection and keeps the corresponding port open. does anyone know how peer servers of sipdroid handle scalability when there are a million of sipdroid clients connecting with the servers using TCP? as i observed, T-mobile Intermittently changes IP of my G1 phone without any notice, which in fact tears down the TCP connection. Remember that SIP doesn't actually transport the media, that's RTP which is over UDP. So losing the connection shouldn't generally be any worse than losing a http connection generally. As far as scalability, I woudn't worry about that too much. UDP based SIP suffers from a lot of problems, not the least of which is the lack of security (unless you manage to find DTLS or are running it over IPsec). And of course NAT's are tricky as I mentioned before. But I still haven't heard why RTSP wouldn't be a better choice if this is just server-client streaming. SIP
Re: [android-developers] Re: Blocking current Activity/Screen till current task is complete
On Thu, May 13, 2010 at 11:24 AM, dillipk codersnet2...@gmail.com wrote: Is there any api which would wait there on the activity/screen till there is a response from a server or the task is complete instead of displaying ProgressDialog etc,,? Your question doesn't really make sense. An API is not something that would wait. You should add a little more detail as to what you're really trying to do here. Obviously you're not required to use a progress dialog - you could have a static message you show at first and update after the response, or something. But in this case the user can back out at any time (which is good), in which case you would want to cancel your ongoing task. I guess you COULD handle the back key press and prevent this, like the dialog scenario, but again, my previous comments apply. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] OpenGL drops triangles
After a long battle I have some results that may help others. Got the game to rendering the emulator correctly by building the geometry using ByteBuffer instead of IntBuffer and ShortBuffer. I tried converting to the GLSurfaceView and still no luck with the dropped triangles. I ended up unpacking the indexed arrays into straight triangles at load time and it works. So now I am using glDrawArryas instead of glDrawElements. I am pretty sure this is a driver bug as it's all static geometry and I removed pretty much every bit of rendering but the static mesh and the triangles drop based on view point. Leigh On 5/12/2010 2:04 PM, Leigh McRae wrote: Hello, I am having a problem with what some of the triangles in my static meshes not being drawn. The static meshes are created once and never touched again. The class and all the data are marked final. The triangles disappear based on view point. The code all works on the BlackBerry and I have checked the data a couple of times. I have managed to get a missing triangle on the screen and make a save game. This at least allows me to reload the game with the problem and try different things. So I have disabled all 3d rendering except this mesh and the UI. Here is what I have tried. - switched to vbo - switch to interlaced vertex buffers - tried float instead of fixed. - removed IntBuffer and used ByteBuffer - disabled pretty much every state I could just before the rendering. Oddly enough disabling culling made one of two triangles appear. Really at a lose here. The game takes about 10min to load on the emulator and then it renders about half of everything but there are no errors. I am using the following: Android 2.0.1 Milestone/Droid Here is my config that I use: EGL_BUFFER_SIZE: 16 EGL_RED_SIZE: 5 EGL_GREEN_SIZE: 6 EGL_BLUE_SIZE: 5 EGL_ALPHA_SIZE: 0 EGL_DEPTH_SIZE: 24 EGL_STENCIL_SIZE: 8 EGL_NATIVE_RENDERABLE: 0 EGL_CONFIG_CAVEAT: EGL_NONE EGL_LEVEL: 0 EGL_NATIVE_VISUAL_TYPE: unknown EGL_SURFACE_TYPE: EGL_WINDOW_BIT EGL_PBUFFER_BIT EGL_TRANSPARENT_TYPE: EGL_NONE EGL_MAX_PBUFFER_WIDTH: 2048 EGL_MAX_PBUFFER_HEIGHT: 2048 EGL_MAX_PBUFFER_PIXELS: 4194304 EGL_SAMPLES: 0 EGL_SAMPLE_BUFFERS: 0 -- Leigh McRae www.lonedwarfgames.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android 2.1 WebKit and applicationCache
Hi, is there anyone who could answer this question or tell me where to best post this? It's an important issue for me right now... Thanx, Sven On May 12, 8:40 pm, hansamann sven.hai...@googlemail.com wrote: Hi all, I am trying to use the Android 2.1 WebKit applicationCache but I notice several differences to the iPhone 3/4(beta) implementation. Can anyone tell me what the current status is and if it is in a usable state? Here are my observations that I can share: - initial caching works, but instead of sending a checking event first as on the iPhone, it will just send out the progress events and then the final cache event - once you reload the page, it just shows the noupdate event. no checking before that - even if you update the manifest, it will not notice that. It seems webkit on android does not check the manifest after the initial caching. - forcing an update with applicationCache.update() also does not work. That leaves the current implementation in a pretty unusable state, your users would presumably never get an updated cache once the inital caching has run. Has anyone else experience with this or knows when applicationCache is supposed to be fixed/working? Thanx a lot! Sven -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: APKTool - decoding our apps
2010/5/12 Ryszard Wiśniewski brut.a...@gmail.com Hi, I'm a maker of this apktool toolchain. I want to know, what, do you think, someone could steal from your apps? Some great algorithms? From phone app? Layouts? Localization strings? I'm not against decompilers and have no problem with the apktools project. Decompilers have a lot of legitimate uses. It is clear to me, however, that such a tool could be used to decompile an app and remove options that try to protect the app. This has been a pretty big problem for a lot of developers in the Android space where no DRM is used to protect the applications. -- Shane Isbell (Founder of ZappMarket) http://twitter.com/sisbell http://twitter.com/zappstore http://zappmarket.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] To copy protect or not to copy protect!? That is the question!
I'm getting many complaints that users can't find our paid app in the Android Market. I know exactly why... Our app is Copy-Protected. So the questions is, if our paid app is already available all over the internet for FREE!! What's the point of copy protecting an app? Should I even care at this point about that feature? It seems I'm gonna get more sales if I disable copy protection, but makes me wonder.. This really sucks, and I know it's been talked many many many many many times in this blog and many other places... It's just sad... -Moto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: broken pipe over ssl
have u tested with different servers it looks like something breaking your connection. If you can test using Wifi you can sniff using wireshark and see who is breaking the connection that will be the first step to debug your issue. it may be nwk or server issue i am not sure but with the above u can nail down the error. On Thu, May 13, 2010 at 10:49 AM, Martin Obreshkov manig...@gmail.comwrote: :) i forgot to put the link http://stackoverflow.com/questions/2820284/ssl-on-android-strange-issue On Thu, May 13, 2010 at 6:48 PM, manigault manig...@gmail.com wrote: hi i've posted the question on stack overflow but no answer - any ideas ? -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: APKTool - decoding our apps
Yeah, I understand. What I wanted to say is Android wasn't designed to be secure. Most of things that apktool gives you are doable without it and within a reasonable time. Logos, you say? Just unzip apk file, replace some images, pack it, resign and that's it. Strings are harder, but as long as your replacement won't be longer then current value, it is simple find replace in resources.arsc file. Colors and other things in layouts are also very easy to modify directly in binary form. Voila, we've just built our own application in about 1 hour. Of course I won't say apktool does nothing ;-) It could simplify stealing, you gave good example of that in your comment. I just think no one should trust security by obscurity approach. Something is secure or it isn't. And if isn't then people shouldn't blame for this situation someone, who just see it and use it. Currently your applications could be modified without much effort and without any specialized tools, so if you are really worried about security, you should write to AOSP, don't you think? :-) And personally speaking, I could recommend you using code obfuscators. They really, really do their job - you can trust me ;-) (yeah, I'm working on some obfuscated code, but if you're curious, then no: I'm not cracking, removing some protection, stealing any ideas, code or resources, modifying credits nor reselling someone's app or any part of 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
Re: [android-developers] Re: APKTool - decoding our apps
On Thu, May 13, 2010 at 12:17 PM, Jay Gischer j...@gischer.net wrote: With this tool, you could take an existing app that took perhaps months to develop and in a day or two, change all the logos and cosmetics, and resell it as your own work. So when someone gets murdered with a gun, you blame the gun manufacturer? When someone breaks into your house, you blame the window manufacturer the crook climbed in through, or the crowbar he smashed your door lock with? I could go on, but hopefully now you can see the flaw in your logic. -- 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
Re: [android-developers] To copy protect or not to copy protect!? That is the question!
On Thu, May 13, 2010 at 1:03 PM, Moto medicalsou...@gmail.com wrote: I'm getting many complaints that users can't find our paid app in the Android Market. I know exactly why... Our app is Copy-Protected. Yup, it's well know to screw you over, so don't use it. So the questions is, if our paid app is already available all over the internet for FREE!! What's the point of copy protecting an app? There is no point. Don't use it. Should I even care at this point about that feature? Nope, no one else does. It seems I'm gonna get more sales if I disable copy protection, but makes me wonder.. Yup. Pirates are gonna be pirates. Plan your business model with this fact in mind. This really sucks, and I know it's been talked many many many many many times in this blog and many other places... It's just sad... Well that's life. -- 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
Re: [android-developers] Re: Finally published my first app - thanks to this group!
A word of advice. Keep a close Eye on errors. If you get a couple reports of FC's or 1 bad rating pull it down and work with your testers to clean it up.Publishing an app that is not ready is a pain in the backside.It will take you months to recover from a bad launch. Even after that you will have lost a large amount of potential users. Wayne On Thu, May 13, 2010 at 10:29 AM, Streets Of Boston flyingdutc...@gmail.com wrote: Welcome! And I hope your app will be very succesful! On May 13, 12:32 pm, Geefer paul.gee...@googlemail.com wrote: Hi, I have been lurking on this group for a few months now learning lots from all your questions and answers. It has helped me enormously with writing my first app for Android (PuzzleQube). I started knowing about programming but had to learn Java, the Android Framework AND OpenGL so the journey has been challenging but fun and the result is, I hope, a fun 3D picture puzzle. Many thanks to everyone who shares their knowledge on this group and who have helped to make my journey less frustrating (I still find the Android docs somewhat lacking in areas!) If any of you want to try out my app you can find it on the Market (search for PuzzleQube). I hope you like it! Meantime I hope to move from lurking to contributing to the group now that I feel I have achieved something and may have something to add to the discussions. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Follow us on Twitter @fuliginsoftware Join the forums. http://www.fuligin.com/forums -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Blocking current Activity/Screen till current task is complete
Thanks TreKing for your replies.. Basically my requirement is, as soon as you try to leave out of the screen(Whether by hitting BACK key), it makes a HTTP request (by sending some data from the current screen) to get some data from the server and once it receives the response from the server, it can leave out. On May 13, 1:45 pm, TreKing treking...@gmail.com wrote: On Thu, May 13, 2010 at 11:24 AM, dillipk codersnet2...@gmail.com wrote: Is there any api which would wait there on the activity/screen till there is a response from a server or the task is complete instead of displaying ProgressDialog etc,,? Your question doesn't really make sense. An API is not something that would wait. You should add a little more detail as to what you're really trying to do here. Obviously you're not required to use a progress dialog - you could have a static message you show at first and update after the response, or something. But in this case the user can back out at any time (which is good), in which case you would want to cancel your ongoing task. I guess you COULD handle the back key press and prevent this, like the dialog scenario, but again, my previous comments apply. - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Blocking current Activity/Screen till current task is complete
dillipk wrote: Thanks TreKing for your replies.. Basically my requirement is, as soon as you try to leave out of the screen(Whether by hitting BACK key), it makes a HTTP request (by sending some data from the current screen) to get some data from the server and once it receives the response from the server, it can leave out. Your requirement may give you a one-star rating on the Market. I know that if I had your app, and pressing BACK would not work (e.g., no network connection, server down), I would remove your app in a New York minute. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.x Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Animating Views with custom layout
Hello, I am trying to animate a few images as part of my activity such that the images overlap partially with each other. To be able to do the same, since there is no such layout which provides this facility, I have created my own layout extending from ViewGroup and overriding the onMeasure and onLayout methods, wherein I compute and place my images encapsulated inside ImageView. To animate these images so that the image on the front goes behind and newer one comes up, on some event say a touch event, I have created my own animation class extending from Animation class. Having put some basic animation in place, I see that the animation happens correctly but at the end of the animation requesting the relayout of the images, the image location is not what I had set initially. With respect to the situation above I have couple of related questions. I hope it is ok to ask them all in a single thread. Q1. What is the relation between the animation and the layout of views because of which, after the animation, the location of views is not same as before the animation? Q2. In the scenario above, my objective is to only change the placement of the views with animation displayed in between. Is there any other / better way of achieving the same effect and how? Q3. In my Animation class extended from android.view.animation.Animation, in the applyTransformation function, if I don't call camera.getMatrix, the animation doesn't seem to have any visible effect. I am not sure why should getMatrix affect the animation. The function looks something like this: protected void applyTransformation(float interpolatedTime, Transformation t) { mCamera.save(); mCamera.translate(0.0f, 0.0f, 310* interpolatedTime); mCamera.getMatrix(matrix); mCamera.restore(); } Any help, suggestion and pointers is appreciated, Regards, DivKis -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 is the android jar stubbed?
Manfred Moser wrote: My hunch is that the android.jar implementation classes are pretty tightly coupled to the underlying archticture and libraries (e.g. via jni to opencore, opengl and so on and son) and it would be a pretty difficult task to unbundle this all and make it run on the jvm rather then the android stack with the dalvik vm. I'd substitute utterly impossible for pretty difficult. Can somebody confirm it I am right or totally wrong? Is there a chance that at least some stuff can be tested outside if I create a android jar that contains the actual implementations by building android open source or is this all going to end in a huge misery for myself? If you have pure Java logic that you want to test outside of Android, put it in a separate JAR and test it using JUnit. If you have mostly-pure Java logic that you want to test outside of Android, write interfaces to isolate the Android-specific bits, and test it using JUnit and an Android-free mock of the interface. If you have code that is heavily dependent on Android, test it in the emulator. If the emulator is not running fast enough for you, get a faster PC, or perhaps load android-x86 on some box so you get out of the emulation environment. I have not tried the android-x86 strategy, but in principle it should be faster than the emulator (assuming the hardware you install it on is not crazy slow). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.x Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: APKTool - decoding our apps
I understand why developers like Jay G. are upset but ultimately this problem lies with Google, not authors of decompilers. If the app is not encrypted on the device, hacking is dead simple. Keep in mind, DRM is patented encumbered so getting one on the device could easily drive up the cost of a handset by several dollars, which is a lot when there are millions of Android devices out there. There are many factors involved in these decisions but ultimately the cost of not implementing DRM has to be higher than the cost of doing so. Google and the handset manufacturers are not the one's that will feel the cost of this so it has to be the operators that eventually force the issue (they lose 30% of every pirated app). When getting feedback from developers for ZappMarket, piracy was always in the top three concerns they had. That is why some wanted to leave Android Market altogether. But nothing will work without Google and the handset manufacturers taking action. Solutions like SlideLock and AndAppStore licensing are susceptible to decompilers. Developers should keep in mind however, that the developing world only accounts for 4-5% of sales of applications from app markets. For example, even a 100% piracy rate in these regions would only be affecting 5% your potential sales, meaning that even if there were a proper DRM system in place, you are likely not going to see more than 5% uptick in actual sales from high piracy regions. On Thu, May 13, 2010 at 11:21 AM, Greg Donald gdon...@gmail.com wrote: On Thu, May 13, 2010 at 12:17 PM, Jay Gischer j...@gischer.net wrote: With this tool, you could take an existing app that took perhaps months to develop and in a day or two, change all the logos and cosmetics, and resell it as your own work. So when someone gets murdered with a gun, you blame the gun manufacturer? When someone breaks into your house, you blame the window manufacturer the crook climbed in through, or the crowbar he smashed your door lock with? I could go on, but hopefully now you can see the flaw in your logic. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Shane Isbell (Founder of ZappMarket) http://twitter.com/sisbell http://twitter.com/zappstore http://zappmarket.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Blocking current Activity/Screen till current task is complete
On Thu, May 13, 2010 at 1:30 PM, dillipk codersnet2...@gmail.com wrote: Basically my requirement is, as soon as you try to leave out of the screen(Whether by hitting BACK key), it makes a HTTP request (by sending some data from the current screen) to get some data from the server and once it receives the response from the server, it can leave out. This is a terrible requirement. Get rid of it. What could your app possibly need with an HTTP connection as it's closing? If you must send and / or receive data when the user is exiting your app, start a service to do it in the background. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Why is the android jar stubbed?
On May 13, 11:49 am, Mark Murphy mmur...@commonsware.com wrote: Manfred Moser wrote: My hunch is that the android.jar implementation classes are pretty tightly coupled to the underlying archticture and libraries (e.g. via jni to opencore, opengl and so on and son) and it would be a pretty difficult task to unbundle this all and make it run on the jvm rather then the android stack with the dalvik vm. I'd substitute utterly impossible for pretty difficult. So I guess that my suspicions is pretty correct then.. Can somebody confirm it I am right or totally wrong? Is there a chance that at least some stuff can be tested outside if I create a android jar that contains the actual implementations by building android open source or is this all going to end in a huge misery for myself? If you have pure Java logic that you want to test outside of Android, put it in a separate JAR and test it using JUnit. If you have mostly-pure Java logic that you want to test outside of Android, write interfaces to isolate the Android-specific bits, and test it using JUnit and an Android-free mock of the interface. If you have code that is heavily dependent on Android, test it in the emulator. If the emulator is not running fast enough for you, get a faster PC, or perhaps load android-x86 on some box so you get out of the emulation environment. I have not tried the android-x86 strategy, but in principle it should be faster than the emulator (assuming the hardware you install it on is not crazy slow). All that makes sense and is not a problem, but what if I would like to write a bunch of tests that use org.apache.http and org.json classes that would be supplied by android in the emulator. Could I run them against stock apache and json jars (of which I would have to find the corresponding version) outside of the android stack but then at runtime just have them using the android ones.It boils down to how compatible are the packaged copies of source with upstream in a way.. manfred -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Blocking current Activity/Screen till current task is complete
Thanks TreKing for your replies.. Basically my requirement is, as soon as you try to leave out of the screen(Whether by hitting BACK key), it makes a HTTP request (by sending some data from the current screen) to get some data from the server and once it receives the response from the server, it can leave out. On May 13, 1:45 pm, TreKing treking...@gmail.com wrote: On Thu, May 13, 2010 at 11:24 AM, dillipk codersnet2...@gmail.com wrote: Is there any api which would wait there on the activity/screen till there is a response from a server or the task is complete instead of displaying ProgressDialog etc,,? Your question doesn't really make sense. An API is not something that would wait. You should add a little more detail as to what you're really trying to do here. Obviously you're not required to use a progress dialog - you could have a static message you show at first and update after the response, or something. But in this case the user can back out at any time (which is good), in which case you would want to cancel your ongoing task. I guess you COULD handle the back key press and prevent this, like the dialog scenario, but again, my previous comments apply. - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Blocking current Activity/Screen till current task is complete
Thank you everyone out here for your great input. This requirement was from our sales team and I have made them understand of these scenarios. I think, definitely will be a different approach.. On May 13, 3:01 pm, TreKing treking...@gmail.com wrote: On Thu, May 13, 2010 at 1:30 PM, dillipk codersnet2...@gmail.com wrote: Basically my requirement is, as soon as you try to leave out of the screen(Whether by hitting BACK key), it makes a HTTP request (by sending some data from the current screen) to get some data from the server and once it receives the response from the server, it can leave out. This is a terrible requirement. Get rid of it. What could your app possibly need with an HTTP connection as it's closing? If you must send and / or receive data when the user is exiting your app, start a service to do it in the background. - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: APKTool - decoding our apps
I think a better analogy would be an anti-aircraft missile, you don't go deer hunting with a Stinger or SA-8, you use it to shoot down aircraft. Since this tool really has only one real purpose, to allow people to pirate code, I think the gun analogy is a bit off. On the other hand, if this person didn't provide such a tool, someone else would. It's obviously not a huge technical feat. Shane's point, that the pirated apps mostly are used in countries where the app can't be purchased are probably close to right on. In the US, I'm guessing that more than 95% of the users wouldn't know how to get a pirated app or would be afraid (and rightfully so) that some sort of malware or virus would be hitch hiking on that free app they just downloaded. -John Coryat On May 13, 1:21 pm, Greg Donald gdon...@gmail.com wrote: On Thu, May 13, 2010 at 12:17 PM, Jay Gischer j...@gischer.net wrote: With this tool, you could take an existing app that took perhaps months to develop and in a day or two, change all the logos and cosmetics, and resell it as your own work. So when someone gets murdered with a gun, you blame the gun manufacturer? When someone breaks into your house, you blame the window manufacturer the crook climbed in through, or the crowbar he smashed your door lock with? I could go on, but hopefully now you can see the flaw in your logic. -- 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 athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Killing Activity / onPause() / isFinishing()
What exactly are you trying to do? On May 13, 9:34 am, Lee lee.wil...@googlemail.com wrote: Is isFinishing() guaranteed to return true in onPause() when an activity is being killed by the system ? If not, how is it possible to differentiate activity-being-killed and one of the other reasons for onPause() being called ? It must apparently be done in onPause(), since that's the only one guaranteed to be called by the system according to the lifecycle doc. Thanks, Lee -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: To copy protect or not to copy protect!? That is the question!
Just make up your mind before hand. I would recommend NOT using copy protection, but don't decide to after the fact, as you will cause your installed user base all kinds of pain when their phones go berserk after you switch it on. It's not pretty. I ultimately decided to go a different route, and simply validate that my app was purchased (from within the app) using what we call Automatic Application Licensing. It's been working pretty well since we implemented. We've seen an increase in our sales and a decrease in the disparity between pirated and purchased installs. Not to mention, pirates are now potential patrons. If you want more info, see www.keyeslabs.com. I'm hoping along with everyone else that G is going to announce upgrades to the market sometime soon that will make these issues go away. I'll be watching on Monday! Rumors have some kind of market announcement coming next week... Dave On May 13, 2:03 pm, Moto medicalsou...@gmail.com wrote: I'm getting many complaints that users can't find our paid app in the Android Market. I know exactly why... Our app is Copy-Protected. So the questions is, if our paid app is already available all over the internet for FREE!! What's the point of copy protecting an app? Should I even care at this point about that feature? It seems I'm gonna get more sales if I disable copy protection, but makes me wonder.. This really sucks, and I know it's been talked many many many many many times in this blog and many other places... It's just sad... -Moto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: APKTool - decoding our apps
On Thu, May 13, 2010 at 2:34 PM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Since this tool really has only one real purpose This tool has multiple uses. Go back and read the thread. For the tool to simply exist is not a crime no matter how much you want it to be. The tool itself doesn't go out and commit crimes, it takes a criminal for that to happen. Criminals were around long before the tool was. Even if you made the tool go away you'd only be keeping the honest guy honest. It's your sort of backwards thinking that makes society have to legislate to the least common denominator. -- 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: APKTool - decoding our apps
An anti-aircraft missile has multiple purposes as well. It can be used as a hammer or paperweight, can be a really nice conversation piece in the living room or an auction item on e-bay. None of those are the real purpose though, sort of like this tool. -John Coryat On May 13, 2:46 pm, Greg Donald gdon...@gmail.com wrote: On Thu, May 13, 2010 at 2:34 PM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Since this tool really has only one real purpose This tool has multiple uses. Go back and read the thread. For the tool to simply exist is not a crime no matter how much you want it to be. The tool itself doesn't go out and commit crimes, it takes a criminal for that to happen. Criminals were around long before the tool was. Even if you made the tool go away you'd only be keeping the honest guy honest. It's your sort of backwards thinking that makes society have to legislate to the least common denominator. -- 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 athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Internet data request done via ContentProvider?
How could I create a ContentProvider where the data is fetch from the internet. As the data is parsed maybe allow the requesting client know the download progress and results so that they are displayed as it's downloaded. My idea is to share this data across other apps... I'm not sure if a ContentProvider would be the solution? Any advice? Thanks! -Moto! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: broken pipe over ssl
the server is accepting both http and https on the same url. With http everything is ok the problem is only when i use https on the same server. There is nothing in apache log so i don't thing this is server issue. On Thu, May 13, 2010 at 9:17 PM, social hub shubem...@gmail.com wrote: have u tested with different servers it looks like something breaking your connection. If you can test using Wifi you can sniff using wireshark and see who is breaking the connection that will be the first step to debug your issue. it may be nwk or server issue i am not sure but with the above u can nail down the error. On Thu, May 13, 2010 at 10:49 AM, Martin Obreshkov manig...@gmail.comwrote: :) i forgot to put the link http://stackoverflow.com/questions/2820284/ssl-on-android-strange-issue On Thu, May 13, 2010 at 6:48 PM, manigault manig...@gmail.com wrote: hi i've posted the question on stack overflow but no answer - any ideas ? -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Clarification on loading local images with WebView
Thanks Mark. I could use some advice on the best approach to this problem The image that I am trying to display is very large and I want to preserve its detail. So I am including it in the apk in the assets/ directory. My app almost exclusively uses WebView to display content. I am trying to figure out the best way to show this large image from one of the html pages loaded by my WebView. 1. Should I load it with my WebView? I thought I could use img tags with urls like file:///android_asset/myimage.png. But this does not seem to work. 2. Can I start a new Activity with an Intent that shows the image in the default image viewer? This might be nice if it allows zooming and scrolling. In this case, what is the URI I should use to an image in my assets directory? 3. I can write my own Activity to load the image from my assets directory. Does ImageView support zooming and scrolling? Any advice on which of these approaches makes the most sense? Or is there another approach that I am overlooking all together? thanks, Jeff On May 12, 8:45 am, Mark Murphy mmur...@commonsware.com wrote: Jeff wrote: Hello all, I apologize if this is beating a dead horse, but I have been through the documentation and groups discussions over and over, and can't seem to resolve this issue What I want to do: - I am loading a remote web page into WebView using loadUrl() - example: webView.loadUrl(http://myserver.com/page.html;); - That page has a very large image in it whose quality I do not want degraded by the OS. So I am putting it in the assets directory of the app. - The page.html that gets downloaded from my server, then has a regular img tag in it like so: img src=file:///android_asset/largeimage.png/ I know there were some issues with reading assets from the file system with different versions of the platform. But its not clear what versions this affects and how to address the problem for all versions. Can someone please clarify: A) should what I am doing above work (because its not) Since you are loading the Web page from the Internet, I imagine WebView will block local file access. This is not significantly different than regular Web browsers, last I checked. Otherwise, Javascript could rummage around the local file system, grab data, and send it hither and proverbially yon. B) If it only works on some versions of the platform - which versions? How should this be addressed when I can't guarantee what version of the platform users are running? Try creating a ContentProvider to serve the image, and see if you have better luck with a content:// URL. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: To copy protect or not to copy protect!? That is the question!
Dave, That is some sweet information! I also hope the Android Market does something about it! Now I'm tracking the numbers using Motally to figure out what % is pirated... and I think it's high! Is keyeslabs free? I read but didn't create an account yet... Thanks! Jona On May 13, 3:44 pm, dadical keyes...@gmail.com wrote: Just make up your mind before hand. I would recommend NOT using copy protection, but don't decide to after the fact, as you will cause your installed user base all kinds of pain when their phones go berserk after you switch it on. It's not pretty. I ultimately decided to go a different route, and simply validate that my app was purchased (from within the app) using what we call Automatic Application Licensing. It's been working pretty well since we implemented. We've seen an increase in our sales and a decrease in the disparity between pirated and purchased installs. Not to mention, pirates are now potential patrons. If you want more info, seewww.keyeslabs.com. I'm hoping along with everyone else that G is going to announce upgrades to the market sometime soon that will make these issues go away. I'll be watching on Monday! Rumors have some kind of market announcement coming next week... Dave On May 13, 2:03 pm, Moto medicalsou...@gmail.com wrote: I'm getting many complaints that users can't find our paid app in the Android Market. I know exactly why... Our app is Copy-Protected. So the questions is, if our paid app is already available all over the internet for FREE!! What's the point of copy protecting an app? Should I even care at this point about that feature? It seems I'm gonna get more sales if I disable copy protection, but makes me wonder.. This really sucks, and I know it's been talked many many many many many times in this blog and many other places... It's just sad... -Moto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Why is the android jar stubbed?
Manfred Moser wrote: All that makes sense and is not a problem, but what if I would like to write a bunch of tests that use org.apache.http and org.json classes that would be supplied by android in the emulator. Could I run them against stock apache and json jars (of which I would have to find the corresponding version) outside of the android stack but then at runtime just have them using the android ones. Sure. Just as you won't use your mocks in production, you won't use your copies of the third-party JARs in production. It boils down to how compatible are the packaged copies of source with upstream in a way.. The easiest thing, for third-party code, is just to grab the code itself out of source.android.com and use it. That won't work very well at all for real Android code, but for third-party libraries I would expect it to work reasonably well. Of course, your mileage may vary, past performance is no guarantee of future results, do not taunt Happy Fun Ball, etc. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Online Training: 21-25 June 2010: http://onlc.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Clarification on loading local images with WebView
Jeff wrote: 1. Should I load it with my WebView? I thought I could use img tags with urls like file:///android_asset/myimage.png. But this does not seem to work. As I wrote in my previous reply: Try creating a ContentProvider to serve the image, and see if you have better luck with a content:// URL. 2. Can I start a new Activity with an Intent that shows the image in the default image viewer? Not if your image is only in an asset. The image viewer won't have rights to access it. 3. I can write my own Activity to load the image from my assets directory. Does ImageView support zooming and scrolling? Not directly, but you can use the 2D graphics API (e.g., Canvas and friends). Basically, you're looking to use the same techniques games do to view a portion of a large map, for example. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Online Training: 21-25 June 2010: http://onlc.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: APKTool - decoding our apps
On Thu, May 13, 2010 at 2:56 PM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: An anti-aircraft missile has multiple purposes as well. It can be used as a hammer or paperweight, can be a really nice conversation piece in the living room or an auction item on e-bay. None of those are the real purpose though, sort of like this tool. An anti-aircraft missile's most important use is to maintain security through mutually assured destruction. In the hands of the good guys that's exactly what it does. In the hands of the bad guys it MIGHT not be used for that purpose. You don't know either way. People are NOT guilty until proven innocent no matter how much you'd like it to be that way. One of the legitimate uses of this tool is to assist white-hat hackers in finding security flaws. Android apps are mostly closed source, so I welcome any white-hat hackers who would use this tool to locate any security flaws, to make my Android experience more secure. Where do you think all the entries on securityfocus.com come from? Clue: not the bad guys. The entries come from white-hats using tools just like this one to perform reverse engineering, to audit the resulting decompilation for flaws, very often manually with their own eyeballs, in their own spare time. You don't even understand what it is you're not being thankful for. -- 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: APKTool - decoding our apps
You have an interesting analogy, though just because *you* say that the proper use for this tool is pirating code - doesn't mean it is. A missle is designed to travel, hit a target and deliver a payload. Of course you could use it as a hammer, but that's not it's purpose. Reengineering can be a practical solution. Using this to reengineering an application is the use. Yes you could also use this to pirate byte code, but that's not it's purpose. Heck, while you're at it can we start ranting about dedexer, http://dedexer.sourceforge.net/, smali/baksmali, http://code.google.com/p/smali/, and dexdump? These tools aren't new, in fact dexdump has been around since before all the devices where out and is distributed with the android source code. Yikes... Google must be supporting piracy since day one / sarcasm On May 13, 3:56 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: An anti-aircraft missile has multiple purposes as well. It can be used as a hammer or paperweight, can be a really nice conversation piece in the living room or an auction item on e-bay. None of those are the real purpose though, sort of like this tool. -John Coryat On May 13, 2:46 pm, Greg Donald gdon...@gmail.com wrote: On Thu, May 13, 2010 at 2:34 PM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Since this tool really has only one real purpose This tool has multiple uses. Go back and read the thread. For the tool to simply exist is not a crime no matter how much you want it to be. The tool itself doesn't go out and commit crimes, it takes a criminal for that to happen. Criminals were around long before the tool was. Even if you made the tool go away you'd only be keeping the honest guy honest. It's your sort of backwards thinking that makes society have to legislate to the least common denominator. -- 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 athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using SWIG with Android NDK - Weak Global References
On May 11, 1:42 am, GoG guillaume.au...@gmail.com wrote: So my question is, does anybody know when 'Weak Global References' will appear in Android NDK ? It's done. The feature will appear in an upcoming release. You can mostly work around the absence by creating an instance of WeakReference and retaining a global ref for it. The Android app framework does this. It's not quite right, but it's close. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Icon issue - building with 2.1 sdk for 1.5 target
Hi all, I am developing with the 2.1 sdk, I draw 3 kinds of icons for ldpi, mdpi, hdpi, at some point I tried to install my application on my HTC Hero. Something must not be working as expected, because the menu and launcher icons are sort of blurred. If I understood correctly, this is because 1.5 doesn't know what to do with all the mdpi stuff, it just looks for some icons and it takes the first occourrence it founds. Now the question is, whenever I will release my app, do I need to specify a minimum version required higher than 1.5? Just for this icon issue? I expect there is a smarter way to avoid this issue and to release an application that is compatible with previous version of android. Many thanks in advance, Federico -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: APKTool - decoding our apps
On May 13, 9:34 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I think a better analogy would be an anti-aircraft missile, you don't go deer hunting with a Stinger or SA-8, you use it to shoot down aircraft. Since this tool really has only one real purpose, to allow people to pirate code, I think the gun analogy is a bit off. If your assumption is: piracy = evil, without any exception, then yes, you are right. But I don't agree with this. Piracy is a general term describing all activities that are against the license. I'm quite sure, that when you are backuping all of your installed apps to save you some data transfer, you are pirating some of them. But you don't feel like a bad guy then, do you? Modded HTC_IME is 100 times better than original - second one definitely lacks some features. Installing modded version is pirating, but is it really so evil? It won't take money away of HTC, will even make their app more popular - without these additional features I would probably go for BetterKeyboard. I'm interested in what people use my tool for, I google sometimes for it - that is how I found this thread. Also people ask about usage help, they report issues, request features, etc., so I have much feedback. I must say I have never found single one person using it for evil purposes. And by evil I mean: removing protection, stealing some code or resources, replacing original authors, reselling an app, etc. It was always about adding some lacking features, localizing, theming, etc. I ain't saying it was never used for evil, can't say it will never be. I'm saying that its main purpose isn't doing bad things. And this isn't just my assumption, it's observed fact. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Icon issue - building with 2.1 sdk for 1.5 target
HTC Hero will try to use resources from drawable-ldpi and scale them, which is not what you want. To make it work correctly, use just drawable for 320*480 resources, and drawable-ldpi-v4 and drawable-hdpi-v4 for the other ones. To make it complete, set min-sdk to 3 and target-sdk to whatever you are using. 14 мая, 2010 1:45 AM пользователь Federico Paolinelli fedep...@gmail.com написал: Hi all, I am developing with the 2.1 sdk, I draw 3 kinds of icons for ldpi, mdpi, hdpi, at some point I tried to install my application on my HTC Hero. Something must not be working as expected, because the menu and launcher icons are sort of blurred. If I understood correctly, this is because 1.5 doesn't know what to do with all the mdpi stuff, it just looks for some icons and it takes the first occourrence it founds. Now the question is, whenever I will release my app, do I need to specify a minimum version required higher than 1.5? Just for this icon issue? I expect there is a smarter way to avoid this issue and to release an application that is compatible with previous version of android. Many thanks in advance, Federico -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] playback suddenly stopping...
I have an app that is streaming audio content and sometimes it just stops all of the suddent. the logcat windows shows -- AudioHardware pcm playback is going to standby and that's it. I saw on another thread (pun intended) that someone was saying it was because he was using too many threads. Could that really be causing this? Could i give the audio thread higher priority? Anyway to prevent the audio hardware pcm from going to standby? tia. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get activity to restart every time the app is launched from the command line
Device: Nexus One Firmware: 2.1 update 1 Platform 2.1, API: 7 I have seen it mentioned before that there's a difference between installing an app via Eclipse and via adb, but I need more clarification. I have an app that starts a voice recognition activity in the main activity's onStart() method.. I'm planning to run this app from a Nexus One connected to a laptop via USB. I want this app to launch perhaps 100 times, each time restarting the voice recognition activity. When I install the app onto the Nexus One via Eclipse, I notice this behavior: - when the app is launched from the command line via adb shell am start -a android.intent.action.MAIN -n com.voice/com.voice.VoiceSearch $1, the app runs with the voice recognition activity restarting each time. This is the behavior I want. - I also notice that after the app has run, I hit Home, then click on the app from the screen, the app will be in its last state, and the voice recognition activity will not restart. I specified finishOnTaskLaunch=true in the manifest, so I thought the voice recognition activity would restart. When I package an app as per instructions and install it onto the device via adb install, I get this behavior: - when the app is launched from the command line, the voice recognition app will run the first time, but subsequent launches do not restart the voice recognition activity. The voice recognition activity just stays in its last state. I get the following message: Warning: Activity not started, its current task has been brought to the front - I also notice that after the app has run, I hit Home, then click on the app from the screen, the app will restart the voice recognition activity. By the way, this happens whether or not I have finishOnTaskLaunch=true set in the manifest or not. What do I need to do so that I can launch the app from the command line via adb lots of times with the voice recognition activity restarting each time? I call this from the main activity's onStart(): private void startVoiceRecognitionActivity() { Intent intent= new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); intent.putExtra(RecognizerIntent.EXTRA_PROMPT, Say something!); startActivityForResult(intent, VOICE_RECOGNITION_REQUEST_CODE); waitForResults(); } Manifest: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.audience.android.voice android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.VoiceSearch android:finishOnTaskLaunch=true android:clearTaskOnLaunch=true android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=7 / uses-permission android:name=android.permission.INTERNET / /manifest -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Debugging Android Test Cases (-e debug true)
Hi guys, did anyone actually succeed in debugging AndroidTestCases? I have a test-suite I can successfully run either from the Eclipse or from the command. But as I add the debug flags like this: adb shell am instrument -w -e debug true org.anddev.andengine.test/ android.test.InstrumentationTestRunner ... the test blocks (as expected) but I cannot connect the debugger from Eclipse =/ In the DDMS Devices view I can see a new App being started (I can get the threads, heap and stuff!) which displays like this: ? . 17518 8601/8700 When i click the tiny green bug in the devices view where one usually attaches the debugger to a running app, just nothing happens. So I can't really figure out what I am doing wrong here =( (Can test be debugged right from inside of eclipse, without the commandline?) Best Regards, Nicolas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Clarification on loading local images with WebView
Regarding option 1 - if I create a content provider it appears I need to implement the openFile method and return a ParcelFileDescriptor. Sounds easy enough. But how do you create a File object from something in the assets directory? On May 13, 2010 4:12 PM, Mark Murphy mmur...@commonsware.com wrote: Jeff wrote: 1. Should I load it with my WebView? I thought I could use img tags with urls like f... As I wrote in my previous reply: Try creating a ContentProvider to serve the image, and see if you have better luck with a content:/... 2. Can I start a new Activity with an Intent that shows the image in the default image viewer? Not if your image is only in an asset. The image viewer won't have rights to access it. 3. I can write my own Activity to load the image from my assets directory. Does ImageView suppo... Not directly, but you can use the 2D graphics API (e.g., Canvas and friends). Basically, you're looking to use the same techniques games do to view a portion of a large map, for example. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware... Android Online Training: 21-25 June 2010: http://onlc.com -- You received this message because you are subscribed to the Google Groups Android Developers ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Set the Live Wallpaper programmatically?
Are there any plans to expose the setLivewallpaperComponent(ComponentName livewallpaperComponent) via the SDK? Right now, its exposed internally but not via the SDK. The permissions seem to be the following which are also not exposed via the SDK: uses-permission android:name=android.permission.SET_WALLPAPER_COMPONENT / uses-permission android:name=android.permission.BIND_WALLPAPER / -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en