[android-developers] Re: GPS application not installing in Sony Xperia
Please give full Manifest and full log output during the installation and hopefully somebody can help you. Regards Marek On Apr 6, 9:52 am, Nithin nithin.war...@gmail.com wrote: Hi, I created an application in 1.6 SDK. It uses GPS. But its not installing in Sony Xperia. I installed other application developed in 1.6 SDK and its working fine. But when I am using GPS its not working. The code is like this, public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000L, 500.0f,this); } manifest I gave permissions, uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / But when i tried to install its showing application cannot be installed. Anybody else face the same problem for Sony xperia. Nithin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: Can anyone hook me up with an Exchange email account that I could use for testing?
What Email protocol do you want to test? There are plenty of free email servers supporting the standard protocols POP3 and IMAP4. Gmail supports them both. But if you mean the proprietary Exchange Active Sync (EAS) protocol it's a different matter, but there are free servers for that too. Google is your friend. Regards Marek On Mar 24, 11:43 pm, Flying Coder av8r.st...@gmail.com wrote: Hi Kumar, Thanks, I wasn't aware of MS online -- that's good to know. But, at the moment, what I really want is the ability to connect with stand-alone Exchange servers the same way that K9 or the Android Email client do. I believe my current solution will work fine, since its based on the K9 code, but haven't been able to test it yet. I could release it as beta and let users test it, but I'd really like to test it myself first. Cheers, Steve On Mar 23, 3:21 pm, Kumar Bibek coomar@gmail.com wrote: Umm, Microsoft online has a hosted trial of 30 days for 2007 exchange accounts. You can try that. Thanks and Regards, Kumar Bibek. On Mar 23, 12:09 am, Flying Coder av8r.st...@gmail.com wrote: Hi, I'm putting together a lightweight email provider for use with one of my apps (based on the K9 mail client). I'd love to test it with an Exchange account before releasing it. I'm hoping that some kind sole out there will be able to hook me up with an Exchange account that I can use for testing. Thanks a bunch! Steve -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Can't use service with AIDL right after starting it with bindservice and BIND_AUTO_CREATE
Hello, There is a handshake involved when binding to a service. The binding is not successful until the onServiceConnected callback is called. So either send in a callback to initRemoveConnection, or poll the connection checking until twittersendservice is not null. Hope this helps. Regards Marek On Mar 21, 12:51 am, Jean j...@jeanbombeur.com wrote: I have a strange problem and wondering if anyone ran into the same, and was able to solve it. I have a the following class that I use to connect to a service I created. The catch is that I want to be able to start the service and use it right away when the user clicks on a button. Here is my class: public class TwitterSendServiceRemoteConnection implements ServiceConnection { Context context=null; private boolean isBound=false; private ITwitterSendService twittersendservice=null; @Override public void onServiceConnected(ComponentName name, IBinder service) { twittersendservice = ITwitterSendService.Stub.asInterface((IBinder) service); SLog.DEBUG_verbose(TwitterSendServiceRemoteConnection(onServiceConnected)); } @Override public void onServiceDisconnected(ComponentName name) { twittersendservice=null; SLog.DEBUG_verbose(TwitterSendServiceRemoteConnection(onServiceDisconnected)); } public TwitterSendServiceRemoteConnection() { } public TwitterSendServiceRemoteConnection(Context c) { context=c; } public void releaseRemoteConnection() { if (isBound==true) { context.unbindService(this); } isBound=false; } public boolean initRemoteConnection(Context c) { boolean ret=true; context=c; if (!isBound) { Intent i = new Intent(ITwitterSendService.class.getName()); i.setClassName(com.jeanbombeur.smstoolbox, com.jeanbombeur.smstoolbox.services.TwitterSendService.class.getName()); ret = context.bindService(i, this, Context.BIND_AUTO_CREATE); SLog.DEBUG_verbose(Verbose:TwitterSendServiceRemoteConnection(initRemoteConnection) Executed with return code:+ret); isBound=ret; } return ret; } // From the remote public boolean testConnection(String text) { SLog.DEBUG_verbose(Verbose:testconnection before trying anything); try { return twittersendservice.testConnection(text); } catch (RemoteException e) { // TODO Auto-generated catch block // e.printStackTrace(); SLog.DEBUG_verbose(testConnection error:+e.getMessage()); return false; } catch (Exception e) { return false; } } } And the way I use it: TwitterSendServiceRemoteConnection tssrc=null; In my button onClick: tssrc=new TwitterSendServiceRemoteConnection(context); tssrc.initRemoteConnection(context); tssrc.testConnection(Hello World Here); If I initialize my connection early, like when my activity is created, and only later call my service with testConnection, it all works fine. However when I try to initialize and directly use the connection, it doesn't work. It seems that the connection is not finished to be initialized when the testconnection is called, and the testconnection failed. In my logs, the onServiceConnected is only called -after- the testConnection call. I tried to put a thread sleep but it doesn't change anything... Anyone knows what is the right way to do that? so I can use my AIDL connection right after initializing 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: adb push hosts file into /system/etc/ - No space left on device error
Hello, Probably the reason why it's not working is that the /system partition is mounted read-only for obvious (security) reasons. You need to remount it. Search on this mail list for the exact commands. But why do you need to edit the hosts file? Can't you use DNS to find the IP address of your host? Regards Marek On Mar 22, 5:04 am, Tushneem tushn...@gmail.com wrote: I am trying to edit the hosts file to access rest services in my local network. Using adb pull I am able to get the hosts file for the emulator and edit it. However I get the error No space left on device when I do an adb push. Does anyone know how to resolve this issue? Can we increase the space for /system? If so how? Are there any other easier ways to access local area network (without creating a DNS server). 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Maximum character that we can send to SMS application.
A SMS is limited to 140 bytes (octets), maybe this is the boundary you are experiencing? I don't know if Android supports concatenated SMS. http://en.wikipedia.org/wiki/SMS /Marek On Mar 22, 5:51 pm, AJ ajeet.invinci...@gmail.com wrote: Hi group I facing one strange problem. I am sending some text to SMS app as a body. But when the text size increases more than 200 characters, it cuts the body from there. Only first 200 characters are appearing in the SMS body. But I can write more text when SMS gets launched :( Is there any limitation while sending characters to SMS? if yes then its ok But if no then where i am doing wrong? My code looks like :- String txt = characters more than 200 ; Intent intent = new Intent(Intent.ACTION_SEND); intent.setType(text/plain); intent.putExtra(sms_body, txt); intent.putExtra(Intent.EXTRA_TEXT, txt); _activity.startActivity(Intent.createChooser(intent, _activity.getText(text titte))); Thanks, Ajeet Singh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: How to change app names on the runtime
Look in the application's Manifest, the application tag, android:label option. But probably the name is cached so maybe you need to restart the phone after changing it. /Marek On Mar 22, 7:21 pm, yves...@gmail.com yves...@gmail.com wrote: Is there a way that after install a app, user can have the option to change the app name through a configuration page in that app? Where are all app names saved in the system? 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: AIDL in multiple projects in Eclipse
Yes, you should copy the AIDL file to all projects that use the Service. Regards Marek On Mar 22, 6:07 pm, RAJ trra...@gmail.com wrote: I am facing same problem too. I dont ahve AIDL in both projects (i have it only in my service project) Am i supposed to have same AIDL in both projects? On Mar 17, 1:58 am, Andreas andreas.bex...@gmail.com wrote: Hi, Do you set the android:exported property of your service to true in the manifest for the service? Regards Andreas On Mar 17, 1:47 am, Peter Fortuin peter.fort...@gmail.com wrote: I had that, but that didn't work. Now I just have set my Build Path in the gui application. 2010/3/16 Sime sime...@gmail.com Quick question, do you have the aidl file in both applications? Regards On 16 mar, 14:07, Peerke peter.fort...@gmail.com wrote: Hello, I have problems with the following: I want to create to applications. One with a Android service and one with a Activity that will use functions on the Service. Before I splitted this in to applications I got everything working in one application. I can call functions (that are definned in the aidl- file) on the service without problems. Now the problems coms. I splitted the application into two parts, a Service application and Gui application. The bindins to the service (in the gui application) works and I see that the service is getting created. Then in the onServiceConnected function of the ServiceConnection class I created the following: mService = IMyService.Stub.asInterface(service); And this gives me the following exception: 03-16 13:53:05.549: ERROR/AndroidRuntime(881): java.lang.NoClassDefFoundError: MyPackage.IMyService$Stub It looks like he can't find the Stub class in IMyService. But the Stub is part of the java file generated out of the aidl-file. Anyone has any idea why I get this exception or how I can resolve this issue? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Display Process IDs
Yes, see the PackageManager component, getInstalledPackages method. Regards Marek On Mar 23, 11:42 am, perumal316 perumal...@gmail.com wrote: Hi, I want to create an application with a user interface displaying all the installed applications name, and user can choose an application from there. Is it possible to display the names of all the installed applications? Thanks In Advance, Perumal On Mar 23, 6:35 pm, Jaya Hoondlani jaya.hoondl...@gmail.com wrote: Do you need anything like file browser? If that is the case you can specify a particular directory like data or sdcard and get it contents.. Let me know. Jaya Diaspark,Inc.(www.diaspark.com) On Mar 23, 3:22 pm, perumal316 perumal...@gmail.com wrote: Hi, Is it possible to list down the names of all the apps that have been installed ? So that I can list down all the names of the apps and not only the PIDs. Thanks In Advance, Perumal On Mar 23, 5:45 pm, perumal316 perumal...@gmail.com wrote: Hi Jaya, Thanks for the help. Managed to get it work. Thanks and Regards, Perumal On Mar 23, 5:32 pm, Jaya Hoondlani jaya.hoondl...@gmail.com wrote: Hi Perumal, You can do this to display all the PID's for running application Context context = getApplicationContext(); Resources appR = context.getResources(); ActivityManager actmgr=(ActivityManager)context.getSystemService (Context.ACTIVITY_SERVICE); ListRunningAppProcessInfo appList = actmgr.getRunningAppProcesses(); CharSequence[] items = new CharSequence[appList.size()]; Vector ProcessallProcesses = new Vector Process(); for (int i=0;iappList.size();i++) { RunningAppProcessInfo rti = (RunningAppProcessInfo)appList.get(i); Log.v( , PID+rti.pid+Process Name+rti.processName ); } Thanks Jaya Diaspark,Inc.(www.diaspark.com) On Mar 23, 2:21 pm, perumal316 perumal...@gmail.com wrote: Hi All, Is there any way to display all the process IDs to a user? I think to display the current ID can use the following code: int myProcessID = Process.myPid(); But how do I display all process IDs? Thanks In Advance, Perumal- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Android 2.0 SDK is here!
Hello, You probably need to set up the proxy settings in the Android application's Settings. That did the trick for me. See also this thread for other problems which was referenced above: http://groups.google.com/group/android-developers/browse_thread/thread/63a44163a8d07cd9# Regards Marek On Oct 29, 2:05 pm, Abhi abhishek.r.sha...@gmail.com wrote: Hi, I am having trouble upgrading my SDK 1.6 to 2.0 on my laptop. My laptop is behind my company's firewall and when I try to install the new SDK components using the Android SDK and AVD Manager, I get this error saying Failed to fetch URLhttp://dl-ssl.google.com/android/repository/repository.xml, reason: Connection timed out: connect. I tried all methods, using Eclipse, using command 'android.bat update sdk' and also directly running 'SDK Setup.exe'. Please help! I need to get this new SDK running ASAP. Thanks, Abhi On Oct 27, 12:45 pm, Xavier Ducrohet x...@android.com wrote: Hello everyone! We've just announced the Android 2.0 SDKhttp://android-developers.blogspot.com/2009/10/announcing-android-20-... If you already have the 1.6 SDK, note that you can simply use the SDK Manager to add Android 2.0 to your SDK. Make sure you also get the new SDK Tools (revision 3), as the SDK Manager in revision 2 (the one that shipped with 1.6) doesn't enforce dependencies between platforms and Tools (fixed in rev 3) For more information about using the SDK Manager, see:http://developer.android.com/sdk/adding-components.html Have fun! Xav -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---