[android-developers] Re: video dimensions
I would say use Handbrake to convert them to 480x320. On Sunday, December 16, 2012 9:47:00 AM UTC-6, bob wrote: Anyone know what the preferred video size is for app videos? My videos must be too wide as there's lots of black space when I see them on play.google.com. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: layout problem
change the linearlayout to warp_content and put it in a RelativeLayout/Framelayout and use the proper centering field (centerInParent/layout_gravity) On Sunday, December 23, 2012 3:34:16 AM UTC+2, dashman wrote: I've got 3 View elements that i'd like to display at the center of the page - centered vertically and horizontally. for the life of me - i can't get it to work. i've tried layout_gravity set to center_vertical - but it does only one element. maybe i need to group the 3 elements under another layout and then do a center_vertical on that??? ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical ImageView android:id=@+id/imageView1 android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/hint / TextView android:id=@+id/editText1 android:layout_width=wrap_content android:layout_height=wrap_content android:text= /TextView Button android:id=@+id/button1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical|center_horizontal android:text=Got it! / /LinearLayout On Sunday, December 23, 2012 3:34:16 AM UTC+2, dashman wrote: I've got 3 View elements that i'd like to display at the center of the page - centered vertically and horizontally. for the life of me - i can't get it to work. i've tried layout_gravity set to center_vertical - but it does only one element. maybe i need to group the 3 elements under another layout and then do a center_vertical on that??? ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical ImageView android:id=@+id/imageView1 android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/hint / TextView android:id=@+id/editText1 android:layout_width=wrap_content android:layout_height=wrap_content android:text= /TextView Button android:id=@+id/button1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical|center_horizontal android:text=Got it! / /LinearLayout On Sunday, December 23, 2012 3:34:16 AM UTC+2, dashman wrote: I've got 3 View elements that i'd like to display at the center of the page - centered vertically and horizontally. for the life of me - i can't get it to work. i've tried layout_gravity set to center_vertical - but it does only one element. maybe i need to group the 3 elements under another layout and then do a center_vertical on that??? ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical ImageView android:id=@+id/imageView1 android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/hint / TextView android:id=@+id/editText1 android:layout_width=wrap_content android:layout_height=wrap_content android:text= /TextView Button android:id=@+id/button1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical|center_horizontal android:text=Got it! / /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
[android-developers] Re: setting the opacity of an activity
actually, they are. you also need to change the background of the Theme of the activity... add these two to your activity theme: item name=android:windowBackground@android:color/transparent/item item name=android:windowIsTranslucenttrue/item On Sunday, December 23, 2012 2:52:09 AM UTC+2, Nobu Games wrote: Activity views are not stacked on top of each other. On Saturday, December 22, 2012 6:01:45 PM UTC-6, dashman wrote: i have an activity and would like to set the alpha of the background. LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=match_parent android:background=#20ff android:orientation=vertical i'm setting the above - but i'm not seeing the underlying activity (the one that started this one). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ANR keyDispatchingTimedOut
just out of curiosity, are you accessing the internet on the UI thread here: at com.xoise.mancala.Mancala.checkUpdate(Mancala.java:186 ? On Thursday, September 16, 2010 3:32:01 AM UTC+3, Dan wrote: Hi all, I've got an application with an alarming number of users reporting force closes. I've tested multiple devices numerous times and never had this happen, so it's very difficult to test. Luckily, the new stack trace reporting features seem to give me an idea, but I am not familiar with ANR keyDispatchingTimedOut and Google doesn't seem to be much help. I can debug when I see the error just fine, but I'm not sure what information these stack traces are providing me. Is it just saying where each thread was when the crash occurred? Any help would be greatly appreciated - not just by me, but by a lot of my users! Dan Example Trace: --- DALVIK THREADS: main prio=5 tid=1 NATIVE | group=main sCount=1 dsCount=0 s=N obj=0x4001d8c0 self=0xccc8 | sysTid=27792 nice=0 sched=0/0 cgrp=default handle=-1345017816 | schedstat=( 184875489 298065182 95 ) at java.net.InetAddress.getaddrinfo(Native Method) at java.net.InetAddress.lookupHostByName(InetAddress.java:508) at java.net.InetAddress.getAllByNameImpl(InetAddress.java:280) at java.net.InetAddress.getByName(InetAddress.java:310) at java.net.InetSocketAddress.init(InetSocketAddress.java:110) at java.net.InetSocketAddress.init(InetSocketAddress.java:89) at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.init(HttpConnection.java: 62) at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionPool.get(HttpConnectionPool.java: 88) at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getHTTPConnection(HttpURLConnectionImpl.java: 927) at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java: 909) at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java: 1152) at com.xoise.mancala.Mancala.checkUpdate(Mancala.java:186) at com.xoise.mancala.Mancala.onCreate(Mancala.java:43) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2627) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) at android.app.ActivityThread.access$2300(ActivityThread.java:125) at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 2033) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at dalvik.system.NativeStart.main(Native Method) SoundPool prio=5 tid=8 NATIVE | group=main sCount=1 dsCount=0 s=N obj=0x44779df8 self=0x225b18 | sysTid=27798 nice=0 sched=0/0 cgrp=default handle=1193848 | schedstat=( 366211 18005371 4 ) at dalvik.system.NativeStart.run(Native Method) SoundPoolThread prio=5 tid=7 NATIVE | group=main sCount=1 dsCount=0 s=N obj=0x44779720 self=0x225148 | sysTid=27799 nice=0 sched=0/0 cgrp=default handle=1194040 | schedstat=( 13824466 69000242 13 ) at dalvik.system.NativeStart.run(Native Method) Binder Thread #2 prio=5 tid=6 NATIVE | group=main sCount=1 dsCount=0 s=N obj=0x447696c0 self=0x11fd68 | sysTid=27797 nice=0 sched=0/0 cgrp=default handle=1297576 | schedstat=( 1434329 7904050 6 ) at dalvik.system.NativeStart.run(Native Method) Binder Thread #1 prio=5 tid=5 NATIVE | group=main sCount=1 dsCount=0 s=N obj=0x44764488 self=0x124880 | sysTid=27796 nice=0 sched=0/0 cgrp=default handle=1198144 | schedstat=( 3723144 5554199 5 ) at dalvik.system.NativeStart.run(Native Method) Compiler daemon prio=5 tid=4 VMWAIT | group=system sCount=1 dsCount=0 s=N obj=0x447632a0 self=0x121930 | sysTid=27795 nice=0 sched=0/0 cgrp=default handle=1174160 | schedstat=( 1220703 9277344 4 ) at dalvik.system.NativeStart.run(Native Method) Signal Catcher daemon prio=5 tid=3 RUNNABLE | group=system sCount=0 dsCount=0 s=N obj=0x447631e8 self=0x11ede0 | sysTid=27794 nice=0 sched=0/0 cgrp=default handle=1208144 | schedstat=( 6805420 6011962 4 ) at dalvik.system.NativeStart.run(Native Method) HeapWorker daemon prio=5 tid=2 VMWAIT | group=system sCount=1 dsCount=0 s=N obj=0x431a7b90 self=0x11e950 |
[android-developers] Re: Gravity Center not working for Sanskrit Font
its not good that you hadn't assigned layoutParams to the view anyway... you should do that before you do any other changes, it might fix the issue. But if that won't work, I've had similar issues before, it seems like that on some specific layouts android just doesn't do alignments properly. your easier trick to avoid it (besides creating your own class that will center the text on its own) is to instead of centering the text, is to center the view. change it to wrap_content and put it in a relativelayout/framelayout and center it in them. On Saturday, December 22, 2012 9:47:46 AM UTC+2, Sandy wrote: Hello Everyone... I need your help urgently.. I am working on application where I require to use Sanskrit fonts align them in center. I am able to display sanskrit font using following code. I do specify the property for center gravity, still it is not working any more. Text is not getting proper center of the screen. Here is my code that I am using. *TextView tv = new TextView(this); * *tv.setGravity(Gravity.CENTER_HORIZONTAL**| Gravity.CENTER_VERTICAL);* *Typeface font = Typeface.createFromAsset(getAssets(), mangal.ttf); * *tv.setTypeface(font); * *tv.setText(R.string.string1);* * * Please help me to solve this issue. Waiting for your replies. Thank 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
Re: [android-developers] Re: OnStop and OnDestroy aren`t invoked after calling finish()
documentation flaw? was android changed to no longer do that? i remember a presentation done by google mentioning this exact process as part of android's normal work... but that was years ago... can you point us to documentation stating otherwise? regarding onStop and onDestroy, under some conditions they are not called, but yeah.. what they wrote is just wrong. On Saturday, December 22, 2012 9:06:45 PM UTC+2, Mark Murphy (a Commons Guy) wrote: On Sat, Dec 22, 2012 at 1:59 PM, Jonathan S xfsu...@gmail.comjavascript: wrote: onDestroy - The final call you receive before your activity is destroyed. This can happen either because the activity is finishing (someone called finish() on it, or because the system is temporarily destroying this instance of the activity to save space. You can distinguish between these two scenarios with the isFinishing() method. That is a documentation flaw. Android does not destroy this instance of the activity to save space, except by terminating the entire process. isFinishing() will distinguish multiple reasons for onPause() and onStop() being called (e.g., BACK will cause isFinishing() to return true, HOME will cause isFinishing() to return false). finish() will call onDestroy() but not onStop() False. What lifecycle methods will be called on an activity when finish() is called depends on the state of the activity at that time. If the activity has not yet been paused, onPause() will be called. If the activity has not yet been stopped, onStop() will be called. Then, onDestroy() will be called. -- 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.4 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
[android-developers] Re: Can two applications that run in the same process have different STATIC object values?
AndroidCompile wrote: I created two Android applications that share the same user Id (sharedUserId) as well as the same process. In the first app, on startup, I set a static int variable to 1 (it's default is 0). In the second app, I load (using reflection) the same class from the other app and read the static int variable. I read 0. Since both applications run on the same process, I would expect them to share the same static values, no? Can anyone tell me what the mechanism underneath does? (are they using, maybe, different apk/dex loaders and that causes this behavior?) I'm confused by your use of the terms application and process as different things. Each Android app runs in its own process. Show us a simple, self-contained, compilable example http://sscce.org/ that illustrates your issue and lets us duplicate it. I am trying to make sense of your question but cannot as you have phrased it. Load (using reflection) the same class from the other app just doesn't compute. So SSCCE - let the code say what you haven't made clear. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: video dimensions
did you just reply with a suggestion to yourself? :-O I know some people say that this list is rather barren, but that takes the cake hehe On Sunday, December 23, 2012 10:04:05 AM UTC+2, bob wrote: I would say use Handbrake to convert them to 480x320. On Sunday, December 16, 2012 9:47:00 AM UTC-6, bob wrote: Anyone know what the preferred video size is for app videos? My videos must be too wide as there's lots of black space when I see them on play.google.com. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can two applications that run in the same process have different STATIC object values?
It has to do with class loaders is Java and not processes or applications. Java language: A class is identified by its fully qualified name Java Virtual Machine: A class object is identified by its fully qualified name and defining class loader Instances of classes loaded by the same classloader will definitely see the same static variables. A classloader usually delegates to its parent classloader. If the parent has already loaded the class it will not load it again. This standard behavior can be changed by writing your own class loader. The result is that a hierarchy of classloaders will only load a class once and therefore allocate static variables and run static blocks once. However if you have multiple hierarchies of classloaders you can load the same class multiple times and have static members allocated multiple times. Two class objects defined by different class loaders are different types even if they are generated from the same class file. Instances of classes loaded by the same classloader see the same static variables. A good reference is chapter 6 of Java Reflection in Action by Forman and Forman. On Sunday, December 23, 2012 2:52:16 AM UTC-5, AndroidCompile wrote: I created two Android applications that share the same user Id (sharedUserId) as well as the same process. In the first app, on startup, I set a static int variable to 1 (it's default is 0). In the second app, I load (using reflection) the same class from the other app and read the static int variable. I read 0. Since both applications run on the same process, I would expect them to share the same static values, no? Can anyone tell me what the mechanism underneath does? (are they using, maybe, different apk/dex loaders and that causes this behavior?) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How i send data from intent service to Main activity?
Hello.I make an intent service for download data and store to a string.How i pass the data (string s inside my code) to main activity? i try this code... public class DownloadService extends IntentService { private int result = Activity.RESULT_CANCELED;public String s = ; public DownloadService() {super(DownloadService);} // Will be called asynchronously be Android@Overrideprotected void onHandleIntent(Intent intent) {Uri data = intent.getData();String urlPath = intent.getStringExtra(urlpath); InputStream stream = null;//FileOutputStream fos = null;try { URL url = new URL(urlPath); stream = url.openConnection().getInputStream(); InputStreamReader reader = new InputStreamReader(stream); //fos = new FileOutputStream(output.getPath()); int next = -1; while ((next = reader.read()) != -1) { //fos.write(next); s=s+next; } // Sucessful finished result = Activity.RESULT_OK; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How i send data from intent service to Main activity?
http://mobile.tutsplus.com/tutorials/android/android-fundamentals-intentservice-basics/ On Sunday, December 23, 2012 1:27:54 PM UTC+2, Antonis Kanaris wrote: Hello.I make an intent service for download data and store to a string.How i pass the data (string s inside my code) to main activity? i try this code... public class DownloadService extends IntentService { private int result = Activity.RESULT_CANCELED;public String s = ; public DownloadService() {super(DownloadService);} // Will be called asynchronously be Android@Overrideprotected void onHandleIntent(Intent intent) {Uri data = intent.getData();String urlPath = intent.getStringExtra(urlpath); InputStream stream = null;//FileOutputStream fos = null;try { URL url = new URL(urlPath); stream = url.openConnection().getInputStream(); InputStreamReader reader = new InputStreamReader(stream); //fos = new FileOutputStream(output.getPath()); int next = -1; while ((next = reader.read()) != -1) { //fos.write(next); s=s+next; } // Sucessful finished result = Activity.RESULT_OK; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: what does it mean? - java.lang.SecurityException: Unable to find app for caller android.app. ApplicationThreadProxy@42b3bcc0 (pid=28461) when publishing content providers
It looks like the error happens when parceling whatever data you're sending . Did you notice the read error? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OnStop and OnDestroy aren`t invoked after calling finish()
On Sun, Dec 23, 2012 at 4:08 AM, Piren gpi...@gmail.com wrote: documentation flaw? was android changed to no longer do that? I am not completely certain what aspect of my email your that is referring to. If you mean destroying activities to reclaim memory: http://commonsware.com/blog/2011/10/03/activities-not-destroyed-to-free-heap-space.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Här kan du ställa och svara på frågor om applikationsutveckling på Android: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to create a Android Launcher ?
See the Home sample app in your Android SDK installation. On Sun, Dec 23, 2012 at 2:12 AM, mohammed Nuhail nuhail...@gmail.com wrote: I want to create launcher in android ? Can any one please help me with it ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Här kan du ställa och svara på frågor om applikationsutveckling på Android: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] getting motorola droid hd to be recogmized by adb
i cannot get get motorola droid hd to be recogmized by adb. i've got motorola drivers installed and can get to see the sd card etc. but under adb devices nothing listed. 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
[android-developers] Re: getting motorola droid hd to be recogmized by adb
that's motorola razr hd. On Sunday, December 23, 2012 9:25:06 AM UTC-5, dashman wrote: i cannot get get motorola droid hd to be recogmized by adb. i've got motorola drivers installed and can get to see the sd card etc. but under adb devices nothing listed. 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
Re: [android-developers] Re: OnStop and OnDestroy aren`t invoked after calling finish()
thats really pissy... they said the exact opposite in one of their original android video presentations. they had a whole part showing how activities are being dropped if the activity stack gets too big to maintain them all. On Sunday, December 23, 2012 2:29:15 PM UTC+2, Mark Murphy (a Commons Guy) wrote: On Sun, Dec 23, 2012 at 4:08 AM, Piren gpi...@gmail.com javascript: wrote: documentation flaw? was android changed to no longer do that? I am not completely certain what aspect of my email your that is referring to. If you mean destroying activities to reclaim memory: http://commonsware.com/blog/2011/10/03/activities-not-destroyed-to-free-heap-space.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Här kan du ställa och svara på frågor om applikationsutveckling på Android: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: getting motorola droid hd to be recogmized by adb
working fine here. find the device in your OS's devices manager and make sure the drivers for it were installed. sometimes all it takes is for you to select update. On Sunday, December 23, 2012 4:33:28 PM UTC+2, dashman wrote: that's motorola razr hd. On Sunday, December 23, 2012 9:25:06 AM UTC-5, dashman wrote: i cannot get get motorola droid hd to be recogmized by adb. i've got motorola drivers installed and can get to see the sd card etc. but under adb devices nothing listed. 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
[android-developers] Re: getting motorola droid hd to be recogmized by adb
loaded the driver from here and it works https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481 this driver is 31MB - seems overkill for just the ADB interface. if there's a better more compact/less bloat solution - looking to read about it. On Sunday, December 23, 2012 10:03:04 AM UTC-5, Piren wrote: working fine here. find the device in your OS's devices manager and make sure the drivers for it were installed. sometimes all it takes is for you to select update. On Sunday, December 23, 2012 4:33:28 PM UTC+2, dashman wrote: that's motorola razr hd. On Sunday, December 23, 2012 9:25:06 AM UTC-5, dashman wrote: i cannot get get motorola droid hd to be recogmized by adb. i've got motorola drivers installed and can get to see the sd card etc. but under adb devices nothing listed. 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
[android-developers] opening the keyboard
i open a dialog and give one input field the focus - but the keyboard does not open-up automatically. how can i do that... the input field already has the focus and want user to type right away. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: getting motorola droid hd to be recogmized by adb
dashman wrote: loaded the driver from here and it works https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481 this driver is 31MB - seems overkill for just the ADB interface. Based on what? Since seems is a weasel word for I assess, please give the basis for your assessment. if there's a better more compact/less bloat solution - looking to read about it. Bloat compared to what? -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OnStop and OnDestroy aren`t invoked after calling finish()
A lot of Google's Android presentations are online. Can you provide a link or recall the time period during which that presentation was given? On Dec 23, 2012 7:00 AM, Piren gpi...@gmail.com wrote: thats really pissy... they said the exact opposite in one of their original android video presentations. they had a whole part showing how activities are being dropped if the activity stack gets too big to maintain them all. On Sunday, December 23, 2012 2:29:15 PM UTC+2, Mark Murphy (a Commons Guy) wrote: On Sun, Dec 23, 2012 at 4:08 AM, Piren gpi...@gmail.com wrote: documentation flaw? was android changed to no longer do that? I am not completely certain what aspect of my email your that is referring to. If you mean destroying activities to reclaim memory: http://commonsware.com/blog/**2011/10/03/activities-not-** destroyed-to-free-heap-space.**htmlhttp://commonsware.com/blog/2011/10/03/activities-not-destroyed-to-free-heap-space.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Här kan du ställa och svara på frågor om applikationsutveckling på Android: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] App specific licensing keys fiasco- Impact on old apps/new releases (URGENT).
Hi, My understanding was that for older apps, the licensing key would be the same as the older key for developer account. However what I am noticing is that in the new play.google.com the BASE64 encoded licensing key is different, even for the old apps. Can someone please clarify the following? 1.) Do we need to use the new licensing key for older apps in new releases? Or can we continue to use the developer account licensing key even in newer releases? Are there any other changes that we should be aware of to handle these correctly? Thanks, --MB -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android media recorder records only my voice
When I try to record my phone calls. in some device it records only my voice. here is the code: private MediaRecorder recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); recorder.setOutputFile(getFilename()); As you can see the media source is set to: MediaRecorder.AudioSource.VOICE_CALL Why it is that? Thanks in advance Kobi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OnStop and OnDestroy aren`t invoked after calling finish()
On Sat, Dec 22, 2012 at 8:06 PM, Mark Murphy mmur...@commonsware.comwrote: That is a documentation flaw. Android does not destroy this instance of the activity to save space, except by terminating the entire process. isFinishing() will distinguish multiple reasons for onPause() and onStop() being called (e.g., BACK will cause isFinishing() to return true, HOME will cause isFinishing() to return false). That's strange. What I see in an Activity that initialises some static data in its onCreate() is that occasionally, the statics are initialised already when onCreate() starts to execute. I thought this was a sign that a previous instance of the Activity (the one that initialised the static data presumably) had been destroyed but the process was not. Is there a better explanation? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 make image tiles with white text overlays like Flipboard
On Sat, Dec 22, 2012 at 2:02 PM, pawpaw17 georgefraz...@yahoo.com wrote: Can anyone suggest how do create UI elements like what is there on the Flipboard landing page? Don't assume anyone here either knows what the Flipboard landing page looks like nor is going to go look it up to help you. Describe what you're trying to achieve or post a screenshot or something if you want help. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: syncAdapterSettingsAction error
You know, I just ran into this as well, I'm using IntelliJ IDEA and API v17. I guess there might be a discrepancy in the documentation. There is even another way to define the Sync Adapter settings, which is done in the AndroidManifest.xml file. You take an Activity that defines the preferences you want to allow the user to set (so, almost certainly your Settings Activity) and you declare it to have this Intent Filter: intent-filter action android:name=android.intent.action.MANAGE_NETWORK_USAGE/ category android:name=android.intent.category.DEFAULT/ /intent-filter This tells the framework that this Activity allows the user to set network usage, not to say that the user can't set other settings there as well. I think you can see this when you go to the data usage page and select an app, like Google+ or Gmail (as good examples). The View app settings button launches the Activity that defines this Intent Filter. On Tuesday, August 28, 2012 2:48:44 AM UTC-7, Danglebot wrote: I'm hitting an issue with 'android:syncAdapterSettingsAction' (from http://developer.android.com/reference/android/content/AbstractThreadedSyncAdapter.html) where Eclipse refuses to launch the app due to the following error: error: No resource identifier found for attribute 'syncAdapterSettingsAction' in package 'android'syncadapter.xml/xxx-android/res/xmlline 2Android AAPT Problem The project is set to API v14. Documentation on this element is sketchy at best. Anyone used this action element to launch a activity? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: OnStop and OnDestroy aren`t invoked after calling finish()
latimerius wrote: Mark Murphy wrote: That is a documentation flaw. Android does not destroy this instance of the activity to save space, except by terminating the entire process. isFinishing() will distinguish multiple reasons for onPause() and onStop() being called (e.g., BACK will cause isFinishing() to return true, HOME will cause isFinishing() to return false). That's strange. What I see in an Activity that initialises some static data in its onCreate() is that occasionally, the statics are initialised already when onCreate() starts to execute. I thought this was a sign that a previous instance of the Activity (the one that initialised the static data presumably) had been destroyed but the process was not. Is there a better explanation? Instances do not initialize static members in Java. The static members are initialized as part of class initialization. Instances can set static values if they're mutable, but that's not initialization. I don't know about processes being destroyed or not, but the creation or collection of instances in a JVM is not related to the initialization or destruction of static members. If the class is not unloaded, its static variables will continue to hold whatever values they had at the point of latest assignment, or their initialized values if there hasn't been an assignment. If a class is unloaded and reloaded, or loaded under a different classloader for the first time, it will be (re-)initialized upon the first subsequent class-initialization event (such as a reference to a member or creation of an instance). So your question reduces to finding out under what circumstances the class under investigation is unloaded, loaded and initialized. Based on the answers upthread, and I'm in no position to dispute them, the class does not unload every time the Activity stops. But it sometimes does. There is only one better explanation, and that's a correct one. Yours was not. Distinguish between initialization and assignment. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] hi friends
when i am working webservices,internet is mandatory.If without internet connection i would like to connect my app,at that scenario the TOAST message will display like YOUR APP HAS REQUIRE INTERNET CONNECTION .After display the message my app will exist or it will goes to network connection settings and where i write these code. sorry for my english,please help me any one -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] XMLParsing
Hi Everybody, Can Some one tell me how to XML Parsing data from server.please help me. 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
Re: [android-developers] XMLParsing
Check this out it might help you... http://stackoverflow.com/questions/11632552/how-to-retrieve-data-from-server-in-oncreate-method-of-activity-in-android On 24 December 2012 12:21, Sadhna Upadhyay sadhna.braah...@gmail.comwrote: Hi Everybody, Can Some one tell me how to XML Parsing data from server.please help me. 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
[android-developers] How to perform multiple queries from different tables and show in single list view
Hi all, I have to query from different tables and show in single listview.How to do this? Regards, vijay.k -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] com.google.android.apps.docs crashed while sending MMS with a 600K picture attachment.
Hi, When I send MMS with a 600K picture attachment, com.google.android.app.docs process crashed, here is log information: java.lang.RuntimeException: Unable to start receiver com.google.android.apps.docs.receivers.NetworkChangeReceiver: android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. at android.app.ActivityThread.handleReceiver(ActivityThread.java:2313) at android.app.ActivityThread.access$1600(ActivityThread.java:139) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1324) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5062) 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:795) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558) at dalvik.system.NativeStart.main(Native Method) Caused by: android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. at android.database.CursorWindow.init(CursorWindow.java:104) at android.database.AbstractWindowedCursor.clearOrCreateWindow(AbstractWindowedCursor.java:198) at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:139) at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133) at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:196) at android.database.AbstractCursor.moveToFirst(AbstractCursor.java:236) at kP.a(DatabaseModelLoader.java:248) at mn.a(OperationQueueNetworkChangeListener.java:38) at com.google.android.apps.docs.receivers.NetworkChangeReceiver.a(NetworkChangeReceiver.java:50) at com.google.android.apps.docs.GuiceBroadcastReceiver.onReceive(GuiceBroadcastReceiver.java:28) at android.app.ActivityThread.handleReceiver(ActivityThread.java:2306) 12-22 01:46:28.541 5237 5237 E CursorWindow: Could not allocate CursorWindow '/data/data/com.google.android.apps.docs/databases/DocList.db' of size 2097152 due to error -12. From this errno, it seems that resource leaks occurred. Please check if there are resource leaks, thanks. Best regards, Franklin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: XMLParsing
Hi Sadhana, If you are getting huge data from your server you can use SAX Parser 1. http://www.jondev.net/articles/Android_XML_SAX_Parser_Example 2. http://www.mysamplecode.com/2011/11/android-parse-xml-file-example-using.html If you are getting small data with very few tags, you can use DOM Parser 1. http://matrix-examplecode.blogspot.in/2012/03/android-dom-parser-example.html You can find lots of similar example if you really search :) Regards, Sourav On Monday, 24 December 2012 12:21:13 UTC+5:30, Sadhna Upadhyay wrote: Hi Everybody, Can Some one tell me how to XML Parsing data from server.please help me. 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
[android-developers] Re: How to perform multiple queries from different tables and show in single list view
Vijay Krishnan wrote: Hi all, I have to query from different tables and show in single listview.How to do this? Regards, vijay.k http://stackoverflow.com/questions/3235746/listview-using-two-cursoradapters/7776252#7776252 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
[android-developers] Re: layout problem
Just mention android:gravity=center to your Root LinearLayout On Sunday, 23 December 2012 07:04:16 UTC+5:30, dashman wrote: I've got 3 View elements that i'd like to display at the center of the page - centered vertically and horizontally. for the life of me - i can't get it to work. i've tried layout_gravity set to center_vertical - but it does only one element. maybe i need to group the 3 elements under another layout and then do a center_vertical on that??? ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical ImageView android:id=@+id/imageView1 android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/hint / TextView android:id=@+id/editText1 android:layout_width=wrap_content android:layout_height=wrap_content android:text= /TextView Button android:id=@+id/button1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical|center_horizontal android:text=Got it! / /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
[android-developers] Re: layout problem
Just mention android:gravity=center to your Root 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
[android-developers] Re: Android media recorder records only my voice
I don't know, but what happens if you use VOICE_DOWNLINK on those devices? On Sunday, December 23, 2012 2:09:15 PM UTC-6, Kobi wrote: When I try to record my phone calls. in some device it records only my voice. here is the code: private MediaRecorder recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); recorder.setOutputFile(getFilename()); As you can see the media source is set to: MediaRecorder.AudioSource.VOICE_CALL Why it is that? Thanks in advance Kobi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en