Re: [android-developers] Asynchronous Http Request
Mark you forgot while(1){ HttpGet get = new HttpGet(http://www.microsoft.com;); } :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do I programatically push my app to run in background?
Hi Archana, On 6月1日, 下午1時00分, Archana archana.14n...@gmail.com wrote: Hi ,thanks for your reply,can you tell me how can i check wedr my app is running in background.Now I am checking by long press Home key.Is their any other way? Sure. If you are using Eclair , you can check background running services by Settings application. Settings - Applications - Running services, then you will see all running services. If you are not using Eclair, you can connect to the device via adb shell command and enter ps command to see all processes. You can refer to http://developer.android.com/guide/developing/tools/adb.html to get more info. If we give this.finish(),our current activity only getting finish,but stil our app is running in background.Right? But I cant see my app in running process. If you start one service, it will only be killed when system shutdowns or you call stopService() or call stopSelf() in service itself programmatically. For example, public class A extends Activity{ public void onCreate(Bundle b){ super.onCreate(b); setContentView(R.layout.main); Intent i = new Intent(this, B.class); startService(i); // we start B here // stopService(i); // this is to kill B } } public class B extends Service{ private boolean isDestroyed = false; public void onCreate(Bundle b){ super.onCreate(b); } public void onDestroy(){ super.onDestroy(); isDestroyed = true; } public void onStart(Intent i, int id){ super.onStart(i, id); RunningThread thread = new RunningThread(); thread.start(); } public IBinder onBind(){ return null; } class RunningThread extends Thread{ public void run(){ while (!isDestroyed){ // you can put your time-consuming tasks here . . . // assume we're finished here stopSelf(); // this is to kill B } } } } In above example, if you don't call stopSelf() or stopService(), B will continue running in background. NightGospel On May 31, 11:37 am, NightGospel wutie...@gmail.com wrote: Hi Archana, This is simple. Just put your time-consuming tasks to a service and it will run in background and be destroyed until system shutdown or you stop the service programmatically. You can see the link to get more info and it can help you to solve this problem. http://developer.android.com/reference/android/app/Service.html NightGospel On 5月31日, 下午2時20分, Archana archana.14n...@gmail.com wrote: Hi, How can we programatically push our app to run in background? I am doing one browser app. and when I am directly launching my application and clicking back key . It will show in the list of background running process.At this time Category is CATEGORY_LAUNCHER but at the same time if we try to run same app via third party app.and then clicking back key,its not showing in the list of background running process.Here the Category is CATEGORY_BROWSABLE.and its not displaying in the list of running process.I noticed that the same behaviour in default android browser. But is their any way to make my app to run in background by clicking back key without killing my application? Please help,its very urgent. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MusicVis live wallpaper
Thank you for your response. Has this functionality been standardized or made available in froyo? I can't seem to get it to work there either? Just a bit annoying to have features I want to implement but nice to know it isn't from lack of trying. Was doing some development around that feature, while I can put it aside for now it would be nice to know the roadmap for this since eclair shipped with wallpapers that support this feature. I'll sideline any attempts to use this feature in any of my apps for the time being but it'd be nice to know I can infact make more music-vis wallpapers, it's something I really like the idea of doing. Adam On May 28, 11:27 am, Romain Guy romain...@android.com wrote: Hi, The music live wallpapers rely on APIs that we have not made public in the SDK yet. These APIs were added very late in the development process and we haven't had the time to properly turn them into maintainable and documented APIs. On Fri, May 28, 2010 at 12:48 AM, HaMMeReD adamhamm...@gmail.com wrote: The live wallpapers that do music visualization rely on a function MediaPlayer.snoop(shortarray, offset?) , but I can't seem to find these static functions in the official api. Eclipse doesn't seem to want to compile if I use the function in my code. Any idea'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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do I programatically push my app to run in background?
Hi,Thanks for the example.So is it possible to exit from my app without using finish() .Actually in my main activity while calling finish I am unbinding/ stopping the service and exiting from app. But I dont require this in some scenario like when I am launching it from third party.like my app must exit,but service should run. On Jun 1, 11:05 am, NightGospel wutie...@gmail.com wrote: Hi Archana, On 6月1日, 下午1時00分, Archana archana.14n...@gmail.com wrote: Hi ,thanks for your reply,can you tell me how can i check wedr my app is running in background.Now I am checking by long press Home key.Is their any other way? Sure. If you are using Eclair , you can check background running services by Settings application. Settings - Applications - Running services, then you will see all running services. If you are not using Eclair, you can connect to the device via adb shell command and enter ps command to see all processes. You can refer tohttp://developer.android.com/guide/developing/tools/adb.html to get more info. If we give this.finish(),our current activity only getting finish,but stil our app is running in background.Right? But I cant see my app in running process. If you start one service, it will only be killed when system shutdowns or you call stopService() or call stopSelf() in service itself programmatically. For example, public class A extends Activity{ public void onCreate(Bundle b){ super.onCreate(b); setContentView(R.layout.main); Intent i = new Intent(this, B.class); startService(i); // we start B here // stopService(i); // this is to kill B } } public class B extends Service{ private boolean isDestroyed = false; public void onCreate(Bundle b){ super.onCreate(b); } public void onDestroy(){ super.onDestroy(); isDestroyed = true; } public void onStart(Intent i, int id){ super.onStart(i, id); RunningThread thread = new RunningThread(); thread.start(); } public IBinder onBind(){ return null; } class RunningThread extends Thread{ public void run(){ while (!isDestroyed){ // you can put your time-consuming tasks here . . . // assume we're finished here stopSelf(); // this is to kill B } } } } In above example, if you don't call stopSelf() or stopService(), B will continue running in background. NightGospel On May 31, 11:37 am, NightGospel wutie...@gmail.com wrote: Hi Archana, This is simple. Just put your time-consuming tasks to a service and it will run in background and be destroyed until system shutdown or you stop the service programmatically. You can see the link to get more info and it can help you to solve this problem. http://developer.android.com/reference/android/app/Service.html NightGospel On 5月31日, 下午2時20分, Archana archana.14n...@gmail.com wrote: Hi, How can we programatically push our app to run in background? I am doing one browser app. and when I am directly launching my application and clicking back key . It will show in the list of background running process.At this time Category is CATEGORY_LAUNCHER but at the same time if we try to run same app via third party app.and then clicking back key,its not showing in the list of background running process.Here the Category is CATEGORY_BROWSABLE.and its not displaying in the list of running process.I noticed that the same behaviour in default android browser. But is their any way to make my app to run in background by clicking back key without killing my application? Please help,its very urgent. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Developing Online Android Game
Ok, you don't HAVE to learn about OTP and behaviours, you can add these features after. It mostly has to do with fault tolerance. I would recommend chapter 11, which contains a server-client IRC example. You'd just transfer the client code to java, I think if you can master that, you'll be set. Although, I think the whole 'Group' aspect makes it kind of confusing. You might also find some erlang TCP servers out there, I did some googling and found this http://20bits.com/articles/erlang-a-generalized-tcp-server/. There's probably more and better ones out there. You may also want to look into RabbitMQ if you can make it fit your needs. But the code in that blog is pretty solid and in my opinion simple and easy to understand. My main problem with Nitrogen is trying to figure out how to interact on the client side. I've installed the firebug extension into firefox so I can view all the requests needed to the server. There are several Javascript requests and some requests are 100KB plus. It seems like nitrogen adds a lot of overhead which is not something a data plan could endure. I've found another Erlang chat example which has far fewer requests than before. I've installed it on my server. You can access it at http://stormyd.dyndns.biz:8000 . The code is from http://chrismoos.com/2009/09/28/building-an-erlang-chat-server-with-comet-part-1/ . When using firebug, it shows two javascript pages and multiple GET requests (the browser appears to cache the javascripts so it will only be the first time). I understand how the client will long poll the server for 1 minute 30 seconds until it responds, but I do not understand all the setting up requests. Is it possible to emulate all of the GET requests on android. Could I bypass the javascripts? If you or someone could help me interact with the server through telnet (logging in, posting messages, and receiving them), I think I'd better understand how it works. Wow, that seems like a lot of unnecessary overhead. Definitely stay away from that, my opinion is that HTTP should be used to transfer Hyper Text, or websites. Not game data. -- http://diastrofunk.com, http://developingthedream.blogspot.com/, http://www.youtube.com/user/revoltingx, ~Isaiah 55:8-9 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: CANNOT manage to get ADB working whatever I do.
I initially had the same problem (HTC Desire, which I believe is 99.9%=Nexus One) on Win32 (Vista, XP). SDK USB driver didn't work. I came across a recommendation to install the HTCSync exe that was on the SD card - and that did it. I assume that something equivalent exists for the N1? BR Per On 25 Maj, 17:20, HLL hll...@gmail.com wrote: Hay everyone, I Want to start developing for android and for some reason whatever I do I can not make ADB show up my Nexus One. Both on and off in development mode Both SD Mount and without SD Mount Both With usb tethering on and off for all adb devices(windows XP64bit) show no device (service started successfully, device recognized in Device Manager correctly). Tried reinstalling drivers, tried uninstalling drivers completely(using 3rd party software) and reinstalling, tried different versions of the usb driver (up to the one before the last - that came with the 2.1 sdk) NOTHING... It seems online that this issue reoccurs on different devices, but all of them seemed to solve with one of the above solutions, Which none worked for me. It does not look like a hardware problem, because EVERYTHING else that is USB'ed works correctly. Any non-already tried idea would be appreciated. Regards, Hillel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Port based sms in android
Hi , Is it possible to use port numbers(to Send SMS) in Android App like we use in J2ME. So that only those App with the same Port Number can listen to SMS’s. I don't want data message to goto the inbox. Warm Regards, Sudeep -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do I programatically push my app to run in background?
Hi,Thanks for the example.So is it possible to exit from my app without using finish() .Actually in my main activity while calling finish I am unbinding/ stopping the service and exiting from app. But I dont require this in some scenario like when I am launching it from third party.like my app must exit,but I want to push my app(not service) to run in background. On Jun 1, 11:05 am, NightGospel wutie...@gmail.com wrote: Hi Archana, On 6月1日, 下午1時00分, Archana archana.14n...@gmail.com wrote: Hi ,thanks for your reply,can you tell me how can i check wedr my app is running in background.Now I am checking by long press Home key.Is their any other way? Sure. If you are using Eclair , you can check background running services by Settings application. Settings - Applications - Running services, then you will see all running services. If you are not using Eclair, you can connect to the device via adb shell command and enter ps command to see all processes. You can refer tohttp://developer.android.com/guide/developing/tools/adb.html to get more info. If we give this.finish(),our current activity only getting finish,but stil our app is running in background.Right? But I cant see my app in running process. If you start one service, it will only be killed when system shutdowns or you call stopService() or call stopSelf() in service itself programmatically. For example, public class A extends Activity{ public void onCreate(Bundle b){ super.onCreate(b); setContentView(R.layout.main); Intent i = new Intent(this, B.class); startService(i); // we start B here // stopService(i); // this is to kill B } } public class B extends Service{ private boolean isDestroyed = false; public void onCreate(Bundle b){ super.onCreate(b); } public void onDestroy(){ super.onDestroy(); isDestroyed = true; } public void onStart(Intent i, int id){ super.onStart(i, id); RunningThread thread = new RunningThread(); thread.start(); } public IBinder onBind(){ return null; } class RunningThread extends Thread{ public void run(){ while (!isDestroyed){ // you can put your time-consuming tasks here . . . // assume we're finished here stopSelf(); // this is to kill B } } } } In above example, if you don't call stopSelf() or stopService(), B will continue running in background. NightGospel On May 31, 11:37 am, NightGospel wutie...@gmail.com wrote: Hi Archana, This is simple. Just put your time-consuming tasks to a service and it will run in background and be destroyed until system shutdown or you stop the service programmatically. You can see the link to get more info and it can help you to solve this problem. http://developer.android.com/reference/android/app/Service.html NightGospel On 5月31日, 下午2時20分, Archana archana.14n...@gmail.com wrote: Hi, How can we programatically push our app to run in background? I am doing one browser app. and when I am directly launching my application and clicking back key . It will show in the list of background running process.At this time Category is CATEGORY_LAUNCHER but at the same time if we try to run same app via third party app.and then clicking back key,its not showing in the list of background running process.Here the Category is CATEGORY_BROWSABLE.and its not displaying in the list of running process.I noticed that the same behaviour in default android browser. But is their any way to make my app to run in background by clicking back key without killing my application? Please help,its very urgent. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do I programatically push my app to run in background?
Hi,Thanks for the example.So is it possible to exit from my app without using finish() .Actually in my main activity while calling finish I am unbinding/ stopping the service and exiting from app. But I dont require this in some scenario like when I am launching it from third party.like my app must exit,but I want to push my app(not service) to run in background. On Jun 1, 11:05 am, NightGospel wutie...@gmail.com wrote: Hi Archana, On 6月1日, 下午1時00分, Archana archana.14n...@gmail.com wrote: Hi ,thanks for your reply,can you tell me how can i check wedr my app is running in background.Now I am checking by long press Home key.Is their any other way? Sure. If you are using Eclair , you can check background running services by Settings application. Settings - Applications - Running services, then you will see all running services. If you are not using Eclair, you can connect to the device via adb shell command and enter ps command to see all processes. You can refer tohttp://developer.android.com/guide/developing/tools/adb.html to get more info. If we give this.finish(),our current activity only getting finish,but stil our app is running in background.Right? But I cant see my app in running process. If you start one service, it will only be killed when system shutdowns or you call stopService() or call stopSelf() in service itself programmatically. For example, public class A extends Activity{ public void onCreate(Bundle b){ super.onCreate(b); setContentView(R.layout.main); Intent i = new Intent(this, B.class); startService(i); // we start B here // stopService(i); // this is to kill B } } public class B extends Service{ private boolean isDestroyed = false; public void onCreate(Bundle b){ super.onCreate(b); } public void onDestroy(){ super.onDestroy(); isDestroyed = true; } public void onStart(Intent i, int id){ super.onStart(i, id); RunningThread thread = new RunningThread(); thread.start(); } public IBinder onBind(){ return null; } class RunningThread extends Thread{ public void run(){ while (!isDestroyed){ // you can put your time-consuming tasks here . . . // assume we're finished here stopSelf(); // this is to kill B } } } } In above example, if you don't call stopSelf() or stopService(), B will continue running in background. NightGospel On May 31, 11:37 am, NightGospel wutie...@gmail.com wrote: Hi Archana, This is simple. Just put your time-consuming tasks to a service and it will run in background and be destroyed until system shutdown or you stop the service programmatically. You can see the link to get more info and it can help you to solve this problem. http://developer.android.com/reference/android/app/Service.html NightGospel On 5月31日, 下午2時20分, Archana archana.14n...@gmail.com wrote: Hi, How can we programatically push our app to run in background? I am doing one browser app. and when I am directly launching my application and clicking back key . It will show in the list of background running process.At this time Category is CATEGORY_LAUNCHER but at the same time if we try to run same app via third party app.and then clicking back key,its not showing in the list of background running process.Here the Category is CATEGORY_BROWSABLE.and its not displaying in the list of running process.I noticed that the same behaviour in default android browser. But is their any way to make my app to run in background by clicking back key without killing my application? Please help,its very urgent. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do I programatically push my app to run in background?
Hi,Thanks for the example.So is it possible to exit from my app without using finish() .Actually in my main activity while calling finish I am unbinding/ stopping the service and exiting from app. But I dont require this in some scenario like when I am launching it from third party.like my app must exit,but I want to push my app(not service) to run in background. On Jun 1, 11:05 am, NightGospel wutie...@gmail.com wrote: Hi Archana, On 6月1日, 下午1時00分, Archana archana.14n...@gmail.com wrote: Hi ,thanks for your reply,can you tell me how can i check wedr my app is running in background.Now I am checking by long press Home key.Is their any other way? Sure. If you are using Eclair , you can check background running services by Settings application. Settings - Applications - Running services, then you will see all running services. If you are not using Eclair, you can connect to the device via adb shell command and enter ps command to see all processes. You can refer tohttp://developer.android.com/guide/developing/tools/adb.html to get more info. If we give this.finish(),our current activity only getting finish,but stil our app is running in background.Right? But I cant see my app in running process. If you start one service, it will only be killed when system shutdowns or you call stopService() or call stopSelf() in service itself programmatically. For example, public class A extends Activity{ public void onCreate(Bundle b){ super.onCreate(b); setContentView(R.layout.main); Intent i = new Intent(this, B.class); startService(i); // we start B here // stopService(i); // this is to kill B } } public class B extends Service{ private boolean isDestroyed = false; public void onCreate(Bundle b){ super.onCreate(b); } public void onDestroy(){ super.onDestroy(); isDestroyed = true; } public void onStart(Intent i, int id){ super.onStart(i, id); RunningThread thread = new RunningThread(); thread.start(); } public IBinder onBind(){ return null; } class RunningThread extends Thread{ public void run(){ while (!isDestroyed){ // you can put your time-consuming tasks here . . . // assume we're finished here stopSelf(); // this is to kill B } } } } In above example, if you don't call stopSelf() or stopService(), B will continue running in background. NightGospel On May 31, 11:37 am, NightGospel wutie...@gmail.com wrote: Hi Archana, This is simple. Just put your time-consuming tasks to a service and it will run in background and be destroyed until system shutdown or you stop the service programmatically. You can see the link to get more info and it can help you to solve this problem. http://developer.android.com/reference/android/app/Service.html NightGospel On 5月31日, 下午2時20分, Archana archana.14n...@gmail.com wrote: Hi, How can we programatically push our app to run in background? I am doing one browser app. and when I am directly launching my application and clicking back key . It will show in the list of background running process.At this time Category is CATEGORY_LAUNCHER but at the same time if we try to run same app via third party app.and then clicking back key,its not showing in the list of background running process.Here the Category is CATEGORY_BROWSABLE.and its not displaying in the list of running process.I noticed that the same behaviour in default android browser. But is their any way to make my app to run in background by clicking back key without killing my application? Please help,its very urgent. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do I programatically push my app to run in background?
Hi,Thanks for the example.So is it possible to exit from my app without using finish() .Actually in my main activity while calling finish I am unbinding/ stopping the service and exiting from app. But I dont require this in some scenario like when I am launching it from third party.like my app must exit,but I want to push my app(not service) to run in background. On Jun 1, 11:05 am, NightGospel wutie...@gmail.com wrote: Hi Archana, On 6月1日, 下午1時00分, Archana archana.14n...@gmail.com wrote: Hi ,thanks for your reply,can you tell me how can i check wedr my app is running in background.Now I am checking by long press Home key.Is their any other way? Sure. If you are using Eclair , you can check background running services by Settings application. Settings - Applications - Running services, then you will see all running services. If you are not using Eclair, you can connect to the device via adb shell command and enter ps command to see all processes. You can refer tohttp://developer.android.com/guide/developing/tools/adb.html to get more info. If we give this.finish(),our current activity only getting finish,but stil our app is running in background.Right? But I cant see my app in running process. If you start one service, it will only be killed when system shutdowns or you call stopService() or call stopSelf() in service itself programmatically. For example, public class A extends Activity{ public void onCreate(Bundle b){ super.onCreate(b); setContentView(R.layout.main); Intent i = new Intent(this, B.class); startService(i); // we start B here // stopService(i); // this is to kill B } } public class B extends Service{ private boolean isDestroyed = false; public void onCreate(Bundle b){ super.onCreate(b); } public void onDestroy(){ super.onDestroy(); isDestroyed = true; } public void onStart(Intent i, int id){ super.onStart(i, id); RunningThread thread = new RunningThread(); thread.start(); } public IBinder onBind(){ return null; } class RunningThread extends Thread{ public void run(){ while (!isDestroyed){ // you can put your time-consuming tasks here . . . // assume we're finished here stopSelf(); // this is to kill B } } } } In above example, if you don't call stopSelf() or stopService(), B will continue running in background. NightGospel On May 31, 11:37 am, NightGospel wutie...@gmail.com wrote: Hi Archana, This is simple. Just put your time-consuming tasks to a service and it will run in background and be destroyed until system shutdown or you stop the service programmatically. You can see the link to get more info and it can help you to solve this problem. http://developer.android.com/reference/android/app/Service.html NightGospel On 5月31日, 下午2時20分, Archana archana.14n...@gmail.com wrote: Hi, How can we programatically push our app to run in background? I am doing one browser app. and when I am directly launching my application and clicking back key . It will show in the list of background running process.At this time Category is CATEGORY_LAUNCHER but at the same time if we try to run same app via third party app.and then clicking back key,its not showing in the list of background running process.Here the Category is CATEGORY_BROWSABLE.and its not displaying in the list of running process.I noticed that the same behaviour in default android browser. But is their any way to make my app to run in background by clicking back key without killing my application? Please help,its very urgent. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do I programatically push my app to run in background?
Hi,Thanks for the example.So is it possible to exit from my app without using finish() .Actually in my main activity while calling finish I am unbinding/ stopping the service and exiting from app. But I dont require this in some scenario like when I am launching it from third party.like my app must exit,but I want to push my app(not service) to run in background. On Jun 1, 11:05 am, NightGospel wutie...@gmail.com wrote: Hi Archana, On 6月1日, 下午1時00分, Archana archana.14n...@gmail.com wrote: Hi ,thanks for your reply,can you tell me how can i check wedr my app is running in background.Now I am checking by long press Home key.Is their any other way? Sure. If you are using Eclair , you can check background running services by Settings application. Settings - Applications - Running services, then you will see all running services. If you are not using Eclair, you can connect to the device via adb shell command and enter ps command to see all processes. You can refer tohttp://developer.android.com/guide/developing/tools/adb.html to get more info. If we give this.finish(),our current activity only getting finish,but stil our app is running in background.Right? But I cant see my app in running process. If you start one service, it will only be killed when system shutdowns or you call stopService() or call stopSelf() in service itself programmatically. For example, public class A extends Activity{ public void onCreate(Bundle b){ super.onCreate(b); setContentView(R.layout.main); Intent i = new Intent(this, B.class); startService(i); // we start B here // stopService(i); // this is to kill B } } public class B extends Service{ private boolean isDestroyed = false; public void onCreate(Bundle b){ super.onCreate(b); } public void onDestroy(){ super.onDestroy(); isDestroyed = true; } public void onStart(Intent i, int id){ super.onStart(i, id); RunningThread thread = new RunningThread(); thread.start(); } public IBinder onBind(){ return null; } class RunningThread extends Thread{ public void run(){ while (!isDestroyed){ // you can put your time-consuming tasks here . . . // assume we're finished here stopSelf(); // this is to kill B } } } } In above example, if you don't call stopSelf() or stopService(), B will continue running in background. NightGospel On May 31, 11:37 am, NightGospel wutie...@gmail.com wrote: Hi Archana, This is simple. Just put your time-consuming tasks to a service and it will run in background and be destroyed until system shutdown or you stop the service programmatically. You can see the link to get more info and it can help you to solve this problem. http://developer.android.com/reference/android/app/Service.html NightGospel On 5月31日, 下午2時20分, Archana archana.14n...@gmail.com wrote: Hi, How can we programatically push our app to run in background? I am doing one browser app. and when I am directly launching my application and clicking back key . It will show in the list of background running process.At this time Category is CATEGORY_LAUNCHER but at the same time if we try to run same app via third party app.and then clicking back key,its not showing in the list of background running process.Here the Category is CATEGORY_BROWSABLE.and its not displaying in the list of running process.I noticed that the same behaviour in default android browser. But is their any way to make my app to run in background by clicking back key without killing my application? Please help,its very urgent. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do I programatically push my app to run in background?
Hi,Thanks for the example.So is it possible to exit from my app without using finish() .Actually in my main activity while calling finish I am unbinding/ stopping the service and exiting from app. But I dont require this in some scenario like when I am launching it from third party.like my app must exit,but I want to push my app(not service) to run in background. On Jun 1, 11:05 am, NightGospel wutie...@gmail.com wrote: Hi Archana, On 6月1日, 下午1時00分, Archana archana.14n...@gmail.com wrote: Hi ,thanks for your reply,can you tell me how can i check wedr my app is running in background.Now I am checking by long press Home key.Is their any other way? Sure. If you are using Eclair , you can check background running services by Settings application. Settings - Applications - Running services, then you will see all running services. If you are not using Eclair, you can connect to the device via adb shell command and enter ps command to see all processes. You can refer tohttp://developer.android.com/guide/developing/tools/adb.html to get more info. If we give this.finish(),our current activity only getting finish,but stil our app is running in background.Right? But I cant see my app in running process. If you start one service, it will only be killed when system shutdowns or you call stopService() or call stopSelf() in service itself programmatically. For example, public class A extends Activity{ public void onCreate(Bundle b){ super.onCreate(b); setContentView(R.layout.main); Intent i = new Intent(this, B.class); startService(i); // we start B here // stopService(i); // this is to kill B } } public class B extends Service{ private boolean isDestroyed = false; public void onCreate(Bundle b){ super.onCreate(b); } public void onDestroy(){ super.onDestroy(); isDestroyed = true; } public void onStart(Intent i, int id){ super.onStart(i, id); RunningThread thread = new RunningThread(); thread.start(); } public IBinder onBind(){ return null; } class RunningThread extends Thread{ public void run(){ while (!isDestroyed){ // you can put your time-consuming tasks here . . . // assume we're finished here stopSelf(); // this is to kill B } } } } In above example, if you don't call stopSelf() or stopService(), B will continue running in background. NightGospel On May 31, 11:37 am, NightGospel wutie...@gmail.com wrote: Hi Archana, This is simple. Just put your time-consuming tasks to a service and it will run in background and be destroyed until system shutdown or you stop the service programmatically. You can see the link to get more info and it can help you to solve this problem. http://developer.android.com/reference/android/app/Service.html NightGospel On 5月31日, 下午2時20分, Archana archana.14n...@gmail.com wrote: Hi, How can we programatically push our app to run in background? I am doing one browser app. and when I am directly launching my application and clicking back key . It will show in the list of background running process.At this time Category is CATEGORY_LAUNCHER but at the same time if we try to run same app via third party app.and then clicking back key,its not showing in the list of background running process.Here the Category is CATEGORY_BROWSABLE.and its not displaying in the list of running process.I noticed that the same behaviour in default android browser. But is their any way to make my app to run in background by clicking back key without killing my application? Please help,its very urgent. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do I programatically push my app to run in background?
Hi,Thanks for the example.So is it possible to exit from my app without using finish() .Actually in my main activity while calling finish I am unbinding/ stopping the service and exiting from app. But I dont require this in some scenario like when I am launching it from third party.like my app must exit,but I want to push my app(not service) to run in background. On Jun 1, 11:05 am, NightGospel wutie...@gmail.com wrote: Hi Archana, On 6月1日, 下午1時00分, Archana archana.14n...@gmail.com wrote: Hi ,thanks for your reply,can you tell me how can i check wedr my app is running in background.Now I am checking by long press Home key.Is their any other way? Sure. If you are using Eclair , you can check background running services by Settings application. Settings - Applications - Running services, then you will see all running services. If you are not using Eclair, you can connect to the device via adb shell command and enter ps command to see all processes. You can refer tohttp://developer.android.com/guide/developing/tools/adb.html to get more info. If we give this.finish(),our current activity only getting finish,but stil our app is running in background.Right? But I cant see my app in running process. If you start one service, it will only be killed when system shutdowns or you call stopService() or call stopSelf() in service itself programmatically. For example, public class A extends Activity{ public void onCreate(Bundle b){ super.onCreate(b); setContentView(R.layout.main); Intent i = new Intent(this, B.class); startService(i); // we start B here // stopService(i); // this is to kill B } } public class B extends Service{ private boolean isDestroyed = false; public void onCreate(Bundle b){ super.onCreate(b); } public void onDestroy(){ super.onDestroy(); isDestroyed = true; } public void onStart(Intent i, int id){ super.onStart(i, id); RunningThread thread = new RunningThread(); thread.start(); } public IBinder onBind(){ return null; } class RunningThread extends Thread{ public void run(){ while (!isDestroyed){ // you can put your time-consuming tasks here . . . // assume we're finished here stopSelf(); // this is to kill B } } } } In above example, if you don't call stopSelf() or stopService(), B will continue running in background. NightGospel On May 31, 11:37 am, NightGospel wutie...@gmail.com wrote: Hi Archana, This is simple. Just put your time-consuming tasks to a service and it will run in background and be destroyed until system shutdown or you stop the service programmatically. You can see the link to get more info and it can help you to solve this problem. http://developer.android.com/reference/android/app/Service.html NightGospel On 5月31日, 下午2時20分, Archana archana.14n...@gmail.com wrote: Hi, How can we programatically push our app to run in background? I am doing one browser app. and when I am directly launching my application and clicking back key . It will show in the list of background running process.At this time Category is CATEGORY_LAUNCHER but at the same time if we try to run same app via third party app.and then clicking back key,its not showing in the list of background running process.Here the Category is CATEGORY_BROWSABLE.and its not displaying in the list of running process.I noticed that the same behaviour in default android browser. But is their any way to make my app to run in background by clicking back key without killing my application? Please help,its very urgent. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do I programatically push my app to run in background?
Hi,Thanks for the example.So is it possible to exit from my app without using finish() .Actually in my main activity while calling finish I am unbinding/ stopping the service and exiting from app. But I dont require this in some scenario like when I am launching it from third party.like my app must exit,but I want to push my app(not service) to run in background. On Jun 1, 11:05 am, NightGospel wutie...@gmail.com wrote: Hi Archana, On 6月1日, 下午1時00分, Archana archana.14n...@gmail.com wrote: Hi ,thanks for your reply,can you tell me how can i check wedr my app is running in background.Now I am checking by long press Home key.Is their any other way? Sure. If you are using Eclair , you can check background running services by Settings application. Settings - Applications - Running services, then you will see all running services. If you are not using Eclair, you can connect to the device via adb shell command and enter ps command to see all processes. You can refer tohttp://developer.android.com/guide/developing/tools/adb.html to get more info. If we give this.finish(),our current activity only getting finish,but stil our app is running in background.Right? But I cant see my app in running process. If you start one service, it will only be killed when system shutdowns or you call stopService() or call stopSelf() in service itself programmatically. For example, public class A extends Activity{ public void onCreate(Bundle b){ super.onCreate(b); setContentView(R.layout.main); Intent i = new Intent(this, B.class); startService(i); // we start B here // stopService(i); // this is to kill B } } public class B extends Service{ private boolean isDestroyed = false; public void onCreate(Bundle b){ super.onCreate(b); } public void onDestroy(){ super.onDestroy(); isDestroyed = true; } public void onStart(Intent i, int id){ super.onStart(i, id); RunningThread thread = new RunningThread(); thread.start(); } public IBinder onBind(){ return null; } class RunningThread extends Thread{ public void run(){ while (!isDestroyed){ // you can put your time-consuming tasks here . . . // assume we're finished here stopSelf(); // this is to kill B } } } } In above example, if you don't call stopSelf() or stopService(), B will continue running in background. NightGospel On May 31, 11:37 am, NightGospel wutie...@gmail.com wrote: Hi Archana, This is simple. Just put your time-consuming tasks to a service and it will run in background and be destroyed until system shutdown or you stop the service programmatically. You can see the link to get more info and it can help you to solve this problem. http://developer.android.com/reference/android/app/Service.html NightGospel On 5月31日, 下午2時20分, Archana archana.14n...@gmail.com wrote: Hi, How can we programatically push our app to run in background? I am doing one browser app. and when I am directly launching my application and clicking back key . It will show in the list of background running process.At this time Category is CATEGORY_LAUNCHER but at the same time if we try to run same app via third party app.and then clicking back key,its not showing in the list of background running process.Here the Category is CATEGORY_BROWSABLE.and its not displaying in the list of running process.I noticed that the same behaviour in default android browser. But is their any way to make my app to run in background by clicking back key without killing my application? Please help,its very urgent. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MusicVis live wallpaper
This API is not in Android 2.2. On Mon, May 31, 2010 at 11:21 PM, HaMMeReD adamhamm...@gmail.com wrote: Thank you for your response. Has this functionality been standardized or made available in froyo? I can't seem to get it to work there either? Just a bit annoying to have features I want to implement but nice to know it isn't from lack of trying. Was doing some development around that feature, while I can put it aside for now it would be nice to know the roadmap for this since eclair shipped with wallpapers that support this feature. I'll sideline any attempts to use this feature in any of my apps for the time being but it'd be nice to know I can infact make more music-vis wallpapers, it's something I really like the idea of doing. Adam On May 28, 11:27 am, Romain Guy romain...@android.com wrote: Hi, The music live wallpapers rely on APIs that we have not made public in the SDK yet. These APIs were added very late in the development process and we haven't had the time to properly turn them into maintainable and documented APIs. On Fri, May 28, 2010 at 12:48 AM, HaMMeReD adamhamm...@gmail.com wrote: The live wallpapers that do music visualization rely on a function MediaPlayer.snoop(shortarray, offset?) , but I can't seem to find these static functions in the official api. Eclipse doesn't seem to want to compile if I use the function in my code. Any idea'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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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] Project idea
Hi Developers, i need sum idea to develop the project in android. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] App Widget Lifecycle?
Not really. I meanwhile just stopped feeling that I was doing it wrong ;-) It's probably meant to be used this way. I now display my widget in an invalid state first and then configure it afterwards. On Sun, May 30, 2010 at 9:35 AM, Yuvi yuvidr...@gmail.com wrote: Hey, have you solved this problem? I am facing right now the exact same thing (that onEnabled() is called when the Configuration utility is launched, and not when the actual widget is placed on the home screen). Thanks! Yuvi -- YuviDroid http://android.yuvalsharon.net On Sat, Feb 27, 2010 at 7:51 PM, Mariano Kamp mariano.k...@gmail.comwrote: Hey guys, I am bit puzzled by an app widget's lifecyle. When I create a widget my own configuration activity is launched, some data is entered, I store this data some place and call finish on my config activity like this: Intent resultValue = new Intent(); resultValue.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); setResult(RESULT_OK, resultValue); finish(); Now I would expect to see something like that in my log: I/System.out( 312): onReceive...=android.appwidget.action.APPWIDGET_ENABLED I/System.out( 312): onReceive...=android.appwidget.action.APPWIDGET_UPDATE But as a matter of fact those log entries from above are created when the configuration activity is *started*. Is that right? Am I doing something wrong here? Should I invent some artificial limbo/default state for the widget that can be displayed when it is in its configuration mode? Cheers, Mariano -- You received this message because you are subscribed to the Google Groups Android Developers group. 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.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] Android cursor lifetime
The code you show doesn't contain the issue you describe as there is no code that would use the cursor. It seems strange that you close the database before reading from the cursor. The usual course of events is open the database, create the cursor, read from the cursor, close the cursor, close the database. Btw. In Java variable names start with a lower case letter. On Sat, May 29, 2010 at 1:49 PM, Vikram vikram.bodiche...@gmail.com wrote: I have the following piece of code, which is behaving in a very strange manner. 1. When I run this code, the Cursor always carries 0 rows. 2. I know this sounds stupid, but when I debug the code, it carries all the rows in my table. 3. Alternatively, when I do not close the database and run through it, it carries all the rows. Is this a timing issue of some sort? Has it anything to do with the cursor's lifetime? Will the cursor be invalid if I close the database and the openlitehelper? Why in that case do I get valid data if I debug through the code. //Open the database openForRead(); StringBuilder query = new StringBuilder(SELECT ); //Append the projection columns SQLiteQueryBuilder.appendColumns(query, projection); //Force append the _ID column SQLiteQueryBuilder.appendColumns(query, new String[]{, + _IDColumnName + AS + BaseColumns._ID}); //From tablename query.append(FROM + tableName); //Query the database and return the cursor C = database.rawQuery(query.toString(), null); //Close the database close(); return C; -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Help CSSParser.cpp build error in the 2.1 Source Code
external/webkit/WebCore/css/CSSParser.cpp: In function 'int WebCore::cssValueKeywordID(const WebCore::CSSParserString)': external/webkit/WebCore/css/CSSParser.cpp:5190: error: expected initializer before '*' token external/webkit/WebCore/css/CSSParser.cpp:5191: error: 'hashTableEntry' was not declared in this scope make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/css/CSSParser.o] Error 1 Would help me to fix it,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] Re: Advanced UI tutorials
I am glad you like the tutorials! :) 4 parts have been posted now. Most recently part 2 of the list tutorial where you'll be shown how to add 3d effects to your own list. Don't forget to download the application from Android Market, just search for sony ericsson tutorials and you'll find it! Read more: http://blogs.sonyericsson.com/developerworld/2010/05/31/android-tutorial-making-your-own-3d-list-part-2/ http://blogs.sonyericsson.com/developerworld/category/tutorials/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Flash on Froyo Emulator
Note that you _can_ run Flash on the emulator as a standalone 'AIR' application; i.e. not a browser plugin. Functionally it's much the same thing of course as far as your Flash app is concerned. You need to install the AIR runtime (which = the flash player) which is available as an APK download for the emulator (as well as real 2.2 devices) from Adobe. Signup to Android AIR open beta and you get an instant download. You also need the Android AIR plugin for Flash CS5 (and.. flash CS5) With that you can take an existing Flash movie, publish to Android (.apk) and you get an app that installs and runs on an Android device that has the AIR stuff loaded. For testing with the browser plugin in emulator... can't help you Flash (AIR) inside Emulator performance is not amazing but it works . DrTune -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Socket freezes using GSM connection
Thanks for your replays. Kostya, I did as you suggested and I'm now looking for the delimiter ('\0') on the of the last read buffer and not just the last byte. I didn't understand how can I check the return value in the write() method since it is declared as void. is there another way? Mark, I'll check the broadcast Intents. can you refer me to an example? Thanks ayanir On May 29, 5:47 pm, Kostya Vasilyev kmans...@gmail.com wrote: Ayanir, Your code seems to make assumptions about network data exchange that don't necessarily hold true for GSM connection, such as: - write() always sending the entire data buffer, this may not be the case. It's necessary to check the return value to see how much was actually sent. - read() receiving data broken down by the same chunks as were sent. The check for '\0' needs to be changed to look for it anywhere in the buffer, breaking it down into application-specific packets. -- Kostya 29.05.2010 17:24, ayanir пишет: anyone? On May 27, 5:31 pm, ayanirayanir...@gmail.com wrote: Hello, I’m working on application that uses a socket connection. I’ve implemented 2 different Threads for the read() and the write() methods so they are not being blocked by the read. Everything is working well on the WiFi connection but when I switch to GSM connection the connection becomes unstable without any exception being thrown. It means that there are freezes – the write and read seems to work but no data is actually being piped. Here is what I’m doing: private Socket socketConn = null; private DataInputStream dis = null; private DataOutputStream dos = null; //Read buffer private byte[] buffer; ByteArrayOutputStream readBuffer; private String serverAddress; private int serverPort; public void openConnection(int timeout) throws Exception { if(socketConn != null){ return; } //if we need to resolve the host - if succeed we replace the default otherwise we use the default. //the check is done only once. if(checkHostResolved){ checkHostResolved = false; try{ InetAddress ia = InetAddress.getByName(serverHostAddress); serverAddress = ia.getHostAddress(); } catch(UnknownHostException e2){ MyLog.printException(this, e2, run()InetAddress.getByName); } } socketConn = new Socket(); InetSocketAddress isa = new InetSocketAddress(serverAddress, serverPort); socketConn.connect(isa, timeout); socketConn.setKeepAlive(true); socketConn.setTcpNoDelay(true); socketConn.setSoLinger(true, 1000); dis = new DataInputStream(socketConn.getInputStream()); dos = new DataOutputStream(socketConn.getOutputStream()); } public void closeConnection() { if(socketConn != null){ try{ if(dis != null){ socketConn.shutdownInput(); dis.close(); } if(dos != null){ socketConn.shutdownOutput(); dos.close(); } if(socketConn != null){ socketConn.close(); } if(readBuffer != null){ readBuffer.reset(); } } catch(IOException ioe){ MyLog.printException(this, ioe, Problem Closing connection); } finally{ dis = null; dos = null; socketConn = null; } } MyLog.printLog(this, closeConnection end); } private int trySend(String message) { try{ byte[] data = message.getBytes(); dos.write(data); dos.flush(); return 0; } catch(SocketException se){ MyLog.printException(this, se, Problem with trySend); } catch(Exception e){ MyLog.printException(this, e, trySend()); } MyLog.printLog(this, trySend() Problem with trySend); return ERROR_CODE_CONNECTION; } private boolean tryRead() { try{ int b = 0; while((b = dis.read(buffer)) 0){ readBuffer.write(buffer, 0, b); //if the last read byte is '\0' then we have complete reading at least 1
[android-developers] group views in Layouts and set states of children
Hi folks, is it possible to group the content of a layout and set the state of every view if one of the hole group was touched or focused? ListView rows theme to do so but i don't know how to to that with a RelativeLayouts Thank you so much and cheerio Benny -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Socket freezes using GSM connection
Ah, so those are data streams. Sorry I missed that (using NIO socket channels here :) Then you should be ok with packet fragmentation - as long as your read method checks for '\0' anywhere within the buffer. -- Kostya 01.06.2010 11:43, ayanir пишет: Kostya, I did as you suggested and I'm now looking for the delimiter ('\0') on the of the last read buffer and not just the last byte. I didn't understand how can I check the return value in the write() method since it is declared as void. is there another way? -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to best work with web services? REST
You could try with a lightweight XMLRPC implementation, there is already an android one for it: http://code.google.com/p/android-xmlrpc/ On Jun 1, 7:48 am, Nando Scheidecker nando.andr...@gmail.com wrote: Are there any examples out there to best work with web service? I know that there is a port to SOAP stuff in the kSoap implementation. However, kSoap might be too heavy for me. Instead I was hopping for the device to be able to talk to RESTful services instead. Is there any good example on a REST client? 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] How to send date from service to activity
Hi, I have one service in one application. In my second application i am binding to that service using aidl tool . Now i want to send some data from my service to activity which is running in second application. How can i achieve this. Any help please, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can't we add shared libraries without use of android ndk tools
You are wright. Now i compiled with following commands arm-none-linux-gnueabi-gcc -fPIC -c sample.c -o sample.o arm-none-linux-gnueabi-gcc -shared -Wl,-soname,libmylib.so -o libmylib.so sample.o even though iam getting the same problem On May 29, 2:34 am, mah m...@heilpern.com wrote: That would likely mean you've compiled your library using an x86 compiler. That will not run on an ARM processor. You do not have to use the Android makefile or build system to build your library, but you do need to use the compiler that comes with the NDK. On May 27, 3:05 am, karteek kartee...@gmail.com wrote: How did you compile the library if you didn't use the NDK?. I compiled using the following commands cc -c -fPIC mycfile.c -o mycfile.o cc -o libmylib.so -shared -Wl,-soname,libmy.so mycfile.o On May 27, 11:03 am, David Turner di...@android.com wrote: How did you compile the library if you didn't use the NDK?. There are great chances that what you generated is not a valid ARM ELF binary that can be loaded on Android. On Tue, May 25, 2010 at 6:31 AM, Karteek N kartee...@gmail.com wrote: Hi all, I have gone through android ndk tutorials. But i am little confusing in Android.mk file as well as Application.mk file so instead of that i used the following approach I created a Test.java file which is having one native method. i added the static{ System.loadLibrary(mylib); } By using javah -jni i generated Test.h and using that decleration i implemented a c file And i compiled c file and generated the libmylib.so library. But now my question is how to add this shared library to my android application I followed 2 approaches but all throwing exception that Library mylib not founed. 1 In eclipse BuildPath-ConfigurebuildPath-Android2.1-native given the path of my shared library 2 I copied shared library to /data/data/myprojectpackagenae/lib/ and used the statement in my code as System.load(/data/data/mypackagename/lib/libmylib.so); In above two cases it is throwing same exception Where iam wrong? Is it procedure is wright? Please help me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.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] the problem of Geocoder.getFromLocationName()
hi,all.I met with a problem.I can get the result from Geocoder.getFromLocationNamefile:///D:/docs/reference/android/location/Geocoder.html#getFromLocationName(java.lang.String, int)(String locationName, int maxResults) .but can't work with adding the *parameters of *(double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude).The two methods above will return the same result.please help me.thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Tvout with Android Phones
Hello Frank, Thanks a lot for the reply. I found out that the SAMSUNG galaxy S I9000 ( Android ) supports tv out. http://www.umnet.com/phone/3234-Samsung_i9000_Galaxy_S Best Regards, Vivek R On Mon, May 31, 2010 at 8:35 PM, FrankG frankgru...@googlemail.com wrote: Hello Dileep, I'm not sure whether already in the market, but I assume that the will be soon available, because their is chip from TI ( TI OMAP 4 ) with android support and HDMI. http://focus.ti.com/pr/docs/preldetail.tsp?sectionId=594prelId=sc09021 Good luck ! Frank On 28 Mai, 09:18, Dilip Dilip dileep2m...@gmail.com wrote: Can someone please confirm me, is there any android phones in market with tvout feature ? Thanks and Regards, Dileep On Tue, May 25, 2010 at 9:12 AM, Dilip Dilip dileep2m...@gmail.com wrote: Hi All, Is there any Android phone with Tvout? can someone give me the list. I know HTC incredible supports Tvout on USB port for which we need to buy USB to composite adaptor. Is there any Android phones which supports tvout on 3.5mm Jack. Thanks and Regards, Dileep.- Zitierten Text ausblenden - - Zitierten Text anzeigen - -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Cannot Write file into SDCard
On 5/31/2010 11:39 PM, Bob Kerns wrote: Your description is a little unclear, but I think what you're seeing is that Android does not support simultaneous access between the PC and the SD card. Once you mount the SD card on the PC, it is not available on the device. To access it on the device again, you must first unmount it from the PC. The easiest way to do that is from the notifications bar, where it says Turn off USB Storage / Select to turn off USB storage. On May 30, 8:57 pm, jpbackstabber...@hotmail.com wrote: Thanks all, it finally work However i was not able to view the text file when i mount the phone to the pc It requires me to restart my phone inorder to get the text file in my sdcard. Is there a way i do not need to restart my phone and the view the text file when i mount it? i've tried SDRescan.apk but it wont work. Yep, I have tried to write a xml file onto sd card. use this we have to bind the new file with a FileOutputStream then we create a XmlSerializer in order to write xml data then we set the FileOutputStream as output for the serializer, using UTF-8 encoding then Write ?xml declaration with encoding (if encoding not null) and standalone flag (if standalone not null) and start and end of a tag called root It will work fine. File newXMLFile=new File(Environment.getExternalStorageDirectory()+/new.xml); newXMLFile.createNewFile(); fileios=new FileOutputStream(newXMLFile); XmlSerializer serializer=Xml.newSerializer(); -- Technology never Ends, Learn Fast... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Why do I get XmlPullParserException: attr value delimiter missing! when use XmlPullParser to parse page in Android
When parsing html attribute without quotes such as: STYLE type=text/ css, I will get an Exception like this: org.xmlpull.v1.XmlPullParserException: attr value delimiter missing! (position:START_TAG STYLE type='text/css'@37:13 in java.io.inputstreamrea...@437b1088) . But it can do a prefect job when I parse it J2ME environment, why do I get Exception in Android only -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 loading data in webview Pagevise
Hello I have a HTML file and i want to open it in webview Page by Page. I think i have to implement gesture but i don't know how to use Gesture and load data Page vise. So if anyone knows please reply as soon as possible. -- Regards, Brijesh Masrani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: VideoView cannot play long path video
Hello, 1.videoview I found that it is not a path lenth issue but a file permission issue If I change the /data/data/com.abc.android.abcd/content/ Transformers.mp4 to 777 by adb shell it can be played. and if the file permission is 600, it cannot be played 2.jpeg I dont know why, it now seems ok. On 5月28日, 午後5:06, Magic xuanyi...@gmail.com wrote: VideoView cannot playlongpathvideo issue: Bug#8699 enviroment: Platform 2.0 simulator and G2 H/W. If setVideoPath(/data/data/com.abc.android.abcd/Transformers.mp4); It can play well. While, If setVideoPath(/data/data/com.abc.android.abcd/content/ Transformers.mp4); It cannot play. Btw: familiar things occured when I display the jpeg file bit = BitmapFactory.decodeFile(fileName); mImgView.setImageBitmap(bit); If the fileName is /data/data/com.abc.android.abcd/content/2.jpeg It cannot display While, If the fileName is /data/data/com.abc.android.abcd/2.jpeg It display well. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] sendWallpaperCommand() behavior changed in 2.2
I'm seeing a bothersome change in behavior of the live wallpaper SDK in Android 2.2. Specifically, it's the windowToken parameter to WallpaperManager.sendWallpaperCommand(); in the docs it's described as The window who these offsets should be associated with, as returned by View.getWindowToken(). Which sounds fine, but if the live wallpaper I'm trying to send a command to is the main one - on the home screen - what view should this be? In 2.1, I could send a null for this parameter, and it worked fine - my live wallpaper got the command. In 2.2, the null produces a crash by the system. Here's a logcat trace, FWIW: E/WindowManager( 85): Window Session Crash E/WindowManager( 85): java.lang.IllegalArgumentException: Requested window null does not exist E/WindowManager( 85): at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java: 9244) E/WindowManager( 85): at com.android.server.WindowManagerService $Session.sendWallpaperCommand(WindowManagerService.java:6827) E/WindowManager( 85): at android.view.IWindowSession $Stub.onTransact(IWindowSession.java:345) E/WindowManager( 85): at com.android.server.WindowManagerService $Session.onTransact(WindowManagerService.java:6694) E/WindowManager( 85): at android.os.Binder.execTransact(Binder.java:288) E/WindowManager( 85): at dalvik.system.NativeStart.run(Native Method) Fortunately, this crash is invisible to the user, but that's small consolation as the command never reaches my wallpaper. Has anyone worked out how to get a window token for the home screen? Or any other way around this? Or any other way to send a message to the currently running live wallpaper? Thanks, String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] sendWallpaperCommand() behavior changed in 2.2
Hi, From where are you sending a command? Commands are supposed to be sent by the Home application. In which case you have views and you can get the window token from any of these views. On Tue, Jun 1, 2010 at 2:44 AM, String sterling.ud...@googlemail.com wrote: I'm seeing a bothersome change in behavior of the live wallpaper SDK in Android 2.2. Specifically, it's the windowToken parameter to WallpaperManager.sendWallpaperCommand(); in the docs it's described as The window who these offsets should be associated with, as returned by View.getWindowToken(). Which sounds fine, but if the live wallpaper I'm trying to send a command to is the main one - on the home screen - what view should this be? In 2.1, I could send a null for this parameter, and it worked fine - my live wallpaper got the command. In 2.2, the null produces a crash by the system. Here's a logcat trace, FWIW: E/WindowManager( 85): Window Session Crash E/WindowManager( 85): java.lang.IllegalArgumentException: Requested window null does not exist E/WindowManager( 85): at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java: 9244) E/WindowManager( 85): at com.android.server.WindowManagerService $Session.sendWallpaperCommand(WindowManagerService.java:6827) E/WindowManager( 85): at android.view.IWindowSession $Stub.onTransact(IWindowSession.java:345) E/WindowManager( 85): at com.android.server.WindowManagerService $Session.onTransact(WindowManagerService.java:6694) E/WindowManager( 85): at android.os.Binder.execTransact(Binder.java:288) E/WindowManager( 85): at dalvik.system.NativeStart.run(Native Method) Fortunately, this crash is invisible to the user, but that's small consolation as the command never reaches my wallpaper. Has anyone worked out how to get a window token for the home screen? Or any other way around this? Or any other way to send a message to the currently running live wallpaper? Thanks, String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Signup for C2DM ?
Any update? Has anyone received access to C2DM? On 25 mayo, 23:47, Eurig Jones eurigjo...@gmail.com wrote: Me too. no reply yet. On May 25, 11:38 am, qvark joseluishuertasfernan...@gmail.com wrote: Eagerly waiting here to start testing... has anybody received a response? On 22 mayo, 01:12, brian br...@bwalsh.com wrote: Filled out the form requesting access. I was wondering if anyone has started to work withC2DM? Has Google responded to your signup request? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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 athttp://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] Search for Custom CursorAdapter
hi guys, i have implemented a Custom CursorAdapter which will display all the contacts with there images. this is my code and it is working fine. now i want to have a Search for this screen. i have tried a lot but couldn't find a way out. so could some one please help me out public class Contacts extends ListActivity { static final String[] cat = Constants.DEFAULT_CATEGORIES; static int[] id; static ListLong contactId; DisplayContacts dispCont; ListString number; MapString, String combination = new HashMapString, String(); String isDisplayDetails; ProgressDialog dialog; private class DisplayContacts extends SimpleCursorAdapter implements Filterable { private LayoutInflater mInflater; Context mCtx; public DisplayContacts(Context context, int layout, Cursor c, String[] from, int[] to) { super(context, layout, c, from, to); // TODO Auto-generated constructor stub mInflater = LayoutInflater.from(context); this.mCtx = context; } @Override public void bindView(View view, Context context, Cursor c) { // TODO Auto-generated method stub // int idCol = c.getColumnIndex(Phones._ID); // try { int nameCol = c.getColumnIndex(Phones.NAME); int numCol = c.getColumnIndex(Phones.NUMBER); int foreign = c.getColumnIndex(Phones.PERSON_ID); String name = c.getString(nameCol); String number = c.getString(numCol); // long id = c.getLong(idCol); long phoneForeign = c.getLong(foreign); // View v = mInflater.inflate(R.layout.contacts, parent, false); TextView name_text = (TextView) view.findViewById(R.id.contactName); if (name_text != null) { name_text.setText(name); } TextView num_text = (TextView) view.findViewById(R.id.number); if (num_text != null) { num_text.setText(number); } // set the profile picture ImageView profile = (ImageView) view.findViewById(R.id.imgContact); if (profile != null) { // Uri uri = ContentUris.withAppendedId(People.CONTENT_URI, // id); Cursor cur = getContentResolver().query(Photos.CONTENT_URI, null, Photos.PERSON_ID + =' + phoneForeign + ', null, null); byte[] b = null; if (cur != null) { if (cur.moveToNext()) { int imgColumn = cur.getColumnIndex(Photos.DATA); b = cur.getBlob(imgColumn); } } Bitmap bm = null; if (b != null) { ByteArrayInputStream bytes = new ByteArrayInputStream(b); BitmapDrawable bmd = new BitmapDrawable(bytes); bm = bmd.getBitmap(); profile.setImageBitmap(bm); } else { profile.setImageResource(R.drawable.defaultcontact); } ImageView indicator = (ImageView) view.findViewById(R.id.is); boolean assign = isAssign(number); if (assign) { // set the profile picture indicator.setImageResource(R.drawable.ok); } else { indicator.setImageResource(R.drawable.delete); } } dialog.dismiss(); /* * } finally { if (c != null) { c.close(); } } */ } @Override public Object getItem(int position) { // TODO Auto-generated method stub return super.getItem(position);
[android-developers]
-- Vikrant 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
[android-developers] Re: How to send date from service to activity
Hi Karteek, You should try to register one callback method from activity to service. Then service can call this method to trigger event. The following page has sample codes to reference: http://developer.android.com/guide/developing/tools/aidl.html NightGospel On 6月1日, 下午4時24分, Karteek N kartee...@gmail.com wrote: Hi, I have one service in one application. In my second application i am binding to that service using aidl tool . Now i want to send some data from my service to activity which is running in second application. How can i achieve this. Any help please, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can't we add shared libraries without use of android ndk tools
From what I've seen, the library not found error doesn't only occur if the library cannot be found, however your first step now should probably be to see if it should be found... open an adb shell to your platform, and change directory to /data/data/ your.package.name.here. Does the lib directory exist? If so, is your .so inside it? If the answer to either of these is no, you're not including the library in the package correctly. If the file does exist, the failure to load is based on the exported contents of the library. In this case, you'll want to work with one of the sample libraries that come with the NDK and compare it to your own to figure out what's missing. On Jun 1, 4:28 am, karteek kartee...@gmail.com wrote: You are wright. Now i compiled with following commands arm-none-linux-gnueabi-gcc -fPIC -c sample.c -o sample.o arm-none-linux-gnueabi-gcc -shared -Wl,-soname,libmylib.so -o libmylib.so sample.o even though iam getting the same problem On May 29, 2:34 am, mah m...@heilpern.com wrote: That would likely mean you've compiled your library using an x86 compiler. That will not run on an ARM processor. You do not have to use the Android makefile or build system to build your library, but you do need to use the compiler that comes with the NDK. On May 27, 3:05 am, karteek kartee...@gmail.com wrote: How did you compile the library if you didn't use the NDK?. I compiled using the following commands cc -c -fPIC mycfile.c -o mycfile.o cc -o libmylib.so -shared -Wl,-soname,libmy.so mycfile.o On May 27, 11:03 am, David Turner di...@android.com wrote: How did you compile the library if you didn't use the NDK?. There are great chances that what you generated is not a valid ARM ELF binary that can be loaded on Android. On Tue, May 25, 2010 at 6:31 AM, Karteek N kartee...@gmail.com wrote: Hi all, I have gone through android ndk tutorials. But i am little confusing in Android.mk file as well as Application.mk file so instead of that i used the following approach I created a Test.java file which is having one native method. i added the static{ System.loadLibrary(mylib); } By using javah -jni i generated Test.h and using that decleration i implemented a c file And i compiled c file and generated the libmylib.so library. But now my question is how to add this shared library to my android application I followed 2 approaches but all throwing exception that Library mylib not founed. 1 In eclipse BuildPath-ConfigurebuildPath-Android2.1-native given the path of my shared library 2 I copied shared library to /data/data/myprojectpackagenae/lib/ and used the statement in my code as System.load(/data/data/mypackagename/lib/libmylib.so); In above two cases it is throwing same exception Where iam wrong? Is it procedure is wright? Please help me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.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: sendWallpaperCommand() behavior changed in 2.2
On Jun 1, 10:48 am, Romain Guy romain...@android.com wrote: From where are you sending a command? Commands are supposed to be sent by the Home application. I see; that's not mentioned in the docs. I'm sending a command from elsewhere in my own app (not a Home app, btw), essentially telling the wallpaper to refresh itself under various circumstances. So, it sounds like sendWallpaperCommand() isn't the right way to be doing this. Any recommendations for a better approach? I wouldn't mind sending it an Intent, but I'm not clear how to reach it with one. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Google Map Key issue please help
The Android shell tells you permission denied even when the command you're trying to execute simply doesn't exist on the device. On May 26, 3:14 pm, Ali Murtaza mralimurt...@gmail.com wrote: Hi I use this code to get the finger print in android emulator i got message keystore: permission denied So please help me. It realy urgent $ keytool -list -alias androiddebugkey \ -keystore path_to_debug_keystore.keystore \ -storepass android -keypass android -- Ali Murtaza BCSF06M021 Research Assistant Data Virtulization Ware House PUCIT, Lahore, Pakistan ali.murt...@pucit.edu.pk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Google Map Key issue please help
Yap therefor you should go to the location where JAVA JDK is Installed lets go to location in command line c:\program files\java\jdk\bin and then run the query which is mention above On Tue, Jun 1, 2010 at 4:38 PM, mah m...@heilpern.com wrote: The Android shell tells you permission denied even when the command you're trying to execute simply doesn't exist on the device. On May 26, 3:14 pm, Ali Murtaza mralimurt...@gmail.com wrote: Hi I use this code to get the finger print in android emulator i got message keystore: permission denied So please help me. It realy urgent $ keytool -list -alias androiddebugkey \ -keystore path_to_debug_keystore.keystore \ -storepass android -keypass android -- Ali Murtaza BCSF06M021 Research Assistant Data Virtulization Ware House PUCIT, Lahore, Pakistan ali.murt...@pucit.edu.pk -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Ali Murtaza BCSF06M021 Research Assistant Data Virtulization Ware House PUCIT, Lahore, Pakistan ali.murt...@pucit.edu.pk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Background images to fit different screens
Hi all. I developed a game on my Hero, v1.5, which has a screen size of 480 * 320. The image gets loaded as a Bitmap from the res/drawable folder, and used within a 2D Canvas. The image doesn't fit the screen when I switch to newer devices with different screen ratio, such as a Nexus with 800 * 480... there's a gap at the bottom. What are the options for resolving this issue please? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Background images to fit different screens
On Jun 1, 12:49 pm, Neilz neilhorn...@gmail.com wrote: The image doesn't fit the screen when I switch to newer devices with different screen ratio, such as a Nexus with 800 * 480... there's a gap at the bottom. First, you should read this: http://developer.android.com/guide/practices/screens_support.html For your specific problem, you could make an image with a taller aspect ratio (try 320x570) - keeping in mind that 50-90px will be cropped off on HVGA screens. Or, make an 480x854 image (for the Droid screen) and put it in drawable-hdpi-v4. But be aware that both of those shortcut solutions are kludges which will fail on some devices, present or future. Really, there's no good shortcut to understanding the android approach to multiple screen resolutions densities, then figuring out for yourself what the best solution is for you particular app. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Page resize on HD Devices like Nexus One
Hi, our Webpage: http://www.checkdent.com/mobile/sv.php?id=12332181087788749 looks fine on Android G1, but comes resized on the Google Nexus (higher resolution) Half part of the Page is outside of the View! I implemented as mentioned at several places the : target- densityDpi=device-dpi meta content=minimum-scale=1.0, width=device-width, , target- densityDpi=device-dpi, maximum-scale=0.6667, user-scalable=no name=viewport / it works great within the 'android browser' but in my Webview Application it still resize!! What can i Do? Regards Chris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: CANNOT manage to get ADB working whatever I do.
Worth a shoot, could you upload this thing? cuz i don't have this thing on my card that came with the device... On Jun 1, 9:29 am, Per p...@care2wear.com wrote: I initially had the same problem (HTC Desire, which I believe is 99.9%=Nexus One) on Win32 (Vista, XP). SDK USB driver didn't work. I came across a recommendation to install the HTCSync exe that was on the SD card - and that did it. I assume that something equivalent exists for the N1? BR Per On 25 Maj, 17:20, HLL hll...@gmail.com wrote: Hay everyone, I Want to start developing for android and for some reason whatever I do I can not make ADB show up my Nexus One. Both on and off in development mode Both SD Mount and without SD Mount Both With usb tethering on and off for all adb devices(windows XP64bit) show no device (service started successfully, device recognized in Device Manager correctly). Tried reinstalling drivers, tried uninstalling drivers completely(using 3rd party software) and reinstalling, tried different versions of the usb driver (up to the one before the last - that came with the 2.1 sdk) NOTHING... It seems online that this issue reoccurs on different devices, but all of them seemed to solve with one of the above solutions, Which none worked for me. It does not look like a hardware problem, because EVERYTHING else that is USB'ed works correctly. Any non-already tried idea would be appreciated. Regards, Hillel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: SIGSEGV in system_server
How did you decoded that stack :D ? On Sat, May 29, 2010 at 3:33 AM, fadden fad...@android.com wrote: On May 28, 10:13 am, Dmitriy dmitriy.kostyuche...@gmail.com wrote: The application I wrote HTTP POSTs a file to a remote web server. If, during this upload the phone is going through a lot of other activity - applications being opened, closed, switched; notification drawer being opened and closed - the whole phone shuts off with this error. It seems to me that this could be a bug in the Android OS. The decoded stack trace is below. I expect google groups will mangle it badly. :-| Looks like the Dalvik heap allocator is aborting after finding something it didn't like. Could be something trashing memory. Stack Trace: RELADDR FUNCTION FILE:LINE 000109e0 __libc_android_abort/ usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ bionic/libc/unistd/abort.c:82 6f78 mspace_free / usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ system/core/libcutils/../../../bionic/libc/bionic/dlmalloc.c:4842 00044878 dvmHeapSourceFreeList / usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/alloc/HeapSource.c:847 000170d8 sweepBitmapCallback / usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/alloc/MarkSweep.c:1282 00015a98 dvmHeapBitmapXorWalk/ usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/alloc/HeapBitmap.c:268 00015d94 dvmHeapBitmapXorWalkLists / usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/alloc/HeapBitmap.c:359 00016ff4 dvmHeapSweepUnmarkedObjects / usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/alloc/MarkSweep.c:1337 000163a4 dvmCollectGarbageInternal / usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/alloc/Heap.c:981 v-- gcForMalloc / usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/alloc/Heap.c:329 00016b60 tryMalloc / usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/alloc/Heap.c:329 00016ce0 dvmMalloc / usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/alloc/Heap.c:553 00057b64 dvmAllocArray / usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/oo/Array.c:62 00057cc0 dvmAllocPrimitiveArray / usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/oo/Array.c:220 000430c2 dvmCreateStringFromCstrAndLength/ usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/UtfString.c:280 00043160 dvmCreateStringFromCstr / usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/UtfString.c:238 00055c42 Dalvik_java_lang_Class_getName / usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/native/java_lang_Class.c:366 000139b8 dalvik_mterp/ usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/mterp/out/InterpAsm-armv7-a.S:9381 00019338 dvmMterpStd / usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/mterp/Mterp.c:107 00018804 dvmInterpret/ usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/interp/Interp.c:987 0004eed0 dvmCallMethodV / usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/interp/Stack.c:534 0004eef8 dvmCallMethod / usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/interp/Stack.c:435 0005c478 processEncodedAnnotation/ usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/reflect/Annotation.c:856 v-- processAnnotationSet/ usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/reflect/Annotation.c:922 0005d116 processAnnotationSet.clone.1/ usr/local/google/buildbot/repo_clients/git_eclair-sholes-release/ dalvik/vm/reflect/Annotation.c:922 0005d17c dvmGetMethodAnnotations /
[android-developers] [Eclair] Exception from setupwizard(android.setupwizard.AccountIntroActivity)
Hello All, Sometimes when i try to use login am gettign the below exception, but kinda clue less, have any one faced this? *just happens with setupwizard.. 06-01 12:07:01.923 E/Checkin ( 1996): Error reporting crash 06-01 12:07:01.923 E/Checkin ( 1996): Crash logging skipped, too soon after logging failure 06-01 12:07:01.958 E/AndroidRuntime( 3990): java.lang.RuntimeException: Unable to resume activity {com.android.setupwizard/com.android.setupwizard.AccountIntroActivity}: android.database.sqlite.SQLiteException: no such table: events 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2950) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2965) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2516) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.app.ActivityThread.access$2200(ActivityThread.java:119) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.os.Handler.dispatchMessage(Handler.java:99) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.os.Looper.loop(Looper.java:123) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.app.ActivityThread.main(ActivityThread.java:4363) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at java.lang.reflect.Method.invokeNative(Native Method) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at java.lang.reflect.Method.invoke(Method.java:521) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at dalvik.system.NativeStart.main(Native Method) 06-01 12:07:01.958 E/AndroidRuntime( 3990): Caused by: android.database.sqlite.SQLiteException: no such table: events 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:158) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:114) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.database.BulkCursorProxy.count(BulkCursorNative.java:255) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.database.BulkCursorToCursorAdaptor.set(BulkCursorToCursorAdaptor.java:44) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.content.ContentProviderProxy.query(ContentProviderNative.java:351) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.content.ContentResolver.query(ContentResolver.java:203) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at com.android.setupwizard.NetworkMonitor$2.onChange(NetworkMonitor.java:181) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at com.android.setupwizard.NetworkMonitor.init(NetworkMonitor.java:105) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at com.android.setupwizard.NetworkMonitoringActivity.onResume(NetworkMonitoringActivity.java:111) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1149) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.app.Activity.performResume(Activity.java:3772) 06-01 12:07:01.958 E/AndroidRuntime( 3990): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2937) 06-01 12:07:01.958 E/AndroidRuntime( 3990): ... 12 more Any help appreciated Thanks 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
[android-developers] Re: Background images to fit different screens
Thanks String. I'm familiar with most of that, it's just different bitmaps and resource folders that are new to me. I've setup a new project, with minSdk=3 targetSdk=8, and have seen that there are now three different folders in the res directory. I've put the same images in all folders, for the time being. On my 2.2 device, the app ran fine (even with images in the mdpi folder only). But in my 1.5 device, I get an error: ResourceNotFoundException How do I call a resource from the drawable folder that will get found on my 1.5 device? On Jun 1, 12:57 pm, String sterling.ud...@googlemail.com wrote: On Jun 1, 12:49 pm, Neilz neilhorn...@gmail.com wrote: The image doesn't fit the screen when I switch to newer devices with different screen ratio, such as a Nexus with 800 * 480... there's a gap at the bottom. First, you should read this:http://developer.android.com/guide/practices/screens_support.html For your specific problem, you could make an image with a taller aspect ratio (try 320x570) - keeping in mind that 50-90px will be cropped off on HVGA screens. Or, make an 480x854 image (for the Droid screen) and put it in drawable-hdpi-v4. But be aware that both of those shortcut solutions are kludges which will fail on some devices, present or future. Really, there's no good shortcut to understanding the android approach to multiple screen resolutions densities, then figuring out for yourself what the best solution is for you particular app. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Background images to fit different screens
Neilz wrote: Thanks String. I'm familiar with most of that, it's just different bitmaps and resource folders that are new to me. I've setup a new project, with minSdk=3 targetSdk=8, and have seen that there are now three different folders in the res directory. I've put the same images in all folders, for the time being. On my 2.2 device, the app ran fine (even with images in the mdpi folder only). But in my 1.5 device, I get an error: ResourceNotFoundException How do I call a resource from the drawable folder that will get found on my 1.5 device? You could: -- rename your res/drawable-mdpi/ folder to res/drawable/, therefore making it the default -- clone your res/drawable-mdpi/ folder to res/drawable-mdpi-v3/, which was a workaround for some resource limitations with 1.5 that were covered in a Google I|O 2010 presentation -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to build calculator?
Hi, I'd like to build the calculator2 app supplied with android as a starting point for some mods I'm thinking about. How can I build it in eclipse? In the android source I've found only the .java files, but not the .xml like manifest, main and so on. Thanks. Ciao -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to build calculator?
sandma...@libero.it wrote: I'd like to build the calculator2 app supplied with android as a starting point for some mods I'm thinking about. How can I build it in eclipse? The built-in Android applications are not designed to be built independently of the firmware. You may encounter many dependencies on Java classes or resources that are not part of the SDK, for example. Also, it will not have its own Eclipse project file -- you will need to import the sources into your own project. In the android source I've found only the .java files, but not the .xml like manifest, main and so on. Here is the project tree for the Calculator app, complete with resources and manifest: http://android.git.kernel.org/?p=platform/packages/apps/Calculator.git;a=tree -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is it possible to debug the native code in this development environment
Hi all, I need to debug some issues in the native C code. I know by using GDB its possible. But i doubts , if can debug in the following development environment. My workstation is a XP machine . My android code is residing on some linux machine . I am connecting to this linux machine only through ssh and FTP. In this scenario , is there any way to use GDB to debug the code . Thanks, Jins -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] start native google maps app from webview
Hi, I develop an app for iphone and android. while my iphone user click in my webview on a link like: http://maps.google.com/maps?saddr=46.17121744,24.36878222daddr=wien the NATIVE Google Maps opens. But in Android the HTML Version appears. How does have my call looks like so also on an Android Device the Native App opens the link? (in the android browser i come asked if i like to open that like by browser or GMaps) I guess (tell me i am wrong) i have to do with an intend like i did for Movies: public boolean shouldOverrideUrlLoading(WebView view, String url) { //Log.d(,My URL: +url); //Log.d(,LOADING Override); // Checks if my Video is CLICKEd if (url.indexOf(.mp4) != -1) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(url), video/ mp4); startActivity(intent); return true; } return false; } but how does it have to look for a GOOGLE Maps URL?? Thx in advance Chris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OMAP Zoom 2
Is anyone here working on the TI Zoom 2 kit? I am building an application on Zoom 2 and had a couple of questions around it. Abhi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Background images to fit different screens
Thanks Mark. Is it ok to have so many directories? At the moment, on this advice, I will have: /drawable-hdpi /drawable-ldpi /drawable-mdpi /drawable-mdpi-v3 (...or) /drawable This app relies heavily upon bitmaps, so there will be a lot of duplication, and hence a much higher download size than intented. On Jun 1, 1:56 pm, Mark Murphy mmur...@commonsware.com wrote: Neilz wrote: Thanks String. I'm familiar with most of that, it's just different bitmaps and resource folders that are new to me. I've setup a new project, with minSdk=3 targetSdk=8, and have seen that there are now three different folders in the res directory. I've put the same images in all folders, for the time being. On my 2.2 device, the app ran fine (even with images in the mdpi folder only). But in my 1.5 device, I get an error: ResourceNotFoundException How do I call a resource from the drawable folder that will get found on my 1.5 device? You could: -- rename your res/drawable-mdpi/ folder to res/drawable/, therefore making it the default -- clone your res/drawable-mdpi/ folder to res/drawable-mdpi-v3/, which was a workaround for some resource limitations with 1.5 that were covered in a Google I|O 2010 presentation -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Background images to fit different screens
Neilz wrote: Thanks Mark. Is it ok to have so many directories? At the moment, on this advice, I will have: /drawable-hdpi /drawable-ldpi /drawable-mdpi /drawable-mdpi-v3 (...or) /drawable This app relies heavily upon bitmaps, so there will be a lot of duplication, and hence a much higher download size than intented. You only need all of those if you have different images. Images that you aren't changing based on densities can just go in res/drawable/ and be picked up by all densities, -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Socket freezes using GSM connection
is the NIO works better then the usual Socket? by works better I mean no freezing. I have no problem working with NIO if it will make the difference. ayanir On Jun 1, 10:55 am, Kostya Vasilyev kmans...@gmail.com wrote: Ah, so those are data streams. Sorry I missed that (using NIO socket channels here :) Then you should be ok with packet fragmentation - as long as your read method checks for '\0' anywhere within the buffer. -- Kostya 01.06.2010 11:43, ayanir пишет: Kostya, I did as you suggested and I'm now looking for the delimiter ('\0') on the of the last read buffer and not just the last byte. I didn't understand how can I check the return value in the write() method since it is declared as void. is there another way? -- Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SectionIndexer Tweak
I've had so many emails about how to get SectionIndexer to pick up a change in the dataset that I'm publishing my tweak here. It works the same whether you're using a GridView or ListView. private void jiggleGrid() { int newWidth = flag( FLAG_THUMB_PLUS ) ? FrameLayout.LayoutParams.FILL_PARENT : grid.getWidth() - 1; FrameLayout.LayoutParams l = new FrameLayout.LayoutParams( newWidth, FrameLayout.LayoutParams.FILL_PARENT ); grid.setLayoutParams( l ); toggleFlag( FLAG_THUMB_PLUS ); } flag() and toggleFlag() are my own functions. Lee -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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-themes.com
Just submitted ticket too ;) Thanks... but there are way to many sites distributing my content it's about 100% pirated according to my Motally numbers... :( VERY VERY SAD! On May 31, 7:06 pm, Andrew Brampton bramp...@gmail.com wrote: I've just sent a complaint tohttp://www.justhost.com/submit-ticket which I believe is their webhost. Perhaps others who have their apps illegally listed on there should do the same. Andrew On 31 May 2010 23:51, Paul Burke (iPaul Pro) mr.paulbu...@gmail.com wrote: Please be aware thathttp://android-themes.comis pirating paid apps. I already found both of mine on there. Thought some of you would like to know. Paul (iPaul Pro) Finer Mobile -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Gallery View Customization
Hi All, i want to customize the Gallery widget like a conveyer belt having icons. Please note that this icons conveyer chain is of circular nature that is if there are 5 icons and user is navigating towards left side so icons which gets disappeared at right side, again appears back on left side of chain… just think of a circular ring. Please see the link below [url]http://101bestandroidapps.com/app/UltimateFavesPRO/556/[/url] how can create that.. please suggest me.. Thanks Giri -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hybrid positioning System(XPS)
Hi all, i want only the xps latitude longitude not all. but which method in SkyHook Wireless update the latitude longitude. the changed latitude longitude should transmit to the server. from these methods: public void done(){} public WPSContinuation handleError(WPSReturnCode error){} public void handleWPSLocation(WPSLocation location){} public WPSContinuation handleWPSPeriodicLocation(WPSLocation location){} which method return the latitude, longitude how it get updated. i want to run the method which give me the updated latitude longitude in the background. anybody have knowledge about the above problem please help me. Thanks in advance, Best Regards Subrat Kumar Panda India -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Socket freezes using GSM connection
Ayanir, NIO is non-blocking, so it's easier to serve multiple connections from one thread. Also, NIO is easier to interrupt / shutdown, which I think is important for an Android app. But other than that, I personally think it's a matter of taste, since there has to be a worker thread for both NIO and old style. In the code you posted, DataOutputStream should write the entire data structure, blocking until it does. So with the change on the reading side (looking for '\0' anywhere) it _should_ already work - have you tested it yet? -- Kostya 01.06.2010 17:53, ayanir пишет: is the NIO works better then the usual Socket? by works better I mean no freezing. I have no problem working with NIO if it will make the difference. ayanir On Jun 1, 10:55 am, Kostya Vasilyevkmans...@gmail.com wrote: Ah, so those are data streams. Sorry I missed that (using NIO socket channels here :) Then you should be ok with packet fragmentation - as long as your read method checks for '\0' anywhere within the buffer. -- Kostya 01.06.2010 11:43, ayanir пишет: Kostya, I did as you suggested and I'm now looking for the delimiter ('\0') on the of the last read buffer and not just the last byte. I didn't understand how can I check the return value in the write() method since it is declared as void. is there another way? -- Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android 2.1+ on G1 dev phone
Will google or HTC make 2.2 available on the G1 dev phone? Is there a one stop shop for monitoring what is available or approximately when new OSs will be available? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can't we add shared libraries without use of android ndk tools
mah thanks for your reply 1 I checked in /data/data/mypackage/libs my library is present in the above folder Second aproach you suggested me is I am able to work with ndk tools I observed both libraries that mean one my build and second one is through ndk tools i used nm tool to see what is in it. But i did not understand any thing i am pure in this terminology i am pasting the nm tool out put can u suggest any thing Thanks in advance. # nm libmylib.so //using arm tool chain 03d8 t $a 03a0 t $a 04e8 t $a 03a8 t $a 04ec t $a 03fc t $a 0450 t $a 0494 t $a 03ac t $a 03c0 t $a 03f4 t $d 8620 d $d 0440 t $d 8510 t $d 0488 t $d 850c t $d 8624 b $d 04f0 r $d 04e0 t $d 0508 r $d 8514 d $d 03bc t $d 0494 T Java_sct_notification_NotificationJNIActivity_getStrings 8518 a _DYNAMIC 8600 a _GLOBAL_OFFSET_TABLE_ w _Jv_RegisterClasses 0508 r __FRAME_END__ 8514 d __JCR_END__ 8514 d __JCR_LIST__ 8628 A __bss_end__ 8624 A __bss_start 8624 A __bss_start__ w __cxa_finalize@@GLIBC_2.4 03fc t __do_global_dtors_aux 8510 t __do_global_dtors_aux_fini_array_entry 8620 d __dso_handle 8628 A __end__ 0508 A __exidx_end 0508 A __exidx_start 850c t __frame_dummy_init_array_entry w __gmon_start__ 8628 A _bss_end__ 8624 A _edata 8628 A _end 04e8 T _fini 03a0 T _init 03d8 t call_gmon_start 8624 b completed.6049 0450 t frame_dummy Second one # nm libsctlib.so 0b94 t $a 0ba8 t $a 0bf4 t $a 0c1c t $a 0c68 t $a 0c94 t $a 0cac t $a 0d38 t $a 0d40 t $a 0d44 t $a 0d64 t $a 1114 t $a 111c t $a 1124 t $a 112c t $a 1260 t $a 12cc t $a 1394 t $a 14b0 t $a 14cc t $a 1524 t $a 15c8 t $a 15e8 t $a 1654 t $a 1684 t $a 19c0 t $a 1b68 t $a 1bc0 t $a 1bc8 t $a 1bd0 t $a 1bf8 t $a 1c00 t $a 1c1c t $a 1c2c t $a 1fa8 t $a 0b24 t $a 0b38 t $a 0b8c t $d 1110 t $d 1248 t $d 1670 t $d 1fa4 t $d 0b34 t $d 0b74 t $t 0b74 t $t 0b75 T Java_sct_notification_NotificationJNIActivity_getStrings 3128 a _DYNAMIC 31e8 a _GLOBAL_OFFSET_TABLE_ 1b44 T _Unwind_Backtrace 0d40 T _Unwind_Complete 0d44 T _Unwind_DeleteException 1b20 T _Unwind_ForcedUnwind 0d38 T _Unwind_GetCFA 1bc8 T _Unwind_GetDataRelBase 0bf4 t _Unwind_GetGR 1bd0 t _Unwind_GetGR 1c00 T _Unwind_GetLanguageSpecificData 1c1c T _Unwind_GetRegionStart 1bc0 T _Unwind_GetTextRelBase 1ab4 T _Unwind_RaiseException 1ad8 T _Unwind_Resume 1afc T _Unwind_Resume_or_Rethrow 0c68 t _Unwind_SetGR 0ba8 T _Unwind_VRS_Get 1654 T _Unwind_VRS_Pop 0c1c T _Unwind_VRS_Set 0b94 t _Unwind_decode_target2 1b44 T ___Unwind_Backtrace 1b20 T ___Unwind_ForcedUnwind 1ab4 T ___Unwind_RaiseException 1ad8 T ___Unwind_Resume 1afc T ___Unwind_Resume_or_Rethrow 1124 T __aeabi_unwind_cpp_pr0 111c W __aeabi_unwind_cpp_pr1 1114 W __aeabi_unwind_cpp_pr2 3208 A __bss_end__ 3208 A __bss_start 3208 A __bss_start__ w __cxa_begin_cleanup w __cxa_call_unexpected w __cxa_type_match 3208 D __data_start 3208 A __end__ 2128 A __exidx_end 2018 A __exidx_start 12cc T __gnu_Unwind_Backtrace w __gnu_Unwind_Find_exidx 14b0 T __gnu_Unwind_ForcedUnwind 1524 T __gnu_Unwind_RaiseException 19d4 T __gnu_Unwind_Restore_VFP 19e4 T __gnu_Unwind_Restore_VFP_D 19f4 T __gnu_Unwind_Restore_VFP_D_16_to_31 1a8c T __gnu_Unwind_Restore_WMMXC 1a04 T __gnu_Unwind_Restore_WMMXD 15e8 T __gnu_Unwind_Resume 15c8 T __gnu_Unwind_Resume_or_Rethrow 19dc T __gnu_Unwind_Save_VFP 19ec T __gnu_Unwind_Save_VFP_D 19fc T __gnu_Unwind_Save_VFP_D_16_to_31 1aa0 T __gnu_Unwind_Save_WMMXC 1a48 T __gnu_Unwind_Save_WMMXD 1c2c T __gnu_unwind_execute 1fa8 T __gnu_unwind_frame 0d64 t __gnu_unwind_pr_common 19c0 T __restore_core_regs 3208 A _bss_end__ 3208 A _edata 3208 A _end 0008 N _stack U abort 112c t get_eit_entry U memcpy 1b68 t next_unwind_byte 19c0 T restore_core_regs 1260 t restore_non_core_regs 0cac t search_EIT_table 0c94 t selfrel_offset31 1bf8 t unwind_UCB_from_context 14cc t unwind_phase2 1394 t unwind_phase2_forced Regards, karteek On Jun 1, 4:32 pm, mah m...@heilpern.com wrote: From what I've seen, the library not found error doesn't only occur if the library cannot be found, however your first step now should probably be to see if it should be found... open an adb shell to your platform, and change directory to /data/data/ your.package.name.here. Does the lib directory exist? If so, is your .so inside it? If the answer to either of these is no, you're not including the library
[android-developers] Application stop in sleep mode
Hi, I'm developping a LiveWallpaper on Android 2.1. This application must download an image every fifteen minutes and draw it on the screen. Everything works except when the phone is in sleep mode. Do you think it is possible to run an application like this when the phone is in sleep mode? And if yes how? 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: Background images to fit different screens
Since I changed the structure as suggested, all my devices now pick up the images from /res/drawable. I have a images in other folders, but they never get used. I am trying a Nexus One, which I believe to be 480 * 800 high density. How do I get it to pick up the correct set of images? On Jun 1, 2:45 pm, Mark Murphy mmur...@commonsware.com wrote: Neilz wrote: Thanks Mark. Is it ok to have so many directories? At the moment, on this advice, I will have: /drawable-hdpi /drawable-ldpi /drawable-mdpi /drawable-mdpi-v3 (...or) /drawable This app relies heavily upon bitmaps, so there will be a lot of duplication, and hence a much higher download size than intented. You only need all of those if you have different images. Images that you aren't changing based on densities can just go in res/drawable/ and be picked up by all densities, -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Background images to fit different screens
Neilz wrote: Since I changed the structure as suggested, all my devices now pick up the images from /res/drawable. I have a images in other folders, but they never get used. Do you have a proper supports-screens element in your manifest? Android is supposed to choose the stronger match, so if you have foo.png in res/drawable/ and res/drawable-hdpi/ (and nowhere else), and you request R.drawable.foo, an hdpi device should pick up res/drawable-hdpi/, and other devices should pick up res/drawable/. I am trying a Nexus One, which I believe to be 480 * 800 high density. That is correct. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android 2.1+ on G1 dev phone
http://gizmodo.com/5544136/android-22-will-never-come-to-the-g1 On Tue, Jun 1, 2010 at 5:00 PM, mikek mik...@gmail.com wrote: Will google or HTC make 2.2 available on the G1 dev phone? Is there a one stop shop for monitoring what is available or approximately when new OSs will be 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 -- Toni Menzel Independent Software Developer Professional Profile: http://okidokiteam.com t...@okidokiteam.com http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] A clear, concise tutorial on PreferenceActivity Preferences?
I was wondering can anyone direct me to a detailed Preferences tutorial? Or provide me with a bit of help here? I have my preferences saved in preferences.xml as follows: PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/ android PreferenceCategory android:title=Wifi Settings EditTextPreference android:key=edittext_block_attach_err android:title=@string/title_edittext_preference android:summary=@string/summary_edittext_preference android:dialogTitle=@string/ dialog_title_edittext_preference / /PreferenceCategory /PreferenceScreen I then have a preference activity as follows: public class WlanSettings extends PreferenceActivity { SharedPreferences prefs; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); prefs = this.getSharedPreferences(CiceroWlanSettings, Activity.MODE_PRIVATE); } This display's the EditTextPreference fine but how do I then set up a default preference to be displayed in the dialog box that pops up with an EditTextPreference? And How do I save changes that occur in my preference activity to my preferences? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: sendWallpaperCommand() behavior changed in 2.2
I've figured this one out on my own. Once I stopped looking for a built-in way to ping a live wallpaper (as the docs would have you believe sendWallpaperCommand() is), I realized that it was easy enough to just register a BroadcastReceiver for a refresh action of my own making. Works fine. String On Jun 1, 12:33 pm, String sterling.ud...@googlemail.com wrote: On Jun 1, 10:48 am, Romain Guy romain...@android.com wrote: From where are you sending a command? Commands are supposed to be sent by the Home application. I see; that's not mentioned in the docs. I'm sending a command from elsewhere in my own app (not a Home app, btw), essentially telling the wallpaper to refresh itself under various circumstances. So, it sounds like sendWallpaperCommand() isn't the right way to be doing this. Any recommendations for a better approach? I wouldn't mind sending it an Intent, but I'm not clear how to reach it with one. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
R: Re: [android-developers] How to build calculator?
It helps, but still some parts are missing, i.e. R.java for example, or maybe I have done something wrong... which are the correct steps to get this program into eclipse? Tnxs Messaggio originale Da: mmur...@commonsware.com Data: 01/06/2010 15.28 A: android-developers@googlegroups.com Ogg: Re: [android-developers] How to build calculator? sandma...@libero.it wrote: I'd like to build the calculator2 app supplied with android as a starting point for some mods I'm thinking about. How can I build it in eclipse? The built-in Android applications are not designed to be built independently of the firmware. You may encounter many dependencies on Java classes or resources that are not part of the SDK, for example. Also, it will not have its own Eclipse project file -- you will need to import the sources into your own project. In the android source I've found only the .java files, but not the .xml like manifest, main and so on. Here is the project tree for the Calculator app, complete with resources and manifest: http://android.git.kernel.org/?p=platform/packages/apps/Calculator.git;a=tree -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] A clear, concise tutorial on PreferenceActivity Preferences?
draf...@gmail.com wrote: I was wondering can anyone direct me to a detailed Preferences tutorial? Or provide me with a bit of help here? I have my preferences saved in preferences.xml as follows: PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/ android PreferenceCategory android:title=Wifi Settings EditTextPreference android:key=edittext_block_attach_err android:title=@string/title_edittext_preference android:summary=@string/summary_edittext_preference android:dialogTitle=@string/ dialog_title_edittext_preference / /PreferenceCategory /PreferenceScreen I then have a preference activity as follows: public class WlanSettings extends PreferenceActivity { SharedPreferences prefs; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); prefs = this.getSharedPreferences(CiceroWlanSettings, Activity.MODE_PRIVATE); } This display's the EditTextPreference fine but how do I then set up a default preference to be displayed in the dialog box that pops up with an EditTextPreference? android:defaultValue in the XML. And How do I save changes that occur in my preference activity to my preferences? It happens automatically. I don't know what that prefs=this.getSharedPreferences() line is for. It's not needed, and it's probably reading the wrong file, anyway. Use PreferenceManager.getDefaultSharedPreferences() for work with the file that will be used by the PreferenceActivity. See: http://github.com/commonsguy/cw-android/tree/master/Prefs/Dialogs/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Test if ContentProvider exists ?
How can I test if there's a ContentProvider for a Uri ? I'm currently doing a query on it and checking for a null cursor, but that generates an error in the system log each time, which I don't like to do. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: R: Re: [android-developers] How to build calculator?
Hi, R.java is generated automatically during build. Have you set up Eclipse for Android development as described here? http://developer.android.com/sdk/index.html If not, you should go through it, and work through the example on that page, just to get started, before importing another project -- Kostya Vasilyev 01.06.2010 19:24, sandma...@libero.it пишет: It helps, but still some parts are missing, i.e. R.java for example, or maybe I have done something wrong... which are the correct steps to get this program into eclipse? Tnxs Messaggio originale Da: mmur...@commonsware.com Data: 01/06/2010 15.28 A:android-developers@googlegroups.com Ogg: Re: [android-developers] How to build calculator? sandma...@libero.it wrote: I'd like to build the calculator2 app supplied with android as a starting point for some mods I'm thinking about. How can I build it in eclipse? The built-in Android applications are not designed to be built independently of the firmware. You may encounter many dependencies on Java classes or resources that are not part of the SDK, for example. Also, it will not have its own Eclipse project file -- you will need to import the sources into your own project. In the android source I've found only the .java files, but not the .xml like manifest, main and so on. Here is the project tree for the Calculator app, complete with resources and manifest: http://android.git.kernel.org/?p=platform/packages/apps/Calculator.git;a=tree -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] a real-time Walkie Talkie for beta test
Hello friends, We have just released a real-time Push-To-Talk application on Android Market. Thanks to Speex and NDK, the voice streams take much less network/CPU bandwidth than PCM or G.711. Voice streams are peer-to-peer to minimize delay whenever it is possible to do so between parties behind firewalls. Talks can be stored on SD-CARD and replayed. The application is location based. Most of important of all, it is free!! Please give it a try and tell us how it doing while we are adding Push- To-Video function to the application. Thank you very much!! Flea Papa -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] A clear, concise tutorial on PreferenceActivity Preferences?
Thanks Mark. To access my preferences outside my PreferenceActivity in another Activity or a Service can I use PreferenceManager. getDefaultSharedPreferences() also? In your code here: http://github.com/commonsguy/cw-android/blob/master/Prefs/Dialogs/src/com/commonsware/android/prefdialogs/DialogsDemo.java I see SharedPreferences prefs=PreferenceManager is used, is that correct? Should I use it like that to retrieve my preferences eslewhere in my application? On Tue, Jun 1, 2010 at 4:26 PM, Mark Murphy mmur...@commonsware.com wrote: draf...@gmail.com wrote: I was wondering can anyone direct me to a detailed Preferences tutorial? Or provide me with a bit of help here? I have my preferences saved in preferences.xml as follows: PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/ android PreferenceCategory android:title=Wifi Settings EditTextPreference android:key=edittext_block_attach_err android:title=@string/title_edittext_preference android:summary=@string/summary_edittext_preference android:dialogTitle=@string/ dialog_title_edittext_preference / /PreferenceCategory /PreferenceScreen I then have a preference activity as follows: public class WlanSettings extends PreferenceActivity { SharedPreferences prefs; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); prefs = this.getSharedPreferences(CiceroWlanSettings, Activity.MODE_PRIVATE); } This display's the EditTextPreference fine but how do I then set up a default preference to be displayed in the dialog box that pops up with an EditTextPreference? android:defaultValue in the XML. And How do I save changes that occur in my preference activity to my preferences? It happens automatically. I don't know what that prefs=this.getSharedPreferences() line is for. It's not needed, and it's probably reading the wrong file, anyway. Use PreferenceManager.getDefaultSharedPreferences() for work with the file that will be used by the PreferenceActivity. See: http://github.com/commonsguy/cw-android/tree/master/Prefs/Dialogs/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Issue with setBuiltInZoomControls on HTC Incredible
It appears the issue has been resolved, if you check out this thread over on the HTC forum: http://community.htc.com/na/htc-forums/android/f/91/p/2332/8538.aspx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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-themes.com
FYI, I emailed the host and website people: Hi , Thank you for your e-mail. We e-mailed to our client and asked to remove the all illegal content from his site, otherwise we will suspend his account. -- Kind regards, Simon Diaz Just Host www.justhost.com On Jun 1, 10:04 am, Moto medicalsou...@gmail.com wrote: Just submitted ticket too ;) Thanks... but there are way to many sites distributing my content it's about 100% pirated according to my Motally numbers... :( VERY VERY SAD! On May 31, 7:06 pm, Andrew Brampton bramp...@gmail.com wrote: I've just sent a complaint tohttp://www.justhost.com/submit-ticket which I believe is their webhost. Perhaps others who have their apps illegally listed on there should do the same. Andrew On 31 May 2010 23:51, Paul Burke (iPaul Pro) mr.paulbu...@gmail.com wrote: Please be aware thathttp://android-themes.comispirating paid apps. I already found both of mine on there. Thought some of you would like to know. Paul (iPaul Pro) Finer Mobile -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Background images to fit different screens
This is exactly what I have now, but all the images get taken from the default directory, including when used by the Nexus. I have the following in the manifest: uses-sdk android:minSdkVersion=3 android:targetSdkVersion=8 / supports-screens android:largeScreens=true android:normalScreens=true android:smallScreens=true android:anyDensity=false / It would be great if there was a sample app, something really simple which just displayed an image, which proved this point and could be used on different devices. On Jun 1, 4:17 pm, Mark Murphy mmur...@commonsware.com wrote: Neilz wrote: Since I changed the structure as suggested, all my devices now pick up the images from /res/drawable. I have a images in other folders, but they never get used. Do you have a proper supports-screens element in your manifest? Android is supposed to choose the stronger match, so if you have foo.png in res/drawable/ and res/drawable-hdpi/ (and nowhere else), and you request R.drawable.foo, an hdpi device should pick up res/drawable-hdpi/, and other devices should pick up res/drawable/. I am trying a Nexus One, which I believe to be 480 * 800 high density. That is correct. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: VP8 Video Codec
its in gingerbread. http://www.webmproject.org/about/faq/ On May 25, 5:24 pm, Mark Murphy mmur...@commonsware.com wrote: Andy Savage wrote: I am wondering if there is any timeframe for VP8 to be included into Android? It is not in there now, as the specs were apparently nailed down too late for Froyo. I got the impression from various I|O mentions that it's on target for Gingerbread, but I wouldn't bet the house on that. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.0 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 athttp://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] Load https requests with Webkit
Hello, I'm trying to load https requests with a Webkit object but It shows only a blank page, with http requests I don't have problems, It shows the page correctly. Could be that there is a problem with the certificate? Where webkit goes to look the authorized certificates? Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] A clear, concise tutorial on PreferenceActivity Preferences?
Donal Rafferty wrote: Thanks Mark. To access my preferences outside my PreferenceActivity in another Activity or a Service can I use PreferenceManager. getDefaultSharedPreferences() also? Yes. That will return the same preferences for this application. In your code here: http://github.com/commonsguy/cw-android/blob/master/Prefs/Dialogs/src/com/commonsware/android/prefdialogs/DialogsDemo.java I see SharedPreferences prefs=PreferenceManager is used, is that correct? Well, there's more to it than that. You may need to scroll to the right. I'm going to need to switch to spaces instead of tabs, as my books need two-space tabs, but GitHub uses eight-space tabs, so my code gets stretched way out horizontally. :-( Should I use it like that to retrieve my preferences eslewhere in my application? Sure. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.5 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] Test if ContentProvider exists ?
Lee wrote: How can I test if there's a ContentProvider for a Uri ? You should be able to use methods on PackageManager for that. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.5 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Strange Problem with 1.5 Image Saving...Please Help
Hi everyone, I have created an activity which uses the camera to take a picture and save that image to the sd card. This works perfectly on 2.0+ but on a 1.5 phone the image that gets saved is simply a black box. I can not figure out why the image is coming back pure black. I have pasted the code below hopefully someone will be able to point out my issue. public class TakePictureCupCake extends Activity { private SurfaceView preview=null; private SurfaceHolder previewHolder=null; private Camera camera=null; boolean bIsPictureTaking; boolean bIsAutoFocusStarted = false; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.takepic); preview=(SurfaceView)findViewById(R.id.preview); previewHolder=preview.getHolder(); previewHolder.addCallback(surfaceCallback); previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); preview.setOnClickListener(new OnClickListener(){ public void onClick(View v) { if(!bIsPictureTaking){ AutoFocusCallBackImpl autoFocusCallBack = new AutoFocusCallBackImpl(); camera.autoFocus(autoFocusCallBack); bIsAutoFocusStarted = true; takePicture(); } } }); Context context = getApplicationContext(); CharSequence message = Click any place on the screen to take your picture; int duration = Toast.LENGTH_LONG; Toast messages = Toast.makeText(context, message, duration); messages.show(); } private class AutoFocusCallBackImpl implements Camera.AutoFocusCallback{ public void onAutoFocus(boolean success, Camera camera){ } } private void takePicture() { bIsPictureTaking = true; bIsAutoFocusStarted=false; camera.takePicture(null, null, photoCallback); } SurfaceHolder.Callback surfaceCallback=new SurfaceHolder.Callback() { public void surfaceCreated(SurfaceHolder holder) { camera=Camera.open(); try { camera.setPreviewDisplay(previewHolder); } catch (Throwable t) { Log.e(Error,Error with Display, t); Toast.makeText(TakePictureCupCake.this, t.getMessage(), Toast.LENGTH_LONG).show(); } } public void surfaceChanged(SurfaceHolder holder,int format, int width,int height) { Camera.Parameters parameters=camera.getParameters(); parameters.setPreviewSize(width, height); parameters.setPictureFormat(PixelFormat.JPEG); //parameters.setFlashMode(Camera.Parameters.FLASH_MODE_AUTO); camera.setParameters(parameters); camera.startPreview(); } public void surfaceDestroyed(SurfaceHolder holder) { camera.stopPreview(); camera.release(); camera=null; } }; PictureCallback photoCallback=new PictureCallback() { public void onPictureTaken(byte[] data, Camera camera) { new SavePhotoTask().execute(data); camera.startPreview(); } }; class SavePhotoTask extends AsyncTaskbyte[], String, String { @Override protected String doInBackground(byte[]... jpeg) { File photoDirectory=new File(Environment.getExternalStorageDirectory(),fishdog); Long currTime = Calendar.getInstance().getTimeInMillis(); String sCurrTime = currTime.toString(); currTime = null; File photo = new File(photoDirectory,fishdogpic + sCurrTime +.jpg); try { if(photoDirectory.exists()==true){ FileOutputStream fos=new FileOutputStream(photo.getPath()); fos.write(jpeg[0]); fos.close(); setFilePath(photoDirectory + /fishdogpic + sCurrTime + .jpg); fos=null;
R: Re: R: Re: [android-developers] How to build calculator?
Yes, I did. I've developed some other (simple) apps without problems. Ciao Messaggio originale Da: kmans...@gmail.com Data: 01/06/2010 17.50 A: android-developers@googlegroups.com Ogg: Re: R: Re: [android-developers] How to build calculator? Hi, R.java is generated automatically during build. Have you set up Eclipse for Android development as described here? http://developer.android.com/sdk/index.html If not, you should go through it, and work through the example on that page, just to get started, before importing another project -- Kostya Vasilyev 01.06.2010 19:24, sandma...@libero.it пишет: It helps, but still some parts are missing, i.e. R.java for example, or maybe I have done something wrong... which are the correct steps to get this program into eclipse? Tnxs Messaggio originale Da: mmur...@commonsware.com Data: 01/06/2010 15.28 A:android-developers@googlegroups.com Ogg: Re: [android-developers] How to build calculator? sandma...@libero.it wrote: I'd like to build the calculator2 app supplied with android as a starting point for some mods I'm thinking about. How can I build it in eclipse? The built-in Android applications are not designed to be built independently of the firmware. You may encounter many dependencies on Java classes or resources that are not part of the SDK, for example. Also, it will not have its own Eclipse project file -- you will need to import the sources into your own project. In the android source I've found only the .java files, but not the .xml like manifest, main and so on. Here is the project tree for the Calculator app, complete with resources and manifest: http://android.git.kernel.org/?p=platform/packages/apps/Calculator.git; a=tree -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress. com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: sendWallpaperCommand() behavior changed in 2.2
You can use sendWallpaperCommand() to send your own commands if you wish. On Tue, Jun 1, 2010 at 8:24 AM, String sterling.ud...@googlemail.com wrote: I've figured this one out on my own. Once I stopped looking for a built-in way to ping a live wallpaper (as the docs would have you believe sendWallpaperCommand() is), I realized that it was easy enough to just register a BroadcastReceiver for a refresh action of my own making. Works fine. String On Jun 1, 12:33 pm, String sterling.ud...@googlemail.com wrote: On Jun 1, 10:48 am, Romain Guy romain...@android.com wrote: From where are you sending a command? Commands are supposed to be sent by the Home application. I see; that's not mentioned in the docs. I'm sending a command from elsewhere in my own app (not a Home app, btw), essentially telling the wallpaper to refresh itself under various circumstances. So, it sounds like sendWallpaperCommand() isn't the right way to be doing this. Any recommendations for a better approach? I wouldn't mind sending it an Intent, but I'm not clear how to reach it with one. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Best way to live demo apps
Thanks DroidAtScreen seems to work OK, if a little slow. I can work with that for now. (Thanks!) The OP solution is good but also won't work for me. HDMI will be great once its available and supports outputting the device's screen. The hardware clearly supports streaming full audio and video (since you can record video from the camera). However, the Android SDK's VideoSource class only supports capturing from the camera. If there are no plans to make video recording available any time soon I might (if I have time) try hooking up ffmpeg through the NDK. This might get me full speed video for my application (since I can provide it a buffer containing an Activity's root View). Does anyone know if its possible to access to the root View of the current Activity (of existing apps, without code changes)? There are applications such as Display Shot that seem to overlay images on top of whatever is running (without rooting the phone), so I'd guess its possible, but I can't find how. Aside, from big screen display, the other thing this could allow is remote desktop access into the device, which has a ton of development uses. Cheers, - Stu On Sat, May 29, 2010 at 4:14 AM, Mark Murphy mmur...@commonsware.com wrote: Ted Neward wrote: What about one of those magnifier overhead projectors from back in the 70s or so? Not the transparency ones, the ones that essentially point a camera at the base and project up onto the screen. You hold (or set) the phone underneath it, and voila, you now have two screens, one from your laptop and one conveying what the phone looks like. I assumed the OP was only interested in software solutions. The predominant hardware solution today is the ELMO, which is pretty much what you describe, just named after a Sesame Street character. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.5 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Best way to live demo apps
Stuart Reynolds wrote: Does anyone know if its possible to access to the root View of the current Activity (of existing apps, without code changes)? It damned well better not be, at least without root. There are applications such as Display Shot that seem to overlay images on top of whatever is running (without rooting the phone), so I'd guess its possible, but I can't find how. I can't comment on that, other than to say it's a security hole to allow arbitrary on-device code to access the contents of the screen. Aside, from big screen display, the other thing this could allow is remote desktop access into the device, which has a ton of development uses. Which also would require root access or firmware mods, as there is no way for ordinary applications to inject events to arbitrary applications -- again, for security reasons. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Address Book Search
hi guys, i have developed a application which loads all the contacts in the native address book. since i have many contacts i created a search. my address book contains contacts like this. Alan Bill and then again Alex Cooper Dillon 1. even in the native address book it's the same. may i know the reason for that. (All my contacts are in phone book) 2. i using phones.CONTENT_URI to load all the contacts. that's how i want to do it and assume that i have search for Alan or Bill search query returns nothing but if i search foe Alex,Cooper or Dillon it will return the correct result this is my query private Cursor searchItems(String query) { Cursor cur = getContentResolver().query(Phones.CONTENT_URI , null, Phones.NAME + =' + query.trim() + ', null, null); startManagingCursor(cur); int x = cur.getCount(); if (cur == null || x == 0) { // alert(Address Book, Empty Address Book); } if (cur.moveToNext()) { do { Log.d(CURSOR_, Integer.toString(x)); } while (cur.moveToNext()); } columns = new String[] { Phones.NAME, Phones.NUMBER }; names = new int[] { R.id.contactName, R.id.number }; return cur; } could somebody help me out?? regards, 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google apps-for-android code samples
I once got pointed in the direction of this great set of examples: http://code.google.com/p/apps-for-android/ These samples look like they're in some way connected with this forum. Is that the case? There's one app in particular which I would like to discuss with the developers, the 'SpriteMethodTest' app, as I have adapted this for my own use and have some issues. Anyone know anything about these apps? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Test if ContentProvider exists ?
Looks promising, thanks. Lee On Jun 1, 5:40 pm, Mark Murphy mmur...@commonsware.com wrote: Lee wrote: How can I test if there's a ContentProvider for a Uri ? You should be able to use methods on PackageManager for that. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Google apps-for-android code samples
Neilz wrote: I once got pointed in the direction of this great set of examples: http://code.google.com/p/apps-for-android/ These samples look like they're in some way connected with this forum. Is that the case? They were written by Googlers, back in the day. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.5 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google apps-for-android code samples
Googlers? Is that some kind of rare and protected species? :-) So I guess everyone's moved on then? Do you know if any of them would be willing to discuss the project? On Jun 1, 6:36 pm, Mark Murphy mmur...@commonsware.com wrote: Neilz wrote: I once got pointed in the direction of this great set of examples: http://code.google.com/p/apps-for-android/ These samples look like they're in some way connected with this forum. Is that the case? They were written by Googlers, back in the day. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.5 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Image zooming/panning inside of a Gallery
I'm trying to combine the capability of doing image zoom/panning inside of a Gallery view. The problem is controlling which touch events are processed by each. In a horizontal drag on the image, the ImageView needs to process the drag in order to pan, up until the edge of the image is reached then the gallery view needs to process the touch event so that it can swipe over to the next photo. It seems that if I return false from the imageview's ontouchevent, then I won't be notified of the panning-drag move events. What I tried to do was return true from the imageview's ontouchevent until the edge of the image was hit then return false. However I believe that this doesn't cause the Gallery to begin processing these events, as it missed the initial touchdown event. My next thought is to somehow turn the containing activity into the touch handler, and somehow stop the Gallery and ImageView from getting touch events normally, and have the activity forward the touch event's manually. Not sure if this is possible or if there is an example. My last resort will be to simply not use the android.widget.Gallery, which I want to avoid because I want the widget to feel the same as other places on the phone, and I like code re-use. Unfortunately I might have to do this, as I see all other apps that have this zoom/pan capability don't seem to use the Gallery widget (Gallery3D etc). My question is, what's the best way to design for this situation where motionevents need to split between two views? Any ideas would be greatly appreciated 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] Geting Activity from package
Hi All I want to get activity from a package like final PackageManager packageManager = getPackageManager(); Intent intent = packageManager.getLaunchIntentForPackage(com.android.alarmclock); But infact i want the activity in which i send the time and that will set the alarm pleae help me thanks -- Ali Murtaza BCSF06M021 Research Assistant Data Virtulization Ware House PUCIT, Lahore, Pakistan ali.murt...@pucit.edu.pk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 to PC communication trough USB
Hello, anybody knows a code example for communicate one android application to a desktop java application to do something like update one desktop mysql database for example? I want this connection trough usb cable (i think). I don´t wanna make this connection trough http. thanks! -- Felipe Tomás Ovalle / ftovalle Desarrollo de Sistemas Java, Android, Php Tel. 54 341 155 052447 - www.ftovalle.com.ar - Msn: ftova...@hotmail.com - Skype: ftovalle -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 to PC communication trough USB
Hi, There isn't a system way to do this, but there aer some tricks. You could use ADB to forward PC port to Device port and create, for example, Socket connection between them. On Jun 1, 9:11 pm, Felipe Ovalle ftova...@gmail.com wrote: Hello, anybody knows a code example for communicate one android application to a desktop java application to do something like update one desktop mysql database for example? I want this connection trough usb cable (i think). I don´t wanna make this connection trough http. thanks! -- Felipe Tomás Ovalle / ftovalle Desarrollo de Sistemas Java, Android, Php Tel. 54 341 155 052447 -www.ftovalle.com.ar- Msn: ftova...@hotmail.com - Skype: ftovalle -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en