[android-developers] Re: Scrolling problem in Adapter View
hello, the following is code i am using for animation. public void provideAnimation(int scrolledDistance) { TranslateAnimation _tAnim = new TranslateAnimation(0, 0, scrolledDistance, 0); _tAnim.setInterpolator(new DecelerateInterpolator()); _tAnim.setDuration(1000); startAnimation(_tAnim); invalidate(); //return true; } where scrolledDistance is distnace which user scrolls. On Feb 7, 3:24 pm, Honest honestsucc...@gmail.com wrote: hi, Thanks for your reply. actually as i told i wanted rubber or bounce back effect. So i derived AdapterView class but the problem is there is no scroll bar. and another problem is In my xml layout file there is some ImageButton and some other control at up and botom part. and in between there is List.(Class Which Extends Adapter View). But when i scroll it at upper side and by animation when it bounce back it draw element of that list on that image button and it overlaps that upper part(which has other control like ImagetButton and EditText) for some time till animation runs. Let me know if you can not understand any thing. On Feb 7, 1:50 pm, TreKing treking...@gmail.com wrote: On Sun, Feb 6, 2011 at 8:23 PM, Honest honestsucc...@gmail.com wrote: I am using AdapterView to have Cutom List. But my Xml layout not only contains that List. It also have some other elements like TextBox, labels, ImageButton at the top and bottom. so when i scroll it up and animation starts it also draw elements on that Top Part(Which contains ImageButton and other stuff). so can some one tell me how can i remove it ? another issue is it do not have scrool bar. can some one tell me how can i add scroll bar in it ? I don't think your problem is very clear. Try explaining in a bit more detail and, if possible, include screenshots that illustrate the problem. That really helps. - 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
Re: [android-developers] Re: Honeycomb SDK
I don't know why it says that about minSdkVersion. The value of minSdkVersion doesn't matter; all that matters is that targetSdkVersion=Honeycomb. (Or 11 in the final API.) On Sun, Feb 6, 2011 at 11:54 PM, Marcin Orlowski webnet.andr...@gmail.comwrote: On 7 February 2011 00:57, midtoad stewart.midwin...@gmail.com wrote: You will then get the Honeycomb Holograph them and your app will have an updated look and feel. http://developer.android.com/sdk/preview/index.html Android 3.0 offers an updated set of UI widgets that are redesigned for use on larger screens such as tablets and incorporate the new holographic theme. Your existing application can inherit the new design simply by setting the uses-sdk element's android:targetSdkVersion attribute to Honeycomb. If you do not update the android:targetSdkVersion attribute and the android:minSdkVersion is set to 9 or lower, then your application uses the widget designs from Android 2.3 and does not inherit the holographic theme. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] install font with apk
How are you all? I have tried to develop soft-keyboard for Android phone. The soft- keyboard is for Ethiopic script (Amharic language, Ethiopian language). The keyboard works well both in emulator and actual device. But I would like to keep the Amharic font file within the apk file so that the font will be installed together with the soft-keyboard apk file. Is there any means that I can install the font file together with the apk file? Thank you in advance andu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Honeycomb SDK
Yes I hope they will fix that for the final Honeycomb SDK, because currently I need to recompile for either uses-sdk android:minSdkVersion=4/ uses-sdk android:targetSdkVersion=Honeycomb/ giving me the conventional (Android 2.3-) phone appearance in the Honeycomb emulator, or uses-sdk android:minSdkVersion=Honeycomb/ uses-sdk android:targetSdkVersion=Honeycomb/ for the holographic appearance in the Honeycomb emulator. What I want of course is to have one APK that is backward compatible to (in my case) minSdkVersion=4 and that shows the holographic UI on tablets or phones that run Honeycomb. I do not need to change anything in my code but these manifest changes to get there, so it is very inconvenient to forbid uses-sdk android:minSdkVersion=4/uses-sdk android:targetSdkVersion=Honeycomb/ when aiming to get the holographic appearance on Honeycomb devices and the conventional Android 2.3- UI on non-Honeycomb devices. On Feb 7, 8:54 am, Marcin Orlowski webnet.andr...@gmail.com wrote: On 7 February 2011 00:57, midtoad stewart.midwin...@gmail.com wrote: You will then get the Honeycomb Holograph them and your app will have an updated look and feel. http://developer.android.com/sdk/preview/index.html Android 3.0 offers an updated set of UI widgets that are redesigned for use on larger screens such as tablets and incorporate the new holographic theme. Your existing application can inherit the new design simply by setting the uses-sdk element's android:targetSdkVersion attribute to Honeycomb. If you do not update the android:targetSdkVersion attribute and the android:minSdkVersion is set to 9 or lower, then your application uses the widget designs from Android 2.3 and does not inherit the holographic theme. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Where to report app update problems?
07.02.2011 7:24, Hari Edo пишет: The question of the thread still stands: where do you post this kind of problem with the market, officially? I posted a link two messages back, here it is again: http://www.google.com/support/androidmarket/bin/request.py?contact_type=bugs Also TreKing frequently posts a link to report Market problems, maybe it's the same one. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] install font with apk
On 7 February 2011 09:01, andu alemf...@yahoo.com wrote: Is there any means that I can install the font file together with the apk file? You can put font file in assets/ folder so your app will be able to use it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Network I/O in background thread
07.02.2011 9:53, Amit пишет: As Kostya wrote: I should be considering that service may be killed in extreme condition if OS think. And not only under extreme conditions. Recent versions of Android are more proactive about removing unneeded background services, AFAIK that's where you see No longer want service name in the log cat. You can tell the framework that your service is doing something important and should not be killed by calling startForeground (and stopForeground when done). Those are Android 2.0 API methods. This is exalained here: http://android-developers.blogspot.com/2010/02/service-api-changes-starting-with.html Another option is to make it so that your service can handle being killed and resume what it was doing when restarted. -- Kostya -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] imageRes
Hi, ActivityInfo class contains an icon attribute which is a resource id. Can my appwidget use this resource id to display this icon? (ResourceViews.setImageViewResource) Or I have to load the icon and call setImageViewBitmap? The problem with this solution that it puts more data to the transaction. Thanks, Tamás -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] imageRes
If that's your own application, sure. If it's not, I don't see how the remote side of RemoteViews would know to load some resources from your application and the icon from another package. -- Kostya 07.02.2011 11:44, b_t пишет: Hi, ActivityInfo class contains an icon attribute which is a resource id. Can my appwidget use this resource id to display this icon? (ResourceViews.setImageViewResource) Or I have to load the icon and call setImageViewBitmap? The problem with this solution that it puts more data to the transaction. Thanks, Tamás -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Best practices for automatic retrying of AsyncTask
If that's really necessary, I would think you could add an abstraction layer between Android's AsyncTask and your base class: class NetWorker { // does http work } class NetWorkerFoo extends NetWorker { } class NetWorkerBar extends NetWorker { } class NetAsyncTask { execute(NetWorker worker); } In this design, AsyncTask is one-shot, but NetWorker objects can be reused. All the common code you referred to below is in NetWorker, not in NetAsyncTask, so you can just take an existing (failed) NetWorker and give it to a new async task. BTW, the Harmony HTTP API has its own retry logic - you might want to take a look, see if that alone would serve your needs. -- Kostya 07.02.2011 8:22, Dimitris пишет: Yes it is necessary. The base abstract class provides all the plumbing for posting an HTTP request and handling exceptions while allowing subclasses to do their actual work. I would hate for each asynctask to write network error handling. The problem is, I cant find a proper way to reinstantiate a task and execute it without reflection. Thanks for the time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: BufferPercentage never reaches 100 %
Anyone? On 27 jan, 11:04, Johannes De Smedt johannes.desm...@gmail.com wrote: Hello, I have a video app that plays videos from urls. I have a MediaController that displays the progress of the playback and of the buffering. I have tested my app on different devices (HTC Magic - android 1.5 // Samsung apollo - android 2.1update1) and on it works fine. However when I test my app on the HTC desire (android 2.2) the bufferpercentage never reaches 100. My MediaPlayer.OnBufferingUpdateListener onBufferingUpdate (MediaPlayer mp, int percent) never gets called with percent = 100. It stops around 95/97 and when the video reaches the end, it sometimes gets updated to 99 percent, but almost never to 100. It even occurs that the playback progress is bigger then the buffering progress... Also on the Desire the bufferingPercent value sometimes decreases: when it is stuck at e.g. 93% it occurs that it decreases to 92% and back... What could be the cause of these weird things? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Scheduling ideas
More issues with this. I'm testing on a Nexus and Hero. It all runs fine on the Nexus, but on the Hero after I schedule the alarm, sometimes the process seems to die: 02-07 09:00:36.664: INFO/ActivityManager(98): Process com.my.app.activity:remote (pid 1813) has died. And that's it, no other log messages. So my alarm fails, and I never know about it until I find it didn't run the next morning. Any ideas why this would happen, or ways to stop this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android os debug terminal open text file
cat as in: $cd /sdcard/directory/name $cat file_name.txt You can also pull it to the host computer with: C:\ adb pull /sdcard/directory/name/file_name.txt and then use your favorite text editor to look at it. BTW, whenever you type a command into adb shell and get Permission denied, it really means Command does not exist. -- Kostya 07.02.2011 8:13, jeremygwa пишет: hi, in this android os developer tools, on the emulator, how do i read the contents of a text file on the sdcard, from the terminal command line. i have tried: pico textfile.txt type textfile.txt sudo pico textfile.txt - permission denied -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android beginner
Oh it's simple! - Write your application using Eclipse or any IDE that you prefer - Set the version number to 2 in the ApplicationManifest.xml - Export application as a signed apk - ??? - Profit! Seriously, man find a class or a tutor and pay him/them to teach you things. If you are really smart, then http://developer.android.com/intl/de/guide/index.html will be enough. On 7 фев, 06:19, subhashini alaguchokku subhashini.andr...@gmail.com wrote: Hi! How to build my android application(version2). On Sat, Feb 5, 2011 at 10:30 PM, TreKing treking...@gmail.com wrote: On Sat, Feb 5, 2011 at 1:40 AM, subhashini alaguchokku subhashini.andr...@gmail.com wrote: Pls send me this link I have faith that, if you have been able to build an Android application and successfully upload it to the Android Market, you have the technical prowess required to navigate through the documentation to find the information you seek. Regardless this will be a worthwhile endeavor as knowing your way around the documentation will benefit you immensely. Good luck. - 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Scheduling ideas
Neil, A background service may be stopped by Android at its discretion. The beauty of AlarmManager is that it doesn't matter - when an alarm fires, the component that the pending intent is intended for will be started as necessary. The alarms are not kept in the application's process, they are kept inside an Android component. You can verify your alarms by running dumpsys alarm (singular) in the adb shell. Having said that, there may be a bug in your code. Since your code, AFAIK, schedules one alarm at a time, there may be a situation where the old alarm already fired (and forgotten), and the new one isn't scheduled. You should schedule the new alarm as soon as you receive the old one. Ideally, right inside onReceive for the old alarm's broadcast action, because onReceive is guaranteed to not be interrupted. -- Kostya 07.02.2011 12:21, Neilz пишет: More issues with this. I'm testing on a Nexus and Hero. It all runs fine on the Nexus, but on the Hero after I schedule the alarm, sometimes the process seems to die: 02-07 09:00:36.664: INFO/ActivityManager(98): Process com.my.app.activity:remote (pid 1813) has died. And that's it, no other log messages. So my alarm fails, and I never know about it until I find it didn't run the next morning. Any ideas why this would happen, or ways to stop this? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Copy protection
Want to be rather safe? Encrypt the hell out of everything with generated keys. Require always online state(like Ubisoft's DRM). But the easiest thing is to make the thing server based. If they can't get to your code physically then they can't pirate it. See WoW as an example of a game that has no DRM whatsoever. Remember that if people get the code on their systems, there will be someone to crack it. Even if it's hardware encrypted and in a protected chip(see PS3 hacking example). On 6 фев, 08:20, mmtbb mm...@hotmail.com wrote: LVL is so easily bypassed that it doesnt seem to make any sense to use it as it stands. I hope google creates a fix to this soon. On Jan 18, 7:03 pm, TreKing treking...@gmail.com wrote: On Mon, Jan 17, 2011 at 10:03 AM, mmtbb mm...@hotmail.com wrote: Have there been any improvements to this lately? If my improvements you mean did Google provide more code / tutorials / examples / infrastructure for the LVL? Then no, I don't think so. If not, what are my options to protect my app on the Market? 1 - Use the LVL and do a good job obfuscating. 2 - Make it suck so much no one thinks twice about pirating it. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Copy protection
On 7 February 2011 10:53, JAlexoid (Aleksandr Panzin) jalex...@gmail.com wrote: Remember that if people get the code on their systems, there will be someone to crack it. Even if it's hardware encrypted and in a protected chip(see PS3 hacking example). Side note: PS3 is example of lame implementation not lame design. They would survive but basic mistakes at low levels wrecked the whole thing badly. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Task killer kills my application but android restarts my service, which i dont want
Hello All, I have service running in background and notification is shown in GUI. When i do force close from application=manage application, my service, application and icon in notification bar goes off. But when i kill my application via TaskKiller application, my service stopped and then Android OS restarts service(i can see from logcat) and icon in my notification area remains. while my background work (of downloading image) is closed. I return START_STICKY (also tried with STArT_NOT_STICKY flag) from OnStartCommand(), but no luck. My GUI activity, binds to service via Context.BIND_AUTO_CREATE, is it because of that flag? What should i do if i want my application,service and notification area icon to go off, when application is killed by task killer. I have searched through Thanks in advance. JRC -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Programatically assigning String value as 'Id'
Hi All, I want to know, Is there any way to assign string value as ID for the component programatically. I am doing something like this: TextView textView = new TextView(this) ; textView.setText(hello) ; textView.setId(10) ; But need some method which assigns my string value as ID... Like textView.setId( someMethod(textViewId) ) ; Please Reply... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Programatically assigning String value as 'Id'
http://developer.android.com/reference/android/content/res/Resources.html#getIdentifier(java.lang.String, java.lang.String, java.lang.String) 07.02.2011 13:34, Jawwad Farooq пишет: Hi All, I want to know, Is there any way to assign string value as ID for the component programatically. I am doing something like this: TextView textView = new TextView(this) ; textView.setText(hello) ; textView.setId(10) ; But need some method which assigns my string value as ID... Like textView.setId( someMethod(textViewId) ) ; Please Reply... -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Bluetooth socket connection issue
Hi all, I use a hardware bluetooth device and I need to connect it to my mobile phone. I've follow the instruction on developer.android.com to set up a bluetooth connection but I still have a problem. When I'm connecting to the Bluetooth Socket with bluetoothSocket.connect() I don't catch any exception so according to the docs, that mean I'm connected to my device. The problem is I'm not... Here is my code : private class AcceptThread extends Thread { // The local server socket private final BluetoothServerSocket mmServerSocket; public AcceptThread() { BluetoothServerSocket tmp = null; // Create a new listening server socket try { tmp = mAdapter .listenUsingRfcommWithServiceRecord(NAME, MY_UUID); } catch (IOException e) { Log.e(TAG, listen() failed, e); } mmServerSocket = tmp; } public void run() { if (D) Log.d(TAG, BEGIN mAcceptThread + this); setName(AcceptThread); BluetoothSocket socket = null; // Listen to the server socket if we're not connected while (mState != STATE_CONNECTED) { try { // This is a blocking call and will only return on a // successful connection or an exception socket = mmServerSocket.accept(); } catch (IOException e) { Log.e(TAG, accept() failed, e); break; } // If a connection was accepted if (socket != null) { synchronized (BluetoothConnectionService.this) { switch (mState) { case STATE_LISTEN: case STATE_CONNECTING: // Situation normal. Start the connected thread. connected(socket, socket.getRemoteDevice()); break; case STATE_NONE: case STATE_CONNECTED: // Either not ready or already connected. Terminate // new socket. try { socket.close(); } catch (IOException e) { Log.e(TAG, Could not close unwanted socket, e); } break; } } } } if (D) Log.i(TAG, END mAcceptThread); } public void cancel() { if (D) Log.d(TAG, cancel + this); try { if (mmServerSocket != null) mmServerSocket.close(); } catch (Exception e) { Log.e(TAG, close() of server failed, e); } } } /** * This thread runs while attempting to make an outgoing connection with a * device. It runs straight through; the connection either succeeds or * fails. */ private class ConnectThread extends Thread { private final BluetoothSocket mmSocket; private final BluetoothDevice mmDevice; public ConnectThread(BluetoothDevice device) { mmDevice = device; BluetoothSocket connection = null; // Get a BluetoothSocket for a connection with the // given BluetoothDevice try { // device.createRfcommSocketToServiceRecord(MY_UUID); Method m = device.getClass().getMethod(createRfcommSocket, new Class[] { int.class }); connection = (BluetoothSocket) m.invoke(device, 1); Utils.pause(100); } catch (Exception e) { Log.e(TAG, create() failed, e); } mmSocket = connection; } public void run() { Log.i(TAG, BEGIN mConnectThread); setName(ConnectThread); if (mmSocket != null) { // Always cancel discovery because it will slow down a // connection mAdapter.cancelDiscovery(); // Make a connection to the BluetoothSocket try { // This is a blocking call and will only return on a // successful connection or an exception mmSocket.connect(); } catch (Exception e1) { Log.e(TAG, connect failed, e1); connectionFailed(); // Close the socket try { mmSocket.close(); } catch (IOException e2) { Log.e(TAG, unable to
[android-developers] Library packaging best practices
What is the recommended way of distributing a reusable library (i.e., jar file, assets, documentation, sample code)? One possibility I'm considering is an sdk extra (the same way for instance the google market_licensing library is made available in SDK manager. Is this a supported mechanism or should this not be used? Are there any other, possibly better, alternatives besides distributing a zipped library project? Regards, Pepijn -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bluetooth socket connection issue
please paste the logs. And what bluetooth h/w are you trying to connect to your mobile device Regards, Ajith On Mon, Feb 7, 2011 at 4:21 PM, Laurent Lugon laurent.lu...@secu4.comwrote: Hi all, I use a hardware bluetooth device and I need to connect it to my mobile phone. I've follow the instruction on developer.android.com to set up a bluetooth connection but I still have a problem. When I'm connecting to the Bluetooth Socket with bluetoothSocket.connect() I don't catch any exception so according to the docs, that mean I'm connected to my device. The problem is I'm not... Here is my code : private class AcceptThread extends Thread { // The local server socket private final BluetoothServerSocket mmServerSocket; public AcceptThread() { BluetoothServerSocket tmp = null; // Create a new listening server socket try { tmp = mAdapter .listenUsingRfcommWithServiceRecord(NAME, MY_UUID); } catch (IOException e) { Log.e(TAG, listen() failed, e); } mmServerSocket = tmp; } public void run() { if (D) Log.d(TAG, BEGIN mAcceptThread + this); setName(AcceptThread); BluetoothSocket socket = null; // Listen to the server socket if we're not connected while (mState != STATE_CONNECTED) { try { // This is a blocking call and will only return on a // successful connection or an exception socket = mmServerSocket.accept(); } catch (IOException e) { Log.e(TAG, accept() failed, e); break; } // If a connection was accepted if (socket != null) { synchronized (BluetoothConnectionService.this) { switch (mState) { case STATE_LISTEN: case STATE_CONNECTING: // Situation normal. Start the connected thread. connected(socket, socket.getRemoteDevice()); break; case STATE_NONE: case STATE_CONNECTED: // Either not ready or already connected. Terminate // new socket. try { socket.close(); } catch (IOException e) { Log.e(TAG, Could not close unwanted socket, e); } break; } } } } if (D) Log.i(TAG, END mAcceptThread); } public void cancel() { if (D) Log.d(TAG, cancel + this); try { if (mmServerSocket != null) mmServerSocket.close(); } catch (Exception e) { Log.e(TAG, close() of server failed, e); } } } /** * This thread runs while attempting to make an outgoing connection with a * device. It runs straight through; the connection either succeeds or * fails. */ private class ConnectThread extends Thread { private final BluetoothSocket mmSocket; private final BluetoothDevice mmDevice; public ConnectThread(BluetoothDevice device) { mmDevice = device; BluetoothSocket connection = null; // Get a BluetoothSocket for a connection with the // given BluetoothDevice try { // device.createRfcommSocketToServiceRecord(MY_UUID); Method m = device.getClass().getMethod(createRfcommSocket, new Class[] { int.class }); connection = (BluetoothSocket) m.invoke(device, 1); Utils.pause(100); } catch (Exception e) { Log.e(TAG, create() failed, e); } mmSocket = connection; } public void run() { Log.i(TAG, BEGIN mConnectThread); setName(ConnectThread); if (mmSocket != null) { // Always cancel discovery because it will slow down a // connection mAdapter.cancelDiscovery(); // Make a connection to the BluetoothSocket try { // This is a blocking call and will only return on a // successful connection or an exception mmSocket.connect(); } catch (Exception e1) {
Re: [android-developers] Re: Android beginner
I have not uploaded an app to Android market yet. But am in a circumstance that requires me to upload a version(2) of the existing app. So request to guide me as to how to create a SIGNED APK. As this seems to be the main hurdle. We have done Export unsigned app after that have no idea how to proceed We have done signing using debug mode but for Release have no idea. So request help regarding the above. On Mon, Feb 7, 2011 at 3:11 PM, JAlexoid (Aleksandr Panzin) jalex...@gmail.com wrote: Oh it's simple! - Write your application using Eclipse or any IDE that you prefer - Set the version number to 2 in the ApplicationManifest.xml - Export application as a signed apk - ??? - Profit! Seriously, man find a class or a tutor and pay him/them to teach you things. If you are really smart, then http://developer.android.com/intl/de/guide/index.html will be enough. On 7 фев, 06:19, subhashini alaguchokku subhashini.andr...@gmail.com wrote: Hi! How to build my android application(version2). On Sat, Feb 5, 2011 at 10:30 PM, TreKing treking...@gmail.com wrote: On Sat, Feb 5, 2011 at 1:40 AM, subhashini alaguchokku subhashini.andr...@gmail.com wrote: Pls send me this link I have faith that, if you have been able to build an Android application and successfully upload it to the Android Market, you have the technical prowess required to navigate through the documentation to find the information you seek. Regardless this will be a worthwhile endeavor as knowing your way around the documentation will benefit you immensely. Good luck. - 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: URL query string bug in SMS messages
I've tried to include a CR/LF after the url, and also just the url as a stand alone for good measure. The results can be found here: http://twitpic.com/3xdhde For a obvious comparison the same looks as following on iOS http://twitpic.com/3xdi8i Sure, I recognize that it is easily worked around but, still I see it as a bug in android's link interpretation. //Jan On Feb 5, 6:09 pm, kernelpanic j.m.roya...@gmail.com wrote: yeah that's true As Mark said, if you do the same test with %20 - it does include the ? sc= portion in the link may need a CR/LF in there to force the separation between the link and the text On Feb 5, 9:46 am, Kostya Vasilyev kmans...@gmail.com wrote: Not sure if there are any spaces. The SMS content is: http://www.site.com?param=valueTest2; It's not clear whether the Test 2 is part of the URL. I would think not, because spaces in URLs are always encoded as %20 or +. I suspect the issue is that the ?param=value is not highlighted, just the http://www.site.com;. Here is that link again: http://twitpic.com/3vpnzx -- Kostya 05.02.2011 18:30, Mark Murphy пишет: On Sat, Feb 5, 2011 at 10:25 AM, kernelpanicj.m.roya...@gmail.com wrote: I do question the validity of the spaces in the query and suspect that is the issue here. :: smacks forehead :: Yeah, I never noticed that. Looking at the regex that Linkify uses, it will not honor spaces in query parameters, but it should honor %20 values. -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Postscript and PCL Problem
Hi All, I am new in Android development and I am facing a problem, I am trying to print some pdf and images file from my phone and for this I am using Postscript but I am wondered that what is the correct way to create PCL and Postscript for PDF and Images. Sorry for my poor english. Regards, Daniel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android beginner
On 7 February 2011 12:06, subhashini alaguchokku subhashini.andr...@gmail.com wrote: I have not uploaded an app to Android market yet. But am in a circumstance that requires me to upload a version(2) of the existing app. adjust versionCode in your app's manifest file to 2 and versionName to 2.0 and you are done. We have done Export unsigned app after that have no idea how to proceed We have done signing using debug mode but for Release have no idea. Ue RMB (over project name) - Android Tools - Export signed application package -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Library packaging best practices
On 7 February 2011 12:00, Pepijn Van Eeckhoudt pep...@vaneeckhoudt.net wrote: What is the recommended way of distributing a reusable library (i.e., jar file, assets, documentation, sample code)? use sourceforge, google code or any service of that kind (or own website) One possibility I'm considering is an sdk extra (the same way for instance the google market_licensing library is made available in SDK manager. Is this a supported mechanism or should this not be used? I am not sure if you can add own stuff there w/o being somehow signed with google in some form. Are there any other, possibly better, alternatives besides distributing a zipped library project? you could try to create own repo available via Eclipse's package installer, but I think plain website would do well at start -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Programatically assigning String value as 'Id'
But in my case that resource does not exist. I have to dynamically create and assign ID to that. Kostya Vasilyev wrote: http://developer.android.com/reference/android/content/res/Resources.html#getIdentifier(java.lang.String, java.lang.String, java.lang.String) 07.02.2011 13:34, Jawwad Farooq пишет: Hi All, I want to know, Is there any way to assign string value as ID for the component programatically. I am doing something like this: TextView textView = new TextView(this) ; textView.setText(hello) ; textView.setId(10) ; But need some method which assigns my string value as ID... Like textView.setId( someMethod(textViewId) ) ; Please Reply... -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: imageRes
No, I would like to display icons of other installed applications. I thought that it isn't possible because a resource id is unique only in a project not in the whole system, am I right? Just I don't understand what the ActivityInfo.icon or ResolveInfo.icon is good for if I can't use that value to display the app icon. On Feb 7, 9:49 am, Kostya Vasilyev kmans...@gmail.com wrote: If that's your own application, sure. If it's not, I don't see how the remote side of RemoteViews would know to load some resources from your application and the icon from another package. -- Kostya 07.02.2011 11:44, b_t пишет: Hi, ActivityInfo class contains an icon attribute which is a resource id. Can my appwidget use this resource id to display this icon? (ResourceViews.setImageViewResource) Or I have to load the icon and call setImageViewBitmap? The problem with this solution that it puts more data to the transaction. Thanks, Tamás -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] gesture Color change
Hello sir i have done a code for gesture color change. GestureOverlayView overlay = (GestureOverlayView) findViewById(R.id.gestures_overlay); overlay.setGestureColor(Color.BLACK); but it works after config change means change after orientaion, initially shows yellow . Please help me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: imageRes
In a widget scenario, you'd need to to push updates that contain references to your own resources as well as the icon from another package. And that's where I think there is a problem using the resId in a RemoteViews, since each package has its own resource IDs. Have you tried using a resource Uri? http://developer.android.com/reference/android/content/ContentResolver.html#SCHEME_ANDROID_RESOURCE Something like this: android.resource://the.other.apps.package.name/drawable/id_value ( not sure if you need the drawable in the above ) And then using it with RemoteViews.setImageViewUri. -- Kostya 07.02.2011 14:32, b_t пишет: No, I would like to display icons of other installed applications. I thought that it isn't possible because a resource id is unique only in a project not in the whole system, am I right? Just I don't understand what the ActivityInfo.icon or ResolveInfo.icon is good for if I can't use that value to display the app icon. On Feb 7, 9:49 am, Kostya Vasilyevkmans...@gmail.com wrote: If that's your own application, sure. If it's not, I don't see how the remote side of RemoteViews would know to load some resources from your application and the icon from another package. -- Kostya 07.02.2011 11:44, b_t пишет: Hi, ActivityInfo class contains an icon attribute which is a resource id. Can my appwidget use this resource id to display this icon? (ResourceViews.setImageViewResource) Or I have to load the icon and call setImageViewBitmap? The problem with this solution that it puts more data to the transaction. Thanks, Tamás -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to dynamically add Image view inside a for loop
I have the code int resID = getResources().getIdentifier( String.valueOf(orginal[0]), drawable, getPackageName()); imageview.setImageResource(resID); Orginial[] is an character array and i wanted to print the image view inside a for loop with each arraycharacter corresponding to an image in the Drawable folder Please Help me to get rid of his code -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: app causes reboot on DroidX after activity gets destroyed - anybody having similar issues?
Possibly found the culprit. In several activities, I call this: setContentView(R.layout.main); switch (Preferences.getPrefOrientation(this, Screen.MAIN)) { case 0: if (1.equals(Settings.System.getString(getContentResolver(), Settings.System.ACCELEROMETER_ROTATION))) setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR); break; case 1: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); break; case 2: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); break; Basically this fixes the screen orientation to portrait or landscape, or tells Android to use the rotation sensor again to determine the screen orientation. This code works fine except on the DroidX. Even on the DroidX fixed orientation works fine (protrait only, landscape only) but if I set the orientation to be tied to the sensor, resuming such an activity and then changing the sensor orientation causes the reboot. My app works fine if I take this single line of code out. Of course, this is completely unsatisfying. The line itself doesn't cause an immediate blowup but it seems to be the cause for blowups later. Maybe this is a firmware bug. Maybe it is something entirely different and all this is just circumstantial. I don't have the resources to spend more time on this issue now but if anybody has an idea on how to make sense of this, I would love to learn. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: imageRes
Oh, and there is also this: http://developer.android.com/reference/android/content/pm/PackageItemInfo.html#loadIcon(android.content.pm.PackageManager) but then you'd need to push the icon into the widget as a drawable, which is not very efficient across process boundaries, but it just depends on how often you'll be updating your widget. -- Kostya 07.02.2011 14:32, b_t пишет: No, I would like to display icons of other installed applications. I thought that it isn't possible because a resource id is unique only in a project not in the whole system, am I right? Just I don't understand what the ActivityInfo.icon or ResolveInfo.icon is good for if I can't use that value to display the app icon. On Feb 7, 9:49 am, Kostya Vasilyevkmans...@gmail.com wrote: If that's your own application, sure. If it's not, I don't see how the remote side of RemoteViews would know to load some resources from your application and the icon from another package. -- Kostya 07.02.2011 11:44, b_t пишет: Hi, ActivityInfo class contains an icon attribute which is a resource id. Can my appwidget use this resource id to display this icon? (ResourceViews.setImageViewResource) Or I have to load the icon and call setImageViewBitmap? The problem with this solution that it puts more data to the transaction. Thanks, Tamás -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Online tutorials - sites required- payment/non-payment
Hai! Can somebody tell me some online tutorials which require payment/non-payment which teach how to upload new version of existing app to android market We have .apk file, need to know how to create build for Release using this .apk file. Thanks, A.Subha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Install the Apk
Hi, I am new in android. I need to create the shortcut icon for .apk in my desktop while installing my apk in mobile. It is possible? May i know wht the command for that? Thank you for your help ! Thanks Rajesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Online tutorials - sites required- payment/non-payment
Here is a non-payment one: http://developer.android.com/guide/publishing/publishing.html Specifically regarding signing: http://developer.android.com/guide/publishing/app-signing.html -- Kostya 07.02.2011 15:03, subhashini alaguchokku ?: Hai! Can somebody tell me some online tutorials which require payment/non-payment which teach how to upload new version of existing app to android market We have .apk file, need to know how to create build for Release using this .apk file. Thanks, A.Subha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Programatically assigning String value as 'Id'
On 7 February 2011 12:31, Jawwad Farooq jawwad.far...@gmail.com wrote: But in my case that resource does not exist. I have to dynamically create and assign ID to that. Doubt you can with system api. But if you really need such feature, wrap resouce access with own class - then you will be able to create own resources on-the-go) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 the Android Java source?
Can anybody tell me how this works. I use Ganymede. Updated eclipse with above mentioned URL. While debugging my code still says Source Not Found. Do i need to specify any path after updating my eclipse for this. Thanks in advance. VARUN On Dec 28 2010, 9:42 pm, John Lussmyer johnlussm...@gmail.com wrote: Installed and works just fine! It's been REALLY helpful, as I think it just let me find a bug in the Animation class. On Tue, Dec 28, 2010 at 7:54 AM, snpe snp...@gmail.com wrote: John, Could you please tell me if you are install Android sources plugin successfully ? I have tested them, but I'm not sure if somebody use it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: app causes reboot on DroidX after activity gets destroyed - anybody having similar issues?
If you can create a reproducible test case, post it on the relevant MOTODEV forum and see what response you get. On Mon, Feb 7, 2011 at 6:48 AM, mot12 martin.hu...@gmail.com wrote: Possibly found the culprit. In several activities, I call this: setContentView(R.layout.main); switch (Preferences.getPrefOrientation(this, Screen.MAIN)) { case 0: if (1.equals(Settings.System.getString(getContentResolver(), Settings.System.ACCELEROMETER_ROTATION))) setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR); break; case 1: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); break; case 2: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); break; Basically this fixes the screen orientation to portrait or landscape, or tells Android to use the rotation sensor again to determine the screen orientation. This code works fine except on the DroidX. Even on the DroidX fixed orientation works fine (protrait only, landscape only) but if I set the orientation to be tied to the sensor, resuming such an activity and then changing the sensor orientation causes the reboot. My app works fine if I take this single line of code out. Of course, this is completely unsatisfying. The line itself doesn't cause an immediate blowup but it seems to be the cause for blowups later. Maybe this is a firmware bug. Maybe it is something entirely different and all this is just circumstantial. I don't have the resources to spend more time on this issue now but if anybody has an idea on how to make sense of this, I would love to learn. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 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
Re: [android-developers] Library packaging best practices
On Mon, Feb 7, 2011 at 6:00 AM, Pepijn Van Eeckhoudt pep...@vaneeckhoudt.net wrote: What is the recommended way of distributing a reusable library (i.e., jar file, assets, documentation, sample code)? ZIP file, backed by a GitHub repo or the equivalent. One possibility I'm considering is an sdk extra (the same way for instance the google market_licensing library is made available in SDK manager. Is this a supported mechanism or should this not be used? Depends. Are you making your own phone? Are there any other, possibly better, alternatives besides distributing a zipped library project? You could supply it on clay tablets, using cuneiform. However, since I don't think the zero had been invented yet, you'll have to choose two characters to represent 0 and 1 for the bits. Hey, you asked for other, possibly better, which leaves open the possibility of other, completely moronic... :-) -- 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 *Advanced* Android Development_ Version 1.9 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
Re: [android-developers] Re: Development Tools Crashing
Xav, I have, ~all the targets since 1.0 installed! Maybe this is breaking everything? I'll remove everything except 1.6 and see if that helps. Also, is there a new version (you mention ADT 10.0). I'm on 9.0, but the Update Manager does not inform me of anything? Thanks for the help! E On Sun, Feb 6, 2011 at 5:33 PM, Xavier Ducrohet x...@android.com wrote: I can't seem to reproduce (running ADT 10.0, tip of tree, and Eclipse 3.5r2)) - created a new project - edited main.xml the rendering target is properly selected (in this case Android 2.2), and the default theme (Theme) was selected. I don't think we changed things around this so I'm not sure what's up. How many Android Targets do you have installed? Xav On Sun, Feb 6, 2011 at 7:53 AM, Seni Sangrujee s...@fieldteams.com wrote: about 85% of the time. If it does not throw the NPE, it says Missing Theme I'm getting the same thing on Galileo. It looks like a temporary workaround is to select the platform dropdown(Android 2.2/2.3) in the upper right which will cause the Theme dropdown to appear next to it. -- Seni Sangrujee http://fieldteams.com http://metosphere.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 -- Xavier Ducrohet Android SDK Tech Lead Google Inc. http://developer.android.com | http://tools.android.com Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: What happens when i change the kernel config file and build the OS with the changed kernel config file?
The Browser utilizes an JAVA class named InetAddress and this class further calls the getaddrinfo native method to resolve the URLs. I am still not sure what reads the changed kernel config file and contributes to the changed behavior of the Browser.apk. Is build/core/ main.mk? On Feb 7, 1:48 am, Kostya Vasilyev kmans...@gmail.com wrote: From the group's description on Google Groups: http://groups.google.com/group/android-developers Discuss developing Android applications using the Android SDK. Get help with troubleshooting apps, advice on implementation, and strategies for improving your app's speed and user experience. The kernel is not a part of the SDK, and rebuilding it is not a part of the process of using the SDK. Those other lists (esp. porting) has subscribers who routinely rebuild the kernel, so you'll have a higher chance of getting a good answer. BTW, the following link: http://download.oracle.com/javase/1.5.0/docs/guide/net/ipv6_guide/ind... says that Java applications don't need to worry about choosing a specific IP version, it's automatic - although I don't know if the browser uses Java for networking. -- Kostya 06.02.2011 20:34, 捷超 王 пишет: OK. Thank you. But i would like to know, what problems are appropriate to post here? On Feb 7, 12:04 am, Kostya Vasilyevkmans...@gmail.com wrote: Perhaps the browser always recognizes IPv6 addresses, and tries to use them? If IPv6 is disabled in the kernel, trying to use a v6 socket should fail, and hence you can't open a v6 site. Once kernel support is enabled, the rest would work automatically. You might also want to post your question on a more appropriate list: http://groups.google.com/group/android-platform http://groups.google.com/group/android-porting -- Kostya 06.02.2011 18:29, 捷超 王 пишет: Hi, everyone~ I have been recently studying on why the Browser in the android OS does not support accessing IPv6 websites through IPv6 URLs. At first, I built the source code with CONFIG_IPV6 not set and tried IPv6 URLs in the Browser and the Browser could not access IPv6 websites. I then built the source code with CONFIG_IPV6 set and tried again, the Browser works! But i don't get it. I think the source code of the Browser hasn't been changed, how it can be that the Browser suddenly support accessing websites through IPv6 URLs...? Is it the new kernel config file introduce some modules to be included in the final iso image so that the Browser which utilizes these modules is able to access websites through IPv6 URLs? I just need a hint, such as what reads the changed kernel config file and contributes to the changed behavior of the Browser.apk. Best wishes and thanks in advance! -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: my Eclipse stuck while running emulator
Solution for my problem. actually there was no problem in emulator or any thing else. Now what exactly was this problem that my eclipse internal memory was set to 385mb in eclipse.ini I opened eclipse.ini and increase it to 1024 as i have enough memory on my Laptop. its working perfect now. if some one is facing the same problem you can try this out. Atif On Jan 30, 1:08 am, TreKing treking...@gmail.com wrote: On Sat, Jan 29, 2011 at 12:22 PM, Samsung Galaxy atif.musad...@gmail.comwrote: means: hangs..Not doing any thingjust running and running and running If that's Eclipse that's hanging, there's a Progress view you can look at to see what it's doing. Can you tell what's it's doing? --- -- 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
Re: [android-developers] Re: What happens when i change the kernel config file and build the OS with the changed kernel config file?
According to the link I posted before: http://download.oracle.com/javase/1.5.0/docs/guide/net/ipv6_guide/index.html getaddrinfo() is IPv6-aware, but of course depends on kernel support being there. So go head and read that page, I think it goes a long way towards answering your question. -- Kostya 07.02.2011 16:06, 捷超 王 пишет: The Browser utilizes an JAVA class named InetAddress and this class further calls the getaddrinfo native method to resolve the URLs. I am still not sure what reads the changed kernel config file and contributes to the changed behavior of the Browser.apk. Is build/core/ main.mk? On Feb 7, 1:48 am, Kostya Vasilyevkmans...@gmail.com wrote: From the group's description on Google Groups: http://groups.google.com/group/android-developers Discuss developing Android applications using the Android SDK. Get help with troubleshooting apps, advice on implementation, and strategies for improving your app's speed and user experience. The kernel is not a part of the SDK, and rebuilding it is not a part of the process of using the SDK. Those other lists (esp. porting) has subscribers who routinely rebuild the kernel, so you'll have a higher chance of getting a good answer. BTW, the following link: http://download.oracle.com/javase/1.5.0/docs/guide/net/ipv6_guide/ind... says that Java applications don't need to worry about choosing a specific IP version, it's automatic - although I don't know if the browser uses Java for networking. -- Kostya 06.02.2011 20:34, 捷超 王 пишет: OK. Thank you. But i would like to know, what problems are appropriate to post here? On Feb 7, 12:04 am, Kostya Vasilyevkmans...@gmail.comwrote: Perhaps the browser always recognizes IPv6 addresses, and tries to use them? If IPv6 is disabled in the kernel, trying to use a v6 socket should fail, and hence you can't open a v6 site. Once kernel support is enabled, the rest would work automatically. You might also want to post your question on a more appropriate list: http://groups.google.com/group/android-platform http://groups.google.com/group/android-porting -- Kostya 06.02.2011 18:29, 捷超 王 пишет: Hi, everyone~ I have been recently studying on why the Browser in the android OS does not support accessing IPv6 websites through IPv6 URLs. At first, I built the source code with CONFIG_IPV6 not set and tried IPv6 URLs in the Browser and the Browser could not access IPv6 websites. I then built the source code with CONFIG_IPV6 set and tried again, the Browser works! But i don't get it. I think the source code of the Browser hasn't been changed, how it can be that the Browser suddenly support accessing websites through IPv6 URLs...? Is it the new kernel config file introduce some modules to be included in the final iso image so that the Browser which utilizes these modules is able to access websites through IPv6 URLs? I just need a hint, such as what reads the changed kernel config file and contributes to the changed behavior of the Browser.apk. Best wishes and thanks in advance! -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to retreive existing keystore
Hi! I forget my existing keystore, How to retreive my existing keystore value? bcas now i want to update my new version of android app.so i need old keystore. any alternative ways available? Thanks, A.Subha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 retreive existing keystore
On Mon, Feb 7, 2011 at 8:16 AM, subhashini alaguchokku subhashini.andr...@gmail.com wrote: I forget my existing keystore, How to retreive my existing keystore value? You find it in one of your backups. Otherwise, you are out of luck. -- 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 *Advanced* Android Development_ Version 1.9 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
Re: [android-developers] Install the Apk
Hello Rajesh, I am not sure whether I got your question right. If you mean that you have your application written and now you want the .apk file of your application to run that in your mobile then do the following - - go to your application folder (in your workspace)bin - here you will find yourApplicationName.apk file Regards -- Tahin _ Who says nothing is impossible? I have been doing nothing for years! On Mon, Feb 7, 2011 at 6:04 PM, crajesh crajesh2...@gmail.com wrote: Hi, I am new in android. I need to create the shortcut icon for .apk in my desktop while installing my apk in mobile. It is possible? May i know wht the command for that? Thank you for your help ! Thanks Rajesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to retreive existing keystore
i have existing backup, but where it available? pls tel me very urgent On Mon, Feb 7, 2011 at 6:48 PM, Mark Murphy mmur...@commonsware.com wrote: On Mon, Feb 7, 2011 at 8:16 AM, subhashini alaguchokku subhashini.andr...@gmail.com wrote: I forget my existing keystore, How to retreive my existing keystore value? You find it in one of your backups. Otherwise, you are out of luck. -- 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 *Advanced* Android Development_ Version 1.9 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Playing Realtime encrypted video
Take a look at the NPR app. It uses a little server (StreamProxy.java) that changes the header of an audio stream so that devices that have older Android OS on them can stream. You could use this same method to accomplish your task. Shawn On Feb 4, 1:13 pm, dindin dinesh.nadara...@gmail.com wrote: I currently have H.264 + AAC streaming to the android device. The stream is encrypted. How can I play it back. I have the algorithm to decrypt the AV packets as they arrive but how do I play it back? Can the Android MediaPlayer use a buffer as a source? Can anyone point me to to some samples/resources how how this can be implemented? I have searched through earlier emails on this topic and found the last answer (in 2009) stating this feature is currently not supported. Thanks in advance. (Android 2.2 on Nexus One) -D -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Playing Realtime encrypted video
Just in case you don't known what I am referring to: http://code.google.com/p/npr-android-app/ Shawn On Feb 4, 1:13 pm, dindin dinesh.nadara...@gmail.com wrote: I currently have H.264 + AAC streaming to the android device. The stream is encrypted. How can I play it back. I have the algorithm to decrypt the AV packets as they arrive but how do I play it back? Can the Android MediaPlayer use a buffer as a source? Can anyone point me to to some samples/resources how how this can be implemented? I have searched through earlier emails on this topic and found the last answer (in 2009) stating this feature is currently not supported. Thanks in advance. (Android 2.2 on Nexus One) -D -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Cancelled?
It means they uninstalled the app within the refund time period (currently 15 minutes). If half the people are uninstalling your app then you probably need to work on it. On Feb 3, 6:32 pm, bob b...@coolgroups.com wrote: What does it mean when Google Checkout says an order was Cancelled? I think almost half of the orders people have made for my app say Cancelled, and I don't know exactly what happened. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ADB Cannot Find Samsung Captivate
adb devices - Nothing I have tried installing kies, setting usb to Kies, to Mass storage etc nothing seems to work. It is not at all clear what happens when you type ADB Devices? i tried downloading device drivers from samsung as recommended, and some of the drivers seemed to install like modem, Many have said use Kies. Not sure what Kies has to do with ADB which is a debug bridge, but I have also tried installing the drivers this way. Help would be greatly appreciated in connecting ADB to Samsung Captivate. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: imageRes
I haven't tried it because I didn't know how to build the Uri to be valid. Have you tried using a resource Uri? http://developer.android.com/reference/android/content/ContentResolve... Something like this: android.resource://the.other.apps.package.name/drawable/id_value -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: imageRes
Yes, I use this method now but android has a limitation somewhere inside and in a few device I get E/JavaBinder( 2254): !!! FAILED BINDER TRANSACTION !!! errors because of these drawables. So I'm trying to find out how to avoid this bug. Maybe Uri can help. Oh, and there is also this: http://developer.android.com/reference/android/content/pm/PackageItem...) but then you'd need to push the icon into the widget as a drawable, which is not very efficient across process boundaries, but it just depends on how often you'll be updating your widget. -- Kostya 07.02.2011 14:32, b_t пишет: No, I would like to display icons of other installed applications. I thought that it isn't possible because a resource id is unique only in a project not in the whole system, am I right? Just I don't understand what the ActivityInfo.icon or ResolveInfo.icon is good for if I can't use that value to display the app icon. On Feb 7, 9:49 am, Kostya Vasilyevkmans...@gmail.com wrote: If that's your own application, sure. If it's not, I don't see how the remote side of RemoteViews would know to load some resources from your application and the icon from another package. -- Kostya 07.02.2011 11:44, b_t пишет: Hi, ActivityInfo class contains an icon attribute which is a resource id. Can my appwidget use this resource id to display this icon? (ResourceViews.setImageViewResource) Or I have to load the icon and call setImageViewBitmap? The problem with this solution that it puts more data to the transaction. Thanks, Tamás -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to retreive existing keystore
On Mon, Feb 7, 2011 at 8:22 AM, subhashini alaguchokku subhashini.andr...@gmail.com wrote: i have existing backup, but where it available? pls tel me very urgent I have no idea where your backup is. I have no idea where your keystore should be, as you can create one anywhere. Here is where the debug keystores are located, in case you put your production keystore in the same place: Windows Vista: C:\Users\user\.android\debug.keystore Windows XP: C:\Documents and Settings\user\.android\debug.keystore OS X and Linux: ~/.android/debug.keystore -- 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 *Advanced* Android Development_ Version 1.9 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
Re: [android-developers] ADB Cannot Find Samsung Captivate
Installing Kies is how you get debug mode drivers for the Galaxy S family, but you don't use Kies for development. Have you enabled adb debugging on the phone? It's under Settings: Applications: Development. In fact, Kies cannot connect to a phone that has ADB debugging enabled. -- Kostya 07.02.2011 16:32, AndroidDevTime пишет: adb devices - Nothing I have tried installing kies, setting usb to Kies, to Mass storage etc nothing seems to work. It is not at all clear what happens when you type ADB Devices? i tried downloading device drivers from samsung as recommended, and some of the drivers seemed to install like modem, Many have said use Kies. Not sure what Kies has to do with ADB which is a debug bridge, but I have also tried installing the drivers this way. Help would be greatly appreciated in connecting ADB to Samsung Captivate. Thanks -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: imageRes
BTW, it looks like ImageView only supports SCHEME_ANDROID_RESOURCE starting with Android 2.2. But it supports file:// in earlier versions. Perhaps you could cache images as files and set them with file:// URIs. -- Kostya 07.02.2011 16:33, b_t пишет: I haven't tried it because I didn't know how to build the Uri to be valid. Have you tried using a resource Uri? http://developer.android.com/reference/android/content/ContentResolve... Something like this: android.resource://the.other.apps.package.name/drawable/id_value -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Development Tools Crashing
Kostya, Thanks for the very informative post. I'll make the changes you suggested and report back! E On Sun, Feb 6, 2011 at 11:07 AM, Kostya Vasilyev kmans...@gmail.com wrote: Slow code assist, or, more precisely, JavaDoc lookup (which is shown side by side with code assist suggestions) is a known Eclipse Helios 3.6SR1 issue. I've written a summary of various workarounds here: http://kmansoft.wordpress.com/category/tools/ The good news is that this is fixed in 3.6SR2, due February 25. -- Kostya 06.02.2011 18:15, Evan Ruff пишет: Hey Guys, I'm having a NPE thrown when I try to edit a layout. I generally happens about 85% of the time. If it does not throw the NPE, it says Missing Theme with no assist or layout. The XML editor does still provide assistance if the NPE is not thrown. Additionally, my auto-complete is taking FOREVER inside Android classes. Is anyone else experiencing something like this? Any ideas how to rectify the situation? Thank you for any help! Evan Here's the details: Eclipse Helios R1, 32-bit Windows installed on Drive E. Projects/Workspace installed on E. Android Development Tools 9.0.0.v201101191456-93220 Google Plugin for Eclipse 1.4.2.v201012111742 Subversion, etc... everything else is pretty stock. In my Content Assist preferences, I only have Basic Proposals and Java Proposals checked in both dialog. Here's the NPE from the trying to edit the layout: java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.renderWithBridge(Unknown Source) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.recomputeLayout(Unknown Source) at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.activated(Unknown Source) at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.pageChange(Unknown Source) at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1067) at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:607) at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:352) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2682) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:365) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:168) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:229) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:208) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:373) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:526) at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48) at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:845) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:843) at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1131) at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1235) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:264) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:258) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:298) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at
[android-developers] Re: install font with apk
I just last night came across a good article on the subject. http://mobile.tutsplus.com/tutorials/android/customize-android-fonts/ In my case it was of limited value because I wanted a Style to load that font, which I haven't figured out how to do (but also havent put enough time into figuring out. - Brill Pappin On Feb 7, 3:01 am, andu alemf...@yahoo.com wrote: How are you all? I have tried to develop soft-keyboard for Android phone. The soft- keyboard is for Ethiopic script (Amharic language, Ethiopian language). The keyboard works well both in emulator and actual device. But I would like to keep the Amharic font file within the apk file so that the font will be installed together with the soft-keyboard apk file. Is there any means that I can install the font file together with the apk file? Thank you in advance andu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 retreive existing keystore
If you don't have it backed up, you can *not* recover it. Thats kind of the point of a secure key. - Brill Pappin On Feb 7, 8:16 am, subhashini alaguchokku subhashini.andr...@gmail.com wrote: Hi! I forget my existing keystore, How to retreive my existing keystore value? bcas now i want to update my new version of android app.so i need old keystore. any alternative ways available? Thanks, A.Subha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Postscript and PCL Problem
I'd be interested in this as well. I've been wanting to add the ability for my apps to print to wireless printers or printer shares on a local network. Usually this would be done in SE by the OS java was running on, but it should be possible to write a driver for the most common forms of printing. - Brill Pappin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] need help with DatePickerDialog
I have this fields: private EditText datum; private int mYear; private int mDay; private int mMonth; private final Context context= this; and theese listeners: OnClickListener ocl = new OnClickListener() { @Override public void onClick(View v) { DatePickerDialog.OnDateSetListener callBack = new DatePickerDialog.OnDateSetListener(){ @Override public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { // TODO Auto-generated method stub mYear=year;mMonth=monthOfYear;mDay=dayOfMonth; } }; DatePickerDialog dpd = new DatePickerDialog(context, callBack, mYear, mMonth, mDay); dpd.show(); datum.setText(Integer.toString(mDay)+.+Integer.toString(mMonth) +.+Integer.toString(mYear)); } }; datum.setOnClickListener(ocl); I dont know what is wrong but when I clicked on my datum: EditText so my app force close. help me pls to find a mistake. thank you very much Richard Sámela -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Delete Emails programatically
Hi, I am trying to delete all the mails of an existing account .Is that possible? When i tried to delete the accounts on the phone , i saw that i could delete all the accounts programatically except the primary account which i know that can be deleted only on phone reset.(In program i get false return value for the AccountManagerCallback)So it seems impossible to delete mails as the mails are loaded as and when needed for the account. So following are my questions. 1 ) Can we delete all the mails on the device of the non primary Email account? 2)Is there any way to delete the primary mail account programatically ? Thanks , Alok. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Library packaging best practices
On 07/02/2011 13:45, Mark Murphy wrote: On Mon, Feb 7, 2011 at 6:00 AM, Pepijn Van Eeckhoudt pep...@vaneeckhoudt.net wrote: ZIP file, backed by a GitHub repo or the equivalent. It's a closed source project so no Github or the like. One possibility I'm considering is an sdk extra (the same way for instance the google market_licensing library is made available in SDK manager. Is this a supported mechanism or should this not be used? Depends. Are you making your own phone? No, but that shouldn't matter. I guess you're refering to the third-party sdk addons preinstalled system libraries. The example I'm referring to from google is a bit different though. If you install it you essentially get an unzipped library project, documentation and sample code which you can then start using. I've been testing with a repository.xml containing my sdk:extra in the meantime and it works; I just have concerns that it might break in some future SDK release as there is no documentation on this besides the code. In the end, this is still the same as a zipped library project with the added benefit that the SDK manager handles checking for updates. Pepijn -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Library packaging best practices
On Mon, Feb 7, 2011 at 9:30 AM, Pepijn Van Eeckhoudt pep...@vaneeckhoudt.net wrote: I guess you're refering to the third-party sdk addons preinstalled system libraries. The example I'm referring to from google is a bit different though. If you install it you essentially get an unzipped library project, documentation and sample code which you can then start using. Ah, sorry, I missed that in your original post. I've been testing with a repository.xml containing my sdk:extra in the meantime and it works; I just have concerns that it might break in some future SDK release as there is no documentation on this besides the code. Eventually, the tools project will hopefully document it. http://tools.android.com/ In the end, this is still the same as a zipped library project with the added benefit that the SDK manager handles checking for updates. Agreed. That would be nice. If you're a Maven-ite, there's also the possibility of distributing that way, though I usually think of that being for internal stuff or open source stuff. I'm not a Maven user, so my experience with it is minuscule. -- 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 *Advanced* Android Development_ Version 1.9 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: Meaning of getMobileRxPackets and getTotalRxBytes in TrafficStats
No one knows ? On Feb 1, 9:13 am, Alex Munteanu alex.munte...@gmail.com wrote: What exactly means getMobileRxBytes () ? Get the total number of bytes received through the mobile interface. Total number since when ? Device boot, phone unplug ? Also getTotalRxBytes ? Get the total number of bytes received through all network interfaces. What interfaces beside mobile and WI-FI ? If only these two, it's okay to assume that getTotalRxBytes - getMobileRxBytes = WI-FI traffic ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 validate the input text in EditTextPreference dialog
Hi, I use a MainActivity去start a EditTextPreference, I can get the preference value in my main activity now, But I would like to know how to validate the user input, when the user key-in something in EditTextPreference dialog? public class EditTextPreferenceActivity extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.edittext); } } public class MainActivity extends Activity { private TextView tv = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); tv = (TextView) findViewById(R.id.text1); setOptionText(); Button btnEditText = (Button) findViewById(R.id.showEditText); btnEditText.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { showEditText(v); } }); } public void showEditText(View view) { Intent intent = new Intent().setClass(this, EditTextPreferenceActivity.class); this.startActivityForResult(intent, 2); } @Override public void onActivityResult(int reqCode, int resCode, Intent data) { super.onActivityResult(reqCode, resCode, data); if(reqCode ==2) { logEditTextProperties(data); } } Ryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: app causes reboot on DroidX after activity gets destroyed - anybody having similar issues?
Wow! I don't know if the following is helpful at all. I've seen my DroidX reboot a bunch of times and in almost all cases the offending app is probably Google Maps. I say probably because that's the forefront app. Usually the whole screen freezes - nothing has an impact and then I see that red circular image!! I wonder if there is a way to pin this down for that app as well which might then make it a bigger priority for Moto to fix?? On Mon, Feb 7, 2011 at 6:48 AM, mot12 martin.hu...@gmail.com wrote: Possibly found the culprit. In several activities, I call this: setContentView(R.layout.main); switch (Preferences.getPrefOrientation(this, Screen.MAIN)) { case 0: if (1.equals(Settings.System.getString(getContentResolver(), Settings.System.ACCELEROMETER_ROTATION))) setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR); break; case 1: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); break; case 2: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); break; Basically this fixes the screen orientation to portrait or landscape, or tells Android to use the rotation sensor again to determine the screen orientation. This code works fine except on the DroidX. Even on the DroidX fixed orientation works fine (protrait only, landscape only) but if I set the orientation to be tied to the sensor, resuming such an activity and then changing the sensor orientation causes the reboot. My app works fine if I take this single line of code out. Of course, this is completely unsatisfying. The line itself doesn't cause an immediate blowup but it seems to be the cause for blowups later. Maybe this is a firmware bug. Maybe it is something entirely different and all this is just circumstantial. I don't have the resources to spend more time on this issue now but if anybody has an idea on how to make sense of this, I would love to learn. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Best practices for automatic retrying of AsyncTask
When the user hits retry, you should create a new AsyncTask instance, giving it the same parameters/input as the original one (essentially clone it) and execute it. If you don't know the original AsyncTask's parameters/input, you should change your asynctask-baseclass and add some public methods to be able to get hold of this info. On Feb 6, 10:35 pm, Dimitris dnkou...@gmail.com wrote: Hey guys, I have a base abstract class that all my asynctasks extend from. I have built in error handling for network errors where I display a dialog to the user telling them they can retry their request (after all it was a network error...). I am having a bit of a problem retrying my asynctask since once it is executed, you cannot execute it again. How could I go by do that ? Should I use reflection to instantiate the same class and retry? Has anyone dealt with this problem before? 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: On using themes?!
So, is it impossible to solve it directly in xml? _ Alessio Grumiro http://www.agmobilesolutions.com 2010/9/22 Mariano Kamp mariano.k...@gmail.com As it wasn't possible to submit a new post to the existing/old conversation using the web interface I am copying the message here with Danilo's permission: Hi Mariano. Did you manage to work using themes from drawables xml? I have same problem and there is no any reference but this thread and there is no solution here. If you find solution please let me know. I currently solved it by using different drawable xml for every theme but as you can see this isn't a god solution at all. About your question about getting a color from a theme (I know its old but for future readers :) ) solution I created is like this: private static int getColor(final Context context, final int id, final int defaultColor) { try { final Theme theme = context.getTheme(); if (theme == null) { return defaultColor; } TypedValue typedValue = new TypedValue(); if (theme.resolveAttribute(id, typedValue, false)) { final Resources resources = context.getResources(); final int resourceId = typedValue.resourceId; if (typedValue.type == TypedValue.TYPE_INT_COLOR_RGB8 || typedValue.type == TypedValue.TYPE_INT_COLOR_RGB4 || typedValue.type == TypedValue.TYPE_INT_COLOR_ARGB4 || typedValue.type == TypedValue.TYPE_INT_COLOR_ARGB8 || typedValue.type == TypedValue.TYPE_FIRST_COLOR_INT) { return typedValue.data; } else { return resources.getColor(resourceId); } } return defaultColor; } catch (NotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); return defaultColor; } } On Tue, May 11, 2010 at 9:08 AM, Mariano Kamp mariano.k...@gmail.comwrote: Hi Dianne. Thanks very much, almost there. I understand the procedure, it would do what I want, but I run into an exception: D/NewsRobDefaultExceptionHandler( 1839): Caused by: java.lang.UnsupportedOperationException: Can't convert to color: type=0x2 D/NewsRobDefaultExceptionHandler( 1839): at android.content.res.TypedArray.getColor(TypedArray.java:273) D/NewsRobDefaultExceptionHandler( 1839): at android.graphics.drawable.GradientDrawable.inflate(GradientDrawable.java:647) D/NewsRobDefaultExceptionHandler( 1839): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:788) D/NewsRobDefaultExceptionHandler( 1839): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:729) D/NewsRobDefaultExceptionHandler( 1839): at android.content.res.Resources.loadDrawable(Resources.java:1690) This happens when using it the way we described here in a drawable xml. However to better understand the error I used it on other attributes and when using it on the background attribute of a View it works. Maybe this approach is incompatible with drawables that are expressed in xml? Btw. Is there any way to get the actual #rgb string for a color from a theme? Cheers, Mariano On Tue, May 11, 2010 at 8:02 AM, Dianne Hackborn hack...@android.comwrote: You need to define an attribute for your value: attr name=myColor format=color / Then make a custom theme that supplies a value for it: style name=MyTheme parent=android:Theme item name=com.my.package:myColor#ff808080/item /style And now you can reference that value from other XML: shape xmlns:android=http://schemas.android.com/apk/res/android android:shape=rectangle gradient android:startColor=?com.my.package:myColor android:endColor=#66FF android:angle=270 / /shape Note that com.my.package is your manifest's package name. Also I just wrote this by hand so I won't guarantee it is completely right. :} On Mon, May 10, 2010 at 11:02 AM, Mariano Kamp mariano.k...@gmail.comwrote: Hmmh, also no answer to this question on themes. Maybe the answer cannot be given with two lines? So let me explain what I would expect step by step and you stop me were I deviate from the Golden Path? I'll try yes/no questions. In the simplest terms I would expect that in every place I can specify a color in RGB (#) I could also specify a symbolic name instead. This should work like @color/xyz, but with one more level of indirection that lets me switch between themes, like dark and light. Is that possible? I would expect those themes to be
[android-developers] Re use gradient drawable with theme-dipendent colors
Hello, in two different activities i want to use same gradient drawable but with different colors. I think to refer gradient colors to activity theme in follow way: i've added follow rows in attrs.xml attr name=backgroundTopColor format=color / attr name=backgroundBottomColor format=color / in bg_gradient.xml i typed shape xmlns:android=http://schemas.android.com/apk/res/android; gradient android:startColor=?backgroundTopColor android:endColor=? backgroundBottomColor android:angle=270 / corners android:radius=0dp / /shape In activity theme, i've added item name=backgroundTopColor#/item item name=backgroundBottomColor#FF00/item After application start in logcat ` 02-07 14:03:59.479: ERROR/AndroidRuntime(2096): Caused by: java.lang.UnsupportedOperationException: Can't convert to color: type=0x2 02-07 14:03:59.479: ERROR/AndroidRuntime(2096): at android.content.res.TypedArray.getColor(TypedArray.java:326) 02-07 14:03:59.479: ERROR/AndroidRuntime(2096): at android.graphics.drawable.GradientDrawable.inflate(GradientDrawable.java: 647) 02-07 14:03:59.479: ERROR/AndroidRuntime(2096): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java: 788) 02-07 14:03:59.479: ERROR/AndroidRuntime(2096): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:729) 02-07 14:03:59.479: ERROR/AndroidRuntime(2096): at android.content.res.Resources.loadDrawable(Resources.java:1694) 02-07 14:03:59.479: ERROR/AndroidRuntime(2096): ... 29 more ` How i can solve this? Thank you NB: Api level = 8 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: app causes reboot on DroidX after activity gets destroyed - anybody having similar issues?
@Mark Thanks for the hint about the MOTODEV forum. That seems worthwhile even though my poor test user has already downloaded and run more than 20 versions in helping me isolating offending code. I hope one additional barebones test won't push him over the edge. Who knows when I need him again. @Prakash I spent some time on the DroidX forums and at there are many posts about random reboots even with the stock firmware. Small developers can't continue chasing issues that may come down to faulty firmware. My time is better spent getting ready for Android 3.0. But the Moto guys could do the same thing I did since it is all open source (google maps may not be open source, I forgot). But this debugging is a pain. Take 30,000 lines of code (in my case), make an educated guess as to which parts may be responsible, and strip them out (leaving 22,000 in my case). Then the app worked. Then I built 5 test versions, each of them putting an additional 2000 lines of code back in. My user reported at which point it crashed and the I built 5 new versions between the last non-crashing and the crashing version. However, we were fairly lucky in that it all seemed to work. Stuff like this rarely comes down to a null-pointer or something similar but are often due to some side-effects that only occur in certain conditions like low memory. So this type of debugging I just outlined is not necessarily consistent and the results may even be misleading. We got lucky. Of course, Moto has access to parts of the device I don't and I am sure they can make the device log survive the reboot, something that would have saved me a lot of time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: app causes reboot on DroidX after activity gets destroyed - anybody having similar issues?
Cool, I think what you have done is commendable already. BTW if you want to run some tests and I can help on my DroidX, I'd be happy to. On Mon, Feb 7, 2011 at 10:35 AM, mot12 martin.hu...@gmail.com wrote: @Mark Thanks for the hint about the MOTODEV forum. That seems worthwhile even though my poor test user has already downloaded and run more than 20 versions in helping me isolating offending code. I hope one additional barebones test won't push him over the edge. Who knows when I need him again. @Prakash I spent some time on the DroidX forums and at there are many posts about random reboots even with the stock firmware. Small developers can't continue chasing issues that may come down to faulty firmware. My time is better spent getting ready for Android 3.0. But the Moto guys could do the same thing I did since it is all open source (google maps may not be open source, I forgot). But this debugging is a pain. Take 30,000 lines of code (in my case), make an educated guess as to which parts may be responsible, and strip them out (leaving 22,000 in my case). Then the app worked. Then I built 5 test versions, each of them putting an additional 2000 lines of code back in. My user reported at which point it crashed and the I built 5 new versions between the last non-crashing and the crashing version. However, we were fairly lucky in that it all seemed to work. Stuff like this rarely comes down to a null-pointer or something similar but are often due to some side-effects that only occur in certain conditions like low memory. So this type of debugging I just outlined is not necessarily consistent and the results may even be misleading. We got lucky. Of course, Moto has access to parts of the device I don't and I am sure they can make the device log survive the reboot, something that would have saved me a lot of time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Vertical Marquee from Bottom to Up
Hi All, I am having problem in creating vertical marquee in android. Can anybody help in this? Thanks!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Very extrange problem with my emulator, it puts @12314234 (rare numbers) instead of the value of the strings of strings.xml
Hi i was working with the localization of my android app, making some strings.xml new files for Spanish and Deutch languages (making new dirs strings-sp and strings-de and putting on them the translated strings.xml file) when i was testing the spanish language my emulator start doing something wrong, and shows the values of the strings with @11242134134 instead of the string itself. And also, in the top of the window, putting the name of the package of my app instead of the name of my app (com.GPSLoc.GPSLoca instead of simply GPSLoc) before making localization my emulator and my app works perfectly here is a screen with the problem: http://i.imgur.com/uFBwp.jpg [img]http://i.imgur.com/uFBwp.jpg[/img] -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Very extrange problem with my emulator, it puts @12314234 (rare numbers) instead of the value of the strings of strings.xml
This means that the string for the current locale is missing from your project's locale specific folder, and also from default values folder, but present in some other locale folder, which can't be used because it's for a different locale. Check this TextView's @string reference, make sure it's present in either default or locale-specific folder. Oh, and spanish is es, not sp. I bet once you fix that, the rest should work. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 07.02.2011 18:54 пользователь saex elpablos...@gmail.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] Android emulator can't find internet connection
Hello guys, Please help me solve this unpleasure problem, i do not know what to do else. First i used android-sdk-r07-windows and installed from ADT plugin only AVD Google 2.1 APi 7 Then i updated the rest of AVD and any other updated resources available from https://dl-ssl.google.com/android/eclipse/ After this update my Android emulators are not recognising the internet connection at all. I have a simple LAN internet connection, with a DHCP configuration that provides an dynamic IP. Then i installed android-sdk_r09-windows , and installed the ADT plugin with all available resources. and i got the same problem. How can i manually set the internet connection for an android emulator??or Where can i see the reason of the internet connection failure? I found that if i start an emulator from command line like emulator -verbose -avd emulator_name this may tell the possible reason of internet connection failure, but i don't understand its details: //C:\android\android-sdk_r09-windows\toolsemulator -verbose -avd google_8 emulator: found SDK root at C:\android\android-sdk_r09-windows emulator: root virtual device file at C:\Documents and Settings\lidia.gutu\.andr oid/avd/google_8.ini emulator: virtual device content at C:\Documents and Settings\lidia.gutu\.androi d\avd\google_8.avd emulator: virtual device config file: C:\Documents and Settings\lidia.gutu\.andr oid\avd\google_8.avd/config.ini emulator: locking user data image at C:\Documents and Settings\lidia.gutu\.a ndroid\avd\google_8.avd/userdata-qemu.img emulator: locking cache image at C:\Documents and Settings\lidia.gutu\.andro id\avd\google_8.avd/cache.img emulator: locking SD Card image at C:\Documents and Settings\lidia.gutu\.and roid\avd\google_8.avd/sdcard.img emulator: ignoring non-existing snapshots at C:\Documents and Settings\lidia.gut u\.android\avd\google_8.avd/snapshots.img: No such file or directory emulator: found skin 'WVGA800' in directory: C:\android\android-sdk_r09-windows/ platforms\android-8\skins emulator: autoconfig: -skin WVGA800 emulator: autoconfig: -skindir C:\android\android-sdk_r09-windows/platforms\andr oid-8\skins emulator: keyset loaded from: C:\Documents and Settings\lidia.gutu\.android\defa ult.keyset emulator: trying to load skin file 'C:\android\android-sdk_r09-windows/platforms \android-8\skins/WVGA800/layout' emulator: skin network speed: 'full' emulator: skin network delay: 'none' emulator: argv[00] = emulator emulator: argv[01] = -kernel emulator: argv[02] = C:\android\android-sdk_r09-windows/platforms\android-8\ima ges\/kernel-qemu emulator: argv[03] = -netspeed emulator: argv[04] = full emulator: argv[05] = -netdelay emulator: argv[06] = none emulator: argv[07] = -initrd emulator: argv[08] = C:\android\android-sdk_r09-windows/add-ons\addon_google_ap is_google_inc_8\images\/ramdisk.img emulator: argv[09] = -nand emulator: argv[10] = system,size=0x540,initfile=C:\android\android-sdk_r09- windows/add-ons\addon_google_apis_google_inc_8\images\/system.img emulator: argv[11] = -nand emulator: argv[12] = userdata,size=0x420,file=C:\Documents and Settings\lid ia.gutu\.android\avd\google_8.avd/userdata-qemu.img emulator: argv[13] = -nand emulator: argv[14] = cache,size=0x420,file=C:\Documents and Settings\lidia. gutu\.android\avd\google_8.avd/cache.img emulator: argv[15] = -hda emulator: argv[16] = C:\Documents and Settings\lidia.gutu\.android\avd\google_8 .avd/sdcard.img emulator: argv[17] = -loadvm emulator: argv[18] = default-boot emulator: argv[19] = -savevm-on-exit emulator: argv[20] = default-boot emulator: argv[21] = -serial emulator: argv[22] = android-kmsg emulator: argv[23] = -serial emulator: argv[24] = android-qemud emulator: argv[25] = -lcd-density emulator: argv[26] = 240 emulator: argv[27] = -append emulator: argv[28] = qemu=1 console=ttyS0 android.checkjni=1 android.qemud=ttyS 1 emulator: argv[29] = -m emulator: argv[30] = 96 emulator: registered 'boot-properties' qemud service emulator: mapping 'system' NAND image to C:\DOCUME~1\LIDIA~1.GUT\LOCALS~1\Temp\\ AndroidEmulator\TMP1B89.tmp emulator: rounding devsize up to a full eraseunit, now 540c000 emulator: registered 'boot-properties' qemud service emulator: Adding boot property: 'dalvik.vm.heapsize' = '24m' emulator: Adding boot property: 'qemu.sf.lcd_density' = '240' emulator: Trace file name is not set emulator: emulator window was out of view and was recentred emulator: control console listening on port 5556, ADB on port 5557 emulator: sent '0012host:emulator:5557' to ADB server emulator: ping program: C:\android\android-sdk_r09-windows\tools\ddms.bat emulator: ping command: C:\WINDOWS\system32\cmd.exe /C C:\android\android-sdk_r 09-windows\tools\ddms.bat ping emulator 9.0 emulator: User configuration saved to C:\Documents and
Re: [android-developers] Android emulator can't find internet connection
Do u have this in manifest file :- uses-permission android:name=android.permission.INTERNET/uses-permission You have to set permission in manifest file for emulator to access internet On Mon, Feb 7, 2011 at 9:55 PM, Lidia G lidyp...@yahoo.com wrote: Hello guys, Please help me solve this unpleasure problem, i do not know what to do else. First i used android-sdk-r07-windows and installed from ADT plugin only AVD Google 2.1 APi 7 Then i updated the rest of AVD and any other updated resources available from https://dl-ssl.google.com/android/eclipse/ After this update my Android emulators are not recognising the internet connection at all. I have a simple LAN internet connection, with a DHCP configuration that provides an dynamic IP. Then i installed android-sdk_r09-windows , and installed the ADT plugin with all available resources. and i got the same problem. How can i manually set the internet connection for an android emulator?? or Where can i see the reason of the internet connection failure? I found that if i start an emulator from command line like emulator -verbose -avd emulator_name this may tell the possible reason of internet connection failure, but i don't understand its details: // C:\android\android-sdk_r09-windows\toolsemulator -verbose -avd google_8 emulator: found SDK root at C:\android\android-sdk_r09-windows emulator: root virtual device file at C:\Documents and Settings\lidia.gutu\.andr oid/avd/google_8.ini emulator: virtual device content at C:\Documents and Settings\lidia.gutu\.androi d\avd\google_8.avd emulator: virtual device config file: C:\Documents and Settings\lidia.gutu\.andr oid\avd\google_8.avd/config.ini emulator: locking user data image at C:\Documents and Settings\lidia.gutu\.a ndroid\avd\google_8.avd/userdata-qemu.img emulator: locking cache image at C:\Documents and Settings\lidia.gutu\.andro id\avd\google_8.avd/cache.img emulator: locking SD Card image at C:\Documents and Settings\lidia.gutu\.and roid\avd\google_8.avd/sdcard.img emulator: ignoring non-existing snapshots at C:\Documents and Settings\lidia.gut u\.android\avd\google_8.avd/snapshots.img: No such file or directory emulator: found skin 'WVGA800' in directory: C:\android\android-sdk_r09-windows/ platforms\android-8\skins emulator: autoconfig: -skin WVGA800 emulator: autoconfig: -skindir C:\android\android-sdk_r09-windows/platforms\andr oid-8\skins emulator: keyset loaded from: C:\Documents and Settings\lidia.gutu\.android\defa ult.keyset emulator: trying to load skin file 'C:\android\android-sdk_r09-windows/platforms \android-8\skins/WVGA800/layout' emulator: skin network speed: 'full' emulator: skin network delay: 'none' emulator: argv[00] = emulator emulator: argv[01] = -kernel emulator: argv[02] = C:\android\android-sdk_r09-windows/platforms\android-8\ima ges\/kernel-qemu emulator: argv[03] = -netspeed emulator: argv[04] = full emulator: argv[05] = -netdelay emulator: argv[06] = none emulator: argv[07] = -initrd emulator: argv[08] = C:\android\android-sdk_r09-windows/add-ons\addon_google_ap is_google_inc_8\images\/ramdisk.img emulator: argv[09] = -nand emulator: argv[10] = system,size=0x540,initfile=C:\android\android-sdk_r09- windows/add-ons\addon_google_apis_google_inc_8\images\/system.img emulator: argv[11] = -nand emulator: argv[12] = userdata,size=0x420,file=C:\Documents and Settings\lid ia.gutu\.android\avd\google_8.avd/userdata-qemu.img emulator: argv[13] = -nand emulator: argv[14] = cache,size=0x420,file=C:\Documents and Settings\lidia. gutu\.android\avd\google_8.avd/cache.img emulator: argv[15] = -hda emulator: argv[16] = C:\Documents and Settings\lidia.gutu\.android\avd\google_8 .avd/sdcard.img emulator: argv[17] = -loadvm emulator: argv[18] = default-boot emulator: argv[19] = -savevm-on-exit emulator: argv[20] = default-boot emulator: argv[21] = -serial emulator: argv[22] = android-kmsg emulator: argv[23] = -serial emulator: argv[24] = android-qemud emulator: argv[25] = -lcd-density emulator: argv[26] = 240 emulator: argv[27] = -append emulator: argv[28] = qemu=1 console=ttyS0 android.checkjni=1 android.qemud=ttyS 1 emulator: argv[29] = -m emulator: argv[30] = 96 emulator: registered 'boot-properties' qemud service emulator: mapping 'system' NAND image to C:\DOCUME~1\LIDIA~1.GUT\LOCALS~1\Temp\\ AndroidEmulator\TMP1B89.tmp emulator: rounding devsize up to a full eraseunit, now 540c000 emulator: registered 'boot-properties' qemud service emulator: Adding boot property: 'dalvik.vm.heapsize' = '24m' emulator: Adding boot property: 'qemu.sf.lcd_density' = '240' emulator: Trace file name is not set emulator: emulator window was out of view and was recentred emulator: control console
Re: [android-developers] Android emulator can't find internet connection
Yes, of course i know about it. uses-permission android:name=android.permission.INTERNET/uses-permission When i mean my emulator can't see internet connection, i refer to its browser not my application. --- On Mon, 2/7/11, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: From: Robin Talwar r.o.b.i.n.abhis...@gmail.com Subject: Re: [android-developers] Android emulator can't find internet connection To: android-developers@googlegroups.com Date: Monday, February 7, 2011, 4:29 PM Do u have this in manifest file :- uses-permission android:name=android.permission.INTERNET/uses-permission You have to set permission in manifest file for emulator to access internet On Mon, Feb 7, 2011 at 9:55 PM, Lidia G lidyp...@yahoo.com wrote: Hello guys, Please help me solve this unpleasure problem, i do not know what to do else. First i used android-sdk-r07-windows and installed from ADT plugin only AVD Google 2.1 APi 7 Then i updated the rest of AVD and any other updated resources available from https://dl-ssl.google.com/android/eclipse/ After this update my Android emulators are not recognising the internet connection at all. I have a simple LAN internet connection, with a DHCP configuration that provides an dynamic IP. Then i installed android-sdk_r09-windows , and installed the ADT plugin with all available resources. and i got the same problem. How can i manually set the internet connection for an android emulator??or Where can i see the reason of the internet connection failure? I found that if i start an emulator from command line like emulator -verbose -avd emulator_name this may tell the possible reason of internet connection failure, but i don't understand its details: //C:\android\android-sdk_r09-windows\toolsemulator -verbose -avd google_8 emulator: found SDK root at C:\android\android-sdk_r09-windows emulator: root virtual device file at C:\Documents and Settings\lidia.gutu\.andr oid/avd/google_8.ini emulator: virtual device content at C:\Documents and Settings\lidia.gutu\.androi d\avd\google_8.avd emulator: virtual device config file: C:\Documents and Settings\lidia.gutu\.andr oid\avd\google_8.avd/config.ini emulator: locking user data image at C:\Documents and Settings\lidia.gutu\.a ndroid\avd\google_8.avd/userdata-qemu.img emulator: locking cache image at C:\Documents and Settings\lidia.gutu\.andro id\avd\google_8.avd/cache.img emulator: locking SD Card image at C:\Documents and Settings\lidia.gutu\.and roid\avd\google_8.avd/sdcard.img emulator: ignoring non-existing snapshots at C:\Documents and Settings\lidia.gut u\.android\avd\google_8.avd/snapshots.img: No such file or directory emulator: found skin 'WVGA800' in directory: C:\android\android-sdk_r09-windows/ platforms\android-8\skins emulator: autoconfig: -skin WVGA800 emulator: autoconfig: -skindir C:\android\android-sdk_r09-windows/platforms\andr oid-8\skins emulator: keyset loaded from: C:\Documents and Settings\lidia.gutu\.android\defa ult.keyset emulator: trying to load skin file 'C:\android\android-sdk_r09-windows/platforms \android-8\skins/WVGA800/layout' emulator: skin network speed: 'full' emulator: skin network delay: 'none' emulator: argv[00] = emulator emulator: argv[01] = -kernel emulator: argv[02] = C:\android\android-sdk_r09-windows/platforms\android-8\ima ges\/kernel-qemu emulator: argv[03] = -netspeed emulator: argv[04] = full emulator: argv[05] = -netdelay emulator: argv[06] = none emulator: argv[07] = -initrd emulator: argv[08] = C:\android\android-sdk_r09-windows/add-ons\addon_google_ap is_google_inc_8\images\/ramdisk.img emulator: argv[09] = -nand emulator: argv[10] = system,size=0x540,initfile=C:\android\android-sdk_r09- windows/add-ons\addon_google_apis_google_inc_8\images\/system.img emulator: argv[11] = -nand emulator: argv[12] = userdata,size=0x420,file=C:\Documents and Settings\lid ia.gutu\.android\avd\google_8.avd/userdata-qemu.img emulator: argv[13] = -nand emulator: argv[14] = cache,size=0x420,file=C:\Documents and Settings\lidia. gutu\.android\avd\google_8.avd/cache.img emulator: argv[15] = -hda emulator: argv[16] = C:\Documents and Settings\lidia.gutu\.android\avd\google_8 .avd/sdcard.img emulator: argv[17] = -loadvm emulator: argv[18] = default-boot emulator: argv[19] = -savevm-on-exit emulator: argv[20] = default-boot emulator: argv[21] = -serial emulator: argv[22] = android-kmsg emulator: argv[23] = -serial emulator: argv[24] = android-qemud emulator: argv[25] = -lcd-density emulator: argv[26] = 240 emulator: argv[27] = -append emulator: argv[28] = qemu=1 console=ttyS0 android.checkjni=1 android.qemud=ttyS 1 emulator: argv[29] = -m emulator: argv[30] = 96 emulator: registered 'boot-properties' qemud service emulator: mapping 'system' NAND image to C:\DOCUME~1\LIDIA~1.GUT\LOCALS~1\Temp\\
Re: [android-developers] app causes reboot on DroidX after activity gets destroyed - anybody having similar issues?
On 04/02/2011 22:12, mot12 wrote: Any suggestion as to why a phone may reboot are highly welcome. I've only been able to make phones reboot by triggering a crash/exception in a system process. This is standard Android behavior as far as I can tell. This happened to me when I was implementing a SyncAdapter. I had implemented the account part, but not yet the sync adapter. Creating an account would cause a NPE in the sync process which instantly rebooted the phone. This was a real PITA to debug as the phone would reset itself before I even had a chance to capture any debug information. Best of luck hunting down this one. Regards, Pepijn -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Vertical Marquee from Bottom to Up
If you look at the Music app in the Android source you will see a Vertical Text Spinner... hope that helps :) http://hi-android.info/src/com/android/music/VerticalTextSpinner.java.html There is also something like this: http://stackoverflow.com/questions/3506696/auto-scrolling-textview-in-android-to-bring-text-into-view As far as a vertical Marquee where the actual text is vertical... I haven't seen anything like that. Shawn On Feb 7, 10:45 am, Laxmi Verma laxmiverma.andr...@gmail.com wrote: Hi All, I am having problem in creating vertical marquee in android. Can anybody help in this? Thanks!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Where to report app update problems?
On Mon, Feb 7, 2011 at 2:20 AM, Kostya Vasilyev kmans...@gmail.com wrote: http://www.google.com/support/androidmarket/bin/request.py?contact_type=bugs Also TreKing frequently posts a link to report Market problems, maybe it's the same one. Just about: http://www.google.com/support/androidmarket/bin/request.py?contact_type=publisher http://www.google.com/support/androidmarket/bin/request.py?contact_type=publisherNo idea if it makes any difference. - 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
Re: [android-developers] Re: Getting the Android Java source?
I found the downloaded source code under eclipse/plugins. Thanks anyways. VARUN On Mon, Feb 7, 2011 at 6:07 PM, varun tewari varuntewari2...@gmail.comwrote: Can anybody tell me how this works. I use Ganymede. Updated eclipse with above mentioned URL. While debugging my code still says Source Not Found. Do i need to specify any path after updating my eclipse for this. Thanks in advance. VARUN On Dec 28 2010, 9:42 pm, John Lussmyer johnlussm...@gmail.com wrote: Installed and works just fine! It's been REALLY helpful, as I think it just let me find a bug in the Animation class. On Tue, Dec 28, 2010 at 7:54 AM, snpe snp...@gmail.com wrote: John, Could you please tell me if you are install Android sources plugin successfully ? I have tested them, but I'm not sure if somebody use 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 registerReciver(null,Intent) provide latest broadcast value
@Mark, They can send sticky broadcasts but you have to request permission in your manifest http://developer.android.com/reference/android/Manifest.permission.html#BROADCAST_STICKY Shawn On Feb 6, 8:25 am, Mark Murphy mmur...@commonsware.com wrote: Actually, I'm fairly certain that SDK apps can't send sticky broadcasts, as I looked into doing that once. On Sun, Feb 6, 2011 at 2:31 AM, Dianne Hackborn hack...@android.com wrote: It is nothing complicated. It is just the last Intent that was sent with sendStickBroadcast() that matches the IntentFilter you are using. (If there are multiple matches, it is randomly one of them.) That said, I would generally discourage third party apps from using sticky broadcasts. You can accomplish the same thing other ways, and they are generally cleaner. On Sat, Feb 5, 2011 at 7:49 PM, AndroidDevTime androiddevd...@gmail.com wrote: ok, so I can use sendStickyBroadcast(). Just wondered how much I know about the delivery of the latest broadcast that I get back this way. Is there any way to know if it was processed? or do I need to send a confirmation broadcast? What do I know for sure about the broadcast that i get back from registerReceiver(null, Intent). Was this the last Intent that was sucessfully delivered to all broadcast receivers, or was it the last one that where sendStickBroadcast was called? On Feb 5, 7:27 pm, Dianne Hackborn hack...@android.com wrote: It only works for a broadcast that is sent with sendStickyBroadcast(). On Sat, Feb 5, 2011 at 7:08 PM, AndroidDevTime androiddevd...@gmail.comwrote: I have seen registerReceiver(null, Intent) can be used to get last System level broadcast values such as battery level. Does this also work for custom application Intents? Lets say I have an application Intent called SetOrder and I broadcast this Intent. Using registerReceiver(null, SetOrder) can I get last SetOrder broadcast? How does one know if it was really the last one, it it was received and processed? How can you confirm that it was really handed somewhere by a broadcast receiver? 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Silent Installation for Android
Common sense should dictate that this is a serious security issue... the user should be able to determine whether or not an application can or is installed on their device. Just my 2 cents. On Feb 4, 8:37 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Feb 4, 2011 at 8:30 AM, dacky harvey.dac...@gmail.com wrote: So this feature is just for android. Are there any plans in the future to make this available for developers? I rather doubt it. Device manufacturers may have access to it for their own markets (e.g., SHOP4APPS) -- I haven't used any of those to see their behavior. Typically, asking are there any plans in the future is a pointless exercise with Android. You find out when the rest of us find out, if/when it happens. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in Atlanta:http://bignerdranch.com/classes/android -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Can registerReciver(null,Intent) provide latest broadcast value
I thought that was one that ordinary SDK apps couldn't hold, but puttering around suggests that I may be mistaken. Thanks! On Mon, Feb 7, 2011 at 12:51 PM, AndroidWorkz android.workz.a...@gmail.com wrote: @Mark, They can send sticky broadcasts but you have to request permission in your manifest http://developer.android.com/reference/android/Manifest.permission.html#BROADCAST_STICKY Shawn On Feb 6, 8:25 am, Mark Murphy mmur...@commonsware.com wrote: Actually, I'm fairly certain that SDK apps can't send sticky broadcasts, as I looked into doing that once. On Sun, Feb 6, 2011 at 2:31 AM, Dianne Hackborn hack...@android.com wrote: It is nothing complicated. It is just the last Intent that was sent with sendStickBroadcast() that matches the IntentFilter you are using. (If there are multiple matches, it is randomly one of them.) That said, I would generally discourage third party apps from using sticky broadcasts. You can accomplish the same thing other ways, and they are generally cleaner. On Sat, Feb 5, 2011 at 7:49 PM, AndroidDevTime androiddevd...@gmail.com wrote: ok, so I can use sendStickyBroadcast(). Just wondered how much I know about the delivery of the latest broadcast that I get back this way. Is there any way to know if it was processed? or do I need to send a confirmation broadcast? What do I know for sure about the broadcast that i get back from registerReceiver(null, Intent). Was this the last Intent that was sucessfully delivered to all broadcast receivers, or was it the last one that where sendStickBroadcast was called? On Feb 5, 7:27 pm, Dianne Hackborn hack...@android.com wrote: It only works for a broadcast that is sent with sendStickyBroadcast(). On Sat, Feb 5, 2011 at 7:08 PM, AndroidDevTime androiddevd...@gmail.comwrote: I have seen registerReceiver(null, Intent) can be used to get last System level broadcast values such as battery level. Does this also work for custom application Intents? Lets say I have an application Intent called SetOrder and I broadcast this Intent. Using registerReceiver(null, SetOrder) can I get last SetOrder broadcast? How does one know if it was really the last one, it it was received and processed? How can you confirm that it was really handed somewhere by a broadcast receiver? 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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
[android-developers] opengl textures
Do opengl textures on Android have to be a width and height that is a power of 2? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] app causes reboot on DroidX after activity gets destroyed - anybody having similar issues?
Please file bug reports for any such crashes. Note the output of logcat is extremely useful -- in most cases, if the system crashes, it is due to a Java crash, which will be printed to the log prior to it rebooting. This may help you understand what is going on; it is *extremely* helpful in a bug you file since the engineer can very likely tell what the problem is and how to fix it from the log. On Mon, Feb 7, 2011 at 9:15 AM, Pepijn Van Eeckhoudt pep...@vaneeckhoudt.net wrote: On 04/02/2011 22:12, mot12 wrote: Any suggestion as to why a phone may reboot are highly welcome. I've only been able to make phones reboot by triggering a crash/exception in a system process. This is standard Android behavior as far as I can tell. This happened to me when I was implementing a SyncAdapter. I had implemented the account part, but not yet the sync adapter. Creating an account would cause a NPE in the sync process which instantly rebooted the phone. This was a real PITA to debug as the phone would reset itself before I even had a chance to capture any debug information. Best of luck hunting down this one. Regards, Pepijn -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Task killer kills my application but android restarts my service, which i dont want
Yes if another process is bound, the service will be restarted. As of 2.2 a task killer simply can't do what you are asking. The force stop button in Manage Applications will do this. On Mon, Feb 7, 2011 at 2:00 AM, JC jay.chadderw...@gmail.com wrote: Hello All, I have service running in background and notification is shown in GUI. When i do force close from application=manage application, my service, application and icon in notification bar goes off. But when i kill my application via TaskKiller application, my service stopped and then Android OS restarts service(i can see from logcat) and icon in my notification area remains. while my background work (of downloading image) is closed. I return START_STICKY (also tried with STArT_NOT_STICKY flag) from OnStartCommand(), but no luck. My GUI activity, binds to service via Context.BIND_AUTO_CREATE, is it because of that flag? What should i do if i want my application,service and notification area icon to go off, when application is killed by task killer. I have searched through Thanks in advance. JRC -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Honeycomb SDK
You are using this wrong. Both attributes need to be in a single uses-sdk tag. The rule is simple: if the targetSdkVersion is Honeycomb, then you get the new Honeycomb behavior. (Note this is the exact same way this has worked forever, as documented by android.os.Build.VERSION_CODES about the changes in behavior you get as you target later platform versions.) This SDK is a preview, without final APIs, so its SDK version is a codename since code you write with it is by definition not tested on final builds. Once the final SDK is available, that will have an actual API version number for Honeycomb. On Mon, Feb 7, 2011 at 12:11 AM, blindfold seeingwithso...@gmail.comwrote: Yes I hope they will fix that for the final Honeycomb SDK, because currently I need to recompile for either uses-sdk android:minSdkVersion=4/ uses-sdk android:targetSdkVersion=Honeycomb/ giving me the conventional (Android 2.3-) phone appearance in the Honeycomb emulator, or uses-sdk android:minSdkVersion=Honeycomb/ uses-sdk android:targetSdkVersion=Honeycomb/ for the holographic appearance in the Honeycomb emulator. What I want of course is to have one APK that is backward compatible to (in my case) minSdkVersion=4 and that shows the holographic UI on tablets or phones that run Honeycomb. I do not need to change anything in my code but these manifest changes to get there, so it is very inconvenient to forbid uses-sdk android:minSdkVersion=4/uses-sdk android:targetSdkVersion=Honeycomb/ when aiming to get the holographic appearance on Honeycomb devices and the conventional Android 2.3- UI on non-Honeycomb devices. On Feb 7, 8:54 am, Marcin Orlowski webnet.andr...@gmail.com wrote: On 7 February 2011 00:57, midtoad stewart.midwin...@gmail.com wrote: You will then get the Honeycomb Holograph them and your app will have an updated look and feel. http://developer.android.com/sdk/preview/index.html Android 3.0 offers an updated set of UI widgets that are redesigned for use on larger screens such as tablets and incorporate the new holographic theme. Your existing application can inherit the new design simply by setting the uses-sdk element's android:targetSdkVersion attribute to Honeycomb. If you do not update the android:targetSdkVersion attribute and the android:minSdkVersion is set to 9 or lower, then your application uses the widget designs from Android 2.3 and does not inherit the holographic theme. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] opengl textures
On 7 February 2011 19:22, Marcin Orlowski webnet.andr...@gmail.com wrote: On 7 February 2011 18:57, bob b...@coolgroups.com wrote: Do opengl textures on Android have to be a width and height that is a power of 2? In general: yes as some devices will won't handle your textures otherwise. It applies to width (for quite obvious reasons), yet I am not sure about height and can't check now. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] opengl textures
On 7 February 2011 18:57, bob b...@coolgroups.com wrote: Do opengl textures on Android have to be a width and height that is a power of 2? In general: yes as some devices will won't handle your textures otherwise. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Development Tools Crashing
hmm this is very strange. I'm not sure what's going on to be honest and the stack trace doesn't help. ADT 10 is the version in development, it's not available yet. On Mon, Feb 7, 2011 at 4:53 AM, Evan Ruff evan.r...@hendersonsawmill.com wrote: Xav, I have, ~all the targets since 1.0 installed! Maybe this is breaking everything? I'll remove everything except 1.6 and see if that helps. Also, is there a new version (you mention ADT 10.0). I'm on 9.0, but the Update Manager does not inform me of anything? Thanks for the help! E On Sun, Feb 6, 2011 at 5:33 PM, Xavier Ducrohet x...@android.com wrote: I can't seem to reproduce (running ADT 10.0, tip of tree, and Eclipse 3.5r2)) - created a new project - edited main.xml the rendering target is properly selected (in this case Android 2.2), and the default theme (Theme) was selected. I don't think we changed things around this so I'm not sure what's up. How many Android Targets do you have installed? Xav On Sun, Feb 6, 2011 at 7:53 AM, Seni Sangrujee s...@fieldteams.com wrote: about 85% of the time. If it does not throw the NPE, it says Missing Theme I'm getting the same thing on Galileo. It looks like a temporary workaround is to select the platform dropdown(Android 2.2/2.3) in the upper right which will cause the Theme dropdown to appear next to it. -- Seni Sangrujee http://fieldteams.com http://metosphere.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 -- Xavier Ducrohet Android SDK Tech Lead Google Inc. http://developer.android.com | http://tools.android.com Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Xavier Ducrohet Android SDK Tech Lead Google Inc. http://developer.android.com | http://tools.android.com Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Honeycomb SDK
Ah yes, of course, for now (in my case) with the preview SDK uses-sdk android:minSdkVersion=4 android:targetSdkVersion=Honeycomb/ and soon with the final SDK uses-sdk android:minSdkVersion=4 android:targetSdkVersion=11/. Thank you, Dianne. On Feb 7, 7:06 pm, Dianne Hackborn hack...@android.com wrote: You are using this wrong. Both attributes need to be in a single uses-sdk tag. The rule is simple: if the targetSdkVersion is Honeycomb, then you get the new Honeycomb behavior. (Note this is the exact same way this has worked forever, as documented by android.os.Build.VERSION_CODES about the changes in behavior you get as you target later platform versions.) This SDK is a preview, without final APIs, so its SDK version is a codename since code you write with it is by definition not tested on final builds. Once the final SDK is available, that will have an actual API version number for Honeycomb. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: app causes reboot on DroidX after activity gets destroyed - anybody having similar issues?
Thanks Dianne, Without logcat output, I am not sure what I could file as a bug report without sounding like a rambling idiot. However, when I ask the user to send me logcat output after the reboot, it always only has data from the current session, never any data from prior the reboot event. So Java may have left interesting notes but they get wiped out with the boot process. Any idea how to get the log data from before the reboot? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: opengl textures
If not mipmapping, you can do rectangular powers of two (512x256, 1024x512) but if using mips, you need to keep it square (256x256, 512x512). Some devices can do non power of two, but a good rule of thumb is to always use it. If you have some reason not to, you can check the extensions for the NPOT extension and if it's present, you can use any dimensions under 2k I believe. On Feb 7, 10:23 am, Marcin Orlowski webnet.andr...@gmail.com wrote: On 7 February 2011 19:22, Marcin Orlowski webnet.andr...@gmail.com wrote: On 7 February 2011 18:57, bob b...@coolgroups.com wrote: Do opengl textures on Android have to be a width and height that is a power of 2? In general: yes as some devices will won't handle your textures otherwise. It applies to width (for quite obvious reasons), yet I am not sure about height and can't check now. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: app causes reboot on DroidX after activity gets destroyed - anybody having similar issues?
Oh sorry, I didn't catch that you were also getting reports from someone else's device. In that case, it is hard. :} Ideally the logs would be quiet enough that looking at them after the system is done rebooting would still have the crash available from the previously running system. In practice, they seem to be generally too noisy for that. :/ One thing we should do is have these crashes written somewhere so we can always give you the stack of the last system crash. I'll try to get that into the next version of the platform. On Mon, Feb 7, 2011 at 10:56 AM, mot12 martin.hu...@gmail.com wrote: Thanks Dianne, Without logcat output, I am not sure what I could file as a bug report without sounding like a rambling idiot. However, when I ask the user to send me logcat output after the reboot, it always only has data from the current session, never any data from prior the reboot event. So Java may have left interesting notes but they get wiped out with the boot process. Any idea how to get the log data from before the reboot? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Debugger Disconnected when calling External Intent???
This is probably too late for you Chad. But just for the record and to help more people like me (who spended an hour trying to figure this out). I was able to debug after calling the camera intent putting a manual breakpoint like this: if (!Debug.isDebuggerConnected()){ Debug.waitForDebugger(); Log.d(debug, started); // Insert a breakpoint at this line!! } Then the debugger will stop here and you can continue to debug. *CAUTION!!* This will stop to debug even if it is on RUN mode. So remeber to take this lines out before publishing the app!! If someone got a better way to do this, please let me know. Regards, Carlos Eduardo Rührwiem -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en