Re: [android-developers] lineSpacingExtra does not work on 5.0 for EditText
It seems this bug has been reported long ago (with no workaround AFAIK); https://code.google.com/p/android/issues/detail?id=78706 — H On 5 Aug 2015, at 08:17, 永亮 赵 jasonzhao0...@gmail.com wrote: lineSpacingExtra does not work on 5.0 for EditText, can anybody help me. 赵永亮 (Jason Zhao) 电话:+86 13816303587 邮箱:yongli...@mochui.net 地址:上海市浦东新区张衡路666弄(盛大全球研发中心)1号8楼南 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] Google Play removed my app, but I have no idea why
This piece of news may or may not relate to problems you face; http://uk.businessinsider.com/google-removes-batterybot-pro-from-app-store-after-study-from-zscaler-research-2015-7 But of course I'm just speculating. -- H On Tuesday, July 7, 2015, Mathieu mathieu.debr...@gmail.com wrote: I have developed and published several apps on the Play Store. Because of an old ads sdk (which had a security issue), I had to update all my apps with the new compliant ads sdk. The problem is that once I update my apps, the update got rejected with this message : This is a notification that your application, **, for package ID **, has been removed from Google Play. Please address the issue described below and submit a compliant update. Once approved, your application will again be available with all installs, ratings and reviews intact. REASON FOR REMOVAL:Violation of section 4.3 of the Developer Distribution Agreement.Please refer to the policy help article for more information. We classify user information including but not limited to, email address, phone number, name, social media account information, and contacts as private and confidential information. An app downloaded from Google Play (or its components or derivative elements) which transmits this information off of the device without making this clear to the user and obtaining the user’s explicit consent are regarded as being in violation of section 4.3 of the DDA. All removals are tracked. Repeated removals will result in app suspension, at which point this app will count as a strike against the good standing of your developer account and no longer be available on Google Play. This notification also serves as notice for other apps in your catalog. You can avoid future removals and/or app suspensions by immediately ensuring that no other apps in your catalog are in violation of (but not limited to) the above policy. Before publishing applications, please ensure your apps’ compliance with the Developer Distribution Agreement and Content Policy. If you feel we have made this determination in error, you can visit this Google Play Help Center article. The Google Play Team At this time, I thought it was because of the permissions I asked, so I removed most of unused permissions and got to this list : CAMERA, ACCESS_NETWORK_STATE, ACCESS_WIFI_STATE, INTERNET, VIBRATE, WRITE_EXTERNAL_STORAGE, BILLING and CHECK_LICENSE and the features : android.hardware.camera, android.hardware.camera.autofocus, android.hardware.camera.front, android.hardware.wifi-required=falseand android.hardware.touchscreen-required=false I am using ads SDK : AdMob, AppBrain, Vungle, InMobi, StartApp I also use analytics : Google Analytics, Crashlytics I also wrote in the description : ☆ About permissions : - INTERNET, ACCESS_NETWORK_STATE, ACCESS_WIFI_STATE : used for displaying ads - READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE : used to install the app on the SD Card - CHECK_LICENSE , BILLING : used if you want to pay for removing the ads - CAMERA : used for the background view of the app and for the flashlight when playing the game ☆ Personal information : Please be aware that we may retrieve and share some of your personal information for but not limited to : - debugging purpose (crash reports) - analysis (of your use of our apps services) - display ads (we use the anonymous advertising ID) Please read the privacy policy here : url to privay policy By downloading this app, you agree with the Therms and Conditions that you can read here : url to TOS I also add a EULA which appears at first time and ask the user to agree or not in my app : By using this app, you agree with the following : We may retrieve and share some of your personal information for but not limited to : - debugging purpose (crash reports) - analysis (of your use of our apps services) - display ads (using the anonymous advertising ID) Some of your data may ben sent to third-parties in order to do statistics and Analytics. Here is a non-exhaustive of Third-Parties : Google, AppBrain, StartApp, InMobi, Vungle, and Crashlytics. *Permissions* - INTERNET, ACCESS_NETWORK_STATE, ACCESS_WIFI_STATE: These permissions are needed for displaying ads - READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE: These permissions are needed for installing the app on the SD Card. This keeps your intern memory clean. - CHECK_LICENSE, BILLING: used if you want to pay for removing the ads - CAMERA: Some of are apps need the Camera permission. (you may check if this app does use Camera permission). This permission is used for displaying the camera in a background view or in order to use the flashlight to improve the features. Please take the time to read the privacy policy: *** By downloading and using this app, you agree with the Therms and Conditions, so take the time to read it here: Therms and Conditions If you do not agree
[android-developers] RippleEffect
Hello All, I played around with RippleDrawable in order to figure out how to utilize it for other needs than touch feedback only. But to my surprise the documentation is very vague/limited (especially states list) and I have no idea how RippleDrawable catches touch length (touch up especially). Any thoughts highly appreciated. Plus here's a tiny test project I've been using; https://github.com/harism/android_ripple_effect -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] Re: How to implement crossfade texture effect in Opengl?
Hello, You most definitely need to write a GLSL shader when dealing with OpenGL ES 2.0 or later. But it will be a very simple one where you need to sample two textures and calculate mixed color output value from them. Instead of calculating linear interpolation by hand there is a built-in command mix too which gives you linear interpolation between two values. Or smoothstep if you prefer to do the so called accelerate-deccelerate interpolation within shader code. -- Harri On Dec 29, 2014 1:30 PM, MobileVisuals eyv...@astralvisuals.com wrote: That sounds promising! I have released 15 apps with OpenGL ES on Google play, so I am already familiar with binding textures and vertex data. I have however never worked with GLSL before. I plan to add the crossfade effect to the next version of my app Morphing tunnels. The code example on http://androidblog.reindustries.com/opengl-es-2- 0-2d-shaders-series-001-basic-shaders/ http://www.google.com/url?q=http%3A%2F%2Fandroidblog.reindustries.com%2Fopengl-es-2-0-2d-shaders-series-001-basic-shaders%2Fsa=Dsntz=1usg=AFQjCNH9gWtnI7-7EGdvo8iEqWROonTn_w is in regular OpenGL ES, but they write the GLSL code for the fragment shader as a String variable in the riGraphicTools class. You wrote you probably won't get around coding shaders. Do you mean that I don't have to code the shader in GLSL? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] Android GCM without a 3rd party server (Device to Device push notification without 3rd party server via GCM)
On 7 Jul 2014, at 16:38, MS ms.jackspar...@gmail.com wrote: Are we missing anything by not choosing to push via our own server? Is following such an implementation correct? Guess it works - but isn't it any concern to you that you need to bundle your Sender Id, usually stored only on 3rd party application server, within the application? And, well, can't tell how Google reacts once their GCM server gets hammered from millions, if not trillions, different IPs with your Sender Id. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] ATTN all developing on Mac OS X: need working SDK/ADT
Hey, Something weird happened on my Eclipse installation too after I had updated Android SDK packages from Android Studio earlier this weekend. Eclipse did complain Android SDK 23 requires ADT 23, or something similar, but when I hit the automatic update button Eclipse found me no updates. Removing the existing ADT Plugin from Software Sites in preferences - then adding it back using Install New Software - finally let me upgrade ADT to the latest version though. This could help you too. But at the end I decided to re-install Eclipse with the latest version from scratch. Seriously.. Indigo, why? -- H On 29 Jun 2014, at 22:53, Jim Graham spooky1...@gmail.com wrote: For those out there who are developing for Android using Eclipse (Indigo, aka 3.7.2) on a Mac, I need a working copy of the SDK with an ADT version that both Eclipse and the SDK are happy with. If you still have the old (my copy was several years old) android-sdk-macosx.tar.gz file, that is probably what I need to get up and running again. Please contact me if you have the older version I need. As a temporary bypass to my spam filters, put ADT in the subject line. For ALL developers using Mac OS X, if anything tells you that you need to upgrade your ADT in the near future, DON'T DO IT You will start getting errors saying that the current SDK requires ADT 3, and you only have 2.6. When you try to upload to 3.x, you can't, because you have 2.6. ADT 2.6 (if that's its real version number---I gather that's actually THE problem with it) is broken. Note also that the current adt-eclipse-sdk blend uses this broken ADT. How that got past QC testing I don't even want to try to guess. But it's broken, and that's what really matters. Thanks, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running Mac OS X Lion spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W Now what *you* need is a proper pint of porter poured in a proper pewter porter pot.. --Peter Dalgaard in alt.sysadmin.recovery -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] ATTN all developing on Mac OS X: need working SDK/ADT
On 30 Jun 2014, at 01:11, Jim Graham spooky1...@gmail.com wrote: On Mon, Jun 30, 2014 at 12:18:17AM +0300, Harri Sm?tt wrote: Removing the existing ADT Plugin from Software Sites in preferences - then adding it back using Install New Software - finally let me upgrade ADT to the latest version though. This could help you too. What did you add back and how (i.e., what URL)? I have version 21 of the ADT, which pre-dates this whole insanity on my drive, but I tried that yesterday, and Eclipse still inslsted that it had 22.6 (which I removed from the Eclipse directory). I do not remember Indigo too well but hope it's working somewhat similarly to newer Eclipse versions. When you have added the ADT Plugin software source, the https://dl-ssl-google.com/android/eclipse link, quite likely using the Eclipse's Install New Software feature, this software source should be found/enlisted somewhere in the Eclipse preferences. On Luna it seems to be ; Preferences - Install/Update - Available Software Sites . And at this same location you can remove the existing ADT Plugin software source, then, go through the exact same ADT Plugin addition procedure explained on Google's Eclipse installation webpage again. Install New Software, Add New Repository, etc etc. For some reason doing this helped my Eclipse installation to figure out there is ADT v23 available. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] ATTN all developing on Mac OS X: need working SDK/ADT
On 30 Jun 2014, at 01:44, Kostya Vasilyev kmans...@gmail.com wrote: 6 - And finally -- Eclipse offered to *replace* the already installed ADT tools 22 with new tools 23. I believe I saw very similar operation. Eclipse did not update ADT the way I have seen it working before - but the confirmation dialog looked more into removing old ADT packages and then installing the new ones - i.e replace. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] In 4.4, Paint.measureText() is not backwards compatible. Any workarounds?
Is it really necessary to have string width in sub-pixel width? One could expect you need to round the previously returned value in any case either by yourself or some other means before using it in any case.. Unfortunately, as for finding another way of calculating the sub-pixel width, I cannot tell is there such a way or not. And umm.. Am not too happy with this kinda changes between API levels… Just wondering out aloud.. :) — H On 11 Dec 2013, at 15:49, Ab abe.oppenh...@gmail.com wrote: It is crucial for my app to be able to accurately measure Strings; I have been usingPaint.measureText() to do this. Unfortunately, in 4.4, this method was changed to no longer return a precise value, instead it returns a up-rounded value. Is anyone aware of another method I can use to precisely measure text, or have any other suggestions? Android source: Android 17 return w*mInvCompatScaling; Android 18 return (float) Math.ceil(w*mInvCompatScaling); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Displaying Google Map Android API V2 in fragment
You should keep following in mind (in regard to your original SO code snippet); 1. Once you add the fragment containing map, and call commit(), the fragment IS NOT added right away. See FragmentManager.executePendingTransactions() for executing the commit() asap. 2. If you still cannot get the proper non null Map reference, try doing it on Fragment.onResume() instead. I believe this is the final chance to get the map object without using a handler.. — H On 11 Dec 2013, at 12:24, surabhi jain surabhi17.j...@gmail.com wrote: Hi, Thanks for the reply,I have do that but still I am getting same issue. I have use Handler for getting google map value, code as on below link http://stackoverflow.com/questions/19219255/supportmapfragment-getmap-returns-null Scenario is as follows: I am displaying map in fragment inside view pager,with detail fragment,for map I have created fragment dynamically. I am using single activity so each screen is represented by a Fragment. NewsDetailsFragment includes a ViewPager (map). When I navigate to the NewsDetailsFragment initially, the map is loaded, now if I load a new instance of the NewsDetailsFragment like on scrolling pager I am displaying my next record. The ViewPager in the 2nd NewsDetailsFragment wont display the map. In LogCat,Log shows that everything works fine, map is displaying and markers get set. But on place of map showing black screen. Is there any way to get google map value without using Handler in Fragment? On Wed, Dec 11, 2013 at 4:34 PM, VenomVendor™ yoganandh2...@gmail.com wrote: Have you solved it, if not. 1. Null the Map. 2. Destroy the fragment overriding in onDestroy method. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Thanks Regards Surabhi Jain -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Filename with invalid encoding crashes File.list()
Looking at the crash log it seems so that the filename is not valid UTF-8 format.. Do you happen to have any idea how such a filename took place to begin with? — H On 11 Dec 2013, at 16:43, Martin Heller heller.m...@gmail.com wrote: Hello, I have encountered a crash in the java.io.File.list() method when trying to list contents of a directory containing a file with filename with invalid encoding. The crash has been observed on multiple devices running Android 4.1, 4.3 and 4.4. Has anyone encountered this crash? Is there any way to avoid it if such file is present in the filesystem? Please see the attached offending file and the logcat dump below. Thanks, Martin Heller 12-11 17:22:46.876: W/dalvikvm(7850): JNI WARNING: input is not valid Modified UTF-8: illegal continuation byte 0x61 12-11 17:22:46.876: W/dalvikvm(7850): string: 'PY�aern ~lueou k� koH.txt' 12-11 17:22:46.876: W/dalvikvm(7850): in Ljava/io/File;.listImpl:(Ljava/lang/String;)[Ljava/lang/String; (NewStringUTF) 12-11 17:22:46.876: I/dalvikvm(7850): Application Main Thread prio=5 tid=1 NATIVE 12-11 17:22:46.876: I/dalvikvm(7850): | group=main sCount=0 dsCount=0 obj=0x41b22578 self=0x40016120 12-11 17:22:46.876: I/dalvikvm(7850): | sysTid=7850 nice=0 sched=0/0 cgrp=apps handle=1075810300 12-11 17:22:46.876: I/dalvikvm(7850): | state=R schedstat=( 0 0 0 ) utm=257 stm=76 core=1 12-11 17:22:46.892: I/dalvikvm(7850): #00 pc 12fe /system/lib/libcorkscrew.so (unwind_backtrace_thread+29) 12-11 17:22:46.892: I/dalvikvm(7850): #01 pc 0005fff6 /system/lib/libdvm.so (dvmDumpNativeStack(DebugOutputTarget const*, int)+33) 12-11 17:22:46.892: I/dalvikvm(7850): #02 pc 00054080 /system/lib/libdvm.so (dvmDumpThreadEx(DebugOutputTarget const*, Thread*, bool)+395) 12-11 17:22:46.892: I/dalvikvm(7850): #03 pc 000540ee /system/lib/libdvm.so (dvmDumpThread(Thread*, bool)+25) 12-11 17:22:46.892: I/dalvikvm(7850): #04 pc 000386a8 /system/lib/libdvm.so 12-11 17:22:46.892: I/dalvikvm(7850): #05 pc 00039a74 /system/lib/libdvm.so 12-11 17:22:46.892: I/dalvikvm(7850): #06 pc 0003be46 /system/lib/libdvm.so 12-11 17:22:46.900: I/dalvikvm(7850): #07 pc 0002c516 /system/lib/libjavacore.so (_jobjectArray* toStringArrayVectorCounter, VectorGetter(_JNIEnv*, VectorCounter*, VectorGetter*)+73) 12-11 17:22:46.900: I/dalvikvm(7850): #08 pc 0002c572 /system/lib/libjavacore.so (toStringArray(_JNIEnv*, std::vectorstd::string, std::allocatorstd::string const)+9) 12-11 17:22:46.900: I/dalvikvm(7850): #09 pc 00014d66 /system/lib/libjavacore.so 12-11 17:22:46.900: I/dalvikvm(7850): #10 pc 0001dc4c /system/lib/libdvm.so (dvmPlatformInvoke+112) 12-11 17:22:46.900: I/dalvikvm(7850): #11 pc 0004dece /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+397) 12-11 17:22:46.900: I/dalvikvm(7850): #12 pc 00027060 /system/lib/libdvm.so 12-11 17:22:46.900: I/dalvikvm(7850): #13 pc 0002b5ec /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184) 12-11 17:22:46.900: I/dalvikvm(7850): #14 pc 000601de /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+349) 12-11 17:22:46.900: I/dalvikvm(7850): #15 pc 00067dde /system/lib/libdvm.so 12-11 17:22:46.900: I/dalvikvm(7850): #16 pc 00027060 /system/lib/libdvm.so 12-11 17:22:46.900: I/dalvikvm(7850): #17 pc 0002b5ec /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184) 12-11 17:22:46.900: I/dalvikvm(7850): #18 pc 0005ff20 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+291) 12-11 17:22:46.900: I/dalvikvm(7850): #19 pc 00049b66 /system/lib/libdvm.so 12-11 17:22:46.900: I/dalvikvm(7850): #20 pc 0004b694 /system/lib/libandroid_runtime.so 12-11 17:22:46.900: I/dalvikvm(7850): #21 pc 0004c326 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+377) 12-11 17:22:46.900: I/dalvikvm(7850): #22 pc 105a /system/bin/app_process 12-11 17:22:46.900: I/dalvikvm(7850): #23 pc db4c /system/lib/libc.so (__libc_init+47) 12-11 17:22:46.900: I/dalvikvm(7850): at java.io.File.listImpl(Native Method) 12-11 17:22:46.900: I/dalvikvm(7850): at java.io.File.list(File.java:749) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this
Re: [android-developers] How to get write permission on sd card when using mksdcard?
Is this correct group for your question? android-building sounds a bit more alike if I was asked. — H On 11 Dec 2013, at 13:29, joare...@googlemail.com joare...@gmail.com wrote: $./adb shell $su mount -o rw,remount rootfs / chmod 777 /mnt/sdcard -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Unlike previous versions, Paint.measureText() returns a rounded value in 4.4?
Why are you using one pixel sized text for measuring? It can only cause you trouble if the rounding did not occur before automatically. Make text size somewhere near to 1000 pixels in size (or higher if the platform allows) and you have basis for calculating sub pixel values on certain precision at least. — H On 11 Dec 2013, at 00:37, Ab abe.oppenh...@gmail.com wrote: Oh, well, that seems definitive and unlikely to have a workaround. Though, it's It is and unfortunate, and not backwards compatible, for someone who renders text... On Tuesday, 10 December 2013 19:21:54 UTC-5, RichardC wrote: Can't help you to fix this but have researched the change... Source for the return value of Paint.measureText I see: Android 17 return w*mInvCompatScaling; Android 18 return (float) Math.ceil(w*mInvCompatScaling); The change was done for the follow reasons: https://github.com/android/platform_frameworks_base/commit/8e04840f38a16f806754dfca3de50c2548e67913 On Tuesday, December 10, 2013 8:45:45 PM UTC, Ab wrote: I make heavy use of the Paint.measureText() method and was surprised to find that in 4.4 thefloat this method returns is always rounded up. In previous versions, no rounding occurred. I ran the below code on a 4.0.4 device and a 4.4 device. The results for the 4.0.4 device are first, the results for the 4.4 device are second. Any suggestions of how I can get unrounded values in 4.4, possibly there is a new attribute for Paintthat I missed? @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Paint p = new Paint(); p.setTypeface(Typeface.create(Typeface.SANS_SERIF, Typeface.NORMAL)); p.setTextSize(1); p.setAntiAlias(true); p.setSubpixelText(true); Log.e(T, p.measureText(T)+); Log.e(h, p.measureText(h)+); Log.e(e, p.measureText(e)+); Log.e(L, p.measureText(L)+); Log.e(a, p.measureText(a)+); Log.e(z, p.measureText(z)+); Log.e(y, p.measureText(y)+); Log.e(w, p.measureText(w)+); } 4.0.4: 0.59375 0.5625 0.515625 0.546875 0.546875 0.5 0.5 0.75 4.4: 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] why does not android.content.SharedPreferences#getAll() return an unmodifiable map ?
I am quite sure this relates to the fact changing the values on a Map object, i.e on memory only, does not give too many options to store same values on SDcard more for later use. — H On 10 Dec 2013, at 21:57, Palmer Eldritch the.u...@gmail.com wrote: As per its docs : Note that you must not modify the collection returned by this method, or alter any of its contents. The consistency of your stored data is not guaranteed if you do. Is there a reason it does not return an unmodifiable map ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Using the Expansion Pack for optional data
I have never tried expansion files myself, but reading the documentation tells about two types of expansion files; 1. Main expansion file (required) 2. Patch expansion file (optional) Maybe combining the two would give you an optional expansion file instead if you let the main one be empty.. — H On 10 Dec 2013, at 19:18, Jeremy Villalobos jeremyvillalo...@gmail.com wrote: It is somewhat clear from reading the documentation about apk expansion files that these files are not intended to be optional files but essential files for the app to function. However, the documentation does not explicitly say that the service should not be used for optional data. http://developer.android.com/google/play/expansion-files.html Can the apk expansion files feature be used for optional data ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Filename with invalid encoding crashes File.list()
Hopefully something like this is doable - but since the crash seems to originate from DalvikVM itself - it’s possible there is nothing one can do on Java level about this issue Martin is facing :( — H On 11 Dec 2013, at 19:09, Steve Gabrilowitz steveg1...@gmail.com wrote: You could surround the appropriate code with a try catch block, not ideal but better than a crash! On Dec 11, 2013 1:36 PM, Martin Heller heller.m...@gmail.com wrote: Well, that is what I am writing, the filename is not in a valid UTF-8 format. Originally the filename appeared due to a programming error (not converting filename to UTF-8). However, what concerns me is that files with such filenames can appear in the filesystem (intentionally or unintentionally), and an application crash is not a very good response to such occurence. Martin On 12/11/2013 07:19 PM, Harri Smått wrote: Looking at the crash log it seems so that the filename is not valid UTF-8 format.. Do you happen to have any idea how such a filename took place to begin with? — H On 11 Dec 2013, at 16:43, Martin Heller heller.m...@gmail.com mailto:heller.m...@gmail.com wrote: Hello, I have encountered a crash in the java.io.File.list() method when trying to list contents of a directory containing a file with filename with invalid encoding. The crash has been observed on multiple devices running Android 4.1, 4.3 and 4.4. Has anyone encountered this crash? Is there any way to avoid it if such file is present in the filesystem? Please see the attached offending file and the logcat dump below. Thanks, Martin Heller 12-11 17:22:46.876: W/dalvikvm(7850): JNI WARNING: input is not valid Modified UTF-8: illegal continuation byte 0x61 12-11 17:22:46.876: W/dalvikvm(7850): string: 'PY�aern ~lueou k� koH.txt' 12-11 17:22:46.876: W/dalvikvm(7850): in Ljava/io/File;.listImpl:(Ljava/lang/String;)[Ljava/lang/String; (NewStringUTF) 12-11 17:22:46.876: I/dalvikvm(7850): Application Main Thread prio=5 tid=1 NATIVE 12-11 17:22:46.876: I/dalvikvm(7850): | group=main sCount=0 dsCount=0 obj=0x41b22578 self=0x40016120 12-11 17:22:46.876: I/dalvikvm(7850): | sysTid=7850 nice=0 sched=0/0 cgrp=apps handle=1075810300 12-11 17:22:46.876: I/dalvikvm(7850): | state=R schedstat=( 0 0 0 ) utm=257 stm=76 core=1 12-11 17:22:46.892: I/dalvikvm(7850): #00 pc 12fe /system/lib/libcorkscrew.so (unwind_backtrace_thread+29) 12-11 17:22:46.892: I/dalvikvm(7850): #01 pc 0005fff6 /system/lib/libdvm.so (dvmDumpNativeStack(DebugOutputTarget const*, int)+33) 12-11 17:22:46.892: I/dalvikvm(7850): #02 pc 00054080 /system/lib/libdvm.so (dvmDumpThreadEx(DebugOutputTarget const*, Thread*, bool)+395) 12-11 17:22:46.892: I/dalvikvm(7850): #03 pc 000540ee /system/lib/libdvm.so (dvmDumpThread(Thread*, bool)+25) 12-11 17:22:46.892: I/dalvikvm(7850): #04 pc 000386a8 /system/lib/libdvm.so 12-11 17:22:46.892: I/dalvikvm(7850): #05 pc 00039a74 /system/lib/libdvm.so 12-11 17:22:46.892: I/dalvikvm(7850): #06 pc 0003be46 /system/lib/libdvm.so 12-11 17:22:46.900: I/dalvikvm(7850): #07 pc 0002c516 /system/lib/libjavacore.so (_jobjectArray* toStringArrayVectorCounter, VectorGetter(_JNIEnv*, VectorCounter*, VectorGetter*)+73) 12-11 17:22:46.900: I/dalvikvm(7850): #08 pc 0002c572 /system/lib/libjavacore.so (toStringArray(_JNIEnv*, std::vectorstd::string, std::allocatorstd::string const)+9) 12-11 17:22:46.900: I/dalvikvm(7850): #09 pc 00014d66 /system/lib/libjavacore.so 12-11 17:22:46.900: I/dalvikvm(7850): #10 pc 0001dc4c /system/lib/libdvm.so (dvmPlatformInvoke+112) 12-11 17:22:46.900: I/dalvikvm(7850): #11 pc 0004dece /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+397) 12-11 17:22:46.900: I/dalvikvm(7850): #12 pc 00027060 /system/lib/libdvm.so 12-11 17:22:46.900: I/dalvikvm(7850): #13 pc 0002b5ec /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184) 12-11 17:22:46.900: I/dalvikvm(7850): #14 pc 000601de /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+349) 12-11 17:22:46.900: I/dalvikvm(7850): #15 pc 00067dde /system/lib/libdvm.so 12-11 17:22:46.900: I/dalvikvm(7850): #16 pc 00027060 /system/lib/libdvm.so 12-11 17:22:46.900: I/dalvikvm(7850): #17 pc 0002b5ec /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184) 12-11 17:22:46.900: I/dalvikvm(7850): #18 pc 0005ff20 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+291) 12-11 17:22:46.900: I/dalvikvm(7850): #19 pc 00049b66 /system/lib/libdvm.so 12-11 17:22:46.900: I/dalvikvm(7850): #20 pc 0004b694 /system/lib/libandroid_runtime.so 12-11 17:22:46.900: I/dalvikvm(7850): #21 pc 0004c326
Re: [android-developers] How to parse this json
Isn’t that a JSON array of JSON arrays? Should it be no problem to parse outmost JSON array, grab instances of inner JSON arrays and use JSONArray.getString(index) to retrieve the values. Hope I am not too badly mistaken :) — H On 10 Dec 2013, at 06:53, Arun Kumar K arunkuma...@npcompete.net wrote: [ [ strServiceToken, intVoteNowMemberID, intAbort, strInstallURL, strImageURL ], [ 46D2BAB0-5AA0-481D-9D0A-B37C38CC962E, 2, 0, , http://xxx.xxx.com/VNImages/; ] ] -- Regards Arun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Job alert!
weCame -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Using Fragments with support library ViewPager
Hello All, I have following requirement: 1. Main application view contains support.v4.ViewPager only 2. First 4 screens are Views 3. Last, 5th, screen is the actual application ui I noticed that ViewPager onCreateView returns an Object but to my surprise it didn't work when I returned the Fragment I'm supposed to (last slide). Maybe I made mistake somewhere but I had problems embedding Fragment into View I return too. Does someone know is there such restriction? -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Determine when view/views below my view have changed
Hello All, I'm in the midst of implementing somewhat dynamic background blur effect for Android (similar to what iOS7 has) and I'm keen to have this one optimisation in place. In my implementation I'm trying to achieve following: 1. I extend default layout classes and call them blur layouts 2. When view contents below blur layout in the view tree changes, I render what ever content there is into scaled offscreen bitmap (this is the part needing optimisation) 3. Blur is applied on offscreen bitmap using RenderScript implementation of stack blur 4. From then on the blur layout draws this blurred image as it's background Now.. Currently.. I'm using ViewTreeObserver to determine when current screen is about to update (OnPreDrawListener) but this doesn't give me any indication whether content below my layout has changed. It's triggered no matter what update happens on the screen and though I'm recreating the blur image way too often - also in cases content below hasn't changed. It would be great if someone with better knowledge on Android drawing internals could help me out on this one. Say, if my layout occupies Rect(100, 100, 200, 200) on the screen, I would like to observe in this layout when content below within it's area has changed. Or is this even possible? For interested ones current implementation can be found here: https://github.com/harism/android_anndblur And precompiled application should appear in Play Market at some point. -- Harri -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Unexpected SecurityException
Hi, I would be more interested why other devices you've ran this code on (?) have not caused similar exception. According to docs Intent.ACTION_AIRPLANE_MODE_CHANGED should be protected for system usage only. -- Harri On Sun, Sep 29, 2013 at 6:06 PM, elio francesconi elio.francesc...@gmail.com wrote: Hi all, I wrote an application it controls dynamically the AIRPLANE_MODE, this is the piece of code: * // toggle airplane mode android.provider.Settings.System.putInt( mContext.getContentResolver(), android.provider.Settings.System.AIRPLANE_MODE_ON, on ? 1 : 0); // Post an intent to reload Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED); intent.putExtra(state, on); mContext.sendBroadcast(intent); * I noticed a call stack exception on Nexus 4 only, Full Stack Trace: java.lang.SecurityException android.os.Parcel.readException(Parcel.java:1431) android.os.Parcel.readException(Parcel.java:1385) android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:2224) android.app.ContextImpl.sendBroadcast(ContextImpl.java:1046) android.content.ContextWrapper.sendBroadcast(ContextWrapper.java:344) Have you experience on such kind of exceptions? Thanks Elio -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] When to show a dialog from Fragment and when not to
Hi, You could try using Fragment.isVisible() to determine whether the fragment is visible and can trigger a dialog. For situations where fragment is in the background you could use a Toast perhaps? -- H On Apr 14, 2013, at 4:25 PM, William Ferguson william.fergu...@xandar.com.au wrote: I have a Fragment that fires an async task to connect to a remote server. If it fails to connect (eg times out) then I use use a Handler to display a dialog to the user. final DialogFragment newFragment = AlertDialogFragment.createConnectionFailedDialog(getSupportActivity()); newFragment.show(getFragmentManager()); -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] setRate method and seekto methods for audio player
Hi, I'm not too familiar with OpenSL on Android but it supports both seeking and sample play rate parameters. http://stackoverflow.com/questions/6763149/tutorials-for-opensl-es-for-android -- H On Apr 11, 2013, at 5:26 PM, bob b...@coolfone.comze.com wrote: Well, android.media.MediaPlayer has a seekTo method. Why do you think you need a setRate method? I don't see a need for such unless you are making an Alvin and the Chipmunks CD. Thanks. On Thursday, April 11, 2013 12:23:46 AM UTC-5, shiva pendem wrote: Hi, i am working on a music player, i would like to implement seek bar functionality and setrate method for music player , can any one suggest me how can i implement both of these functionalists or a class which has these both methods, Thanks, shiva shankar -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Loading Images Using HttpURLConnection Concurrently
Hi, Is it possible for you to share an example of an image URL you're using? -- H On Apr 6, 2013, at 5:59 AM, Alex Fu alex.fu...@gmail.com wrote: I tested HTTPS and I'm getting a 400 Bad Request error when using mobile data. On WiFi, everything goes through smoothly... wth. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Android 4.2.2: IndexedDB support in WebView
Hi, According to this table there is no support for IndexedDB in Android browser; http://caniuse.com/indexeddb -- Harri On Mar 21, 2013, at 7:23 PM, bardu bard...@gmail.com wrote: What is the state of support for IndexedDB in Android 4.2.2? Is there any support in WebView? If not, is there support for LocalStorage, if yes, what are the limitations? Thx, Stephan -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] OpenGL Tracer not working with a Nexus 7?
Hi, There's this one rather recent issue which might be related to what you're seeing; https://code.google.com/p/android/issues/detail?id=52446 -- H On Mar 19, 2013, at 8:06 PM, Digipom digi...@gmail.com wrote: I'm also seeing the same problem with a Galaxy Nexus, just like this guy: http://stackoverflow.com/questions/15317083/android-opengl-tracer-not-working :( Anyone have any idea? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: pause breaks...
Hi, As for OpenGL related resources GLSurfaceView.setPreserveEGLContextOnPause(true) is pretty handy. While documentation states that it doesn't work on all devices, Android source indicates this is the case only on OpenGL ES prior 2.0. -- H On Jan 28, 2013, at 11:11 PM, Nobu Games dev.nobu.ga...@gmail.com wrote: As soon as your OpenGL context changes you'll need to reload all textures. The Renderer.onSurfaceCreated method has a very good explanation of what's going on under the hood and what is required from you: -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Main Activity/Service Communication
Hi, You could also consider option 3; Start an asynchronous task (native Java Thread or AsyncTask) for your processing needs. -- H On Jan 19, 2013, at 3:15 PM, dashman erjdri...@gmail.com wrote: Option 1 - create a service - that waits and returns status. haven't figured out a way of doing the latter. Option 2 - I suppose I could start a new activity with no UI and then call startIntentForResult(). i.e. an Acitivy for each background job. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Launching play store for specific product
Hi, This should be possible using Intent.ACTION_VIEW with market:// protocol. See this SO question for example; http://stackoverflow.com/questions/10922762/open-link-of-google-play-store-in-mobile-version-android -- H On Jan 17, 2013, at 7:44 PM, JPS jp_sem...@hotmail.com wrote: Hi I'm trying to launch the Google/Android Play Story using an intent (com.android.vending). I would like Play store to display the page specific to an app. I've searched on ways to do this but could not find anything. I assume some parameters need to be added to the intent. I Know this can be done via the web browser but I cannot use the browser in this case. Thanks in advance for all you help. JPS -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to use Android HorizontalScrollView to move image one by one
Hi, There's a free application called Android UI Patterns on Play Market you can use to try out many of the open source UI implementations for Android. In your case ViewPager Tabbar is maybe the most interesting part of the application in which you can find horizontal scrolling implementations. https://play.google.com/store/apps/details?id=com.groidify.uipatterns AFAIK it's not exactly trivial to implement this yourself at first but taking a look on these open source projects most definitely helps. -- H On Jan 17, 2013, at 8:06 PM, lionel Lioninho lionel.firstdevelo...@gmail.com wrote: I want to create an image slider using the HorizontalScrollView. Indeed, the slider will display one image at the time and I want to be able to use the fling gesture to navigate left and right in the slider. Any Idea to which methods to override in the HorizontalScrollView to achieve this. Thanks a lot. Best -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)
Hi, There's a bug filed on Android bug database; http://code.google.com/p/android/issues/detail?id=35013 In other words, if you disable application notifications, Toasts also are disabled for that particular application. Could this be the reason for behaviour Tobias is facing? -- H On Jan 15, 2013, at 11:18 PM, bob b...@coolfone.comze.com wrote: I have also tried this with the Galaxy S3 and 4.1.1, and the Toast shows fine. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 switch between 2 renderers?
Hi, AFAIK, only way around the problem is to introduce a proxy renderer. Meaning you install this proxy as renderer and its only purpose is to delegate rendering calls to actual implementation classes. -- H On Mon, Jan 14, 2013 at 12:11 PM, MobileVisuals eyv...@astralvisuals.com wrote: I have 2 renderers in my live wallpaper, quadRenderer and renderer. I try to switch between them with setRenderer(quadRenderer); This results in this error: setRenderer has already been called for this instance. What can I do to avoid this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to switch between 2 renderers?
Hi, Yes, using one renderer only which delegates commands further. -- H On Mon, Jan 14, 2013 at 1:47 PM, MobileVisuals eyv...@astralvisuals.com wrote: I see, do you mean using the proxy renderer as the only renderer? On Monday, January 14, 2013 12:30:50 PM UTC+1, Harri Smått wrote: Hi, AFAIK, only way around the problem is to introduce a proxy renderer. Meaning you install this proxy as renderer and its only purpose is to delegate rendering calls to actual implementation classes. -- H On Mon, Jan 14, 2013 at 12:11 PM, MobileVisuals eyv...@astralvisuals.com wrote: I have 2 renderers in my live wallpaper, quadRenderer and renderer. I try to switch between them with setRenderer(quadRenderer); This results in this error: setRenderer has already been called for this instance. What can I do to avoid this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: upgrading metropcs from 2.3.4 to 4.0.3
Hi, Assuming it's unlocked you could try Kies to update its firmware to latest one; http://www.samsung.com/us/kies/ -- H On Jan 11, 2013, at 10:08 PM, John Merlino stoici...@aol.com wrote: Its a samsung On Jan 11, 3:01 pm, John Merlino stoici...@aol.com wrote: Im trying to test application on device. On launch, I get this error: ERROR: Application requires API version 11. Device API version is 10 (Android 2.3.4). Where can I found how to upgrade the metropcs phone to use api version 11? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android opengl
Hi, Here's some code I've been using for spline creation (or bezier curves to be more exact); https://github.com/harism/android_effects/blob/master/src/fi/harism/effects/ViewSplines.java https://github.com/harism/android_effects/blob/master/res/raw/spline_vs.txt https://github.com/harism/android_effects/blob/master/res/raw/spline_fs.txt It's 100% GPU based and the idea is to feed vertex shader with following information; 1. 4 control points as uniforms. 2. An vertex array that consists e.g of values [[0.0, -1], [0.0, 1], [0.1, -1], [0.1, 1], …. [1.0, 1]]. The first value is used as 't' for interpolating over the curve. The more accurate division you provide the more smooth curve will be produced. Latter value is used to decide on which side of curve the value is. Meaning you can adjust thickness of the rendered curve. -- H On Jan 9, 2013, at 11:38 AM, Tamil Maran tam.mara...@gmail.com wrote: hi i want to draw the curved line and i need to extend and shrink that line using touch event.how to do in opengl -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] cleaner shaders
I've been putting shader code into assets or raw resources for a long while. Writing your shaders as strings is a pain. -- H On Dec 11, 2012 12:29 AM, bob b...@coolfone.comze.com wrote: I'm looking at the BasicGLSurfaceView example, and I'm thinking maybe the vertex shader and fragment shader ought to be stored as assets for readability. Right now they are like this: private final String mVertexShader = uniform mat4 uMVPMatrix;\n + attribute vec4 aPosition;\n + attribute vec2 aTextureCoord;\n + varying vec2 vTextureCoord;\n + void main() {\n + gl_Position = uMVPMatrix * aPosition;\n + vTextureCoord = aTextureCoord;\n + }\n; private final String mFragmentShader = precision mediump float;\n + varying vec2 vTextureCoord;\n + uniform sampler2D sTexture;\n + void main() {\n + gl_FragColor = texture2D(sTexture, vTextureCoord);\n + }\n; On iOS, they are stored in .vsh and .fsh files. I think we should do something like that. What do you guys think? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] RenderScript
Hi, Not only across multiple CPUs but also a way to produce near to NDK speed code over different devices. Ideally lots of RenderScript code can be ran on GPU which makes it even faster than CPU. -- H On Nov 28, 2012, at 6:38 PM, bob b...@coolfone.comze.com wrote: I'm trying to understand RenderScript. The docs are s confusing. Can someone explain it in layman's terms? Is it basically just to help distribute your code across multiple CPUs (or multiple cores)? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] issue Android NDK OpenGL ES 2.0 +VBO
Hi, Here's a link to Apple Dev site which shows how to generate VBOs using default buffers. Maybe it gives an alternative for exact vertex buffer usage; http://developer.apple.com/library/ios/#documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/TechniquesforWorkingwithVertexData/TechniquesforWorkingwithVertexData.html -- H On Nov 10, 2012, at 11:19 PM, Vladimir Boichentsov sakri...@gmail.com wrote: Maybe someone has solution for resolve it. Because without VBO I can't do more faster app :( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Is is possible to have 2 settings files in a live wallpaper?
Hi, I would say no. -- H On Nov 12, 2012, at 10:06 AM, MobileVisuals eyv...@astralvisuals.com wrote: So it is not possible to have 2 settings files in a live 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
Re: [android-developers] Photo effect
Hi, I played around with the idea some time ago. You can find the source code at; https://github.com/harism/android_instacam Also LightBox PhotoProcessing project might be of your interest; https://github.com/lightbox/PhotoProcessing -- H On Nov 12, 2012, at 5:11 PM, Goutom goutom.sust@gmail.com wrote: Hi I want to put effect on my photos as instragram do.Is there any third party library available to do this task? Regards Goutom Roy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Creating OpenGL shaders from an alternate class
Hi, If you're still tackling with this problem here's an example of class that I've used successfully for compiling and using GLSL shader programs; https://github.com/harism/android_effects/blob/master/src/fi/harism/effects/EffectsShader.java Compile method (setProgram) throws an exception with GLES20.glGetProgramInfoLog(int) content if there's a problem with the shader source. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Blocked by Moderator?
Hi, I found two messages posted by you, on October 17th and 22nd. If there are others consider resending them. And yes, it's either moderating or some other issue causing problems to post here every now and then AFAIK. -- H On Oct 27, 2012, at 1:42 AM, Anders Rundgren anders.rundg...@telia.com wrote: I have sent several messages to this list and none of them show up. What's the reason for this? Anders Rundgren -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Using OpenGL ES 2.0 on camera buffers
Hi, I'm not exactly sure if I understood your goal correctly but take a look on; http://developer.android.com/reference/android/graphics/SurfaceTexture.html http://developer.android.com/reference/android/hardware/Camera.html#setPreviewTexture(android.graphics.SurfaceTexture) They provide you means to use preview view directly as a texture at least. -- H On Oct 29, 2012, at 8:39 PM, James Hess jhess2...@gmail.com wrote: Hi, I looked around yesterday for an answer to this but couldn't find a proper way to do this. All of the answer were 'hacks' sort of, results in huge loss in fps doing this. I am wondering if there's an 'official' way to get camera buffer to GPU? What I mean by that is: a) Avoid converting from YUB to RGB (takes a lot of CPU cycles, drops fps) b) Not copying the buffers (sort of like in iOS, where you can bind the texture, and avoid expensive memcpy) c) Save the buffers to a video file It doesn't matter if I need to use the latest device and/or Android OS. Just want to know the proper way of doing this or if it's still yet not possible. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] openGL not removing all lines/points
Hi, I think you're rendering too many elements in your onDrawFrame -method. buffer.position(0); gl.glVertexPointer(2, GL10.GL_FLOAT, 0, buffer); gl.glDrawArrays(GL10.GL_POINTS, 0, counter); Here counter seems to be number of values within buffer while you should render only number of vertice elements. Meaning, if I read your source code correctly, you should render counter/2 points (or line strip vertices). -- H On Oct 24, 2012, at 5:03 PM, Karl Geerts karl.gee...@gmail.com wrote: Hello, I've been looking all over the internet but I cant figure out what I did wrong. So I'm trying to graphicly show the audio recording. So it has to be realtime. I checked all my points and they are normal. But I get a lot of lines (if I use the GL10.GL_LINES) or a lot of static points (when using GL10.GL_POINTS). Now I don't know where the lines come from and why they're not removed. Anyone that has an idea? Or a great example with a refreshing of the vertex array every ondraw method. I added my renderer class and a screenshot from my phone when testing (made with GL_LINES, points is a bit hard to see). Any help would be great. Thanks, Karl -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] has the new facebook api (3.0) has some minimum version requirement?
Hi, Which examples are you trying to run? The ones coming with Facebook SDK 3.0 beta .zip seem to work ok. And yes, new SDK is built against API level 8 (compared to 3 which it used to be). -- H On Oct 28, 2012, at 9:33 PM, Pedro Cortez pedro.fellipe.cor...@gmail.com wrote: i'm trying to implement the new facebook api but i can't be sucessfull. Everything i get the error projeto is misconfigured for facebook login, neither the examples goes right. Anyone can help me? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] has the new facebook api (3.0) has some minimum version requirement?
Hi, Ah ok, take a look on this SO post; http://stackoverflow.com/questions/12382558/app-is-misconfigured-for-facebook-login-android-facebook-integration-issue I got Scrumptious to work after I created an app with proper credentials on Facebook App Dashboard. -- H On Oct 28, 2012, at 10:04 PM, Pedro Cortez pedro.fellipe.cor...@gmail.com wrote: i've tried Scrumptious, I create an app at developers.facebook, put my key, config everything. I put at my samsung galaxy tab 7. Put it doesnt work On Sun, Oct 28, 2012 at 5:54 PM, Harri Smått har...@gmail.com wrote: Hi, Which examples are you trying to run? The ones coming with Facebook SDK 3.0 beta .zip seem to work ok. And yes, new SDK is built against API level 8 (compared to 3 which it used to be). -- H On Oct 28, 2012, at 9:33 PM, Pedro Cortez pedro.fellipe.cor...@gmail.com wrote: i'm trying to implement the new facebook api but i can't be sucessfull. Everything i get the error projeto is misconfigured for facebook login, neither the examples goes right. Anyone can help me? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- att, Pedro Cortez -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] XmlPullParser tag position
On Oct 18, 2012, at 12:36 PM, Paolo Mancini paolo8...@gmail.com wrote: I need to obtain position (bytes) for each tag but I haven't found any method. Yesterday you needed an approximation of current position for setting up a progress bar, which one is it? -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] XmlPullParser tag position
On Oct 18, 2012, at 1:50 PM, Paolo Mancini paolo8...@gmail.com wrote: Sorry, i've duplicated the topic…it's the same problem! In that case you could implement your own InputStream class which is actually only a proxy over existing InputStream. And you can count how many bytes have passed through it on the fly. For parsing you pass this proxy input stream instead and can fetch current position from it. See CountingInputStream for some ideas; http://alvinalexander.com/java/jwarehouse/commons-io-1.0/src/java/org/apache/commons/io/input/CountingInputStream.java.shtml -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] XmlPullParser and tag position
On Oct 17, 2012, at 5:56 PM, Paolo Mancini paolo8...@gmail.com wrote: Hi, I'm using the XmlPullParser to parse a large XML file. I need to obtain position (bytes) for each tag but I haven't found any method. I need this cause I want to trace the progression of the parsing (with the total length). Is it possible? Does somebody know another solution? You could try using InputStream.available() method to estimate how many bytes there are available for reading. It's not a bulletproof solution but might give good candidates for preloaded ByteArrayInputStreams and/or FileInputStreams. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] applying effects to camera images
On Oct 6, 2012, at 2:39 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: Hi all, May anyone please tell, how to apply effects like sepia, mono, negative, etc, while using camera in my app. I started a project some time ago in which I implemented camera effects in realtime using GLSL shaders plus output image is processed using RenderScript. It's API 15+ application but might give some ideas how to continue from there; https://github.com/harism/android_instacam -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] breakpoint in onReceive
On Oct 4, 2012, at 11:16 PM, bob b...@coolfone.comze.com wrote: So, can you not put a breakpoint in a broadcast receiver? Maybe someone corrects me but it's quite often the case a breakpoint does not work unless you have some code there. E.g adding something gibberish; int i = 0; ++i; And then putting your breakpoint into either line might help. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can I prevent two buttons from being clicked at the same time?
On Sep 28, 2012, at 11:45 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Is there a reliable or proper way to prevent a click of multiple buttons at the same time, e.g. a second button won't click when another finger is still down on the screen? I don't know whether this is a proper nor reliable way but managed to prevent multiple buttons from being triggered at the same time with following code. It allows user to select multiple buttons as a chord but will hook at the last pointer up event only. // R.id.button1, R.id.button2, etc... findViewById(R.id.buttonX).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { ViewGroup group = (ViewGroup)findViewById(R.id.container); for (View touchable : group.getTouchables()) { if (touchable != view touchable.isPressed()) { Log.d(..., skip); } } } }); -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Slow preparation of live-streams on devices with Android = 2.3.
Hi, I could do some testing for you but first I need to know the stream URL. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Slow preparation of live-streams on devices with Android = 2.3.
Hi, Unfortunately I wasn't able to reproduce similar behaviour on SGS2, only device I have, running ICS 4.0.4. I ran following code and stream started to play within 2-3 seconds delay it takes to bring GPRS connection alive. Using WiFi delay was only fraction of a second. mp = new MediaPlayer(); mp.setDataSource(this, Uri.parse(http://radio-shtorm.ru:8000/32;)); mp.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { @Override public void onPrepared(MediaPlayer mp) { mp.start(); } }); mp.prepareAsync(); -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] uploading app to android market
On Sep 27, 2012, at 10:34 PM, John Merlino stoici...@aol.com wrote: So I clicked the link and it took me back right to the sign up page: https://play.google.com/apps/publish/signup How do I upload my app? Signing in using your Google credentials should take you to Developer Console; http://developer.android.com/distribute/googleplay/publish/console.html ..from where you can publish your application and follow how it's doing on the market. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: uploading app to android market
On Sep 27, 2012, at 11:23 PM, John Merlino stoici...@aol.com wrote: It doens't take me to a developer console. It takes me back to the developer signup page. But I already did this already and made the payment and received the confirmation. I click the link on the confirmation while logged in with my account and still see this page. There seems to be open issues on similar situation as yours on Google Play known issues page; @ Developer Console or Publishing Issues http://support.google.com/googleplay/android-developer/bin/static.py?hl=enpage=known_issues.cs -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android First Impressions
Hi, Coming from Symbian world I was very happy with Android from day one. This applies to iOS and WP too most likely - OSs I haven't had time to play around with as much as wanted to. But I'm wondering is there something specific you find Android is lacking compared to J2SE? For me biggest turn-off was battery time. But compared to phones I used to work with current phones are highly technical. -- H On Sep 24, 2012, at 9:24 PM, mte111 rro...@attglobal.net wrote: Of coures I can write what ever I want from a lower level and reinvent lots of things but it takes time to do that. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] checking WI-FI
On Sep 25, 2012, at 1:15 PM, Saurabh Khemka saurabh.khem...@gmail.com wrote: How to check programmatically whether a device's wi-fi is on or not using phone gap? I'm not familiar with PhoneGap but there seems to be some information on connection type in the documentation; http://docs.phonegap.com/en/1.2.0/phonegap_connection_connection.md.html -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Multiuser Chating application on Android
Hi, To begin with, I didn't find this information in your post, what protocol are you using? -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Multiuser Chating application on Android
Ah pardon me.. It was XMPP, missed a few posts in between. -- H On Sep 25, 2012 3:47 PM, Harri Smått har...@gmail.com wrote: Hi, To begin with, I didn't find this information in your post, what protocol are you using? -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Multiuser Chating application on Android
Hi, I started with a Facebook chat client once. What I had was a LinearLayout into which I added buddy layouts dynamically every time I got an XMPP presence event from the parser. My situation may have been a bit different though as I implemented XMPP parser myself and never asked the server for full roster. But before continuing any further it might be a good idea you put an aSmack observer (I'm not familiar with the library) and showed, say, a Toast once you receive a message. Or familiarise yourself with on how to retrieve roster information from the client. Once you have these in place it shouldn't be a problem to create a very simple GUI you can extend later on. -- H On Sep 25, 2012, at 4:24 PM, amit amitsha...@gmail.com wrote: yes its XMPP, but xmpp is not issue for me. i want how to make gui for it give me suggestion for 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] Android Future Extensions
Hi, I'm afraid only very few of the people following the list have any knowledge on this topic. On the other hand, if there's something you think Android is missing might be easier subject for many of us. -- H On Sep 26, 2012, at 7:15 AM, srikanth srikanthandroidgro...@gmail.com wrote: Let me know details about android future extensions -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 design shopping cart android application..
Hi, I find it very likely you need a list of items a user can choose them from. And if just possible it might be a good idea to put these items into separate easily identifiable categories. Now where these items come from goes well beyond my imagination so let's just say there are items for shopping. Also, in addition to adding, it would be great if user got to remove items from the cart too before purchasing. Purchasing itself is a simple SOAP message sent to server if I got to choose but your requirements might say differently. Hope this helps. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] XML-JSON convertion
Hi, I don't know about exact solution but if you're familiar with SAX parser it shouldn't be too difficult to build JSON hierarchy during parsing. Here's some code and other information to help you out; http://stackoverflow.com/questions/5113711/convert-xml-to-json-format -- H On Sep 24, 2012, at 3:30 PM, Anoop C anoopc@gmail.com wrote: Hai All, Im looking exact solution for converting XML to JSON format in android. I have weservice database thats in XML format, that i want to get as JSON, manipulate JSONArray and JSONObject .. Please help.. I heard jackson other pacakes, but how to implement i didnt know.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Gradients on PNGs
Hi, I checked the original image you provided with Intel emulator images and SGS2 by creating a layout with one ImageView only. They all showed properly. Could you provide more information on how you render it onto screen if you want me to do some more extensive testing? -- H On Sep 24, 2012, at 5:49 PM, Francisco Marzoa fmmar...@gmail.com wrote: I am facing problems with PNG that includes some gradients. They are very bad shown, with bands instead of soft transitions. I have attached two images that illustrates the problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Search keyword within Google Play Store
On Sep 24, 2012, at 7:02 PM, TreKing treking...@gmail.com wrote: On Wed, Sep 19, 2012 at 10:23 PM, Tokusei Noborio t.nobo...@gmail.com wrote: Do you know how to get the information? What information? I'm guessing Tokusei means search keywords used to navigate to application within Play Store. Information which, AFAIK, is not available but might be interesting read for app developers via developer console. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] problem using webview?
Hi, Could you elaborate a little bit more about your setup; mainly Android version and/or device if this happens on device only? I ran the same code with my SGS2 (ICS 4.0.4) without no problems. -- H On Sep 23, 2012, at 10:04 AM, Hitendrasinh Gohil hitendrasin...@gmail.com wrote: I am trying to load google.com with query string but only black screen comes. If i load http://www.google.com then it works fine but if i add query string then it didnt work. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Best strategy in handling location change
Hi, This is a wild guess, totally out of my knowledge, but do you think listening to android.intent.action.TIMEZONE_CHANGED gave you means to act accordingly to your needs? -- H On Sep 23, 2012, at 9:59 AM, Ichsan ich...@gmail.com wrote: Currently, I'm creating an app which alarms user tasks at specific time. The time is automatically calculated based on coarse location. So, when users fly miles away, the alarm time has become invalid. So the app needs to recalculate the time. FYI, the alarm should be always on (when exiting the app, the alarm is still set). To solve this, I don't want to listen for coarse location change since it eats my battery. Instead, my strategy is by starting alarm each 2 hours just to start a location listener (to fix the task alarm). What do you think of this strategy? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Eclipse setup question
Hi, What happens if you right-click on your project in package explorer? This screenshot is from OSX though; http://imgur.com/OrEBt -- H On Sep 23, 2012, at 4:27 PM, Jared Greenwald greenwaldja...@gmail.com wrote: 2 - How do I configure the Run button in Eclipse to run the app either on one of my devices or on a configured AVD? I tried looking through the Run configuration settings, but all of the tutorials I've seen out there are for older versions of Eclipse that don't seem to have the same menu layout. In the couple replies I got on Stack Overflow, they mention Run - Run Configurations, but I don't seem to have that option in my version (see image). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Which API to install for icecream sandwich?
Hi, My phone is 4.0.4 too but I'm usually developing with API level 8. And use API 15 sometimes also. -- H On Sep 23, 2012, at 9:33 AM, Shashi Shekhar shashi.carbo...@gmail.com wrote: My phone is running 4.0.4 but Android SDK is showing only 4.0 and 4.0.3 to download which should in download to run apps in my phone? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Help: My app has violated the spam provisions of the Content Policy
Hi, I've never played around with keywords but I have to admit I tend to see huge difference in Google Maps keywords and the application in question here. For me the latter list seems more of a list of synonyms. -- H On Sep 23, 2012 11:48 PM, FiltrSoft kri...@gmail.com wrote: lol, it's do as I say, not as I do, with The Google. On Friday, August 31, 2012 5:25:40 AM UTC-4, b0b wrote: For your enjoyment here's what can be found in the description of the Google Maps app: Keywords: maps, navigation, places, latitude, directions, indoor maps, local search, Street View, traffic, transit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Help: My app has violated the spam provisions of the Content Policy
Hi, I'd like to see application that required the whole dictionary as keywords to explain it. Otherwise I see keywords were something you need to find a few good ones only. But as said, I'm not familiar with how keywords affect searches and it's best I end this discussion on my behalf here. -- H On Sep 24, 2012 12:06 AM, b0b pujos.mich...@gmail.com wrote: Does it mean that making a list with all words of the dictionary that are not synonyms is ok ? On Sunday, 23 September 2012 22:59:14 UTC+2, Harri Smått wrote: Hi, I've never played around with keywords but I have to admit I tend to see huge difference in Google Maps keywords and the application in question here. For me the latter list seems more of a list of synonyms. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] play .mov file in video player
Hi, Most answers on the same issue seem to suggest this is pretty much undoable except for converting the video into a supported video format. See last comment on this SO answer if you're into trying to achieve this with ffmpeg. http://stackoverflow.com/questions/5482220/cant-play-mov-file-in-videoview -- H On Sep 22, 2012, at 9:45 AM, Live Happy livehap...@gmail.com wrote: i want to make the video player in my application open .mov format for video file but i didnt success i find something call ffmeg but didnt succeed to implement it did any one have code or sample can help me to work with it or if there is any other way can play this file format wish that someone can help me thx on advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How can i make my activity in a service should be run continuously for every 1 minute
Hi, What have you tried so far? Apparently you need a background service left running after the user has navigated away from the application. This service should enable you to show delayed toast after certain time limit. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] text to pdf in android
Hi, I don't want to sound harsh but did you check e.g StackOverflow before asking here? Good thing about StackOverflow is that well-formed questions asked there show high on Google searches too; android convert text to pdf. That said, hope this answer provides some help; http://stackoverflow.com/questions/5726411/is-it-possible-to-convert-text-into-pdf-in-android -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Key, Gesture, Menu, etc.. für History Up/Down
Hi, While struggling with somewhat similar problematics I ended up utilizing long-press triggered menu. Don't know if this is an option for you though. -- H On Sep 22, 2012 6:21 PM, Jan Burse janbu...@fastmail.fm wrote: Dear All, Assume I have a terminal app for Android. How would I implement history up/down? (*) On the classical PC one would use the up arrow and the down arrow, but on Android. Hints welcome. Bye (*) The up and down already works under the hood, question is what in the GUI should signal an up and down. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@**googlegroups.comandroid-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=enhttp://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] Key, Gesture, Menu, etc.. für History Up/Down
Hi, I'm guessing that property android:textIsSelectable is false by default for TextView - and if not it can be set to false at least. But I think it may be best to follow Mark's suggestions as my situation was a bit different from yours. -- H On Sep 22, 2012, at 6:30 PM, Jan Burse janbu...@fastmail.fm wrote: Harri Smått schrieb: While struggling with somewhat similar problematics I ended up utilizing long-press triggered menu. Don't know if this is an option for you though. Not sure whether I can use this inside a text component. Doesn't it trigger the copy/paste function? Bye -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Posts not showing up?
Hi, I'm quite sure moderators are following this mailing list and there ought not to be reason to bother them directly. -- H On Sep 22, 2012, at 6:51 PM, UgglyNoodle jus...@ugglynoodle.com wrote: If anybody has information on how to contact the moderators for this group, it would be much appreciated. I'm also waiting for a post to appear! On Tuesday, September 18, 2012 1:03:38 AM UTC-7, Martijn van Mechelen wrote: Can one of the moderators please reply? Op donderdag 13 september 2012 11:26:47 UTC+2 schreef Martijn van Mechelen het volgende: Hi, Two days ago I've posted three messages into the Android Developers group. The messages probably have to moderated, but they are still not showing up. Is something going wrong? Regards, Martijn van Mechelen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] FLASH_MODE_TORCH doesn´t work in Samsung Galaxy Ace
Hi, Are you instantiating 'cam' variable somewhere not shown on the code snippet you provided? -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] closing mobile network on galaxy s3
Hi, Are you on ICS? If yes (this may apply to other Android versions too), you can switch packet data off from mobile network settings and disable use packet data. Did this help you out? -- H On Sep 22, 2012, at 11:34 PM, Salih Gündüz gunduz.sa...@gmail.com wrote: I can not close the mobile network on my phone. I want to connect internet only by wi-fi. not gsm. I select option/mobile mode/ only gsm. but not working. it seems gsm-wcmdahow can I change 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] Matrix.orthoM - How to use it
Hi, I'm usually doing the following (or the inverse); float ratio = (float) width / height; Matrix.orthoM(projection, -ratio, ratio, 1, -1, .1f, 100f); Especially using proper z -projection. -- H On Sep 14, 2012, at 11:25 AM, Steven Bruce stevebruc...@gmail.com wrote: Matrix.orthoM(projection,0,0,width,0,height,-1,1); So how exactly are you supposed to use this function? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: HttpResponse throwing an unidentified error?
Hi, I didn't find the original message and location where you're executing this HTTP request. But if it's the UI thread, please see this blog post; http://www.androiddesignpatterns.com/2012/06/app-force-close-honeycomb-ics.html Hope this helps since same code you provided worked like a charm for me. -- H On Sep 13, 2012, at 2:19 PM, AttemptedSuccess benjaminpass...@gmail.com wrote: I tried them before I tried using a TextView, TextView was just the most recent thing I'd tried to figure out the Exception. On Thursday, September 13, 2012 5:13:11 PM UTC+10, Calin Perebiceanu wrote: Use Log.e or even e.printStackTrace() instead of putting it in the textview -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] check if pressed within circle
On Sep 12, 2012, at 5:09 AM, iQue max.nielse...@gmail.com wrote: this gives a weird result where 90% of the time the stick will set its position to 0,0 when I try to use it. Yup, I made a huge mistake there. Here's revised code; Point imageCenter = new Point(25, 25); Point touchPos = new Point(5, 5); int dx = touchPos.x - imageCenter.x; int dy = touchPos.y - imageCenter.y; float distance = FloatMath.sqrt(dx * dx + dy * dy); final float radius = 25.0f; if (distance radius) { touchPos.x = imageCenter.x + (int)(dx * radius / distance); touchPos.y = imageCenter.y + (int)(dy * radius / distance); } Don't know what I was thinking about earlier... -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] check if pressed within circle
On Sep 12, 2012, at 1:31 PM, iQue max.nielse...@gmail.com wrote: Alright, so I change the previous code to this: int imgCenterX = initx - joystick.get_joystickBg().getWidth()/2 - 50; int imgCenterY = inity - joystick.get_joystickBg().getHeight()/2 - 50; atleast now it dosnt change its pos to 0,0, now it just gets stuck 0,x somewhere, so this code didnt work either. Might help to now that touchinPoint is set through event.getX() and event.getY, but you probably understood that. I've had this problem for over 2 weeks, so if there is anything I can do to make it easier for you to help me please let me know. How are you positioning your joystick image, is it an ImageView or are you drawing it to larger Canvas by yourself? Also from where are you observing MotionEvents? It would help to know to which component (screen or ImageView) MotionEvents and image position are relative to. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: check if pressed within circle
On Sep 12, 2012, at 1:59 PM, iQue max.nielse...@gmail.com wrote: thanks for taking your time to help me. It ALMOST works now, the stick acts lke imgCenterY and imgCenterX is a bit further down then they really are. I know I'm using the right positions cus if I draw a circle at that position it gets drawn in the exact middle of my joystickBG. this is how I add the stick: canvas.drawBitmap(joystick.get_joystick(), touchingPoint.x - 13, touchingPoint.y - 13,null); this is how I add the joystickBG: canvas.drawBitmap(joystick.get_joystickBg(), initx - 50, inity - 50, null); and this is the changed code: int imgCenterX = initx + joystick.get_joystickBg().getWidth()/2 - 50; int imgCenterY = inity + joystick.get_joystickBg().getHeight()/2 - 50; Point imgCenter = new Point(imgCenterX, imgCenterY); int dx = touchingPoint.x - imgCenter.x; int dy = touchingPoint.y - imgCenter.y; float distance = FloatMath.sqrt(dx * dx + dy * dy); Log.d(TAG, destance HERE: + imgCenterX +:+ touchingPoint.x); // Out of bounds check. final float radius = 25.0f; if (distance radius) { touchingPoint.x = imgCenter.x + (int)(dx * radius / distance); touchingPoint.y = imgCenter.y + (int)(dy * radius / distance); } You could try following (if I understood your coordinate system correctly); Point imgPos = new Point(initx - 50, inity - 50); Point imgCenter = new Point(joystick.get__joystickBg().getWidth() / 2, joystick.get_joystickBg().getHeight() / 2); int dx = touchingPoint.x - imgPos.x - imgCenter.x; int dy = touchingPoint.y - imgPos.y - imgCenter.y; float distance = FloatMath.sqrt(dx * dx + dy * dy); Log.d(TAG, destance HERE: + imgCenterX +:+ touchingPoint.x); // Out of bounds check. final float radius = 25.0f; if (distance radius) { touchingPoint.x = imgPos.x + imgCenter.x + (int)(dx * radius / distance); touchingPoint.y = imgPos.y + imgCenter.y + (int)(dy * radius / distance); } I can't try this out right now but hope that this provides proper distance calculations only. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] json format
On Sep 12, 2012, at 3:40 PM, rauf qureshi qureshira...@gmail.com wrote: in above code when i send this request to server date automatic converted into following format 25/\10/\2012 can any body tell me how to send date on the server using json in 25/10/2012 format. It's the other way around. / is presented escaped \/ with backslash and there's no way around this. But instead on server side you should remove escape character by your JSON parser. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] EditText without initial keyboard
On Sep 12, 2012, at 7:51 PM, Ravin rperi...@yahoo.com wrote: Does anyone know how to configure an EditText object so that when it is created it does not show the keyboard until I tap on the text field. Right now the keyboard shows up right away on creation. I've used following code snippet in my application; getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_UNCHANGED); setContentView(R.layout.root); In this particular order within onCreate method. This way keyboard stays visible if present during orientation change but is invisible by default. I have to admit I'm not too familiar with soft keyboard and it might be the case this works in my app for other reasons I'm not aware of. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] check if pressed within circle
On Sep 12, 2012, at 1:09 AM, iQue max.nielse...@gmail.com wrote: Say the joysticks background image is 50x50, how do I make a circle in android with this size in mind, and how do i check if im pressing within it. Use distance, int dx = imgCenterX - touch.x; int dy = imgCenterY - touch.y; float distance = FloatMath.sqrt(dx * dx + dy * dy); // Out of bounds check. if (distance 25) { touch.x *= 1f / distance; touch.y *= 1f / distance; } Or something like this might work. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 retrieve data between specified date
Hi, It may be best if you didn't store dates as Strings for this use case - if never to be more precise. Firstly, using Strings you hardcode application language. Secondly, comparisons become next to impossible compared to e.g long comparisons. -- H On Sep 10, 2012 9:07 AM, Sadhna Upadhyay sadhna.braah...@gmail.com wrote: Hi everybody, i want to know that how to convert,let me first explain application( i have created database and taken date from date picker and converted it into string then passed to sq-lite database class) and now i want retrieve data between specified range like (1 July 2012 to 30 July 2012 ),but the problem is this that i have store date as a string format,pls guys help me if any one of you have any idea about it. Thanks: sadhana -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Where to start for developing an Android Game?
Hi, Instead of developing a simple game, try to come up with more detailed idea(s) what you want to see your game did. Saying this only in hopes that having some more specific goal gave you extra motivation for creating it. Good luck with your project in any case. -- H On Sep 10, 2012 5:23 AM, Kristopher Micinski krismicin...@gmail.com wrote: This question is fairly off topic and has no research behind it. Game development in general is a huge area, and all of the complications will be mirrored in Android. As always it depends on what type of game you want to make, but you might try - learning java - taking a graphics course - learning opengl - learning the android framework and ndk - putting all of those together to make a game.. kris On Sun, Sep 9, 2012 at 12:22 PM, Abhi abhi007ty...@gmail.com wrote: Hi, I am new to game development. Where can I start, for developing a simple Android Game ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Question about SurfaceView and Threads
On Sep 10, 2012 12:04 AM, Edvinas Kilbauskas edvinaskilbaus...@gmail.com wrote: I heard that android doesn't support plain old Java Threads. That's not true. Android supports basic Java Threads and there's no reason for not to use them when appropriate. But the thing is, you can not alter UI components outside of UI Thread. In your case it would be updating the textual contents of TextView. See method named runOnUiThread , it gives easy access for executing UI code from Threads. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Rotate image around it's centre problem with matrix rotation
Hi, Why are you adding constants X and Y to pivot point? -- H On Sep 10, 2012 4:18 PM, Haris haris...@gmail.com wrote: Hai all I am trying an application like rotating image with motion sensorMy problem is that the image does not rotate about centre properlyAnd my angle range is 0 to 90 and 0 to -90.. And below is my code. public void onDraw(Canvas canvas) { super.onDraw(canvas); Bitmap arrow = BitmapFactory.decodeResource(getResources(),R.drawable.arrow); int arrowW = arrow.getWidth(); int arrowH = arrow.getHeight(); float scaleWidth = 1; float scaleHeight = 1; int centrex = arrowW/2; int centrey = arrowH/2; int X=108; int Y=100; int angle=0; Matrix matrix = new Matrix(); matrix.postScale(scaleWidth, scaleHeight); matrix.postRotate(angle, X+centrex , Y+centrey ); Bitmap resizedBitmap = Bitmap.createBitmap(arrow, 0, 0, arrow.getWidth(), arrow.getHeight(), matrix, true); canvas.save(); canvas.drawBitmap(resizedBitmap, X, Y, null); invalidate(); } I am getting the angle values from onCreate method.Using orientation sensor(roll values).. But When I rotate the screen my image is rotating but not exactly around the image centre. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Live wallpaper. nullPointerException when detecting preview mode
Hi, It's very much sure isPreview() does not work within service Engine instantitation method. Not only for null pointer but there's no way newly created Engine knew whether it's in preview mode or not. Also, bear in mind it's not guaranteed a new Engine is created for preview and actual wallpaper. If implemented cleverly same Engine instance can be used for both situations. -- H On Sep 7, 2012 1:45 PM, Calin Perebiceanu calin.perebice...@gmail.com wrote: I've looked at WallpaperService source code, and I pretty sure you can't use isPreview in onCreateEngine. On Friday, 7 September 2012 11:00:46 UTC+3, JPS wrote: On Friday, September 7, 2012 9:19:42 AM UTC+2, JPS wrote: Hi I am developing a live wallpaper and want the preview mode to display a bitmap as opposed to the regular animation in run mode. I know I should use the isPreview() call and all my searches indicate that I should do this in the onCreateEngine() method which is what I did. However I get a nullPointerException. I have tried other locations and the only locations it works are located too far down to perform initialisation. Any help is Greatly appreciated. Thanks JPS @Override public Engine onCreateEngine() { mEng = new WallpaperEngine(); if (mEng!= null) { *if (mEng.isPreview()) { // crash here* Log.d(TAG, preview mode); // display preview bitmap } else { Log.d(TAG, run mode); // perform full initalization } } return mEng; } Hi Calin here is the crash log 09-07 09:58:33.441: E/AndroidRuntime(2101): FATAL EXCEPTION: main 09-07 09:58:33.441: E/AndroidRuntime(2101): java.lang.NullPointerException 09-07 09:58:33.441: E/AndroidRuntime(2101): at android.service.wallpaper. **WallpaperService$Engine.**isPreview(WallpaperService.**java:332) 09-07 09:58:33.441: E/AndroidRuntime(2101): at com.aajo.appia.LiveWallpaper.**onCreateEngine(LiveWallpaper.**java:205) 09-07 09:58:33.441: E/AndroidRuntime(2101): at android.service.wallpaper. **WallpaperService$**IWallpaperEngineWrapper.**executeMessage(** WallpaperService.java:872) 09-07 09:58:33.441: E/AndroidRuntime(2101): at com.android.internal.os.** HandlerCaller$MyHandler.**handleMessage(HandlerCaller.**java:61) 09-07 09:58:33.441: E/AndroidRuntime(2101): at android.os.Handler.** dispatchMessage(Handler.java:**99) 09-07 09:58:33.441: E/AndroidRuntime(2101): at android.os.Looper.loop(Looper.**java:130) 09-07 09:58:33.441: E/AndroidRuntime(2101): at android.app.ActivityThread.**main(ActivityThread.java:3683) 09-07 09:58:33.441: E/AndroidRuntime(2101): at java.lang.reflect.Method.* *invokeNative(Native Method) 09-07 09:58:33.441: E/AndroidRuntime(2101): at java.lang.reflect.Method.* *invoke(Method.java:507) 09-07 09:58:33.441: E/AndroidRuntime(2101): at com.android.internal.os.** ZygoteInit$**MethodAndArgsCaller.run(**ZygoteInit.java:839) 09-07 09:58:33.441: E/AndroidRuntime(2101): at com.android.internal.os.** ZygoteInit.main(ZygoteInit.**java:597) 09-07 09:58:33.441: E/AndroidRuntime(2101): at dalvik.system.NativeStart. **main(Native Method) Is this what you needed? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] using pixel coordinates in opengl es 2
Hi, I might be wrong but I think you can create an orthographic projection matrix for this purpose using Matrix.orthoM. Just provide it with top=0, bottom=height, left=0, right=width. -- H On Aug 29, 2012, at 8:50 PM, guich guiha...@gmail.com wrote: Hi, I downloaded and played with the opengl sample at http://developer.android.com/training/graphics/opengl/draw.html However, it uses the standard coordinate system for opengl, where 0,0 is at the center of the screen and -1,-1 at top-left and 1,1 at bottom- right. I want to use the screen's coordinate, where 0,0 is at top-left and width,height is at bottom-right. I already tried a dozen things, read about 30 articles, but since i'm a newbie at opengl, i'm still stumped. Can someone tell what it has to be done to change the coordinate so that the given rectangle static float squareCoords[] = { 10f, 10f, 0.0f, // top left 10f, 20f, 0.0f, // bottom left 20f, 20f, 0.0f, // bottom right 20f, 10f, 0.0f }; // top right ... is shown at screen? thanks guich -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to .setText of a String with different colours?
On Aug 28, 2012, at 6:52 PM, oriolmesia mesia@gmail.com wrote: Does anyone knows how to do it? This article is a good read for SpannableStrings; http://www.chrisumbel.com/article/android_textview_rich_text_spannablestring -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AsyncTask - onPostExecute is not called
On Aug 28, 2012, at 9:33 PM, anaOliveira oliveiranar...@gmail.com wrote: ... s.execute(new String [] {URL+param}); … to call the task. Someone can help me to understand which is the problem? I'm guessing your problem lies in how you call AsyncTask.execute(…). Switching this call to; s.execute(URL + param); might fix it. I'm not too familiar with AsyncTask though… -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AsyncTask - onPostExecute is not called
On Aug 28, 2012, at 10:20 PM, Ana Rita Brito Oliveira oliveiranar...@gmail.com wrote: I tried.. but with only one ore more URL the method doInBackground works and I can go to the service and got the result but when I try to do the onPostExecute.. that dind't work. True that, my mistake actually, didn't know Java var_args worked the way you can pass an array to such methods. Anyway, just to make sure, are you sure your loop within doInBackground method exits as expected? Otherwise I can't come up with other reasons for your code didn't reach onPostExecute... -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: android.os.NetworkOnMainThreadException error
Study AsyncTask or spawn a regular Java Thread where you do XML fetch and parsing. Now it's all written within onCreate method. It shouldn't be a problem to find better examples on how to use them than I can give. -- H On Aug 22, 2012 5:38 PM, Vivek Bhusal vivekbhu...@gmail.com wrote: Some body please help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Software Licensing
On Aug 21, 2012, at 5:35 PM, Yashwant Patil yashvpa...@gmail.com wrote: Is it so that once I publish my app in Marketplace, the sourcecode of application indirectly becomes opensource? No. Source code most definitely does not become open source. However Java is maybe more easy language for reverse-engineering your application source code than many others but this does not mean it became open source. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ArrayList in TableLayout IndexOutOfBoundsException
On Aug 17, 2012, at 10:58 AM, Иван Дунский i.duns...@gmail.com wrote: for (int i=start; iend; i++) Instead of doing this I'd say you should also add boundary checks e.g; for (int i=start; iend iforPrint.size(); i++) Or alternatively recalculate start and end so that they do not exceed array bounds. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en