[android-developers] Re: I'm missing something dumb here...
Have the imageView's height be fill_parent and its adjustViewBounds set to true, scale_type should be fit_end. if you dont like the way the image will show, wrap it in a frame_layout/relative_layout that has the Fill_parent and then set its gravity to bottom On Wednesday, March 20, 2013 5:53:03 PM UTC+2, Larry Meadors wrote: I'm making a grid of items that has an image and two text elements under it. I want all three elements centered horizontally, and the image to be right above the text. For some reason, the image is centered vertically and the text is at the bottom. Here's a screen shot to make that clearer: https://www.evernote.com/shard/s138/sh/6cdb585f-d523-47a5-a3a3-184124719e01/ed424d6929bdbf4abd9c36e2ce4a4390 I've tried everything I can think of... This is the grid view: GridView android:id=@+id/content_list_grid_view android:columnWidth=90dp android:numColumns=4 android:verticalSpacing=5dp android:horizontalSpacing=10dp android:stretchMode=columnWidth android:layout_height=wrap_content android:layout_width=fill_parent android:padding=5dp / This is my item: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=140dp android:orientation=vertical android:gravity=bottom|center_horizontal ImageView android:id=@+id/thumbnail_image android:background=#40ff8080 android:layout_width=wrap_content android:layout_height=110dp android:layout_gravity=center_horizontal|bottom android:src=@drawable/image_not_available_large android:contentDescription=@string/thumbnail_image / TextView android:id=@+id/title_name android:textColor=@color/white_color android:layout_width=wrap_content android:layout_height=wrap_content android:singleLine=true android:gravity=center_horizontal style=@style/normal_label / TextView android:id=@+id/title_author android:textColor=@color/light_gray_color android:layout_width=wrap_content android:layout_height=wrap_content android:singleLine=true android:gravity=center_horizontal style=@style/normal_label / /LinearLayout -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] IABHelper, queryInventoryAsync returns 0 products but launchPurchaseFlow fails with Item Already Owned.
I'm experiencing an intermittent problem with In App Billing Version 3 using IABHelper as provided by Google. Before Launching a new purchase I check for unconsumed purchases with queryInventoryAsync. If found I consume any unconsumed purchases and begin a new transaction, if not go directly to start a new transaction. 99% of the time it works fine. Occasionally when queryInventoryAsync returns no unconsumed purchases, the following launchPurchaseFlow fails with Response : 7: Item already owned. 2013/03/21-16:27:32:084 SH-12C 2.3.3 INFO [IABHelper] Starting async operation: refresh inventory 2013/03/21-16:27:32:087 SH-12C 2.3.3 INFO [IABHelper] Querying owned items, item type: inapp 2013/03/21-16:27:32:093 SH-12C 2.3.3 INFO [IABHelper] Package name: jp.co.gmode.gp.client.example.bjk 2013/03/21-16:27:32:095 SH-12C 2.3.3 INFO [IABHelper] Calling getPurchases with continuation token: null 2013/03/21-16:27:32:119 SH-12C 2.3.3 INFO [IABHelper] Owned items response: 0 2013/03/21-16:27:32:129 SH-12C 2.3.3 INFO [IABHelper] Continuation token: null 2013/03/21-16:27:32:132 SH-12C 2.3.3 INFO [IABHelper] Querying SKU details. 2013/03/21-16:27:32:134 SH-12C 2.3.3 INFO [IABHelper] queryPrices: nothing to do because there are no SKUs. 2013/03/21-16:27:32:135 SH-12C 2.3.3 INFO [IABHelper] Querying owned items, item type: subs 2013/03/21-16:27:32:137 SH-12C 2.3.3 INFO [IABHelper] Package name: jp.co.gmode.gp.client.example.bjk 2013/03/21-16:27:32:142 SH-12C 2.3.3 INFO [IABHelper] Calling getPurchases with continuation token: null 2013/03/21-16:27:32:167 SH-12C 2.3.3 INFO [IABHelper] Owned items response: 0 2013/03/21-16:27:32:169 SH-12C 2.3.3 INFO [IABHelper] Continuation token: null 2013/03/21-16:27:32:171 SH-12C 2.3.3 INFO [IABHelper] Querying SKU details. 2013/03/21-16:27:32:177 SH-12C 2.3.3 INFO [IABHelper] queryPrices: nothing to do because there are no SKUs. 2013/03/21-16:27:32:179 SH-12C 2.3.3 INFO [IABHelper] Ending async operation: refresh inventory 2013/03/21-16:27:33:034 SH-12C 2.3.3 INFO [IABHelper] Constructing buy intent for jp.co.gmode.gp.charginglibexample.100points, item type: inapp 2013/03/21-16:27:33:082 SH-12C 2.3.3 INFO [IABHelper] Launching buy intent for com.mydomain..myapp.myexampleproduct. Request code: 1001 2013/03/21-16:27:42:829 SH-12C 2.3.3 INFO [IABHelper] Ending async operation: launchPurchaseFlow 2013/03/21-16:27:42:831 SH-12C 2.3.3 INFO [IABHelper] Purchase canceled - Response: 7:Item Already Owned queryInventoryAsync is saying the user does not own the item, but launchPurchaseFlow says the user does. Strangely after a wait (sometimes a few minutes, sometimes more) the problem resolves itself. Has anyone experienced anything similar? For reference I'm using the version of IABHelper last updated on March 15. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: IABHelper, queryInventoryAsync returns 0 products but launchPurchaseFlow fails with Item Already Owned.
Sorry I redacted one of the product ID's in the sample above, but not the other. Both product ID's are identical as shown below. 2013/03/21-16:27:33:034 SH-12C 2.3.3 INFO [IABHelper] Constructing buy intent for jp.co.gmode.gp.charginglibexample.100points, item type: inapp 2013/03/21-16:27:33:082 SH-12C 2.3.3 INFO [IABHelper] Launching buy intent for jp.co.gmode.gp.charginglibexample.100points. Request code: 1001 2013/03/21-16:27:42:829 SH-12C 2.3.3 INFO [IABHelper] Ending async operation: launchPurchaseFlow 2013/03/21-16:27:42:831 SH-12C 2.3.3 INFO [IABHelper] Purchase canceled - Response: 7:Item Already Owned Also the wait before the problem resolves itself can be anywhere from 1 to 15 minutes ... -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Games SDK?
Taylor mentioned that he is programming in Java. The SDK you mentioned is using C++ and Lua AFAIK and therefore does IMO not really fit. Cheers Am Mittwoch, 20. März 2013 23:27:20 UTC+1 schrieb Nathan: A member of this forum works on http://www.batterytechsdk.com/ Haven't used it yet. The person, Robert Green, is doing a Hackathon at AnDevCon that I plan to be at. http://www.andevcon.com/AnDevCon_Boston/tutorials.html You can save $200 on Andevcon by using the discount code 'Mellor' at registration. Nathan -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To 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] Re: How to display Options Menu Vertically
i also wanted that still there is no answar for this question. On Wednesday, November 11, 2009 12:00:29 PM UTC+5:30, Swati wrote: Hi, I was trying to display the Options Menu to be vertically stacked instead of the Horizontal one supported by the framework as of now.Can some one suggest me how to achive 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 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] How to get other/neighbouring GSM operator's name (at my location)
Dear all, I tried to get the list of all GSM networks available at my location through following code - TelephonyManager telManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); telManager.listen(gsmListener, PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); ListNeighboringCellInfo cellInfo = telManager.getNeighboringCellInfo(); StringBuilder sb =new StringBuilder(); for(NeighboringCellInfo nInfo : cellInfo) { sb.append(\ncid: + nInfo.getCid()+ lac: + nInfo.getLac()+ n/w type: + nInfo.getNetworkType()+ psc: + nInfo.getPsc()+ rssi: + nInfo.getRssi()+\n); } String disp = Connected to: +telManager.getNetworkOperatorName()+||+telManager.getSimOperatorName() +\nrssi: +strength+ || +telManager.getLine1Number()+\n\nNeighbours +cellInfo.size()+sb.toString(); This gives me the cell id, LAC, network type, PSC, RSSI of neighbouring cell. How can i get the network operator's name of neighbouring cell. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] create stacked option menu by using API level 14
I want a menu layout by using android API level 14 in which by pressing the menu button it should display the menu items in a stacked manner 1 after the other vertically column wise. *MenuItem3 MenuItem2 MenuItem1 * -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How to display Options Menu Vertically
You do not control the layout of the options menu/overflow menu. Whether it is horizontal (I presume referring to the old-style options menu) or not is up to the framework and will be dependent on the OS version you are running on. Please allow the menu to render the same for your app as it does for all other apps on the device, so the user knows what to expect. On Thu, Mar 21, 2013 at 5:26 AM, abhijit achakr...@gmail.com wrote: i also wanted that still there is no answar for this question. On Wednesday, November 11, 2009 12:00:29 PM UTC+5:30, Swati wrote: Hi, I was trying to display the Options Menu to be vertically stacked instead of the Horizontal one supported by the framework as of now.Can some one suggest me how to achive 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 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. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.7 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group 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] zygote preloading jars
Hi, I have few apps (apks) which share common framework (jar). Instead of saving jar in each apk I guess it would be more efficient to preload them from common location which will reduce apk size as well as memory. If it is possible with zygote please guide what I need to do like do I need to package the shared jar differently and store it in some specific location (ex. like in tomcat we have specific locations for classes stored for all webapps on tomcat). Regards, Miten. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] zygote preloading jars
On Thu, Mar 21, 2013 at 7:27 AM, miten imi...@yahoo.com wrote: If it is possible with zygote Only if you are creating your own version of Android, from the source code, and rolling that into your own ROM mod or device. Please visit http://source.android.com for more information on the Android source code. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.7 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group 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] Dalvik - local variable type mismatch when adding java file to project - Without proguard
My android project compiles and builds fine, however, when I'm adding NanoHTTPD java file (a pure java 1 file http server) I am getting the following error when launching (without proguard). *[2013-03-20 23:28:56 - test] Dx EXCEPTION FROM SIMULATION:[2013-03-20 23:28:56 - test] Dx local variable type mismatch: attempt to set or access a value of type int using a local variable of type java.io.ByteArrayInputStream. This is symptomatic of .class transformation tools that ignore local variable information. [2013-03-20 23:28:56 - test] Dx ...at bytecode offset 009d locals[]: Lcom/my/android/test/NanoHTTPD$HTTPSession; locals[0001]: Ljava/io/InputStream; locals[0002]: I locals[0003]: [B locals[0004]: I locals[0005]: I locals[0006]: I locals[0007]: locals[0008]: locals[0009]: locals[000a]: locals[000b]: locals[000c]: locals[000d]: locals[000e]: locals[000f]: locals[0010]: locals[0011]: locals[0012]: locals[0013]: locals[0014]: locals[0015]: locals[0016]: locals[0017]: locals[0018]: locals[0019]: locals[001a]: locals[001b]: [I...while working on block 009d...while working on method run:()V...while processing run ()V...while processing com/my/android/test/NanoHTTPD$HTTPSession.class [2013-03-20 23:28:56 - test] Dx EXCEPTION FROM SIMULATION:[2013-03-20 23:28:56 - test] Dx local variable type mismatch: attempt to set or access a value of type java.lang.Object using a local variable of type int. This is symptomatic of .class transformation tools that ignore local variable information. [2013-03-20 23:28:56 - test] Dx ...at bytecode offset 02cd locals[]: Lcom/my/android/test/NanoHTTPD; locals[0001]: Ljava/lang/String; locals[0002]: Ljava/util/Properties; locals[0003]: Ljava/io/File; locals[0004]: I locals[0005]: Lcom/my/android/test/NanoHTTPD$Response; locals[0006]: Ljava/io/File; locals[0007]: [Ljava/lang/String; locals[0008]: Ljava/lang/String; locals[0009]: locals[000a]: locals[000b]: locals[000c]: locals[000d]: locals[000e]: locals[000f]: locals[0010]: locals[0011]: locals[0012]: locals[0013]: locals[0014]: locals[0015]: locals[0016]: [I stack[top0]: Ljava/lang/String;...while working on block 02cd...while working on method serveFile:(Ljava/lang/String;Ljava/util/Properties;Ljava/io/File;Z)Lcom/my/android/test/NanoHTTPD$Response;...while processing serveFile (Ljava/lang/String;Ljava/util/Properties;Ljava/io/File;Z)Lcom/my/android/test/NanoHTTPD$Response;...while processing com/my/android/test/NanoHTTPD.class* * * This only happens on the current project and did not happen when I used NanoHTTPD on other projects. How can I fix 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 --- 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] Retreive Special characters from sqlite files.
Hi All, I am doing a small dictionary app and the data is in sq-lite file. when i search the keyword then corresponding words ll showing in a list view. in my database i have special characters i.e., ábaco, ábaco psicométrico when i entered keyword a then above words also i want. Any body know how to retrieve such type of special characters. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: zygote preloading jars
miten wrote: Hi, I have few apps (apks) which share common framework (jar). Instead of saving jar in each apk I guess it would be more efficient to preload them from common location which will reduce apk size as well as memory. If it is possible with zygote please guide what I need to do like do I need to package the shared jar differently and store it in some specific location (ex. like in tomcat we have specific locations for classes stored for all webapps on tomcat). Regards, Miten. see http://developer.android.com/guide/topics/manifest/uses-library-element.html pskink -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] How to get Wifi Access Point data + MTU on the Wifi interface
HI , I have an APP that get some information from the AP that i am connected to such as SSID . BSSID , IP . Name , etc ... I am trying to get this information from it: 1.When my APP is loaded it check if its connectd to WIFI or not and if SO i want to know if i am connected to 5G or 2.4G access point , i couldn't find any way to retrieve this info from WifiInfo , OR connection Manager , the only point that i can see this info is from the wifi.ScanResult : public intfrequencyhttp://developer.android.com/reference/android/net/wifi/ScanResult.html#frequencyThe frequency in MHz of the channel over which the client is communicating with the access point.My question is how can i get this info only by running my app and get it from the connected AP ? 2.What is the best way to get my WIFI interface to get the MTU ? , how do i know what is my WIFI interface in any specific HW (there are different names on each device?) Thanks, Tom -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- 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] ANR from internal function
Hi, I have implemented a 2D game using SurfaceView + GameThread (does nothing atm) + ViewThread pattern that calls a draw method on the SurfaceView. However, it randomly stops redrawing the screen. Randomly means it can take up to several minutes of play to freeze. Other things like timers/etc on the Activity itself continue to work. See the tombstone data below. I really don't know how to read this. It seems that the call to RoundRectShape() is the problem while drawing the rectangle from touchDown to touchUp. However, it works fine for some minutes of random touching before crashing. I would appreciate it if someone with more knowledge could give me some idea on HOW to debug this. Thanks! Here is the tombstone data: main prio=5 tid=1 WAIT | group=main sCount=1 dsCount=0 obj=0x41b809a0 self=0x40091010 | sysTid=31227 nice=0 sched=0/0 cgrp=apps handle=1075041244 | state=S schedstat=( 0 0 0 ) utm=67 stm=29 core=1 at java.lang.Object.wait(Native Method) - waiting on 0x41b80da0 (a java.lang.VMThread) held by tid=1 (main) at java.lang.Thread.parkFor(Thread.java:1231) at sun.misc.Unsafe.park(Unsafe.java:323) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:159) at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:810) at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:843) at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1173) at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:183) at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:259) at android.view.SurfaceView.updateWindow(SurfaceView.java:497) at android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:231) at android.view.View.dispatchWindowVisibilityChanged(View.java:7544) at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1039) at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1039) at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1039) at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1039) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1211) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:989) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4351) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749) at android.view.Choreographer.doCallbacks(Choreographer.java:562) at android.view.Choreographer.doFrame(Choreographer.java:532) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735) at android.os.Handler.handleCallback(Handler.java:725) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5041) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) at dalvik.system.NativeStart.main(Native Method) Thread-3900 prio=5 tid=12 TIMED_WAIT | group=main sCount=1 dsCount=0 obj=0x4242c4c8 self=0x73c2f6c0 | sysTid=31253 nice=0 sched=0/0 cgrp=apps handle=1924236928 | state=S schedstat=( 0 0 0 ) utm=62 stm=44 core=1 at java.lang.VMThread.sleep(Native Method) at java.lang.Thread.sleep(Thread.java:1031) at java.lang.Thread.sleep(Thread.java:1013) at com.rhs.wordsearch.Threads.GameThread.run(GameThread.java:62) Thread-3899 prio=5 tid=11 NATIVE | group=main sCount=1 dsCount=0 obj=0x4242c270 self=0x73c2f270 | sysTid=31252 nice=0 sched=0/0 cgrp=apps handle=1925462672 | state=R schedstat=( 0 0 0 ) utm=8667 stm=274 core=1 #00 pc 0007f9cc /system/lib/libskia.so (SkPath::Iter::consumeDegenerateSegments()+60) #01 pc 0007fbcc /system/lib/libskia.so (SkPath::Iter::next(SkPoint*)+12) #02 pc 0006e014 /system/lib/libskia.so (SkEdgeBuilder::build(SkPath const, SkIRect const*, int)+328) #03 pc 00091e58 /system/lib/libskia.so (sk_fill_path(SkPath const, SkIRect const*, SkBlitter*, int, int, int, SkRegion const)+56) #04 pc 0008ec40 /system/lib/libskia.so (SkScan::AntiFillPath(SkPath const, SkRegion const, SkBlitter*, bool)+776) #05 pc 0008ef9c /system/lib/libskia.so (SkScan::AntiFillPath(SkPath const, SkRasterClip const, SkBlitter*)+204) #06 pc 0006be64 /system/lib/libskia.so #07 pc 00060ae8 /system/lib/libskia.so (SkCanvas::drawPath(SkPath const, SkPaint const)+520) #08 pc 0006a9ff /system/lib/libandroid_runtime.so #09 pc 0001e290 /system/lib/libdvm.so (dvmPlatformInvoke+112) #10 pc 0004d411 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+396) #11 pc 0214
Re: [android-developers] Re: Concurrency: Do you use Loaders? AsyncTask? or Runnables?
Managed means that a lot of stuff is going on in the background that you don't have to worry about. E.g. - You don't have to create threads. Just subclass the AsyncTask/Loader/IntentService and implement/override the correct method and your code will run in some background thread. You don't have to manage these threads, you don't have to manage sending messages from the background thread(s) to the UI thread and vice versa, etc. You don't have to manage these threads, because code is already implemented for you, e.g. code that creates Threads and stops them, etc. Just read the documentation of AsyncTask/Loader/IntentService and you'll understand a bit more. - Continuation and result-message delivery. A change in configuration is any change to the current state of your phone that may destroy your current Activity and recreates a new instance of it immediately after that. Examples are screen-rotation, keyboard slide in/out, etc. When your phone changes configuration (e.g. screen rotation), your Activity and your View hierarchy is usually destroyed (old Activity) and re-created (new Activity in different orientation). If you had some background processes running before the rotation and these are still running after the rotation, you still want your UI to be notified of the background-process' final result. Loaders (used by Fragments) make that a bit easier for you (onLoadFinished callbacks when data loaded by a Loader is ready). Note that Runnables are nothing. A Runnable is just a class that implements the 'public void run()' method. You probably mean Threads instead. On Wednesday, March 20, 2013 2:36:13 PM UTC-4, littledot wrote: Thank you all for the kind and enthusiastic responses; they were all very insightful to help my understanding of Android concurrency =D In many of these responses, many spoke of threads being *managed* for you. This term is very vague to me because in the Ref pages for AsyncTask and Loaders, there are no mentions of how Android manages worker threads during different app lifecycles. http://developer.android.com/reference/android/os/AsyncTask.html http://developer.android.com/reference/android/content/Loader.html (Ctrl-F manag *nothing*) In the Loaders API Guide page, it says it helps manage during a configuration change, but what kind of change constitutes a config change? (Maybe after resuming, coming back from a screen lock, change in orientation, etc?) http://developer.android.com/guide/components/loaders.html *Can you tell me what kind of management support AsyncTasks and Loaders have that are different from Runnables (or that Runnables lack) ?* Thank you for reading. On Wed, Mar 20, 2013 at 2:15 PM, Kristopher Micinski krismi...@gmail.comjavascript: wrote: That's what I get for not reading the documentation before speaking. :-) On Mar 20, 2013 12:59 PM, Kristopher Micinski krismi...@gmail.comjavascript: wrote: Ah that's right, forgive my comment. On Mar 20, 2013 12:03 PM, Streets Of Boston flying...@gmail.comjavascript: wrote: The onStart/onStartCommand methods of a *Service *run in the main UI thread, not a background thread, But an *IntentService*'s onHandleIntent method does run in a pooled background thread (pool has only one thread, and subsequent Intents are handled sequentially). On Wednesday, March 20, 2013 11:06:05 AM UTC-4, Kristopher Micinski wrote: Though it's worth noting that since an `IntentService` doesn't run in a background thread context. (Probably one of the biggest things beginners screw up..) Kris On Wed, Mar 20, 2013 at 9:49 AM, Streets Of Boston flying...@gmail.com wrote: There are even more ways of doing stuff in the background: IntentService :-) Runnable If you mean a Thread (running itself or a Runnable): Generally, avoid using them. But there are good use cases: When you want to setup something that runs in the background for a long time (possible during the entire lifetime of your app's process), simple Threads are very useful, e.g. set up a rendering thread for an openGL game. AsyncTasks If you want to run something in the background, that is a one-shot operation, relatively short duration and you want your UI (main UI-thread) to be notified about updates/results. If you are not worried about screen rotations/config-changes, etc., AsyncTasks work well. AsyncTasks in these situations are relatively simple to implement. Loaders, AsyncTaskLoaders Like AsyncTasks, but they are well suited to easily handle screen rotations/config-changes/etc, especially when used in conjunction with Fragments. IntentService Also good for one-shot operations with relatively short duration. Best used when you want to share these operations among other components of your or other people's
[android-developers] Re: Android Games SDK?
The list of mobile game engines. http://mobilegameengines.com/android среда, 20 марта 2013 г., 16:42:58 UTC+4 пользователь Taylor Ringo написал: Hey, Are there any game development SDK's by google, or some other established developers? I'm programming in JAVA. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: I'm missing something dumb here...
Thanks Piren - trying that now, will follow up with the results! Larry -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Concurrency: Do you use Loaders? AsyncTask? or Runnables?
I typed this on a phone, but I'm not sure why that autocomplete was appropriate.. kris On Wed, Mar 20, 2013 at 8:11 PM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Thu, Mar 21, 2013 at 3:48 AM, Kristopher Micinski krismicin...@gmail.com wrote: Loafers are built on top of asynctasks. +1 for 'loafers' :) -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Getting the problem while fetching the current location...?
Credits go to Felix Ventero from RadarDroid *if* (lm.isProviderEnabled(LocationManager.GPS_PROVIDER)) { *if* (settings.getBoolean(use_other_gps_starter, *false*)) { // use brute force GPS starter for Galaxy Spica mLocationListener = *this*; *new* Thread() { @Override *public* *void* run() { Looper.prepare(); locationThreadLooper = Looper.myLooper(); // Log.v(TAG, Requesting alternative location updates); lm.addGpsStatusListener(onGpsStatusChange); lm.requestLocationUpdates(LocationManager. GPS_PROVIDER, 0, 0, mLocationListener, locationThreadLooper); Looper.loop(); } }.start(); } *else* { // normal GPS start lm.addGpsStatusListener(onGpsStatusChange); lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, *this*); } } On Wednesday, March 20, 2013 6:54:57 PM UTC-4, lbendlin wrote: I am currently traveling with no access to the code. I also need to make sure I get the attribution right as the hack was developed by someone else. As for the why - my guess it is a botched attempt by Samsung to mess with the GPS radio power management. On Wednesday, March 20, 2013 10:42:18 AM UTC-5, Kristopher Micinski wrote: I'm interested as to why their implementation would differ from the standard API, do you have any specific reason for not putting an example on github, or would you care to share the trick..? (I'm just interested because it seems like a stupid decision on the vendor's part to break things..) Kris On Wed, Mar 20, 2013 at 11:09 AM, lbendlin lu...@bendlin.us wrote: Some Galaxy devices (especially the Spica) require an alternative way of starting up the location listener. Ping me if you want the code. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, 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] Re: I'm missing something dumb here...
On Thu, Mar 21, 2013 at 10:49 AM, Larry Meadors larry.mead...@gmail.com wrote: Thanks Piren - trying that now, will follow up with the results! That worked absolutely perfect! You rock. :-D Larry -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Concurrency: Do you use Loaders? AsyncTask? or Runnables?
I guess a higher level point is that there are some basic rules you have to follow regarding threading contexts, and these aren't specified and checked within code. E.g., you can't modify UI elements from a background thread, only the main thread can do this. Every Android app has a blessed main thread, which manages the main message queue for Android events. Code running in the main thread can create other threads, which can talk back to the main thread (e.g., by using a `Messenger`) to tell it to do something (like update the UI). Unfortunately, there's no way to cleanly specify (from within the program) the context in which a piece of code will be run. Instead, you have to know the rules yourself (they're usually specified within documentation). For example: - Lifecycle methods are typically run on the UI thread - UI callbacks are handled on the UI thread. - Threads created from runnables run in a background thread. One prime example of code does not specify its context within Android is the `Looper`. If you create a thread with the standard Android threading facilities, it won't have a message queue running under it (to handle system messages). You can create one with Looper.prepare. The rules for knowing what code runs where isn't usually extremely complicated, but trips up beginners (who don't generally think about it). The problem comes up when you need to do some sort of background processing (downloading a file, etc...). You can't run blocking operations on the UI thread, so you have to start a background thread which does the slow stuff and then update the UI. (E.g, downloading a list of feeds, and then populating a list fragment.) But once you download the information, you can't just touch the fragment and update it, because that's against the rules. (The reason is that the main thread's UI operations are not thread safe, hence only the main thread can touch the UI). As a consequence, you need to do something like send a message to the UI thread, have the UI thread handle it, and then update the UI from the UI thread. That's not necessarily complicated, but it does take a while to write and get right. Since it's a pretty common pattern in Android, AsyncTask implements this in the right way. One question you might ask is what differentiates a long running operation from a normal operation? (Or what methods are safe to call from the UI thread?) The answer is that it's sort of a toss up, but many times the answer is: network or disk based operations. Kris On Thu, Mar 21, 2013 at 11:23 AM, Streets Of Boston flyingdutc...@gmail.com wrote: Managed means that a lot of stuff is going on in the background that you don't have to worry about. E.g. You don't have to create threads. Just subclass the AsyncTask/Loader/IntentService and implement/override the correct method and your code will run in some background thread. You don't have to manage these threads, you don't have to manage sending messages from the background thread(s) to the UI thread and vice versa, etc. You don't have to manage these threads, because code is already implemented for you, e.g. code that creates Threads and stops them, etc. Just read the documentation of AsyncTask/Loader/IntentService and you'll understand a bit more. Continuation and result-message delivery. A change in configuration is any change to the current state of your phone that may destroy your current Activity and recreates a new instance of it immediately after that. Examples are screen-rotation, keyboard slide in/out, etc. When your phone changes configuration (e.g. screen rotation), your Activity and your View hierarchy is usually destroyed (old Activity) and re-created (new Activity in different orientation). If you had some background processes running before the rotation and these are still running after the rotation, you still want your UI to be notified of the background-process' final result. Loaders (used by Fragments) make that a bit easier for you (onLoadFinished callbacks when data loaded by a Loader is ready). Note that Runnables are nothing. A Runnable is just a class that implements the 'public void run()' method. You probably mean Threads instead. On Wednesday, March 20, 2013 2:36:13 PM UTC-4, littledot wrote: Thank you all for the kind and enthusiastic responses; they were all very insightful to help my understanding of Android concurrency =D In many of these responses, many spoke of threads being managed for you. This term is very vague to me because in the Ref pages for AsyncTask and Loaders, there are no mentions of how Android manages worker threads during different app lifecycles. http://developer.android.com/reference/android/os/AsyncTask.html http://developer.android.com/reference/android/content/Loader.html (Ctrl-F manag *nothing*) In the Loaders API Guide page, it says it helps manage during a configuration change, but what kind of change constitutes a config change?
[android-developers] Android 4.2.2: IndexedDB support in WebView
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] How to get other/neighbouring GSM operator's name (at my location)
Those neighboring cells are all for your current carrier and it's optional - many radios don't support it at all. I don't think there's a public API to get the available networks. R On Thu, Mar 21, 2013 at 3:37 AM, Gaurav Wable gswa...@gmail.com wrote: Dear all, I tried to get the list of all GSM networks available at my location through following code - TelephonyManager telManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); telManager.listen(gsmListener, PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); ListNeighboringCellInfo cellInfo = telManager.getNeighboringCellInfo(); StringBuilder sb =new StringBuilder(); for(NeighboringCellInfo nInfo : cellInfo) { sb.append(\ncid: + nInfo.getCid()+ lac: + nInfo.getLac()+ n/w type: + nInfo.getNetworkType()+ psc: + nInfo.getPsc()+ rssi: + nInfo.getRssi()+\n); } String disp = Connected to: +telManager.getNetworkOperatorName()+||+telManager.getSimOperatorName() +\nrssi: +strength+ || +telManager.getLine1Number()+\n\nNeighbours +cellInfo.size()+sb.toString(); This gives me the cell id, LAC, network type, PSC, RSSI of neighbouring cell. How can i get the network operator's name of neighbouring cell. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: How to get Wifi Access Point data + MTU on the Wifi interface
I was able to get the NetworkInterface by parsing the file /proc/net/wireless and get the correct interface name ( it is different on diffrent devices) and then get the network interface object then use it for the MTU so problem 2 is solved , Does anyone have an idea for problem 1? On Thursday, March 21, 2013 5:26:50 PM UTC+2, tom wrote: HI , I have an APP that get some information from the AP that i am connected to such as SSID . BSSID , IP . Name , etc ... I am trying to get this information from it: 1.When my APP is loaded it check if its connectd to WIFI or not and if SO i want to know if i am connected to 5G or 2.4G access point , i couldn't find any way to retrieve this info from WifiInfo , OR connection Manager , the only point that i can see this info is from the wifi.ScanResult : public intfrequencyhttp://developer.android.com/reference/android/net/wifi/ScanResult.html#frequencyThe frequency in MHz of the channel over which the client is communicating with the access point.My question is how can i get this info only by running my app and get it from the connected AP ? 2.What is the best way to get my WIFI interface to get the MTU ? , how do i know what is my WIFI interface in any specific HW (there are different names on each device?) Thanks, Tom -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- 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] Android 4.2.2: IndexedDB support in WebView
Hi, yes, I know, but it is not always up-to-date. This document recommends IndexedDB support in WebView, see section 3.4.1: http://static.googleusercontent.com/external_content/untrusted_dlcp/source.android.com/en//compatibility/4.2/android-4.2-cdd.pdf Stephan On Thursday, 21 March 2013 10:39:56 UTC-7, Harri Smått wrote: 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 bar...@gmail.com javascript: 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] Android Games SDK?
FWIW, AndEngine has its own book: * http://www.amazon.com/AndEngine-Android-Game-Development-Cookbook/dp/184951898X/ * I bought the Kindle version, but I haven't gotten around to reading it much yet. On Wednesday, March 20, 2013 8:09:26 AM UTC-5, Spooky wrote: On Wed, Mar 20, 2013 at 05:42:58AM -0700, Taylor Ringo wrote: Are there any game development SDK's by google, or some other established developers? I'm programming in JAVA. As to SDKs, I don't know. However, there are at least two popular game engine libs, libgdx and andengine, which is (or at least, used to be, and probably still is) based on libgdx. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running Mac OS X Lion spook...@gmail.com javascript: ICBM/Hurricane: 30.44406N 86.59909W In light of DHS's recommendation to defend yourself against armed intruders with scissors, I'm giving my deer rifle a new nickname: Scissors. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SlidingDrawer
Has Anyone used sliding drawer before? I'm using , but when i click on handler the content sliding bottom up, but i want the opposite. I like to have my handler at top and when i click on that my content sliding top down. Anyone knows? -- 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 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] Re: Retreive Special characters from sqlite files.
have you tried searching the web for sqlite unicode? On Thursday, March 21, 2013 8:45:29 AM UTC-4, Seshu wrote: Hi All, I am doing a small dictionary app and the data is in sq-lite file. when i search the keyword then corresponding words ll showing in a list view. in my database i have special characters i.e., ábaco, ábaco psicométrico when i entered keyword a then above words also i want. Any body know how to retrieve such type of special characters. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MediaMetadataRetriever extractMetadata(MediaMetadataRetriever.METADATA_KEY_TITLE) gets null
I'm trying to retrieve the MP3 tags from some music files I set up the folder and path to the file and set thet data source to extract metadata. However, I'll getting null for just about all tags. I get the proper duration and bitrate, so I know I'm getting to the right file, and I can even use DDMS to pull the file off the device and verify the tags are there using ther tools. Anything wrong with this code for pulling out tags? Is there another method that works better? File path = Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_MUSIC); MediaMetadataRetriever mmr = new MediaMetadataRetriever(); File filenm = new File(path, availableFiles[0]); mmr.setDataSource(showFileActivity.this,Uri.fromFile(filenm)); if (mmr.extractMetadata(MediaMetadataRetriever.METADATA_KEY_TITLE) == null) { songName = availableFiles[0]; // default to filename } Thanks, Marty -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SlidingDrawer
On Thu, Mar 21, 2013 at 2:50 PM, Pedro Cortez pedro.fellipe.cor...@gmail.com wrote: Anyone knows? Try this first: http://lmgtfy.com/?q=android+slidingdrawer+top+to+bottom - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To 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] MediaMetadataRetriever extractMetadata(MediaMetadataRetriever.METADATA_KEY_TITLE) gets null
I'm trying to get mp3 tags from some music files MediaMetadataRetriever mmr = new MediaMetadataRetriever(); File filenm = new File(path, availableFiles[0]); mmr.setDataSource(showFileActivity.this,Uri.fromFile(filenm)); String column = mmr.extractMetadata(MediaMetadataRetriever.METADATA_KEY_xyz): I can get DURATION and BITRATE tags, so I know I'm setting the data source on the correct file, but everything else comes back null. The other tags, such as TITLE, are present, as I can pull the file from the device and verify they are there. Is there a better way to get mp3 tags? Am I doing it wrong? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SlidingDrawer
i've already tried, i find something, it works http://blog.sephiroth.it/2011/03/29/widget-slidingdrawer-top-to-bottom/ but you helped a lot On Thu, Mar 21, 2013 at 5:33 PM, TreKing treking...@gmail.com wrote: On Thu, Mar 21, 2013 at 2:50 PM, Pedro Cortez pedro.fellipe.cor...@gmail.com wrote: Anyone knows? Try this first: http://lmgtfy.com/?q=android+slidingdrawer+top+to+bottom - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To 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. -- 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 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] SlidingDrawer
Has anyone figured out how to make it open partially - ie not snap open all the way? I have not seen an example of that and some of things that I have tried have had weird and undesirable effects. Nathan -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To 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] How to solve the issue with Dalvik compiler limitation on 64K methods?
My team and I have inherited a large Android project from another team. The whole application with all the included libraries is reported to have around 35000 methods. We now have the task to implement a new service in the app where we need to use Protocol Buffers. The problem is that the generated .jar file with all the required .proto files creates another couple of 35000 methods, that's 7 methods. And if you are not aware, the Android compiler has a limitation of 65536 methods per .dex file. We are clearly over that limit and we are getting the following error trying to compile the app: Unable to execute dex: method ID not in [0, 0x]: 65536Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0x]: 65536 Yes, the application architecture should probably be restructured but that will take time. And for now we are trying to figure out a solution to work around this problem temporarily. Any suggestions? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: Preferred coding style to reference internal Android resources?
Anyone? On Wednesday, January 11, 2012 3:16:49 PM UTC, Ricardo Amaral wrote: When referencing internal Android resources in my app (mostly in a *parent *attribute of a *style *element, haven't really tested anywhere else) I see different examples: Option 1) style name=NotificationTitle parent=@android:style/TextAppearance.StatusBar.EventContent.Title / Option 2) style name=NotificationTitle parent=android:TextAppearance.StatusBar.EventContent.Title / Both work just fine. But I'm wondering, is there a difference between them? Is one preferred over the other? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] How to solve the issue with Dalvik compiler limitation on 64K methods?
ProGuard should get rid of many of the protobuf methods. http://stackoverflow.com/questions/15508477/android-my-application-is-too-large-and-gives-unable-to-execute-dex-method-id On Thu, Mar 21, 2013 at 6:51 PM, Ricardo Amaral mas...@ricardoamaral.net wrote: My team and I have inherited a large Android project from another team. The whole application with all the included libraries is reported to have around 35000 methods. We now have the task to implement a new service in the app where we need to use Protocol Buffers. The problem is that the generated .jar file with all the required .proto files creates another couple of 35000 methods, that's 7 methods. And if you are not aware, the Android compiler has a limitation of 65536 methods per .dex file. We are clearly over that limit and we are getting the following error trying to compile the app: Unable to execute dex: method ID not in [0, 0x]: 65536 Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0x]: 65536 Yes, the application architecture should probably be restructured but that will take time. And for now we are trying to figure out a solution to work around this problem temporarily. Any suggestions? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.7 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group 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] Relates to In App Billing, is it possible to get the currency code back from a purchase?
I have searched around, Found serval places talking about it but without the answer I am looking for. My question is when a user purchased an item from google play, after the transaction is done, I would call startIntentSenderForResult and get the purchase data back. Someone on stackoverflow suggested that using Locale to get the currency code of that device. The issue regards to that is the region of that device does not nessaary mean the user is using that local current. It has to do with what he/she uses on google play. The only place I found possible is through the return data from google play. But I am having trouble finding the documentations for that part. What does IN_APP_PURCHASE_DATA include, and whether currency is part of it? Your help is much appreciated. 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 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] Re: How to get other/neighbouring GSM operator's name (at my location)
I Think... the only task remaining is USE CID TO FIND THE NAME. How can CID (Cell ID) be used to get Network operator's (Service Provider's) name. On Thursday, 21 March 2013 16:07:03 UTC+5:30, Gaurav Wable wrote: Dear all, I tried to get the list of all GSM networks available at my location through following code - TelephonyManager telManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); telManager.listen(gsmListener, PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); ListNeighboringCellInfo cellInfo = telManager.getNeighboringCellInfo(); StringBuilder sb =new StringBuilder(); for(NeighboringCellInfo nInfo : cellInfo) { sb.append(\ncid: + nInfo.getCid()+ lac: + nInfo.getLac()+ n/w type: + nInfo.getNetworkType()+ psc: + nInfo.getPsc()+ rssi: + nInfo.getRssi()+\n); } String disp = Connected to: +telManager.getNetworkOperatorName()+||+telManager.getSimOperatorName() +\nrssi: +strength+ || +telManager.getLine1Number()+\n\nNeighbours +cellInfo.size()+sb.toString(); This gives me the cell id, LAC, network type, PSC, RSSI of neighbouring cell. How can i get the network operator's name of neighbouring cell. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: Retreive Special characters from sqlite files.
Hi, Thanks for the reply. i searched in Google regarding select statement for retrieving uni-code characters but unfortunately i didnt got any query. can u post a sample query how to retrieve such type of unicode characters.. Thanks and Regards, S.Seshu. On Mar 22, 1:25 am, lbendlin l...@bendlin.us wrote: have you tried searching the web for sqlite unicode? On Thursday, March 21, 2013 8:45:29 AM UTC-4, Seshu wrote: Hi All, I am doing a small dictionary app and the data is in sq-lite file. when i search the keyword then corresponding words ll showing in a list view. in my database i have special characters i.e., ábaco, ábaco psicométrico when i entered keyword a then above words also i want. Any body know how to retrieve such type of special characters. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Translate Animation doesn't work with samsung's S3
Hi guys , i am doing translate animation where i need to move my view( which is at the center of the screen ,but not exactly ) upward so that it can fit to the container placed 9dp from top.I have figured it out that if i translate view from 0%p to 52%p it will exactly fit the in the container layout for XHDPI devices.which worked perfect on google galaxy nexus device ( 720 X 1280 ) but the same thing is not working on samsung s3.In S3 i need to move the view onlty 50%p.Please tell me how can i resolve this devices dependent issue?And Why this happens? Is it happening because of screen sizes if so , please suggest me the solution. for better understanding please have a look at : http://stackoverflow.com/questions/15546791/translateanimation-with-p-not-working-in-in-samsung-s3 -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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.