[android-developers] Re: AbortBroadcast Problem With 2.0 and 2.0.1 SDK's
Hi, Any update I ma still waiting. Gulfam Hassan On Jan 8, 6:04 pm, Gulfam gulfa...@gmail.com wrote: Hi All, I am facing issue with 2.0 and 2.0.1 on aborting broadcast for out going calls. In my main activity on callButton press I am initiating call like this /*Mian Activity Where Call Initiating**/ public class MainActivity extends Activity implements OnClickListener{ public void onClick(View v) { if(v == callButton){ String phoneNumber = +45123456 Intent DialIntent = new Intent (Intent.ACTION_CALL,Uri.parse(phoneNumber)); DialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(DialIntent); } }} //*Here is my Broad Cast Receiver// Public Class MyOutGoingCallReceiverIntent extends BroadcastReceiver{ public void onReceive(Context context, Intent intent) { String dialNumber= intent.getStringExtra (Intent.EXTRA_PHONE_NUMBER); if(dialNumber.startsWith(+45))//***International number abort broad cast*// { Log.i(Before Abort Broadcast,111); abortBroadcast(); Log.i(After Abort Broadcast,222); Intent DialIntent = new Intent (Intent.ACTION_CALL,Uri.parse(3224005421));/**local number DialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(DialIntent); } } } /**Register Receiver In menifest/ receiver android:name=MyOutGoingCallReceiverIntent android:enabled=true intent-filter android:priority=200 action android:name=android.intent.action.NEW_OUTGOING_CALL / category android:name=android.intent.category.DEFAULT / /intent-filter /receiver /**Permissions in menifest**/ I have added these permissions in menifest uses-permission android:name=android.permission.CALL_PHONE/uses- permission uses-permission android:name=android.permission.PROCESS_OUTGOING_CALLS/uses- permission uses-permission android:name=android.permission.CALL_PRIVILEGED/ uses-permission ** Now move towoards Issue abortBroadcast(); is working fine with 1.0 to 1.6 SDK's but when i run the same code on 2.0+ SDK's Its print the Log statments as Before Abort Broadcast 111 After Abort Broadcast 222 But not Abort the broad cast. Any one can help me regarding this issue. I have read the Documentation of 1.0 and 2.0 but there is no difference in documentation. My application is also running on market and there is no issue with 1.0 to1.6 but now i am porting it for 2.0 its not aborting broadcast. Is there any solution Thanks in advance. Gulfam Hassan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Unable to get redraw of View
Answering my own question. When prototyping the app, I'd programmatically instantiated the MyView. Later, I'd added an entry of MyView in the main.xml file. Thus, I had two instances of the MyView object, one on top of the other. Thus, redraws were happening on the instance underneath the top instance. On Jan 8, 7:16 pm, jamesc jame...@gmail.com wrote: Hi I've a problem with getting a redraw of a View in my application. My app's main.xml looks like this: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.myOwn.MyView android:layout_width=fill_parent android:layout_height=wrap_content/ ListView android:id=@+id/clueview android:layout_width=fill_parent android:layout_height=wrap_content/ /LinearLayout Both views act to represent the same data: the selected position in the ListView should reflect in the com.myOwn.MyView View and vice- versa. The problem is that whilst the underlying data is correct (i.e. that is to be displayed) when selecting a position in the ListView, the MyView View doesn't get redrawn despite a call to MyView.invalidate(). I had intermittant luck with calling requestFocus () before calling invalidate(), but it only works once (and I've not investigated further). Having said all that, the inverse (i.e. setting a value in the MyView View affects/updates the ListView) works correctly. Any ideas would be gratefully received. Cheers James -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] open all blocked sites in your country now
open all blocked sites in your country now Browse the internet securely using Your Proxy You can unblock popular social networking sites such as myspace, bebo, facebook and many other sites. يمكنك الآن فتح المواقع المحجوبه فى بلدك من هذا الرابط http://alagmyproxy.zxq.net/proxy/index.php -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: PACKAGE_ADDED, PACKAGE_REMOVED and PACKAGE_REPLACED...
*bump* ;-) On Thu, Nov 19, 2009 at 12:19 AM, sdphil phil.pellouch...@gmail.com wrote: how do you do that? I tried: receiver android:name=com.test.MyApp.UpdateReceiver intent-filter action android:name=android.intent.action.PACKAGE_ADDED/ action android:name=android.intent.action.PACKAGE_REMOVED/ action android:name=android.intent.action.PACKAGE_REPLACED/ data android:scheme=package android:path=com.test.MyApp/ /intent-filter /receiver And a bunch of variations of android:path, but I couldn't get it to only notify me when it was my app. tia. On Nov 18, 12:58 pm, Dianne Hackborn hack...@android.com wrote: Please register for only your specific package name, not every package, so your app doesn't get launched every time another app is installed or uninstalled. On Wed, Nov 18, 2009 at 12:21 PM, sdphil phil.pellouch...@gmail.com wrote: oh, okay, so I added this line to my manifest -- data android:scheme=package/ and it seemed to work. I get a removed followed by a replaced. as is documented here: http://developer.android.com/intl/fr/guide/appendix/faq/framework.html now I just gotta figure out how to remove/replace the app widget when i get this... anyone?? On Nov 18, 12:13 pm, sdphil phil.pellouch...@gmail.com wrote: when I re-install an application, i get PACKAGE_REMOVED followed by PACKAGE_ADDED. I never see PACKAGE_REPLACED. any ideas why? And actually, I never see any of the PACKAGE_* actions except in LogCast -- I cannot get my broadcast receiver to get the events. i'm doing this in the emulator using adb -- adb install -r MyApp.apk My Android manifest has these lines in it: application... ... ... receiver android:name=com.test.MyApp.UpdateReceiver intent-filter action android:name=android.intent.action.PACKAGE_ADDED/ action android:name=android.intent.action.PACKAGE_REMOVED/ action android:name=android.intent.action.PACKAGE_REPLACED/ /intent-filter /receiver ... ... /application And my UpdateReceiver.java looks like this: package com.test.MyApp; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class UpdateReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); System.err.println(action: + action); } } tia. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.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 -- 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.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] Interleaved buffer in OpenGL incompatible with GLLogWrapper?
I'm getting exceptions when I try to use an interleaved buffer in OpenGL with android.opengl.GLLogWrapper. Has anyone else run into this? Everything works fine if I disable GLLogWrapper by removing this line: mGLSurfaceView.setDebugFlags(GLSurfaceView.DEBUG_CHECK_GL_ERROR | GLSurfaceView.DEBUG_LOG_GL_CALLS); Replacing that line with this also works fine: mGLSurfaceView.setDebugFlags(GLSurfaceView.DEBUG_CHECK_GL_ERROR); What I'm doing seems fine to OpenGL, just not GLLogWrapper. Using position() on Buffer to specify an offset is outlined here: http://java.sun.com/javame/reference/apis/jsr239/ Same results on my Android 1.6 G1 and the emulator running an Android 2.0.1 AVD. Stack trace from 2.0.1: V/GLSurfaceView( 226): glClear(GL_COLOR_BUFFER_BIT); I/ARMAssembler( 54): generated scanline__0077:03010104_0004_ [ 22 ipp] (41 ins) at [0x504b80:0x504c24] in 679333 ns W/dalvikvm( 226): threadid=15: thread exiting with uncaught exception (group=0x4001b188) E/AndroidRuntime( 226): Uncaught handler: thread GLThread 8 exiting due to uncaught exception E/AndroidRuntime( 226): java.lang.IndexOutOfBoundsException E/AndroidRuntime( 226):at java.nio.IntToByteBufferAdapter.get (IntToByteBufferAdapter.java:155) E/AndroidRuntime( 226):at android.opengl.GLLogWrapper.doArrayElement (GLLogWrapper.java:1105) E/AndroidRuntime( 226):at android.opengl.GLLogWrapper.doElement (GLLogWrapper.java:1126) E/AndroidRuntime( 226):at android.opengl.GLLogWrapper.glDrawArrays (GLLogWrapper.java:1520) E/AndroidRuntime( 226):at name.nanek.test.interleavedbuffer.TestInterleavedBuffer$1.onDrawFrame (TestInterleavedBuffer.java:75) E/AndroidRuntime( 226):at android.opengl.GLSurfaceView $GLThread.guardedRun(GLSurfaceView.java:1112) E/AndroidRuntime( 226):at android.opengl.GLSurfaceView$GLThread.run (GLSurfaceView.java:971) I/Process ( 54): Sending signal. PID: 226 SIG: 3 I/dalvikvm( 226): threadid=7: reacting to signal 3 I can also get a slightly different exception if I modify the code to slice the buffer at zero and position the slice: V/GLSurfaceView(26498): glClear(GL_COLOR_BUFFER_BIT); W/dalvikvm(26498): threadid=15: thread exiting with uncaught exception (group=0x4001da28) E/AndroidRuntime(26498): Uncaught handler: thread GLThread exiting due to uncaught exception E/AndroidRuntime(26498): java.nio.BufferUnderflowException E/AndroidRuntime(26498):at java.nio.IntToByteBufferAdapter.get (IntToByteBufferAdapter.java:148) E/AndroidRuntime(26498):at android.opengl.GLLogWrapper.toByteBuffer (GLLogWrapper.java:977) E/AndroidRuntime(26498):at android.opengl.GLLogWrapper.access$000 (GLLogWrapper.java:38) E/AndroidRuntime(26498):at android.opengl.GLLogWrapper $PointerInfo.bindByteBuffer(GLLogWrapper.java:3042) E/AndroidRuntime(26498):at android.opengl.GLLogWrapper.bindArrays (GLLogWrapper.java:1147) E/AndroidRuntime(26498):at android.opengl.GLLogWrapper.startLogIndices(GLLogWrapper.java:1166) E/AndroidRuntime(26498):at android.opengl.GLLogWrapper.glDrawArrays (GLLogWrapper.java:1518) E/AndroidRuntime(26498):at name.nanek.test.interleavedbuffer.TestInterleavedBuffer$1.onDrawFrame (TestInterleavedBuffer.java:75) E/AndroidRuntime(26498):at android.opengl.GLSurfaceView $GLThread.guardedRun(GLSurfaceView.java:955) E/AndroidRuntime(26498):at android.opengl.GLSurfaceView$GLThread.run (GLSurfaceView.java:887) I/Process ( 76): Sending signal. PID: 26498 SIG: 3 I/dalvikvm(26498): threadid=7: reacting to signal 3 Here's some minimal sample code for the first case that uses robot.png from the API Demos. Paste bin version: http://pastebin.com/f3eb6b1d3 Inline version: package name.nanek.test.interleavedbuffer; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.IntBuffer; import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.opengles.GL10; import android.app.Activity; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.opengl.GLSurfaceView; import android.opengl.GLUtils; import android.opengl.GLSurfaceView.Renderer; import android.os.Bundle; public class TestInterleavedBuffer extends Activity { private static final boolean LOG = true; private static final boolean AUTOSLICE = false; //One in fixed point. private static final int F1 = 1 16; //Number of vertexes needed for a square made using a triangle strip. private static final int VERTEX_COUNT = 4; //3 position values and 2 texture values per vertex. private static final int INTS_PER_VERTEX = 5; //Byte distance between vertexes. private static final int STRIDE = INTS_PER_VERTEX * Integer.SIZE / Byte.SIZE; //Total number of bytes. private static final int BUFFER_BYTES = VERTEX_COUNT * STRIDE; private final IntBuffer buffer = ByteBuffer
[android-developers] Offline SDK installation
Hello. I want to use Android SDK on Windows PC. Due to company policy regarding security, development machines are not connected to internet. Only different computer, running MacOSX, is connected to internet. How do I install Android SDK on Windows machine? When I run Android SDK on MacOSX, it allows only to install MacOSX packages. It does not allow to download/install Windows packages. When I select Windows packages, I get error message: Skipping incompatible archive: Android SDK Tools, revision 4 for Windows Skipping incompatible archive: SDK Platform Android 2.0.1, API 6, revision 1 for Windows Skipping incompatible archive: Usb Driver package, revision 3 for Windows Please advise what to do in this situation. -- Martins -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Eclipse Crashes
Anyone found a solution? This issue is quite annoying from time to time :) On Dec 14 2009, 6:28 am, Mike michaeldouglaskra...@gmail.com wrote: I'm using Ganymede with the latest release of the Android SDK (2.0.1) and I'm experiencing a similar problem. I'm pretty sure I noticed this issue with the 2.0 SDK as well. For me, I notice the problem will occur as I am editing an XML layout while on the text editor tab and the last 3 or 4 characters I type will not be reflected in the editor. When I try to save, Eclipse will popup a dialog saying an error occurred and it needs to exit. I am not using my computer with my Eclipse environment right now, but when I do, I'll include what information I can about the error. This happens fairly frequently for me (4 or more times a day) and is annoying. The only workaround is to exit Eclipse and start it up again. - Mike On Dec 11, 4:50 am, g...@devicedriven ginokur...@gmail.com wrote: Whenever i try to open the layout.xml file in eclipse..eclipse crashes and exits without any messages.. However if i try to open the xml file without using the layout editor of ADT plugin everything is fineit will open as an editable file..the problem started only after i updated the latest version of ADT...before that everything was working fione. Does anyone else have the same problem?What should i do to rectify it?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Conventions about using SD card
Hello Dianne, thank you for clarification. But I have one more question. Everything you've said makes sense when we talk about internal application files (configurations, temporarily storage whatever else). However, there are few other cases. In my case I need to implement backup/restore function. In this case I guess the user has to know the directory where the files are stored (later backup files might be copied to another storage). If the user can not configure this, then he/she might have difficulties with finding backup files (at least the directory is not obvious). So I think that before writing backup files to SD card we need to let user to specify the directory where these files should be stored. We still can use API to preset directory selection screen with some value (e.g., /sdcard/application-name/backups), but we want to let user choose the directory, so later when device card is mounted to the desktop, the user could be sure he/she finds the files in the specified directory. Does it make sense? On Jan 4, 11:14 am, Dianne Hackborn hack...@android.com wrote: On Sun, Jan 3, 2010 at 11:11 PM, Alessandro Pellizzari a...@amiran.itwrote: Please also consider devices with more than one SD card, like the Samsung Galaxy (/sdcard is the internal 6.5 GB flash, /sdcard/sd is the external removable SD card). In theory, your app should do nothing special about this. There is a public API to get the path the external storage; you should use that, and never hard-code paths. Currently the platform only supports one external storage location, so I would suggest using that and staying blissfully unaware of whatever other stuff Samsung does. Unless they provide their own well-defined API to their own storage paths (via a library your app can link to), or contribute a patch to the platform to support other kinds of external storage, you should treat whatever else they are doing as non-existent: you have no way to know if that will exist in the future in the current form or at all. If you need to store big chunks of data, you could let the user configure the path in which to save them. That's one of the things we really don't want applications doing. :} We try very hard to keep paths out of the UI for users; for some specific kinds of apps it can make sense to expose them (such as file browsers), but users should not be confronted with paths when dealing with normal applications. -- 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] Problem with unlocking the screen programmatically
My application listens for incomming calls and puts additional information about the caller to the Incoming Call screen via transparent activity. I've got the problems with displaying this information while receiving the call when phone is in screen lock state. 1. On HTC Dream when the call came in, first I saw the standard incoming call screen and no lock, then the lock screen appeared probably because application tries to perform some actions (actually, instantiate the transparent Activity). 2. On HTC Hero when the call came in the lock screen appears saying Drag down to unlock and then my transparent activity is displayed. After that there is no possibility to unlock the screen as all user interaction is intercepted by my activity, the only way is to close it via pressing Back button. What I need is to unlock the screen when notification about incomming call is received and only after display the transparent activity with some info. I tried to use KeyguardManager for this purposes, here is the code snippet: ... KeyguardManager manager = (KeyguardManager) context.getSystemService (Context.KEYGUARD_SERVICE); KeyguardManager.KeyguardLock lock = manager.newKeyguardLock (CallStateReceiver.class.getSimpleName()); lock.disableKeyguard(); ... context.startActivity(transparentActivityIntent); This didn't help actually, in the DDMS I see the log that disableKeyguard() was called but the keyguard remains. What I'm doing wrong ? The description of disableKeyguard() function says that A good place to call this is from onResume() but I'm calling this from my BroadcastReceiver's onReceive() method - maybe that's the problem ? Please advice or provide a codesnippet which worked for you. Thanks in advance ! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Offline SDK installation
On Jan 11, 10:59 am, Martins Mozeiko 49640...@gmail.com wrote: Hello. I want to use Android SDK on Windows PC. Due to company policy regarding security, development machines are not connected to internet. Only different computer, running MacOSX, is connected to internet. How do I install Android SDK on Windows machine? When I run Android SDK on MacOSX, it allows only to install MacOSX packages. It does not allow to download/install Windows packages. When I select Windows packages, I get error message: Skipping incompatible archive: Android SDK Tools, revision 4 for Windows Skipping incompatible archive: SDK Platform Android 2.0.1, API 6, revision 1 for Windows Skipping incompatible archive: Usb Driver package, revision 3 for Windows Please advise what to do in this situation. -- Martins hi, see http://dl-ssl.google.com/android/repository/repository.xml and then download win32 packages pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Register new File type in web Browser
Hi , i was willing to know isf there is any methiod to add a coustom data type to web browser accept header in android. Thanks in Advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] help: Standalone android binary
Hi, i'm trying to write an android class file that i can compile and then other developers can download it and include it in their applications to give them additional functionalities. for example, a small program that would monitor how long a user actively uses an app for my pinging a server every 30 seconds that the app is active for. i would like to write the method for this program, compile the file and then some one else could add the file to their project and just initialize the method to run the main method in the file, can anyone tell me how i could just compile the class file using eclipse. Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] corporate calendar testing needed -help?
Could anyone help test my app with an android device that is using a corporate calendar alternatively, can you tell me how to set up a mock corporate exchange server connection (and thus corporate calendar) on the emulator? Can this be done in AVD? 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: corporate calendar testing needed -help?
Hey Andrew. Microsoft online has a 30 day evaluation for Exchange 2007 server. You can register there and get upto 20 accounts with all functions free for 30 days. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Jan 11, 4:40 pm, andrew android andygoldm...@gmail.com wrote: Could anyone help test my app with an android device that is using a corporate calendar alternatively, can you tell me how to set up a mock corporate exchange server connection (and thus corporate calendar) on the emulator? Can this be done in AVD? 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] Access menu layout and structure
Is it possible to access the menu layout and structure and the icons that are arrangenged on the desktop? I want to write an application, that helps a user to arrange icons. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Launching Browser in Preference Activity.
Hi folks, I want to List Item in Preference activity. and I want to launch a Browser with a URL which can change dynamically, When I click on that Item. Can anyone let me know how can i Achieve??? -- Regards, Manjunatha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Launching Browser in Preference Activity.
Try setting something like: Intent myIntent = new Intent(Intent.VIEW_ACTION, Uri.parse(http://www.google.com;)); //you can make this URL dynamic startActivity(i); In the onListItemClick() method of your activity. - jwei http://thinkandroid.wordpress.com Examples, Code, and Tutorials On Jan 11, 4:09 am, Manjunatha M man...@gmail.com wrote: Hi folks, I want to List Item in Preference activity. and I want to launch a Browser with a URL which can change dynamically, When I click on that Item. Can anyone let me know how can i Achieve??? -- Regards, Manjunatha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Handler synchronization question
I'm not sure what your code looks like, but some things you could try are: 1) If you are using a thread to do all of the network calls, maybe have something like while(!pageIsDone) { sleep(1000); } // then display data And in your Activity class you can set the boolean pageIsDone to true as soon as the necessary views have been loaded? Definitely probably not the preferred way to do it though... 2) The no thinker way to do it would probably just be to start the background thread after your UI display is done loading. I think this is typically acceptable as your application will not timeout / ANR and your user will not experience in lag in their experience of your app. Note this can often be paired with some sort of progress dialog to make it even better Not sure if this will help but maybe its a start? - jwei http://thinkandroid.wordpress.com Examples, Code, and Tutorials On Jan 10, 9:10 pm, Sekhar sek...@allurefx.com wrote: I'd like to start an activity with some initial data (passed through Extras) that sets up a display page, while I simultaneously make a network call to get the rest of the data. I thought I'd pass this new data to the activity as a message to the activity's handler. Works fine. Now, my question is: how can I make sure that the activity has finished drawing the page and is ready to show the message data? The data might come from the cache, so I'm worried the message may land in the handler before the page is ready to display it. Is there a way to synchronize the page draw and the message handling? E.g., is it possible to suspend the looper till the page is ready? What's the preferred way of doing what I'm trying to do? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] super free register
Everyone, check out this new online site, its going to be bigger in future. New shopping model will make you save more money while you shop online….how good is that ?? http://www.shoppingreps.com?SourceId=11221 Simply register, that’s free, and start to pick up some fantastic bargains, but don't forget to use the “refer your friends” button to spread the word. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Moving Image Over Another Image
Hi all, I need to design a board UI using android platform. i was planning to take one image as board and moving the required images over the board. How do i achieve the same? I need to split the board based on coordinates and need to move the required images to specifies coordinates. Is there any andorid api for image movements and animation? I will greatly appreciate your replies. Prakhy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Memory optimizations
Hi everyone! I will work in an Android videogame soon. It will need a lot of artwork which means that will have a few image resources. Mi question is about the loading process of the application and its memory optimizations. About the pictures: How does the VM handle the drawable resources or the classes of the application that are not used yet, I mean, does the application load everything at once or just under demand? About the unused classes: Does the declaration of unused classes consume memory or are them just loaded when I create an instance of them? If some clases have a lot of fixed static data (for example, preloaded locations for a map) is all that data consuming memory when the class is not used or its loaded by demand? Thank you very much in advance. Sorry for my bad english. Best regards. Miguel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] activity animation
How to animate activity entrance and exit? And activity relaunch after onNewIntent() ? I used android:theme in the manifest file but it didn't work for me. Cheeers, -Shrey -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] JmDNS/zeroconf/Bonjour with Android SDK 2.0
Hi everyone, JmDNS is giving me a hard time. I was wondering if anyone successfully implemented it on Android SDK 2.0 (+). In my attempt to figure out what goes wrong I tried out TunesRemote from the Market. Since its source code is available (http:// dacp.jsharkey.org/) I also compiled it myself. Neither version works on my phone (Motorola Milestone/Droid). The emulator doesn't work as well. So here's what's (not) happening: I can set up everything as needed but unfortunately the ServiceListener never responds to anything. I know that there's a ton of services available in this network so this can not be the issue. I've already written Jeffrey Sharkey an email but he hasn't responded (yet). He seems to be very busy since he is working for Google. Moreover, his TunesControl project is from 2008, i.e. far from being tested on SDK 2.0. So I was wondering if anybody was able to get it working. Maybe there's some code available... Thanks a million, steff -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Lock_layer timed out
Hi, I was not able to find any other POST with a possible solution to this problem. My application CRASH when RETURNING from an ACTIVITY to ANOTHER. The message: lock_layer timed out (is the CPU pegged?) layer=0, lcblk=0x42480020 state=003 (was 042) lock_layer() timed out but didn't appear to need to be locked and we recovered (layer=0 lcblk=0x42480020 state=) The problem not always happens, so its intermittent. I made the code as simple as possible at onSTOP and onDESTROY. So my code only goes at the BACK BUTTON handler. My code: public void onStop(){ super.onStop(); } protected void onDestroy() { super.onDestroy(); } public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK event.getRepeatCount() == 0) { // do something on back. Log.e(BACK PRESSED,BACK WAS PRESSED!); this.ioManager.addRankPoints(this.spriteRenderer.points); this.ioManager.saveRankData(); this.soundManager.stopAllMusics(); this.spriteRenderer.paused=true; while (this.spriteRenderer.drawingState==true) Log.e(OpenGLActivity,Waitting to UNLOCK AFTER END DRAW..); util.unLockScreen(myWakeLock); this.finish(); return true; } return super.onKeyDown(keyCode, event); } The METHOD at UTIL class is: static void unLockScreen(WakeLock wl) { if (wl.isHeld()) wl.release(); } I'm not ASKING your help to CODE the solution for me. Just let me know WHY I HAVE THIS PROBLEM, and WHAT I SHOULD DO to SOLVE IT. (The ACTIVITY that CALLS this METHOD has a GLSurfaceView and I'm using VBO to draw objects on screen) Thanks for your attention. Best regards, Assis -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: activity animation
Create a LayoutAnimation xml in the res/anim directory Something like that: Name this anim layoutAnimation xmlns:android=http://schemas.android.com/apk/res/android; android:delay=100% android:directionPriority=none android:animation=@anim/elem / the anim/elem xml is the one describing each layout element behavior during the animation: set xmlns:android=http://schemas.android.com/apk/res/android; android:interpolator=@android:anim/accelerate_interpolator android:fillBefore=true alpha android:fromAlpha=0.2 android:toAlpha=1.0 android:duration=100 / translate android:fromXDelta=-120%p android:toXDelta=0 android:fromYDelta=-40%p android:toYDelta=0 android:duration=150 / scale android:fromXScale=0.6 android:toXScale=1.0 android:fromYScale=0.6 android:toYScale=1.0 android:pivotX=50% android:pivotY=50% android:duration=100 / /set the fillBefore atribute is necesary to conserve the view of the layout after the animation ends. Then you set the layout atribute android:layoutAnimation=@+anim/ anim - reference to the layout animation, not the element set. When the activity loads, the animation is then display. You have more examples in the Api Demos app of the SDK. To animate the exit of a layout, you define another layout animation if needed. Then you put the following in your code: LayoutAnimationController lac = AnimationUtils.loadLayoutAnimation(this, R.anim.my exit layout); RelativeLayout al = (RelativeLayout)findViewById(R.id.my layout); - It can be another type of layout. al.setLayoutAnimation(lac); and override the methods if needed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Memory Leak in my map overlay
I have done some additional investigation and it seems that many people are having similar symptoms but their fixes aren't working for me. One person said they had threads that were not dying but I have checked that my thread count does not continually increase. I have been using ExecutorService as set up with Executors.newSingleThreadExecutor(); to run my server requests. I also changed it to just run the handler as a normal thread to see if that would help out. I have several other Handlers running as ExecutorService in other activities as well as some processes running as a normal thread that uses newBM = BitmapFactory.decodeStream(bis); and those do not produce the memory leak. The issue seems to be narrowing down to the map overlays. Can someone tell me how to accurately destroy an overlay because it seems like they are hanging around (though how to detect them I am not sure). On Jan 10, 8:21 am, jgostylo jgost...@gmail.com wrote: I have been banging away at this one for weeks and I feel like I have exhausted my research capabilities. I am hoping that someone will see my error in the code posted below. The code is completely functional doing everything I need, but there is a major memory leak. When I try to track memory in the DDMS, the VM Heap tells me that my object count is relatively stable and the used memory is also relatively stable (it comes back down to a similar value after each GC after panning). When I look at the memory pie chart, the free memory loses over 1meg of capacity with each map pan (overlay reload) and the Unknown memory grows. I have not found anything with the allocation tracker. Functional Summary: I load overlays onto a map based on data I get from polling my server. When I pan the map far enough I clear the overlays and load new ones. MapFrontEnd.java (snippets): //header info private ListOverlay overlays; //in onCreate overlays = mapView.getOverlays(); ... // here I attempt to fully clean up my old Overlays for (Overlay i : overlays) { if (i instanceof ParcelOverlay) ((ParcelOverlay) i).cleanUp();} overlays.clear(); // and now I create the new overlays and add them to the Overlay list int count = 0; while (count parcelData.length) { try { overlays.add(new ParcelOverlay(MapFrontEnd.this, parcelData [count])); } ... count++; } ParcelOverlay.java (necessary snippets): public class ParcelOverlay extends Overlay { private MapFrontEnd context; private Location location; private GeoPoint locationPoint; private int parcelSize; private int price; private String priceString; private String owner; private int buildingCount; private int haunted; private Bitmap buildingBitmap = null; private Bitmap ghostBitmap = null; private Bitmap presentBitmap = null; private boolean selected = false; private int backgroundColor; // ARGB private int gridlineColor; private int selectedColor = 0xBBFAFA14; private Typeface face; // draw variables private GeoPoint sizePoint; private Paint rectOverlay = new Paint(); private Paint rectGrid = new Paint(); private Paint textPaint = new Paint(); private Paint imagePaint = new Paint(); Point topLeft = new Point(); Point bottomRight = new Point(); Point bottomLeft = new Point(); Point topRight = new Point(); public ParcelOverlay(MapFrontEnd _context, ParcelData _parcel) { super(); context = _context; locationPoint = new GeoPoint(_parcel.latitude, _parcel.longitude); parcelSize = _parcel.size; price = _parcel.cost; owner = _parcel.owner; buildingCount = _parcel.buildingNumber; haunted = _parcel.haunted; prize = _parcel.prize; priceString = Integer.toString(price); sizePoint = new GeoPoint(locationPoint.getLatitudeE6() + parcelSize, locationPoint.getLongitudeE6() + parcelSize); face = Typeface.createFromAsset(context.getAssets(), fonts/ sd_led_screen.ttf); setupColors(); textPaint.setColor(0xd800); textPaint.setTextSize(25); textPaint.setTypeface(face); } @Override public void draw(Canvas canvas, MapView mapView, boolean shadow) { // there are no new objects created in draw if (shadow == false) { ... if (buildingBitmap != null) canvas.drawBitmap(buildingBitmap, (float)(bottomLeft.x + 5), (float)(topRight.y + 5), imagePaint); if (ghostBitmap != null) canvas.drawBitmap(ghostBitmap, (float)(topRight.x
[android-developers] Finding direction using compass
Hi all, I need to know if there is an interface to access the direction in which the phone is pointing. Thanks Avanish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: applying style to textview
Thanks for your answer indeed i was a bit imprecise; in the xml way only setting the background color does not work. i tried also to use this way item name=android:colorBackground@color/myblue/item item name=android:windowBackground@color/myblue/item like mentionned in your link with no luck. whereas in the java code this works fine: mytextview.setBackgroundColor(myBackgroundColor); For the programmatical way to apply style to view, indeed i realized my style is completly ignored. it seems that line is not right: TextView nametv = new TextView(this,null,R.style.ListName); the 3rd parameter is ignored. So, so far i am stick both to use default background color (or to change everything from code), and to set my text settings programmatically whereever i have to create new textview in the code :( Thierry. On Mon, Jan 11, 2010 at 1:58 AM, joebowbeer joe.bowb...@gmail.com wrote: Have you tried customizing the textAppearance? That may avoid the issue you're seeing - and may also be a better approach. http://brainflush.wordpress.com/2009/03/15/understanding-android-themes-and-styles/ On Jan 10, 10:58 am, tlegras tleg...@gmail.com wrote: Hi, I am trying to apply common style to different textview that can be either defined in a layout xml file or programmatically and that does not seem to work for some attributes: My style in styles.xml is: style name=ListName item name=android:colorForeground#f0f/item item name=android:padding4sp/item item name=android:textSize30sp/item item name=android:textColor#CCC/item item name=android:gravityleft/item item name=android:typefaceserif/item item name=android:textStylebold/item item name=android:colorBackground#999/item /style In my layout xml i have TextView style=@style/ListName .../ TextView and in my activity java class i have: TextView nametv = new TextView(this,null,R.style.ListName); However some parameters does not seem to work very well: - textStyle to bolditalic does not seems to be recognized - textColor/colorForeground/colorBackground does not work at all I have been through the documentation, but could not find precise reference documentation for that attributes, nor sample for the color setting. Thanks for any help. Thierry. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Thierry. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Nexus 2.1 on sale, WHERE is the SDK!
The status light (to the right of the earpiece) and the Trackball change colors, flash, or glow briefly to inform you of the charging status of the phone and other important information. I was hopeful other important information meant it would work as the primary notification.. Many users rely on changing status lights on the other devices, and this could be a blow to some of them who want to move to the N1. Like buying a high end car and realizing it doesnt have a rear view mirror :-). I guess no one who dogfooded this one ever needed the traditional notification lights.. The pulsing trackball is NOT a step ahead if you know what i mean, its a really nice thing, but not at the expense of the original LED notification scheme. -g On Jan 10, 11:39 pm, String sterling.ud...@googlemail.com wrote: Looks to me like the LED on top is purely to indicate charge status, while notifications come through the trackball light:http://www.google.com/support/android/bin/static.py?page=guide.csgui... IOW, it's not a bug, it's a feature. String PS: *Still* waiting for a 2.1 SDK... On Jan 11, 1:32 am, nexbug gsuku...@gmail.com wrote: Users reporting that the notification lights are not working as on earlier devices(let alone LED color customization). Have been chasing around trying to figure this out until i realized none of the apps are showing the flashing notification which we have all come to expect on the device. Not even SMS messages. I am sure the dog-fooders used the phone long enough to notice that the typical flashing notification light on top never seems to light up for notifications. Maybe its only to indicate charging.. While the pulsing trackball is nice, it is not as noticeable, and its colors cannot be manipulated. (of course unless i am missing something very obvious) -g On Jan 10, 8:18 am, vorcigernix vorciger...@gmail.com wrote: Whole idea of having google superphone and write some main parts of OS as closed source bits for that device is flawed from beginning. On other hand, if your code works on 2.01, then it should work on nexus (except that hw related things). I am missing some big notice on developers page month before, saying : There will be phone with major market penetration, which uses 2.01; fix your apps guys And..android was never a real opensource system. Google is kind to let us access parts main parts of OS, that's it.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] screen capture
Hi all, 1) Is there any way to collect frame buffer data from surface flinger., by writing a JNI. 2) Does Java App layer has any API's to collect frame buffer data, from surface flinger. 3) what is the purpose of copybit ApI's in HAL, are there meant to copy framebuffer data. Are there any opensource groups to give answers on surface flinger? Thanks in advance, Yog -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Client / Server, JBoss or Apache Tomcat
We cannot just put Apache Tomcat on the Android in its current form and expect it to work can we? The software design hints to me that the program would have to be converted. The same goes for any other java application that someone might have developed on another machine that they would like to see on the Android platform. If there is a proprietary java SOAP messaging program from a company for example, in order to use that library they might expect communication with a local web client program to communicate with a server. I'm trying to see my options here and where the android starts to put restrictions on me. I like the concept of programming on the Android, I just need a broader clarification of the programming concept for issues such as these. ~ JFrog -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Flowing View Group
I fixed some bugs in the FlowingViewGroup demo and made a new screencast. If you're interested, it's here: http://www.youtube.com/watch?v=N3MnYiW2w94 On Jan 7, 7:45 pm, Brion Emde brione2...@gmail.com wrote: One of the things I wanted was a ViewGroup that I could plug an adapter into. It would work like the GridView and be much simpler. I could use it in ListViews and things wouldn't get weird. I built something that fills those needs for me. You could put any type of view into the grid. Take a look at it. Maybe you can make it better and let me know! Enjoy! The http Git archive is at:http://github.com/brione/FlowingViewGroup.git and the read-only link to the repository is: git://github.com/brione/FlowingViewGroup.git Here's a short video that shows what it looks like:http://www.youtube.com/watch?v=JzIa-NnGTEE The video just uploaded, so it could be a couple minutes. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: App crashes on Droid, works fine on G1
Thanks to all the tips, particular Jason who managed to send me a stack trace which pin pointed the issue to the camera. I have a fix in place now and comments from Droid users on the market indicate that is it working for them. Thanks everyone, Mike On Jan 9, 7:54 am, Sena Gbeckor-Kove s...@imkon.com wrote: If you implement Flurry analytics you can see remote Exceptions by device and location. S --- Sena Gbeckor-Kove CTO/Founder - imKon UK : +44 7788 146652 NL : +31 62 434 1290 s...@imkon.com | www.imkon.com Asia (Singapore) : 35 Selegie Road, #09-14/15 Parklane Shopping Mall, 188307 Singapore, Singapore Europe (London) : 145-157 St John's St, EC1V 4PY London, UK On 8 Jan 2010, at 22:38, Jason Proctor wrote: there's a Droid user sitting right here, i will try to get him to install the app and log the crash to my ddms. then i'll send it on. At 1:34 PM -0800 1/8/10, Matt Kanninen wrote: Do you specify a target SDK in your manifest? Do you use any Droid specific layouts? What firmwares do you support? You can throw giant try catches around problematic code, log the exception to local file, and upload them to your servers. Although you might want to warn users you do this in your terms of service, especially if you aren't really a networked app. On Jan 8, 12:07 pm, MJB mbrennan8...@gmail.com wrote: Hi Dianne, That's the difficulty, only end-users see the crash so I can't see the stack trace. If I had my own Droid to try it on, it should be relatively easy to work through the bug. Unfortunately, I don't have a Droid and even if I wanted one, they are not available in my country. The app I'm referring to specifically is Andrometer (2nd place in ADC2 misc. category). Thanks, Mike On Jan 7, 4:37 pm, Dianne Hackborn hack...@android.com wrote: What is the stack crawl of the crash? On Thu, Jan 7, 2010 at 1:12 PM, MJB mbrennan8...@gmail.com wrote: Hi All, I'm having a problem where my app crashes on the Droid and seems to work fine on the G1. We have a G1 dev phone but do not have access to a Droid phone, so the issue is difficult to debug at this stage. The app loads up the main screen okay, but once the user moves beyond the main screen, the app crashes. Moving beyond main screen initiates the following: - GPS signal acquired - Accelerometer sensor listener active - Geomagnetic sensor listener active - Camera preview active I have a suspicion that the issue may be related to the camera preview. With the G1, it didn't seem to matter how I set the camera preview size, so I just made it fit the size of the view. Camera.Parameters parameters = mCamera.getParameters(); parameters.setPreviewSize(w, h); //where w, h are the width and height. One possibility is that with the Droid having a larger screen resolution to the G1, it may be setting the preview size to something that is not supported. I plan on addressing this, but I have a few questions that I was hoping someone could shed some light on. 1. If the app attempts to set a preview size that is not supported, will it just be ignored or will the app crash? 2. If the preview size is smaller than the surface that is holding the preview, will the image be stretched to fill the surface? 3. Can anyone think of anything else that may be related specifically to the Droid that could be causing me problems? Thanks, Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubs-cr...@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.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- jason.vp.engineering.particle -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,
[android-developers] Re: Finding direction using compass
http://developer.android.com/intl/fr/reference/android/hardware/Sensor.html#TYPE_ORIENTATION On Jan 11, 9:57 am, Avanish avani...@gmail.com wrote: Hi all, I need to know if there is an interface to access the direction in which the phone is pointing. Thanks Avanish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OpenGL ES Anti-Aliasing
Has anyone found a way to enable antialiasing in OpenGL on any of the Android devices? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Finding Location Latitude and Longitude using GPS in HTC MAGIC device..
Hi all, I have the problem like this. Basically i want to find my present location's latitude and longitude .It is showing in emulator which is default one which points to Sanjose,usa.But it is not finding my current location(i am in Hyderabad,India).When i try to run the same application in My HTC magic (Android os 1.5) it is showing NULL.It is Not finding my present location. What i have to do..is there need of Network provider like Mobile network(Vodafone,airtel etc..) I am sending my code,Please check it and send me the working code if any body have,Please i need it urgently. Please Help me regarding this. Thanks, Ram.P the code is as follows: class WhereAmI extends Activity { @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); LocationManager locationManager; locationManager = (LocationManager)getSystemService (Context.LOCATION_SERVICE); Location location = locationManager.getLastKnownLocation (LocationManager.GPS_PROVIDER); updateWithNewLocation(location); } /** Update UI with a new location */ private void updateWithNewLocation(Location location) { TextView myLocationText = (TextView)findViewById (R.id.myLocationText); String latLongString; if (location != null) { double lat = location.getLatitude(); double lng = location.getLongitude(); latLongString = Lat: + lat + \nLong: + lng; } else { latLongString = No location found; } myLocationText.setText(Your Current Position is:\n + latLongString); } } - Manifest file is as follows: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.paad.whereami application android:icon=@drawable/icon activity android:name=.GPS android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/ /manifest -- Please help me very urgently... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] In The P.I. – Palawan
Also known as “The Island of the Gods”, Palawan is the most well- preserved island treasures in the Philippines. With its pristine beaches, spectacular seascapes, unworldly caves and subterranean rivers, amazing wildlife, hospitable locals and five-star hotels and resorts, Palawan has become a world-class destination for travelers from all around the globe and a must-visit for Filipinos. Although it is most popular for the Tubbataha Reef – nominated as one of the New 7 Wonders of Nature, alongside with Bicol’s Mayon Volcano and Bohol’s Chocolate Hills – the island offers so much more to see and experience. Composed of almost 1,700 islands and islets and 2,000 kilometers of coastline, Palawan has treasures that are waiting to mesmerize you. View full article on: http://allsetter.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] Pop-up without using Toast.
Hi! I have a service that runs in the background. I´d like to be able to show a message to the user when there is an incomming call. Atm i´m using a Toast, because as far as I know it is the only way to display something regardless of the current activity the user is running. But I have seen apps that can show entire views on top of others activities. How can this be done?. Any info would be great :) Cheers! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Pop-up without using Toast.
Use Dialogs... Kumar Bibek http://tech-droid.blogspot.com On Jan 11, 9:35 pm, Klaus Kartou kar...@gmail.com wrote: Hi! I have a service that runs in the background. I´d like to be able to show a message to the user when there is an incomming call. Atm i´m using a Toast, because as far as I know it is the only way to display something regardless of the current activity the user is running. But I have seen apps that can show entire views on top of others activities. How can this be done?. Any info would be great :) Cheers! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] TimerTask Thread problems
I am having TimerTask Thread problems. Basically I am running a TimerTask to update a clock timer I have created. When the user gets an answer correct a small animation will play and the screen will be idle for about 5 seconds, then it will resume with the next question. The problem is that when I flip the G1 screen, the clock will have already started (Sometimes almost 3/4 through). It seems to me that the initial TimerTask thread did not finish and now there are two different ones running at the same time. I have cancelled the TimerTask and the Timer in the onStop() method as seem below. Any ideas? In the onStart() methods I have this: mClockTimerTask = new TimerTask() { @Override public void run() { if(!clockPaused) { if(mClock.getSweepArc() = 360) { clockPaused = true; mHandler.post(skipFromThread); mClock.setAngleArc(0); } else { mHandler.post(new Runnable() { @Override public void run() { mClock.setAngleArc(mClock.getSweepArc()+mArcChangePerSecond); } }); } } } }; mClockTimer = new Timer(); mClockTimer.schedule(mClockTimerTask, 0,500); Here is my onStop() method: @Override protected void onStop() { super.onStop(); if (Constants.DEBUG_LOG) { Log.d(TAG, onStop()); } //Stop the timer mClockTimerTask.cancel(); mClockTimer.cancel(); mClockTimer = null; } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Pop-up without using Toast.
I dont think I can show a dialog from a service...remember, I dont have an activity. My service starts when there is an incomming call...i then need to display a message without stopping the build in caller activity. On Mon, Jan 11, 2010 at 5:42 PM, Kumar Bibek coomar@gmail.com wrote: Use Dialogs... Kumar Bibek http://tech-droid.blogspot.com On Jan 11, 9:35 pm, Klaus Kartou kar...@gmail.com wrote: Hi! I have a service that runs in the background. I´d like to be able to show a message to the user when there is an incomming call. Atm i´m using a Toast, because as far as I know it is the only way to display something regardless of the current activity the user is running. But I have seen apps that can show entire views on top of others activities. How can this be done?. Any info would be great :) Cheers! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.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: Client / Server, JBoss or Apache Tomcat
On Jan 11, 2010 7:23 AM, JFrog jeremiah.paul.sna...@gmail.com wrote: We cannot just put Apache Tomcat on the Android in its current form and expect it to work can we? The software design hints to me that the program would have to be converted. The same goes for any other java application that someone might have developed on another machine that they would like to see on the Android platform. If there is a proprietary java SOAP messaging program from a company for example, in order to use that library they might expect communication with a local web client program to communicate with a server. I'm trying to see my options here and where the android starts to put restrictions on me. I like the concept of programming on the Android, I just need a broader clarification of the programming concept for issues such as these. ~ JFrog -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Finding Location Latitude and Longitude using GPS in HTC MAGIC device..
You have not requested location updates, so getLastKnownLocation() will always return null. Also, getLastKnownLocation() will almost never have a value immediately, as it takes GPS some time to obtain a fix. Hey Mark, is this right? I thought the whole point of getLastKnownLocation() was to get an immediate value while the LocationManager got the real fix? To the OP: According to the docs this function returns null if the selected provider is disabled, so make sure you have GPS enabled on your phone when you try it. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Mon, Jan 11, 2010 at 10:14 AM, Mark Murphy mmur...@commonsware.comwrote: RamaMohan wrote: Hi all, I have the problem like this. Basically i want to find my present location's latitude and longitude .It is showing in emulator which is default one which points to Sanjose,usa.But it is not finding my current location(i am in Hyderabad,India).When i try to run the same application in My HTC magic (Android os 1.5) it is showing NULL.It is Not finding my present location. What i have to do..is there need of Network provider like Mobile network(Vodafone,airtel etc..) I am sending my code,Please check it and send me the working code if any body have,Please i need it urgently. Please Help me regarding this. Thanks, Ram.P the code is as follows: class WhereAmI extends Activity { @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); LocationManager locationManager; locationManager = (LocationManager)getSystemService (Context.LOCATION_SERVICE); Location location = locationManager.getLastKnownLocation (LocationManager.GPS_PROVIDER); updateWithNewLocation(location); } /** Update UI with a new location */ private void updateWithNewLocation(Location location) { TextView myLocationText = (TextView)findViewById (R.id.myLocationText); String latLongString; if (location != null) { double lat = location.getLatitude(); double lng = location.getLongitude(); latLongString = Lat: + lat + \nLong: + lng; } else { latLongString = No location found; } myLocationText.setText(Your Current Position is:\n + latLongString); } } - Manifest file is as follows: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.paad.whereami application android:icon=@drawable/icon activity android:name=.GPS android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/ /manifest -- Please help me very urgently... You have not requested location updates, so getLastKnownLocation() will always return null. Also, getLastKnownLocation() will almost never have a value immediately, as it takes GPS some time to obtain a fix. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Pop-up without using Toast.
I would like to be able to do what they do in this app: http://www.threadabort.com/archive/2009/12/14/city-caller-id-my-first-android-app.aspx http://www.threadabort.com/archive/2009/12/14/city-caller-id-my-first-android-app.aspxIn the screenshot, they draw a view in the buttom of the built-in caller activity. My first idea was to start a new activity, with a transparent theme so that the built-in caller activity is still visible. However, as for as i know only one activity can take input from the user. I dont wont to stop the user from being able to take the call... Hope i made myself a little much clear this time? :) On Mon, Jan 11, 2010 at 5:56 PM, Mark Murphy mmur...@commonsware.comwrote: Klaus Kartou wrote: I dont think I can show a dialog from a service...remember, I dont have an activity. My service starts when there is an incomming call...i then need to display a message without stopping the build in caller activity. I don't know what stopping the build in caller activity means. You can call startActivity() from a Service. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Client / Server, JBoss or Apache Tomcat
Sorry for the blank message. Tomcat is used for server applications. If you ran a server application on a handset likke Android phone, where wold the client run? On Jan 11, 2010 9:05 AM, Frank Weiss fewe...@gmail.com wrote: On Jan 11, 2010 7:23 AM, JFrog jeremiah.paul.sna...@gmail.com wrote: We cannot just put Ap... -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Pop-up without using Toast.
Klaus Kartou wrote: I would like to be able to do what they do in this app: http://www.threadabort.com/archive/2009/12/14/city-caller-id-my-first-android-app.aspx http://www.threadabort.com/archive/2009/12/14/city-caller-id-my-first-android-app.aspxIn the screenshot, they draw a view in the buttom of the built-in caller activity. The author of the app you cited assumes all Android devices have the same in-call screen, and that will not be the case. Hence, the author has no way of knowing whether the stuff that is being displayed over the in-call screen will actually be over the top of something of value to the user, short of maintaining their own database of devices and where safe places to draw are. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 2.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Pop-up without using Toast.
Heh yeah, that is true :) But how do you display something over the in-call screen? On Mon, Jan 11, 2010 at 6:36 PM, Mark Murphy mmur...@commonsware.comwrote: Klaus Kartou wrote: I would like to be able to do what they do in this app: http://www.threadabort.com/archive/2009/12/14/city-caller-id-my-first-android-app.aspx http://www.threadabort.com/archive/2009/12/14/city-caller-id-my-first-android-app.aspx In the screenshot, they draw a view in the buttom of the built-in caller activity. The author of the app you cited assumes all Android devices have the same in-call screen, and that will not be the case. Hence, the author has no way of knowing whether the stuff that is being displayed over the in-call screen will actually be over the top of something of value to the user, short of maintaining their own database of devices and where safe places to draw are. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 2.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Multitouch support in Android 2.0
Anyone else with a Droid have a chance to try the PointerLocation code yet? I have a buddy that just got a Nexus 1 and I will try the code on that phone tomorrow and post the results here. I hope this is not a hardware problem with the Droid, as gor now, I have had to redesign my entire input method due to the game-breaking behavior. -Colin On Jan 8, 6:30 pm, Mirmathrax mirmath...@gmail.com wrote: OK, there is definitely a bug in here somewhere. I took the code for PointerLocation and run it on my droid with NO modifications whatsoever. When I perform the following pattern: 1) start drawing with finger 1 2) start drawing with finger 2 3) lift finger 1 4) start drawing with finger 1 again in a different location There is an error! It is clear to see, when you replace finger 1 back down and start drawing, it gets an incorrect result and connects finger 1 points with the last point drawn from finger 2. Go run it yourself and it will be plain as day. It errors consistently. Also, when you replace finger 1 back down, it will not be detected at all until a move action occurs, at which time it is then connected to finger 2. This illustrates exactly the problem I am describing in my above posts. I am running this on a Motorola Droid, so maybe it is a bug with the droid if not the software. If it helps, I can attach some screen-shots of the fault, but I figured it not necessary as it is very easy to run this code and the error will be very very obvious. Unless this gets fixed, I can not complete the program I am working on :( I need touch screen controls! Without this I cannot take over the world! -Colin On Jan 7, 11:15 am, Dianne Hackborn hack...@android.com wrote: On Thu, Jan 7, 2010 at 7:37 AM, Mirmathrax mirmath...@gmail.com wrote: 4) Finger 1 goes back down at location X, Y X = X2 Y = Y2 action = ACTION_POINTER_DOWN ptrID = 0 ptrIndex = 0 numEvents = 2 ** Here is the first problem: The X and Y coordinates returned are incorrect, they are the coordinates for the other finger (finger 2). When finger 1 was removed, finger 2's data moved to the 0 index, but it still retained ID 1. When finger 1 went back down, it correctly was identified as ID 0, but instead of adding a new index for finger 1 data, it just returns index 0, which is finger 2's data! You are only listing one coordinate for this event, but in fact there are two for both fingers. It is really hard to understand what you are seeing when you are not showing all of the data in the event. 5) Lift Finger 1 back up again from location X, Y X = X2 Y= Y2 action = ACTION_POINTER_UP ptrIndex = 1 ptrID = 1 numEvents = 2 *** WHATWHAT?!? I lifted finger 1 up, which should be ID 0, why is ID 1 reporting that it goes up. Also, why is it given data index 1, which I would assume should be finger 1's data, but the coordinates are still those of finger 2. Yes, I have a headache too... Again, when the up occurs, the motion event contains the points for the finger going up as well as any other fingers that are currently down. I am not going to respond in detail to the remaining stuff, because I can't really understand what you are seeing due to not showing all of the data. I would also again please ask that you look at Pointer Location -- you should see when using it that the correct data is actually generated, and you can look at the code to see how the different event transitions are processed. -- 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] Accelerometer listener stops getting events
I have a code which should run a lot of time in the background listening for the accelerometer. So i register listener and everything works fine. However sometimes (once few hours or even days) - I stop getting events. Looks like my listener was removed. Is it possible for the sensor service to be 'reseted and loose its listeners, or somehow to remove existing listeners (without having a reference to listener)? Or maybe somebody have some interesting ideas on how to debug such a bug? :) 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: attaching a slidingdrawer to my activity
Hi Mark - Looking at your sample you include the drawer handle png drawable that looks a lot like the one in the home page. Is there a built-in drawer handle on the platform or does every app have to create their own? On Jan 10, 12:35 pm, Mark Murphy mmur...@commonsware.com wrote: schwiz wrote: oh so you just put the sliding drawer along with the rest of your normal layout then? Yup. Is that sample from one of your books? Yup, _The Busy Coder's Guide to Android Development_, Version 2.8. I have a subscription but I couldn't find anything on drawers in them. You'll find it towards the end of Chapter 9. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.1 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: attaching a slidingdrawer to my activity
jotobjects wrote: Looking at your sample you include the drawer handle png drawable that looks a lot like the one in the home page. Is there a built-in drawer handle on the platform or does every app have to create their own? The core Android team generally does not recommend you attempt to rely on built-in drawables. This would be a fine example, as I would expect the drawable used by the Home screen's sliding drawer to be missing in Android 2.1, since the sliding drawer is not used by the Home screen anymore, at least not for applications. Whether you copy an image out of the AOSP or find your own, you should supply your own drawable. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.1 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] keep webview in one activity
dai wrote: Does some please let me know how to use webview? I want to make a webview keep to work wthin in a layout without opening new web browser when clicking a link tag. You need to attach a WebViewClient to the WebView and implement shouldOverrideUrlLoading(). In there, load the replacement URL into the WebView. there's no need to initiate a load from shouldOverrideUrlLoading() -- returning false causes the WebView to handle the load itself. hth -- jason.vp.engineering.particle -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] developer reference html problem
seems like my bookmarked class reference links, of the form -- http://developer.android.com/reference/package/Class.html are now being redirected to URLs of the form -- http://developer.android.com/intl/zh-CN/reference/package/Class.html which is fine albeit a bit weird. however, the links to method documentation up top, for example -- http://developer.android.com/reference/android/webkit/WebViewClient.html#onUnhandledKeyEvent(android.webkit.WebView,%20android.view.KeyEvent) don't get redirected properly, and end up back at the top of the class page - ie the anchor is being ignored. not a critical issue, obviously, but quite annoying, given that this has been working fine for ages. -- jason.vp.engineering.particle -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Client / Server, JBoss or Apache Tomcat
Tomcat is used for server applications. If you ran a server application on a handset likke Android phone, where wold the client run? Perhaps another android? Or a PC. The concern I have is how Tomcat got on the Adroid in the first place. The conversion process from .jar to .dex is capable of just taking all the Apache jars and converting them over to the Android platform to run as a standalone application? I am under the impression that the .jar to .dex is for library conversions that we can take control of at the Android but not an executable program. Is that assumption correct? ~JFrog -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 install sdk fail
so i tried to install an android sdk on my home machine yesterday. encountered failures. this used to be easy! procedure -- 1 - installed the SDK tools, version 4, from developer.android.com 2 - ran up the android tool as instructed 3 - failed to get repository contents via SSL - the tool said i should try HTTP, but offered no help with URL construction 4 - guessed at a URL, got all the way through getting the XML and parsing it, then said i needed a newer SDK tools version. eh? i downloaded the latest one minutes before. (also, it didn't bother saving the site i entered, so i had to enter it all again at next launch.) i did find some old-style zips on the archive page, so i could continue, but really, this should work. -- jason.vp.engineering.particle -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ERROR/AndroidRuntime(703): java.lang.VerifyError
Dear all, I'm using the Android Development Toolkit (ADT) in Eclipse Galileo. I've created a project in which to develop some util classes, which I intend to use in several upcoming Android projects. However, when I come to use these util classes (deployed as a jar and included in the Android project as a user library), I get a java.lang.VerifyError during the startup of the emulator. Can I force the verification of these library files, or do I need to include them as part of the Android project, and not as an external jar? Regards Angus -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Waking up screen
I'd recommend trying a remote service to do the things you want to persist On Dec 22 2009, 8:09 am, Wes wes.beli...@gmail.com wrote: All, I've been writing some code to toggle thescreenfrom bright to dark (off). I've been using this code to turn thescreenoff: WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.screenBrightness = 0; getWindow().setAttributes(lp); And this to turn it back on: WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.screenBrightness = 1; getWindow().setAttributes(lp); The problem is, it's very difficult to wake thescreenback up because of all the power saving things that go into effect when you turn thescreenoff using brightness = 0; Let me first point out that I'm not really tied to power constraints in this particular application. One of my assumptions is that this device (Droid) will be plugged in when this application is run. Ideally, I'd like to not hammer the battery if I don't have to, but I'm open to it if it's the only way. So, back to the issue...when the display is off, pretty much everything shuts down. For instance, one idea I had was to shake the display back awake by reading the accelerometer. However, as soon as the display goes off, my listener that was reading values from the accelerometer (be it in an activity or a service) stops echoing values. I can't register any key listeners because when the display is off, if I press anything other than the unlock button (e.g. volume up/down, camera button, etc.) I get the following output in the debugger: WindowManager: No focus window, dropping: KeyEvent...etc. In short, it appears that once the display goes dark, the only way to interact with the user is by hitting the unlock button. This isn't ideal because it's awkwardly placed. I had *really* hoped to be able to re-activate the device by pressing anywhere on the touchscreen. I can understand that the touchscreen is disabled for power reasons, but I was hoping I could override that (given I don't mind the power draw). Failing at that, I'd settle for any of the accessible keys (even the keyboard) reacting to user input and waking the thing up. Any thoughts or ideas on this subject? Thanks for your time. Wes -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Wi-Fi problems on Moto CLIQ android 1.5 in with Armenian SIM card.
Dear Developers I have this situation please read and not ignore maybe you can help me. Here 2 logs one when my sim card from Beeline AM inserted in this state wi-fi not finding any available networks. 12-26 06:06:08.238 90 116 E WifiHW : wifi_load_driver(175) ifc_up worked i n 300 ms 12-26 06:06:08.248 90 116 E WifiHW : control_supplicant(270) supplicant wp a_supplicant sending ctl.start 12-26 06:06:09.518 51 80 E QC-DSS-LIB: unrecognized ifindex 8 12-26 06:06:09.528 51 80 E QC-DSS-LIB: unrecognized ifindex 8 12-26 06:06:09.678 597 597 I wpa_supplicant: CTRL-EVENT-STATE-CHANGE id=-1 s tate=2 12-26 06:06:09.678 597 597 I wpa_supplicant: CTRL-EVENT-SCAN-RESULTS Ready 12-26 06:06:10.148 51 80 E QC-DSS-LIB: unrecognized ifindex 8 12-26 06:06:10.158 597 597 I wpa_supplicant: CTRL-EVENT-SCAN-RESULTS Ready 12-26 06:06:10.158 597 597 I wpa_supplicant: Trying to associate with 00:1a: 70:aa:58:dc (SSID='WVA' freq=2462 MHz) 12-26 06:06:10.168 597 597 I wpa_supplicant: CTRL-EVENT-STATE-CHANGE id=-1 s tate=3 12-26 06:06:10.168 51 80 E QC-DSS-LIB: unrecognized ifindex 8 12-26 06:06:10.188 51 80 E QC-DSS-LIB: unrecognized ifindex 8 12-26 06:06:10.398 90 115 I WifiStateTracker: setRegulatoryDomainCountry(): use coutry code from Settings: AM 12-26 06:06:20.208 597 597 I wpa_supplicant: Authentication with 00:1a: 70:aa :58:dc timed out. 12-26 06:06:20.208 597 597 I wpa_supplicant: CTRL-EVENT-STATE-CHANGE id=0 st ate=0 12-26 06:06:20.218 597 597 I wpa_supplicant: CTRL-EVENT-STATE-CHANGE id=-1 s tate=2 12-26 06:06:20.238 51 80 E QC-DSS-LIB: unrecognized ifindex 8 12-26 06:06:20.238 51 80 E QC-DSS-LIB: unrecognized ifindex 8 12-26 06:06:20.238 51 80 E QC-DSS-LIB: unrecognized ifindex 8 12-26 06:06:20.258 51 80 E QC-DSS-LIB: unrecognized ifindex 8 12-26 06:06:20.268 597 597 I wpa_supplicant: CTRL-EVENT-SCAN-RESULTS Ready 12-26 06:06:24.988 90 515 I ActivityManager: Starting activity: Intent { ac tion=android.intent.action.MAIN comp={com.android.settings/ com.android.settings. wifi.WifiSettings} } 12-26 06:06:25.028 90 252 I PowerManagerService: keypad run :false:0:0 12-26 06:06:25.028 90 110 I PowerManagerService: keypad run :false:0:0 12-26 06:06:25.288 51 80 E QC-DSS-LIB: unrecognized ifindex 8 12-26 06:06:25.288 597 597 I wpa_supplicant: CTRL-EVENT-SCAN-RESULTS Ready 12-26 06:06:25.428 51 80 E QC-DSS-LIB: unrecognized ifindex 8 12-26 06:06:25.448 597 597 I wpa_supplicant: CTRL-EVENT-SCAN-RESULTS Ready 12-26 06:06:25.948 90 111 I ActivityManager: Displayed activity com.android .settings/.wifi.WifiSettings: 963 ms 12-26 06:06:26.268 51 80 E QC-DSS-LIB: unrecognized ifindex 8 12-26 06:06:26.318 51 80 E QC-DSS-LIB: unrecognized ifindex 8 12-26 06:06:26.498 336 336 I PollingManager: connectivity_action: NetworkInf o: type: WIFI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: And the second one is after removing my sim card doing wipe format phone and puting sim card from diferent country which can't get any gsm signal in my country this time wi-fi finding and conecting to network. 12-28 18:55:15.265 90 120 E WifiHW : wifi_load_driver(175) ifc_up worked i n 400 ms 12-28 18:55:15.265 90 120 E WifiHW : control_supplicant(270) supplicant wp a_supplicant sending ctl.start 12-28 18:55:15.905 51 80 E QC-DSS-LIB: unrecognized ifindex 7 12-28 18:55:15.925 51 80 E QC-DSS-LIB: unrecognized ifindex 7 12-28 18:55:16.065 461 461 I wpa_supplicant: CTRL-EVENT-STATE-CHANGE id=-1 s tate=2 12-28 18:55:16.065 461 461 I wpa_supplicant: CTRL-EVENT-SCAN-RESULTS Ready 12-28 18:55:16.535 51 80 E QC-DSS-LIB: unrecognized ifindex 7 12-28 18:55:16.535 461 461 I wpa_supplicant: CTRL-EVENT-SCAN-RESULTS Ready 12-28 18:55:16.535 461 461 I wpa_supplicant: Trying to associate with 00:1a: 70:aa:58:dc (SSID='WVA' freq=2462 MHz) 12-28 18:55:16.535 461 461 I wpa_supplicant: CTRL-EVENT-STATE-CHANGE id=-1 s tate=3 12-28 18:55:16.545 51 80 E QC-DSS-LIB: unrecognized ifindex 7 12-28 18:55:16.555 51 80 E QC-DSS-LIB: unrecognized ifindex 7 12-28 18:55:17.055 51 80 E QC-DSS-LIB: unrecognized ifindex 7 12-28 18:55:17.055 461 461 I wpa_supplicant: CTRL-EVENT-STATE-CHANGE id=0 st ate=4 12-28 18:55:17.055 461 461 I wpa_supplicant: Associated with 00:1a: 70:aa:58: dc 12-28 18:55:17.065 461 461 I wpa_supplicant: CTRL-EVENT-STATE-CHANGE id=0 st ate=5 12-28 18:55:17.075 51 80 E QC-DSS-LIB: unrecognized ifindex 7 12-28 18:55:17.075 51 80 E QC-DSS-LIB: unrecognized ifindex 7 12-28 18:55:17.115 461 461 I wpa_supplicant: CTRL-EVENT-STATE-CHANGE id=0 st ate=5 12-28 18:55:17.115 461 461 I wpa_supplicant: CTRL-EVENT-STATE-CHANGE id=0 st ate=6 12-28 18:55:17.125 461 461 I wpa_supplicant: CTRL-EVENT-STATE-CHANGE id=0 st ate=6 12-28 18:55:17.125 461 461 I wpa_supplicant: WPA: Key negotiation completed with 00:1a:70:aa:58:dc [PTK=TKIP GTK=TKIP] 12-28 18:55:17.125 461 461 I wpa_supplicant: CTRL-EVENT-STATE-CHANGE id=0 st ate=7 12-28 18:55:17.125 461 461 I wpa_supplicant: CTRL-EVENT-CONNECTED - Connecti on to 00:1a:70:aa:58:dc completed (auth) [id=0 id_str=] 12-28
[android-developers] 有一个小问题,关于Text View的。
就是把TextView 设置成可以监听长点击事件的时候。 TextView tv = new TextView(context); tv.setOnLongClickListener ,这个时候,手指点击textview上的文字时,文字会产生闪烁,有没有方法可以屏蔽文字闪 烁? 因为在一个ScrollView 里面。手指划动会带动文字scroll , 而又需要加上长按监听事件。 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Launch Maps App with directions
Hi, I am a mobile web developer in need of some Android expertise. I have a web app which needs a directions button. This button needs to open the Maps App and provide directions from the users current location to a define dlong + lat. At the moment I can launch the Maps App using geo:latitude,longitude and passing in the starting address. Is there a way that I can pass in the destination and tell the Maps App to determine the route? Thanks in advance. Regards, Damjan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ASM(Android Screen Monitor) is not work with my device
I have a sample board(using qualcomm snapdragon) for developing android based phone. But screen is not attached yet. I started to find utility for displaying on PC monitor. http://www.adakoda.com/adakoda/android/asm/ ASM(Android Screen Monitor) is exactly what I want. But it is not works well with my sample board. So many jitters are fully inside. I can catch only something what there are some kind of changes. It works well with emulator. Is there anyone who knows about 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
[android-developers] parent activity finishes before child returns
Hi, I'm currently debugging with the Dev Tools, so this entire situation may be related to that. I'm not fully confident of that though, so I figured I'd check and make sure. I have an Activity that is calling startActivityForResult on another activity. Because of the 'Immediately Destroy Activities ' setting, this activity is immediately destroyed after the child is launched. However, when the child activity finishes, the parent activity doesn't exist to return a result to, so the program just hangs on the black screen without doing anything. It's highly possible that this is related to the Dev Tools, so i'm not sure if it's possible for Android to kill a parent activity while its child its child is alive. But if that case is possible, i'm obviously not handling it. Any help or information to help me better understand the life cycle and situation would be wonderful! Thanks! -Tom (PS ~ I'm using this setting in order to help me force onSaveInstanceState correctly, so any advice you can give about would be helpful as well. 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] Voice recognition and voice decoding
How is it possible to implement voice recognition on android phones? Also to decode the voice and convert the male voice to female voice and vice versa?The voice data input from the user will be sent to the Google site for recognition through Internet, or will be processed and recognized locally on my android phone? if anyone has any idea regarding it,plzz help.. Thanks in advance, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Inside WebView class addJavaScriptInterface() method is calling in reverse order when I have two calling stmts.
Actually, I made some changes inside addJavascriptInterface() method of webview class of webkit. Then in our android project webview.addJavascriptInterface(new Abc(), Abc); webview.addJavascriptInterface(new Def(), Abc.Def); then it is executing in reverse order Abc.Def Abc Can any body tell me why and how to over come from this problem... Thanks Regards androlance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Waking up screen
I'm working on very similar pursuits- I've been hunting for a way to make the screen sleep. I've also noticed that my keyevents don't seem to work if the screen is off but they will start registering after it wakes up once. I launch an activity at screen off. I am actually able to successfully get the key events from those but there appears to be no way to stop the screen from waking up. I wonder if you could run your accelerometer detection from a remote service to avoid the issue. I run a remote service that responds to screen off or on broadcasts and it keeps working no matter what. Check out my project source code at http://code.google.com/p/mylockforandroid/ and view the code of kgskipservice, or for simplified example the custom Lock package CustomLockMediator On Dec 22 2009, 8:09 am, Wes wes.beli...@gmail.com wrote: All, I've been writing some code to toggle thescreenfrom bright to dark (off). I've been using this code to turn thescreenoff: WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.screenBrightness = 0; getWindow().setAttributes(lp); And this to turn it back on: WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.screenBrightness = 1; getWindow().setAttributes(lp); The problem is, it's very difficult to wake thescreenback up because of all the power saving things that go into effect when you turn thescreenoff using brightness = 0; Let me first point out that I'm not really tied to power constraints in this particular application. One of my assumptions is that this device (Droid) will be plugged in when this application is run. Ideally, I'd like to not hammer the battery if I don't have to, but I'm open to it if it's the only way. So, back to the issue...when the display is off, pretty much everything shuts down. For instance, one idea I had was to shake the display back awake by reading the accelerometer. However, as soon as the display goes off, my listener that was reading values from the accelerometer (be it in an activity or a service) stops echoing values. I can't register any key listeners because when the display is off, if I press anything other than the unlock button (e.g. volume up/down, camera button, etc.) I get the following output in the debugger: WindowManager: No focus window, dropping: KeyEvent...etc. In short, it appears that once the display goes dark, the only way to interact with the user is by hitting the unlock button. This isn't ideal because it's awkwardly placed. I had *really* hoped to be able to re-activate the device by pressing anywhere on the touchscreen. I can understand that the touchscreen is disabled for power reasons, but I was hoping I could override that (given I don't mind the power draw). Failing at that, I'd settle for any of the accessible keys (even the keyboard) reacting to user input and waking the thing up. Any thoughts or ideas on this subject? Thanks for your time. Wes -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] gallery
Hi, I got 1 doubt in an application using two galleries. Their Adapters are different. I am only drawing gallery and not the pictures in big view.What I want is when I scroll either gallery, the another should also scroll automatically. How can it be done? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Pass Array from Java to C (over JNI) work in an activity but fail in a thread?
Hey, I'm not sure if this is your problem, but you're allocating a really big chunk of memory on the stack (it makes my embedded code senses tingle big time). What are the stack size limits for android? Tristan Miller On Jan 10, 8:42 am, nemo stone.c...@gmail.com wrote: Hi! All: I've stuggle of this problem few days, search many hours but not sure what's I should try. Thanks in advance. I have a native c function which take jintarray as a parameter, and I wanna pass a int array to it. I use GetIntArrayRegion to copy out the content of jintArray. JNIEXPORT jstring Java_com_google_client_DecodeThread_test( JNIEnv* env, jobject this, jintArray verts1 ) { jint buf[307200]; (*env)-GetIntArrayRegion(env, verts1, 0, 307200, buf); } It seems work when I call this native function in an activity. (it didn't crash ,at least) But it always crash when I call this native function in an thread which will be called in an activity. I can't figure out why is that... I saw many example, they just pass jintarray... I also found that If I copy small part of the jintarray, it won't crash. Is there any memory limit of thread ? or something related to GC and invalid array pointer? The following is part of my code. Thanks a lot for your help. in java: public native int testmem(int[] img); private void decode_c() { ... System.loadLibrary(mydecoder); int[] img_int = new int[307200]; int res= test(img_int ); -- it will crash here.I can't even find out the error, the application closed. ... } in native c: JNIEXPORT jstring Java_com_google_client_DecodeThread_test( JNIEnv* env, jobject this, jintArray verts1 ) { jint buf[307200]; (*env)-GetIntArrayRegion(env, verts1, 0, 307200, buf); return (*env)-NewStringUTF(env, show when no crash!); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Payment Gateway Integration with Android?
Hi, I will like to know how to integrate Payment Gateway like Paypal and Google Checkout with Android Application? Is there any particular API for Android or we can use API provided by Paypal or Google Checkout directly. Is there any code sample or link where there is information is provided regarding this? Hope to get a reply soon. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Monkey Testing.
Hi Satish It might have stopped due to a crash in Calculator application after 150900 events. To see the crash details you need to set the verbose level to -v -v or -v -v -v. Revert if you still have any doubts. Regards, Ganesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Apps for Android - are they maintained?
Could it be that you need to run this on the appropriate Google API platform rather than an Android API level? Strikes me you may be needing some of the Mapping API for Panoramio (though I' haven't looked at this sample so I am making an educated guess rather than actually knowing what I'm talking about :-) On Jan 10, 1:51 pm, roger.moffatt roger.moff...@gmail.com wrote: Hiya I've been trying to get to grips with the sample projects provided over athttp://code.google.com/p/apps-for-android/and generally find that none of them will actually build in Eclipse (Ganymede). Panoramio for example has over 100 errors and I'm finding it rather frustrating using any of them as a basis for further work. Am I missing something obvious? Are these samples still maintained to be compatible with the 1.5 or 2.01 android releases? My build environment seems OK as I can build and deploy some other google samples fine, but these more advanced (and hence useful) samples seem more problematic. Any hints appreciated! Roger -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Spreadsheet of current phones vs screensize/skin and density
HVGA (320x480) was the only resolution supported with Android 1.5. The following URL shows the range of screens supported with Android 1.6 and newer versions of the SDK: http://developer.android.com/guide/practices/screens_support.html#range A quick search found the following list (dated October 19, 2009): http://www.techcrunch.com/2009/10/19/android-galore-a-complete-list-of-the-android-phones-and-their-specs-droid-best/ On Jan 10, 8:24 pm, OldSkoolMark m...@sublimeslime.com wrote: Been googling for a comprehensive spreadsheet that shows all the current Android devices, which version of the SDK they use, and most importantly, screensize/skin and pixel density. So far, I haven't found anything definitive. I would think that somebody at Google is maintaining a spreadsheet that captures this info. Can somebody point me to the online resource I'm missing, or if you've been maintaining such a spreadsheet, would you consider making it more publicly available. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Androlib in your Gtalk..
Hi all, You can now search Android apps from your Gtalk with AndroLib Gtalk Bot. Just add in your Gtalk contacts, type your query, and the search result will be sent to you.So enjoy the new features. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Wi-Fi problems
I posted yesterday about my wi-fi problems but still not appeared in googlepagesplease let me know why? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 1.6 VPN Certificate Store
We can install a CA certificate accesing an url that contains a base-64 x509 (.cer file) certificate. After this we can use this certificate when configuring an IPSEC/VPN. (htc magic 1.6) Hope it helps. But all this stuff doesn't work for user certificate: We can install the certificate but does not appear on the list when configuring the VPN. Does anybody know how can We use a supposedly installed user certificate ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Customized map (own image) with coordinates
Hi, I want to create an application that loads an image as a map (a building of a floor) and add coordinates to it. Can anyone has an idea how to do it? I can do it maybe with MapView and change the resource of the map to my image but it is still not working. Appreciate any help. Oren. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Web Application Dev - Zoomed Image Quality
I couldn't find any hits for this issue in the archives - it's web dev, but related specifically to Android. Last year, I implemented a web application specifically designed to display large jpgs (approx 950px x 1000+px) in a magazine style format on WebKit for the iPhone. It works great there, as well as any other WebKit-enabled device - until Android. On other devices, tapping zooms the image, then there is a momentary pause while the image is rendered and sharpened - so text retains clarity. The pause/render/sharpen never takes place on the Motorola phone or the AVD I'm running though Eclipse. Even taking the web app out the equation, going directly to the image in Android's flavor of WebKit shows the same issue. I've tried outputting jpgs with a much higher density: 165dpi, up to 600dpi - there is some clarity increase, but not enough. Are large jpgs just a lost cause w/Android? Is the render/sharpen on zoom something that just hasn't made it's way into Android's version of WebKit? Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ImageView in ListActivity
Hi, I have an ListActivity that I wan't to add a logo to at the top above the list but I'm unsuccessful. This is what my layout looks like at the moment. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=horizontal android:layout_width=fill_parent android:layout_height=fill_parent ImageView android:id=@+id/logo android:layout_width=fill_parent android:layout_height=wrap_content / ListView android:id=@android:id/list android:layout_width=fill_parent android:layout_height=fill_parent android:drawSelectorOnTop=false /ListView TextView android:id=@+id/empty android:layout_width=fill_parent android:layout_height=fill_parent android:text=@string/list_empty / /LinearLayout Then I add an drawable to the ImageView logo in onCreate. I've managed to show either the ListView or the ImageView but never both of them in the same LinearLayout. Is it possible to add other views together with a ListView? /Martin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Problem in GUI Development in Andriod...
Hi, I m new comers in Android Development. Now I am creating one demo application into which i had faced one problem while displaying the ListView. Please let me know can i display ListView with AbsoluteLayout. Please find the below xml file. ?xml version=1.0 encoding=utf-8? AbsoluteLayout android:id=@+id/widget0 android:layout_width=fill_parent android:layout_height=fill_parent android:background=@drawable/background xmlns:android= http://schemas.android.com/apk/res/android; Button android:id=@+id/btnAway android:layout_width=179px android:layout_height=68px android:text=@string/btnAwayCaption android:layout_x=70px android:layout_y=12px android:textColor=#ff android:clickable=true /Button TextView android:id=@+id/widget32 android:layout_width=wrap_content android:layout_height=wrap_content android:text=RECENTLY USED android:layout_x=110px android:layout_y=82px android:textColor=#ff /TextView *TableLayout android:id=@+id/recentlyUsedTable android:layout_width=249px android:layout_height=95px android:orientation=vertical android:layout_x=30px android:layout_y=102px android:addStatesFromChildren=true android:clickable=true android:focusable=true android:focusableInTouchMode=true android:isScrollContainer=true android:longClickable=true android:scrollbarAlwaysDrawVerticalTrack=true android:scrollbars=vertical android:scrollbarStyle=insideOverlay TableRow android:focusable=true android:clickable=true TextView android:id=@+id/one android:text=One android:textColor=#ff//TableRow TableRow android:focusable=true android:clickable=true TextView android:id=@+id/two android:text=Two android:textColor=#ff //TableRow TableRow android:focusable=true android:clickable=true TextView android:id=@+id/three android:text=Three android:textColor=#ff//TableRow TableRow android:focusable=true android:clickable=true TextView android:id=@+id/four android:text=Four android:textColor=#ff //TableRow TableRow android:focusable=true android:clickable=true TextView android:id=@+id/five android:text=Five android:textColor=#ff//TableRow TableRow android:focusable=true android:clickable=true TextView android:id=@+id/six android:text=Six android:textColor=#ff //TableRow -- /TableLayout* EditText android:id=@+id/editTextNewMessage android:layout_width=255px android:layout_height=105px android:textSize=18sp android:layout_x=30px android:layout_y=232px /EditText TextView android:id=@+id/widget33 android:layout_width=wrap_content android:layout_height=wrap_content android:text=NEW MESSAGE android:layout_x=110px android:layout_y=212px android:textColor=#ff /TextView Button android:id=@+id/btnDriving android:layout_width=195px android:layout_height=67px android:text=@string/btnDrivingCaption android:layout_x=60px android:layout_y=352px android:textColor=#ff android:clickable=true /Button /AbsoluteLayout in above XML file I have to used ListView rather than TableLayout, because in tableLayout we can not select row. but in listview can selected the raw so. Please help me how can i used ListView in above XML code. Thanks in advance. Thanks Warm Regards, Jaydip -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Twidroid-The reigning android Twitter King
Hi frndz, I find something interesting to share with u guys.. To start the new year we've got a long overdue feature: Twidroid Pro. Twidroid has consistently been our favorite Twitter client for the better part of a year now and we don't see that changing any time soon. Twidroid delivers your Twitter feed, mentions, direct messages, profile pages, followers, etc. If Twitter offers it in the API, Twidroid probably supports it. While there is a free version, it prefer the multi-account support of Twidroid Pro (seriously, when running a bunch of blogs it's a necessity). Add in loads of options, including theme support, notifications, font sizes, and we've got a Twitter client winner. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 add TextView programmatically inside a View-based class??
Hi, I have been trying to find a solution for this for the last 3 days but i just failed hit a final answer! I am creating a View-based class where i show a ball bouncing of the sides. I use a Timer to control the animation. I want to add a TextView programmatically in my view class. I am trying to instantiate an object of TextView with reference to the context as follows: public class BouncingBallView extends View { public TextView textView; ... public BouncingBallView(Context context) { super(context); textView = new TextView(context); textView.setTextColor(Color.WHITE); textView.setText(test); ... } // Keep in mind that this is called periodically by using a Timer @Override protected void onDraw(Canvas canvas) { // This is not drawn textView.draw(canvas); // ball drawn correctly mBall.setBounds(mX, mY, mX+mBallWidth, mY+mBallHeight); mBall.getPaint().setStyle(Paint.Style.STROKE); mBall.getPaint().setColor(0x); mBall.getPaint().setStrokeWidth(5); mBall.draw(canvas); mBall.getPaint().setStyle(Paint.Style.FILL); mBall.getPaint().setColor(0x); mBall.draw(canvas); } I am trying to do this programmatically as i am not sure if i can do it using xml since i alread have created my custom bouncingballview and used it as the parameter for setContentView(). Can any one direct me of how to do this? Sorry if this is a trivial question but i am still new to graphics handling in Android... i come from Symbian background. If you do know of a good introductory article to this topic please share it here. Many thanks in advance AF -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Utilizing HTTPS
Hi, I want to use HTTPS in my application. The Java URL class does not seem to do the job. Does anyone have any pointers? Thanks! Knossos. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Extending contacts
This needs to be addressed... The whole ContactsContract API is starting to look like a perfect lesson in how not to publish an API. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] camera setPreviewSize, on Nexus One, apiVersion 7
Hello I keep getting error messages when running my photo applications on a Nexus One with api version 7 when the program tries to set the camera parameters: ... Camera.Parameters parameters = camera.getParameters(); parameters.setPreviewSize(w, h); // data set: w:533, h:320 camera.setParameters(parameters); ... ... Camera.Parameters parameters = camera.getParameters(); parameters. setPictureSize(w, h); // data set w:1280, h:768 camera.setParameters(parameters) ... The prorgram works fine on various other mobile phones such as moto droid or HTC Hero. Any idea what it could be? I would appreciate some help! cheers Dani -- The stack trace I get is: -- java.lang.RuntimeException: setParameters failed at android.hardware.Camera.native_setParameters(Native Method) at android.hardware.Camera.setParameters(Camera.java:619) at dk.android.bcFiler.PreviewSurface.surfaceChanged (PreviewSurface.java:149) at android.view.SurfaceView.updateWindow(SurfaceView.java:460) at android.view.SurfaceView.dispatchDraw(SurfaceView.java:287) at android.view.ViewGroup.drawChild(ViewGroup.java:1529) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258) at android.view.ViewGroup.drawChild(ViewGroup.java:1529) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258) at android.view.View.draw(View.java:6538) at android.widget.FrameLayout.draw(FrameLayout.java:352) at android.view.ViewGroup.drawChild(ViewGroup.java:1531) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258) at android.view.View.draw(View.java:6538) at android.widget.FrameLayout.draw(FrameLayout.java:352) at com.android.internal.policy.impl.PhoneWindow$DecorView.draw (PhoneWindow.java:1830) at android.view.ViewRoot.draw(ViewRoot.java:1349) at android.view.ViewRoot.performTraversals(ViewRoot.java:1114) at android.view.ViewRoot.handleMessage(ViewRoot.java:1633) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4363) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:860) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] [ffmpeg] Coding video for access from URL
Hi, I'm trying to coding a video for viewing it with a url (for example, http://domain/video.mp4). I use instructions from this site (1), and I can encode the video and I can see it if I upload into the SD Card but access from URL isn't possible. Looking into this group (2), I found a mp4 (3) video that I can view with android browser. Ffmpeg told me that: Stream #0.0(und): Video: mpeg4, yuv420p, 480x270 [PAR 1:1 DAR 16:9], 29.97 tbr, 29.97 tbn, 2997 tbc Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16 Stream #0.2(und): Data: rtp / 0x20707472 Stream #0.3(und): Data: rtp / 0x20707472 And I'm not able to get something similar, someone can help me with ffmpeg options? Best wishes and thanks, (1) http://androidcommunity.com/forums/f41/new-updated-video-encoder-for-g1-6185/index3.html#post88879 (2) http://groups.google.com/group/android-developers/browse_thread/thread/b695e4c0e90de7ac/f3a5de8fde648aee?lnk=gstq=video#f3a5de8fde648aee (3) http://commonsware.com/AdvAndroid/test.mp4 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Smack 3.1.0 an Android
Hi! I'm developing an app for android using XMPP communications. First have to say that is so good, all the mentioned problems about SASL and the rest are perfectly solved, my question is about the reconnection, it seems that android does not recognize or at least does not execute the ReconnecionManager file.. When I create the xmpp communication the configuration appears as Reconnection Allowed, and the listener connectionClosedOnError works fine, but never tries to reconnect after that closed connection... Any idea will be really welcome!! Regards, Lorena. On Dec 8 2009, 3:35 am, rtreffer rtref...@googlemail.com wrote: I've finally got DNS/SRV lookup working XMPPConnection.getHost will return the hostname inside the srv record. So the remaining feature drawbacks are: - no SASL/External (mandatory for SASL+TLS) - No fallback server selection (in case of multiple SRV servers with various priorities (Smack lacks the feature)) Beside that Smack(x) should work, so just about every xep supported by smack(x) should work (given you register components for the correct stanzas, seehttp://svn.igniterealtime.org/svn/repos/smack/trunk/build/resources/M... for a reference) Have fun, Rene On 7 Dez., 21:08, rtreffer rtref...@googlemail.com wrote: Hi, thanks for the feedback. I've just got MD5-Digest working (due to another request). This should make the lib working with just about every jabber server, I'll push it as soon as I'm online with my laptop. I'll try DNS later today. Regards, Rene On 7 Dez., 10:39, Simon Tennant si...@buddycloud.com wrote:I On Dec 7, 10:28 am, rtreffer rtref...@googlemail.com wrote: Hi, I've hacked together a workingsmack3.1.0 lib for Android. http://github.com/rtreffer/asmack Here's what's inside: - apache harmony spec for javax.security.sasl - qpid and novell openldap/jldap for SaslClient impl. (Plain Digest- MD5) -smack(x) - various patches shell scripts to glue that - some minor glue code (fake Sasl.java, AndroidDebugger.java (so you'll get all stanzas on the logcat when debug is enabled)) Great work Rene! This finally makes more complicated XMPP projects that include pub-sub and PEP possible in a clean way. I am looking forward to the DNS SRV support so that Android xmpp projects can simply ask for a JID and resolve the right server to use. Woot! 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
[android-developers] Re: 1.6 VPN Certificate Store
We're able to install and load a CA cert using one method (applied to WPA config...) we found while googling: Load a certificate accessing an URL that contains a php file. This php contains the mime type application/x-x509-ca-cert and the certificate file content itself. We can use this CA certificate when configuring a VPN/IPSEC/CRT connection. After this we tried the same method (but using mime type application/x- x509-user-cert) to install and use an user certificate issued by the CA. It seems install as well but we can use it since it doesn't appear on the user-certificates list. (android 1.6 on htc magic) Does anybody made some progress? On 12 dic 2009, 21:41, Nate nlle...@gmail.com wrote: Anybody ever find the answer to this? On Nov 9, 7:37 pm, itsluy its...@gmail.com wrote: Same problem here but I'm using 2.0 (droid). The documentation doesn't mention this and I don't see what folder i should place the certificates in. On Oct 10, 12:20 pm, Dida dieter.roth.bay...@googlemail.com wrote: I like to setup aVPN/IPSEC connection using the new feature on Android1.6(Emulator). When I try to load usercertificate or cacertificate the list doesn't contain anycertificate. The certificates are placed on the SD-card in PEM and DER format. Any suggestions to import acertificate?- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Socket/TCP throughput
I'm using one real phone (a HTC Hero, 1.5) and one emulator and I've set up a TCP connection (java.net.Socket) between the two via an SSH tunnel. The response times are low but when I try to send something large over the connection the bandwidth seems to reach a limit at 0,2 Mbit/s. This is really low and communicating large amounts of data takes lots of time. However, adding another thread and two simultaneous connections seem to overcome this limitation as the speed increases - two threads managed to achive 2 Mbit/s. Is there a bug and/or limit in the emulator for the TCP throughput or is it the phone? Is there anyone with a clue or an answer? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Atmel
Hi Anyone managed to use any ATMEL development board as a debbugging target for Android? I used the latest release of the USB driver with one of the Atmel boards running Android - the device appears fine with the default USB drivers downloaded from Google (in the device manager appears as Android Composite ADB Interface). The driver gives no error, it seems to work. Before installing the driver Vista recognized it as some network gadget so it seems the USB communication works with the board on some level (devicemanager also displays vid/pid and the rest of the usb things as it should). The device has enabled Settings/Aplications/Development/USB Debugging The adb bridge gives no device in the device list (only the emulator if I start one). Tried to rescan USB devices with adb usb - the result is error: device not found Any clues, hints? regards, Brown -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Version Control
bin and gen. On 1/10/10 12:49 PM, barry wrote: When using Eclipse as an IDE, which files/folders can I safely ignore for version control purposes? Thanks. -- attachment: qr-gmail.png-- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Client / Server, JBoss or Apache Tomcat
I suppose the answer you are looking for is this: you will have to run Tomcat as a service on the Android. On Mon, Jan 11, 2010 at 10:30 AM, JFrog jeremiah.paul.sna...@gmail.comwrote: Tomcat is used for server applications. If you ran a server application on a handset likke Android phone, where wold the client run? Perhaps another android? Or a PC. The concern I have is how Tomcat got on the Adroid in the first place. The conversion process from .jar to .dex is capable of just taking all the Apache jars and converting them over to the Android platform to run as a standalone application? I am under the impression that the .jar to .dex is for library conversions that we can take control of at the Android but not an executable program. Is that assumption correct? ~JFrog -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Utilizing HTTPS
why do you think it doesn't do the job? you can use https through either the java.net classes or their httpclient equivalents. On 1/11/10 9:10 AM, Knossos wrote: Hi, I want to use HTTPS in my application. The Java URL class does not seem to do the job. Does anyone have any pointers? Thanks! Knossos. -- attachment: qr-gmail.png-- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Calling .net webservice from app?
Hey Developers, I was looking for suggestions on the best way of calling an asp.net web service from my android app. I am planning on using ksoap2 ? Is this a good route to go, or is that the only way to go? Do I have other options? What is the most efficient way if there are other options? Much thanks in advance for your time and contribution! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Client / Server, JBoss or Apache Tomcat
Frank Weiss wrote: I suppose the answer you are looking for is this: you will have to run Tomcat as a service on the Android. Putting Tomcat on Android would be akin to attaching a snowplow blade to a dachshund. I feel quite confident that whatever business goal you have, Tomcat-on-Android is not the best solution. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Version Control
Thanks. What about the gen folder? Barry On Jan 11, 8:50 am, Kumar Bibek coomar@gmail.com wrote: Hi Barry, You can ignore these files/folders. bin directory. .classpath file All the other files/folder are required. Thanks and Regards, Kumar Bibekhttp://tech-droid.blogspot.com On Jan 11, 1:49 am, barry barry.drinkwa...@gmail.com wrote: When using Eclipse as an IDE, which files/folders can I safely ignore for version control purposes? 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: Client / Server, JBoss or Apache Tomcat
Yeah Tomcat is way, way too big to fit on Android. JBoss will probably fit on future Android devices somewhere around 2035. :-) On Jan 11, 10:55 am, Mark Murphy mmur...@commonsware.com wrote: Frank Weiss wrote: I suppose the answer you are looking for is this: you will have to run Tomcat as a service on the Android. Putting Tomcat on Android would be akin to attaching a snowplow blade to a dachshund. I feel quite confident that whatever business goal you have, Tomcat-on-Android is not the best solution. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ImageView in ListActivity
You've got the ListView height set to fill_parent, which will fill the parent. I think you've got to add layout_weight=1 on your ImageView, so it will inform the layout that it wants space too. On Jan 11, 8:14 am, Marwal martin.wallgren...@gmail.com wrote: Hi, I have an ListActivity that I wan't to add a logo to at the top above the list but I'm unsuccessful. This is what my layout looks like at the moment. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=horizontal android:layout_width=fill_parent android:layout_height=fill_parent ImageView android:id=@+id/logo android:layout_width=fill_parent android:layout_height=wrap_content / ListView android:id=@android:id/list android:layout_width=fill_parent android:layout_height=fill_parent android:drawSelectorOnTop=false /ListView TextView android:id=@+id/empty android:layout_width=fill_parent android:layout_height=fill_parent android:text=@string/list_empty / /LinearLayout Then I add an drawable to the ImageView logo in onCreate. I've managed to show either the ListView or the ImageView but never both of them in the same LinearLayout. Is it possible to add other views together with a ListView? /Martin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Version Control
You can ignore that too On Jan 11, 11:57 am, barry barry.drinkwa...@gmail.com wrote: Thanks. What about the gen folder? Barry On Jan 11, 8:50 am, Kumar Bibek coomar@gmail.com wrote: Hi Barry, You can ignore these files/folders. bin directory. .classpath file All the other files/folder are required. Thanks and Regards, Kumar Bibekhttp://tech-droid.blogspot.com On Jan 11, 1:49 am, barry barry.drinkwa...@gmail.com wrote: When using Eclipse as an IDE, which files/folders can I safely ignore for version control purposes? 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: Removing the stack of Activity
i think maybe you're not understanding the question! Beena -- if SINGLE_TOP and CLEAR_TOP don't work for you, as the activities don't have co-operating classes or something, then you could set a flag somewhere global. the intervening activities would then check this flag and finish() appropriately. Activity2 would not check the flag, etc. but SINGLE_TOP and CLEAR_TOP are kinda designed for this nonlinear activity flow. hi, one of the possible answers may be, you can launch the Activity2 on onClick event of the button in Activity5. and we dont have any options of removing any activities from .apk file. On Jan 7, 11:54 am, Beena swdeveloper2...@gmail.com wrote: Hi All, I have problem of removing activity. I have 5 Activities in sequence Activity1, Activity2, Activity3, Activity4, Activity5. When I am at Activity5 there is a button through I can go to Activity2. Means jump from 5 to 2 with removing the Activity3 4. How can I do that? Please help regarding 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 -- jason.vp.engineering.particle -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Moving Image Over Another Image
You will probably want to write your own layout. See here for more information: http://developer.android.com/guide/topics/ui/custom-components.html The SDK has a pretty easy to use animation framework. There are some good examples in this document: http://developer.android.com/guide/topics/graphics/2d-graphics.html -k_day On Jan 11, 7:18 am, prakhy prakhyathhe...@gmail.com wrote: Hi all, I need to design a board UI using android platform. i was planning to take one image as board and moving the required images over the board. How do i achieve the same? I need to split the board based on coordinates and need to move the required images to specifies coordinates. Is there any andorid api for image movements and animation? I will greatly appreciate your replies. Prakhy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Handler synchronization question
Thanks, I was trying to keep the loading logic in the first activity and use the second only for displaying, hence the need to synchronize between the activities. Anyway, I ended up pushing the logic to the second activity (and passing the parameters through intent extras), so I guess I've skirted the synchronization issue (at least for now) - what you're suggesting in #2, I guess. On Jan 11, 4:21 am, jwei512 jwei...@gmail.com wrote: I'm not sure what your code looks like, but some things you could try are: 1) If you are using a thread to do all of the network calls, maybe have something like while(!pageIsDone) { sleep(1000); } // then display data And in your Activity class you can set the boolean pageIsDone to true as soon as the necessary views have been loaded? Definitely probably not the preferred way to do it though... 2) The no thinker way to do it would probably just be to start the background thread after your UI display is done loading. I think this is typically acceptable as your application will not timeout / ANR and your user will not experience in lag in their experience of your app. Note this can often be paired with some sort of progress dialog to make it even better Not sure if this will help but maybe its a start? - jwei http://thinkandroid.wordpress.com Examples, Code, and Tutorials On Jan 10, 9:10 pm, Sekhar sek...@allurefx.com wrote: I'd like to start an activity with some initial data (passed through Extras) that sets up a display page, while I simultaneously make a network call to get the rest of the data. I thought I'd pass this new data to the activity as a message to the activity's handler. Works fine. Now, my question is: how can I make sure that the activity has finished drawing the page and is ready to show the message data? The data might come from the cache, so I'm worried the message may land in the handler before the page is ready to display it. Is there a way to synchronize the page draw and the message handling? E.g., is it possible to suspend the looper till the page is ready? What's the preferred way of doing what I'm trying to do? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en