[android-developers] Re: problem with spinner.setOnItemClickListener
The error is related to the ADB and not to your code. Does a Hello World app work for you? On Jul 3, 7:41 am, אריאל arielgordon...@gmail.com wrote: Hello Everybody, Whats the problem with this code? private ListView lv1; private String lv_arr[]={Android,iPhone,BlackBerry,AndroidPeople,J2ME, Listview,ArrayAdapter,ListItem,Us,UK,India}; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); lv1=(ListView)findViewById(R.id.ListView01); lv1.setAdapter(new ArrayAdapterString(this,android.R.layout.simple_list_item_1 , lv_arr)); lv1.setTextFilterEnabled(true); lv1.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView? arg0, View arg1, int position, long arg3) { // TODO Auto-generated method stub AlertDialog.Builder adb=new AlertDialog.Builder(ListviewOnclickExample.this); adb.setTitle(LVSelectedItemExample); adb.setMessage(Selected Item is = +lv1.getItemAtPosition(position)); adb.setPositiveButton(Ok, null); adb.show(); }}); } i got this issue when i try to run it [2011-07-03 02:30:05 - ddms]null java.lang.NullPointerException at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213) at com.android.ddmlib.Client.sendAndConsume(Client.java:574) at com.android.ddmlib.HandleHello.sendHELO(HandleHello.java:142) at com.android.ddmlib.HandleHello.sendHelloCommands(HandleHello.java:65) at com.android.ddmlib.Client.getJdwpPacket(Client.java:671) at com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317) at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263) Thanks, Ariel. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Geocoder nightmare
Your code should work without problems. I use very similar code in my application and it just works. For Geocoder you need to set android.permission.INTERNET in your manifest file. Did you do this? -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ On Jul 2, 6:53 pm, bob b...@coolgroups.com wrote: I've been playing around with Geocoder stuff, and it is a nightmare. Nothing works. Is there any version of the emulator where this code does not give a weird exception? import java.io.IOException; import java.util.List; import android.app.Activity; import android.location.Address; import android.location.Geocoder; import android.os.Bundle; public class hmm extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); boolean ok=Geocoder.isPresent(); final Geocoder geocoder = new Geocoder(this); final String locName = 1600 Amphitheatre Parkway, Mountain View, CA; try { final ListAddress list = geocoder.getFromLocationName(locName, 1); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: what is the difference between an Install and an active install?
Active installs is relevant when you expect revenue from advertisements I guess. Raghav and Kostya are right; the statistics in the Developer Console is a joke. The first week when I published my application, active installs was higher than installs for 2 days! How about that? :-) -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ On Jul 2, 3:30 pm, Spooky spooky1...@gmail.com wrote: On Jul 2, 8:22 am, Kostya Vasilyev kmans...@gmail.com wrote: active install = install minus installed, used for while, then uninstalled So, installs is bad, active installs is good, then, right? Ouch. Thanks, --jim -- 73 DE N5IAL (/4) | DMR: So fsck was originally called spooky1...@gmail.com | something else.http://jdgapps.com/ | Q: What was it called? Running FreeBSD 7.0 | DMR: Well, the second letter was different. ICBM/Hurricane | -- Dennis M. Ritchie, Usenix, June 1998. 30.44406N 86.59909W -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Async Task
i want to use Async task please help me Async task Simultaneous handle multiple process or One activity is able to execute more than one async task or one Activity have only one async task AsyncTask is a thread with a wrapper around it. It was designed and it's very handy for finite jobs. One activity can start multiple AsyncTasks just the way it can start multiple threads. Follow the suggestions of Nikola on how to update your GUI within an AsyncTask. If you miss that your application will consistently crash. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.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: Force hdpi drawables on mdpi-xlarge devices
On May 23, 7:49 pm, Dianne Hackborn hack...@android.com wrote: Don't force the Xoom to use hdpi. You will be inconsistent with every other app, all of which are using the Xoom's correct density which is mdpi. Why do you want to do this? As I've said, Galaxy Tab made a design decision to use a larger density and thus have a blown up UI. Again use the density the device reports so you are consistent with the UI in the rest of the device. Trying to play games like this is only going to lead to pain. Use the density the device reports. Doesn't the stock Honeycomb launcher force HDPI drawables for the app icons? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Force hdpi drawables on mdpi-xlarge devices
On May 23, 7:49 pm, Dianne Hackborn hack...@android.com wrote: Don't force the Xoom to use hdpi. You will be inconsistent with every other app, all of which are using the Xoom's correct density which is mdpi. Why do you want to do this? As I've said, Galaxy Tab made a design decision to use a larger density and thus have a blown up UI. Again use the density the device reports so you are consistent with the UI in the rest of the device. Trying to play games like this is only going to lead to pain. Use the density the device reports. Doesn't the stock Honeycomb Launcher force HDPI drawables for the app icons? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: what is the difference between an Install and an active install?
As for me, I tend to look at install counts as statistical estimates, not as exact quantities. As such, they may be off by some amount, especially when the absolute numbers are low (e.g. anew application). The recently made adjustments supposedly make the numbers more true to life, esp. the active install counts, wrt. devices that are reset without uninstallling everything first. Still, I wouldn't expect them to be precise as in: 500,000 vs. 499,999 active installs out of 1M vs. 1M+1. A simple about 40% is good enough for me :) -- Kostya 03.07.2011 11:08, Ali Chousein пишет: Active installs is relevant when you expect revenue from advertisements I guess. Raghav and Kostya are right; the statistics in the Developer Console is a joke. The first week when I published my application, active installs was higher than installs for 2 days! How about that? :-) -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ On Jul 2, 3:30 pm, Spookyspooky1...@gmail.com wrote: On Jul 2, 8:22 am, Kostya Vasilyevkmans...@gmail.com wrote: active install = installminus installed, used for while, then uninstalled So, installs is bad, active installs is good, then, right? Ouch. Thanks, --jim -- 73 DE N5IAL (/4)| DMR: So fsck was originally called spooky1...@gmail.com| something else.http://jdgapps.com/| Q: What was it called? Running FreeBSD 7.0 | DMR: Well, the second letter was different. ICBM/Hurricane |-- Dennis M. Ritchie, Usenix, June 1998. 30.44406N 86.59909W -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: I want to design a video file player, which takes in file name first and then play the video, I am not sure how can I use setcontentview to do this,pls help!
This Google Groups site is strangely missing a +1 button. On Jul 1, 9:16 am, Zsolt Vasvari zvasv...@gmail.com wrote: Hey, I am in Singapore, too. What company do you work for? Maybe they are looking for a competent developer. On Jul 1, 8:57 am, Jiabin Qin jiab...@gmail.com wrote: I this in the onCreate(), I need to first setContentView(R.layout.main); to take input from user, but what shall I do after that. I have a button which I think I can use setOnClickListener() to switch to another view onclick, I think that what most apps do like in the game, click on the button start, and the game will start. How shall I achieve? Thanks in advance for your kind help! Jiabin singapore -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] open app with intent with back button?
Hallo, we can open apps with android using intent like browser and map. how to open app inside my activity area inside the activity? OR how to add back button on top of opened app to back to my application? 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] Problems with the web page interface to this list?
Yesterday, I ran into quite a number of problems with the web site interface to this group (android-developers, just in case it randomly tosses my post into another group, like it did yesterday---that's one of the problems). 1) I posted an update to the thread I started, titled What is the difference between an 'install' and an 'active install'? The most recent update, posted approximately (+/- 2 hours) 1200 CDT (GMT -5), never made it to the list, according to the web page and my e-mail. Approximately 1600 CDT, I reposted itSame result. No post on the web site or via e-mail. 2) So, at approximately 2100, I posted a question to the group asking, Has anyone else noticed that posts aren't going through today? (I'd also only seen about 1 post every few hours via e-mail.) THAT post ended up in a completely different group (posted from here) that I've never even heard of, and (obviously, given that I'd never heard of it) am not a member of. I am forced to post via the web page, because (last time I checked) I am still not able to post via e-mail. I've double-checked the e-mail address repeatedly, and am still told that either the group android-developers doesn't exist, or I'm not a member. Does anyone know what might be going on here? I'm wondering if this post will even go through at all, and what group it will end up on. Later, --jim -- 73 DE N5IAL (/4)| DMR: So fsck was originally called spooky1...@gmail.com| something else. http://jdgapps.com/ | Q: What was it called? Running FreeBSD 7.0 | DMR: Well, the second letter was different. ICBM/Hurricane |-- Dennis M. Ritchie, Usenix, June 1998. 30.44406N 86.59909W -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] another test directly from gmail site ... please ignore
Since signing on to the android-developers group, I have never been able to post via e-mail. If this goes through, I'll know that it's somewhere between sendmail on my system and gmail's smtp server. If it still bounces, I'll know that there is a problem with a list setting. The group address for this e-mail (attempt to) post was directly compied from the about this list page for the list. If the bounce message still says I spelled it wrong, or the group doesn't exist, or I'm not a member, something is seriously wrong. apologies for the wasted post (assuming this one actually works). Later, --jim -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] another test directly from gmail site ... please ignore
I can see your message. -- Kostya Vasilyev 03.07.2011 14:29 пользователь Jim Graham spooky1...@gmail.com написал: Since signing on to the android-developers group, I have never been able to post via e-mail. If this goes through, I'll know that it's somewhere between sendmail on my system and gmail's smtp server. If it still bounces, I'll know that there is a problem with a list setting. The group address for this e-mail (attempt to) post was directly compied from the about this list page for the list. If the bounce message still says I spelled it wrong, or the group doesn't exist, or I'm not a member, something is seriously wrong. apologies for the wasted post (assuming this one actually works). Later, --jim -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Im not able to run android application.Please help me to solve it.
The details are given inside the link http://stackoverflow.com/q/6562428/385138 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ] emulator: could not find virtual device named 'my_avd'
Hello Community ! i got my phone to run the apps from this machine(XP)! - end to end perfect. Once again, i reloaded all software - yes uninstalled sdk , blew away eclipse, removed workspace. reinstalled everything. same issue - my AVD is not recognized by the emulator . I have once again created avd from both command line (out of tools) as well as within eclipse and AVD is not recognized by using a 'run configuration' , 'run as', or again, command line (tried emulator -avd my_avd,tried emlator @my_avd, tried setting some type of path). I do not have support for symbolic links - as yet another blogger has recommended - I would install it using VC , but am still confused as to where in the world i would link back to C:\Documents and Settings \username ( being where eclipse is creating the AVD) as i have copied .android to those locations , tried ANDROID_SDK_HOME , (which by the way gives me null errors in SDK manager when i set it to my location of avd creation - and not (intuitively) to the actual 'home' of the SDK which in my case is 'C:\program Files\android\android- sdk' (and why an '-' vs '_' is beyond me - but who am i to complain?) either way folks - i am up and running on two platforms end-to-end and ready to go but being a completionist i need to absolutely know where that emulator is looking for the created avd! if anyone has suggestions how to set a path (but to where as i have tried every logical path - looked at where the user profile etc... noted in ealier mesage) happy fourth all! regards David On Jun 27, 8:16 am, david davidaostrow...@gmail.com wrote: Hello All, building 'hello world' on Windows XP, installer_r11-windows.exe (latest) , helios everything fine...until [2011-06-27 07:45:47 - HelloWorld14] Automatic Target Mode: Preferred AVD 'my_avd' isnotavailable. Launching newemulator. [2011-06-27 07:45:47 - HelloWorld14] Launching a newemulatorwithVirtualDevice'my_avd' [2011-06-27 07:45:49 -Emulator]emulator: ERROR: unknownvirtualdevicename: 'my_avd' [2011-06-27 07:45:49 -Emulator]emulator: couldnotfindvirtualdevicenamed 'my_avd' tried a few things: building avd 'in' eclipse building avd outside of eclipse setting ANDROID_SDK_HOME to C:/documents and settings/username C:/documents and settings/username/.android C:/documents and settings/username/.android/avd/my_avd.avd I have tried moving the .android directory to (Location where it is placed on my windows 7 box) C:/User/username C:/ even to the tools directory from which i manually ran theemulator and any directory at all that might be labeled under username I have searched (via set) the command to find anyother directory theemulator might be looking for. (past posts have indicated this...) it appears to be putting it in the correct place no place to set a link to (that i can think of) I also noticed issues with avirtualdisk assigned - no evidence of this but i have also tried to set theemulatorto look for an 's' directory for the same above mentioned directory locations. I have copied .android to anything reasonable: C:\ C:\Documents and settings\any and every username C:\...sdk tools I have set paths to the .android locations under username I have also verified the avd from the manual tools - it exists and looks fine I have examined the config created by the avd - doesnotappear to have anything askew. I get the 'notfindvirtualdevice' from the tool directory as well as from eclipse never in my life has 'hello world' been so difficult - please help me android community to run 'hello world' on XP - ( it works on windows 7 ) before i die (of old age) regards David -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Im not able to run android application.Please help me to solve it.
1) Don't cross post to multiple groups and websites. 2) Try using logcat to find out what error you are getting (See chapter 1 of your book) 3) I have the same book and my code works perfectly On Sun, Jul 3, 2011 at 4:44 PM, SIVAKUMAR j.sivakumar...@gmail.com wrote: The details are given inside the link http://stackoverflow.com/q/6562428/385138 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Offline installation of Android packages
Hi, Is there a way to install Android packages offline. I never success install them through SDK manager since the internet connection in my home is not stable. thanks, Samuel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mp4 video not playing in Galaxy Tab and MyTouch?
hello team, I am trying to play an mp4 video url using both VideoView and WebView. in case of VideoView I am getting Null Pointer Exception and in WebView it showing black white page..nothign is there. This problem i am facing in SamsungGalaxy Tab and in MyTouch , in HTC Desire it's working fine. Please suggest me why this is happening and how can I solve this...is there any standard for Video file to play. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Offline installation of Android packages
You have to download them to install them so offline is not really an option unless you download them elsewhere and copy them. On Sun, Jul 3, 2011 at 5:17 PM, Samuel jrl...@gmail.com wrote: Hi, Is there a way to install Android packages offline. I never success install them through SDK manager since the internet connection in my home is not stable. thanks, Samuel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Points and Zooming
still trying to complete my Image class On a Bitmap I can draw a line and the starting point isoldX,oldY is 242.5 , 389.0 I then zoom only the image no panning where the oldX ,oldY is still visible but obviously in another location of the screen because it is zoomed in. Now I start to draw a line over the exact same points as before newX , newY is 41 , 293.5 the Zoom factor is 2.8225315 The matrix isMatrix{[2.8225315, 0.0, -640.6198][0.0, 2.8225315, -801.00256][0.0, 0.0, 1.0]} However I can't find a mathematical relationship between oldX and newX, that is the same as oldY and newY Currently I'm using the event.getX which gives the X position on the screen, 1) Is there anyway to get the X position of the bitmap itself ? 2) Does anyone have an Idea to relate the oldX,oldYwith the newX,newY that would apply to all all zoom factors ? thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Mp4 video not playing in Galaxy Tab and MyTouch?
Your video may not be safe for streaming. http://stackoverflow.com/questions/523/where-to-place-videos-to-stream-android http://stackoverflow.com/questions/1841397/android-mediaplayer-emulator-and-url On Sun, Jul 3, 2011 at 7:49 AM, shubh shubhampatn...@gmail.com wrote: hello team, I am trying to play an mp4 video url using both VideoView and WebView. in case of VideoView I am getting Null Pointer Exception and in WebView it showing black white page..nothign is there. This problem i am facing in SamsungGalaxy Tab and in MyTouch , in HTC Desire it's working fine. Please suggest me why this is happening and how can I solve this...is there any standard for Video file to play. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy 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] Mp4 video not playing in Galaxy Tab and MyTouch?
Or, possibly, you have a NullPointerException and elected to neither report that here nor actually provide a stack trace: http://stackoverflow.com/questions/6562634/mp4-video-not-playing-in-galaxy-tab-and-in-mytouch On Sun, Jul 3, 2011 at 7:49 AM, shubh shubhampatn...@gmail.com wrote: hello team, I am trying to play an mp4 video url using both VideoView and WebView. in case of VideoView I am getting Null Pointer Exception and in WebView it showing black white page..nothign is there. This problem i am facing in SamsungGalaxy Tab and in MyTouch , in HTC Desire it's working fine. Please suggest me why this is happening and how can I solve this...is there any standard for Video file to play. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy 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] Why is Activity#onPrepareDialog called onRotate for non-displayed dialogs?
I have an Activity with several managed dialogs. After some of them have displayed (and dismissed) I rotate the device. #onCreateDialog is called for each previously displayed dialog regardless of whether they currently being displayed or not. Strange, but relatively harmless as code in #onCreateDialog deals with static construction pieces. But I also see #onPrepareDialog being called for every previously displayed dialog too. And that is a worry, because #onPrepareDialog is where you inject state sensitive data into the dialog. State that may no longer be relevant or even wholesome at a point other than when the dialog should be displayed. Any idea why #onPrepareDialog is being unnecessarily called? This is is 2.3.3 William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Why is Activity#onPrepareDialog called onRotate for non-displayed dialogs?
On 07/03/2011 02:12 PM, William Ferguson wrote: I have an Activity with several managed dialogs. After some of them have displayed (and dismissed) I rotate the device. #onCreateDialog is called for each previously displayed dialog regardless of whether they currently being displayed or not. Strange, but relatively harmless as code in #onCreateDialog deals with static construction pieces. But I also see #onPrepareDialog being called for every previously displayed dialog too. And that is a worry, because #onPrepareDialog is where you inject state sensitive data into the dialog. State that may no longer be relevant or even wholesome at a point other than when the dialog should be displayed. Any idea why #onPrepareDialog is being unnecessarily called? This is is 2.3.3 I guess it's because Activity#dismissDialog does not remove the dialog from the list of managed dialogs. Use Activity#removeDialog to do that from Activity#removeDialog source: Removes any internal references to a dialog managed by this Activity. If the dialog is showing, it will dismiss it as part of the clean up. This can be useful if you know that you will never show a dialog again and want to avoid the overhead of saving and restoring it in the future. Kind regards, Martijn Brinkers -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Offline installation of Android packages
Hi, thanks for the response. But I don't understand it. Is it possible to install them offline and would you show me the way how to do it? regards.. On Jul 3, 6:50 pm, Raghav Sood raghavs...@gmail.com wrote: You have to download them to install them so offline is not really an option unless you download them elsewhere and copy them. On Sun, Jul 3, 2011 at 5:17 PM, Samuel jrl...@gmail.com wrote: Hi, Is there a way to install Android packages offline. I never success install them through SDK manager since the internet connection in my home is not stable. thanks, Samuel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Soodhttp://www.raghavsood.com/http://www.androidappcheck.com/http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Offline installation of Android packages
I faced the same problem once. I had to download them on another computer and then use a pendrive to copy the files and bring them to my mac. On Sun, Jul 3, 2011 at 5:57 PM, Samuel jrl...@gmail.com wrote: Hi, thanks for the response. But I don't understand it. Is it possible to install them offline and would you show me the way how to do it? regards.. On Jul 3, 6:50 pm, Raghav Sood raghavs...@gmail.com wrote: You have to download them to install them so offline is not really an option unless you download them elsewhere and copy them. On Sun, Jul 3, 2011 at 5:17 PM, Samuel jrl...@gmail.com wrote: Hi, Is there a way to install Android packages offline. I never success install them through SDK manager since the internet connection in my home is not stable. thanks, Samuel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Soodhttp:// www.raghavsood.com/http://www.androidappcheck.com/http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: problem with spinner.setOnItemClickListener
yes, Hello World work o.k. and all work but if i am add a OnItemClickListener() this is dont work :-( but with onItemSelected() this is work fine. so what's the Difference between OnItemClickListener and onItemSelected(). Regards Ariel 2011/7/3 Zsolt Vasvari zvasv...@gmail.com The error is related to the ADB and not to your code. Does a Hello World app work for you? On Jul 3, 7:41 am, אריאל arielgordon...@gmail.com wrote: Hello Everybody, Whats the problem with this code? private ListView lv1; private String lv_arr[]={Android,iPhone,BlackBerry,AndroidPeople,J2ME, Listview,ArrayAdapter,ListItem,Us,UK,India}; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); lv1=(ListView)findViewById(R.id.ListView01); lv1.setAdapter(new ArrayAdapterString(this,android.R.layout.simple_list_item_1 , lv_arr)); lv1.setTextFilterEnabled(true); lv1.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView? arg0, View arg1, int position, long arg3) { // TODO Auto-generated method stub AlertDialog.Builder adb=new AlertDialog.Builder(ListviewOnclickExample.this); adb.setTitle(LVSelectedItemExample); adb.setMessage(Selected Item is = +lv1.getItemAtPosition(position)); adb.setPositiveButton(Ok, null); adb.show(); }}); } i got this issue when i try to run it [2011-07-03 02:30:05 - ddms]null java.lang.NullPointerException at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213) at com.android.ddmlib.Client.sendAndConsume(Client.java:574) at com.android.ddmlib.HandleHello.sendHELO(HandleHello.java:142) at com.android.ddmlib.HandleHello.sendHelloCommands(HandleHello.java:65) at com.android.ddmlib.Client.getJdwpPacket(Client.java:671) at com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317) at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263) Thanks, Ariel. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Re:Urgent need for SAP Functional FI/CA Consultant@CA
Could someone please remove that account from the group? It's obvious that that account is used only for spamming Google Groups with job postings. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Im not able to run android application.Please help me to solve it.
I don't think it has anything to do with your code but your emulator or Eclipse setup. This is what I see when I launch an application. [2011-07-03 05:30:02 - MainScreen] Android Launch! [2011-07-03 05:30:02 - MainScreen] adb is running normally. [2011-07-03 05:30:02 - MainScreen] Performing com.hermit.MainScreen.MainScreenActivity activity launch [2011-07-03 05:30:02 - MainScreen] Automatic Target Mode: launching new emulator with compatible AVD 'Small' [2011-07-03 05:30:02 - MainScreen] Launching a new emulator with Virtual Device 'Small' [2011-07-03 05:30:10 - MainScreen] New emulator found: emulator-5554 [2011-07-03 05:30:10 - MainScreen] Waiting for HOME ('android.process.acore') to be launched... [2011-07-03 05:31:07 - MainScreen] HOME is up on device 'emulator-5554' [2011-07-03 05:31:07 - MainScreen] Uploading MainScreen.apk onto device 'emulator-5554' [2011-07-03 05:31:07 - MainScreen] Installing MainScreen.apk... [2011-07-03 05:31:28 - MainScreen] Success! [2011-07-03 05:31:29 - MainScreen] Starting activity com.hermit.MainScreen.MainScreenActivity on device emulator-5554 Your build stops before the HOME is up on device 'emulator-5554' is reached so the emulator is dead before your code gets sent to the emulator. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Offline installation of Android packages
On Jul 3, 2:27 pm, Samuel jrl...@gmail.com wrote: Hi, thanks for the response. But I don't understand it. Is it possible to install them offline and would you show me the way how to do it? regards.. On Jul 3, 6:50 pm, Raghav Sood raghavs...@gmail.com wrote: You have to download them to install them so offline is not really an option unless you download them elsewhere and copy them. On Sun, Jul 3, 2011 at 5:17 PM, Samuel jrl...@gmail.com wrote: Hi, Is there a way to install Android packages offline. I never success install them through SDK manager since the internet connection in my home is not stable. thanks, Samuel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Soodhttp://www.raghavsood.com/http://www.androidappcheck.com/http://www.t... See this file: https://dl-ssl.google.com/android/repository/repository.xml It cointains description of any android package available pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Application Ranking?
Well even with all that variables I thin Google still has a number so i find it really strange that we don't have the ranking number. It's a major part of analyzing our apps on the market. I'm, new to the Market and I just couldn't believe I can't see my app ranking. On Jul 2, 6:38 pm, John Coryat cor...@gmail.com wrote: One problem with rank is it can change depending on your location, carrier or even device. You can get an idea of what a rank for an app is by going into the market, selecting all apps and start counting, manually, until you find the app your interested in. That's pretty painful, especially if your app is beyond about 800 in overall rank as that's the maximum (or used to be) number listed in the all category. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Multiple MapViews and MapActivities
in our app we are using static map pictures (from the Google Statis maps API) for the secondary (north up, infrequent use) map view. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] More Market questions
Sorry for this...more Market questions. 1) Is the download count that users see in the Market app based on total installs, or active installs? 2) If it's based on active installs, and given that active install counts are still broken (showed zero for a while when I had confirmed that at least one user has definitely not uninstalled), how does anyone maintain a consistent number? Or do they? Statistics on active installs also show no installs from India, which means it's missed at least one (Yes, I've already been told that the statistics are basically useless...still curious how all of this is SUPPOSED to work.) :-) 3) Here's a big one: in individual categories/subcategories (in my case, Apps/Photography), how many installs (or would that be active installs) does an app need to survive? 4) Same question, except regarding the number of ratings/comments, not installs. 5) If there is such a number, and an app falls below it, is there a way to revive it, re-publish it in the Market, etc.? Or is it just dead? 6) Am I correct in my assessment that most users only leave comments when they're either very satisfied or very disssatisfied? (i.e., far fewer comments from users who fit between those two) 7) And finally, is there a way to view what the user sees on their device in the Market for my app via a web page? Or do I only have the developer's console? Thanks,, --jim -- 73 DE N5IAL (/4)| DMR: So fsck was originally called spooky1...@gmail.com| something else. http://jdgapps.com/ | Q: What was it called? Running FreeBSD 7.0 | DMR: Well, the second letter was different. ICBM/Hurricane |-- Dennis M. Ritchie, Usenix, June 1998. 30.44406N 86.59909W -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] game engine, how to organize animation and etc. in android ?
Hi. I'm quite new to android and i want to make some animation (simple game later) like i did on windows (all programatically). So I have questions what classes should be responsible for. Activity It's a base class for whole logic like updating variables (computing move etc.) Should I create a new Thread on onCreate and run it onResume ? (I need continuous computing for moving objects) View Only for drawing animation onDraw method for clearing Canvas (how to do this quickly? drawRect is efficent ? ) and drawing objects. Should I invalidate that view or just call onDraw 30 times per second? Regards razor -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] IllegalArgumentException: Invalid network type: 5544192
Our app controls our music server using webservice calls over the LAN. Using ACRA, I received a report from a phone that included an Invalid network type error. This resulted from the second line, below, that is in our code: ConnectivityManager connManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE); if(! connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI).isConnected()) { //handler } Of course, this works on multiple test devices over multiple LANs during testing. Any thoughts on why someone might get this error? Thanks for any help. Kim -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Modify listview item child views with adapter and getview()
Does calling notifyOnDataSetChanged() will restore previous settings for each of the items, that previously had their child views visibility set to View.VISIBLE (supposing item is clicked before) and then set the visibility to View.VISIBLE on the item that is currently clicked? See the code below: This is the onItemClickListener of the listview listView.setOnItemClickListener(new OnItemClickListener(){ @Override public void onItemClick(AdapterView? parent, View viewItem, int position, long arg3) { click=true; cur.notifyDataSetChanged(); viewItem=parent.getChildAt(position); ((Button)viewItem.findViewById(R.id.gotherefav)).setVisibility(View.VISIBLE); ((Button)viewItem.findViewById(R.id.removefav)).setVisibility(View.VISIBLE); TextView text = (TextView)viewItem.findViewById(R.id.item); ime = text.getText(); cur.notifyDataSetInvalidated(); }}); -This is the getView() public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { LayoutInflater vi = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = vi.inflate(R.layout.temp2, null); } String t = items.get(position); if (t != null) { TextView itemText = (TextView) convertView.findViewById(R.id.item); itemText.setText(t); itemText.invalidate(); itemText.setTextSize(20.0f); } ((Button)convertView.findViewById(R.id.gotherefav)).setVisibility(View.INVISIBLE); ((Button)convertView.findViewById(R.id.removefav)).setVisibility(View.INVISIBLE); return convertView; } } Do i call prematurely notifyDatasetchanged() in listviewonclicklistener or dataSetInvalidated? Why it does not show the buttons(child views) when the item is clicked? Please, guide me, what i'm doing wrong? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Modify listview item child views with adapter and getview()
Notify rebuilds the list. If there is any state that may have changed since the getView was called, it's up to your code to restore it. Change your data items from strings to a richer data structure, and use them to save and restore visibility. Also, try scrolling your list view up and down, before making those fixes. You may see the visibility change back to invisible, caused by the same bug. -- Kostya Vasilyev 03.07.2011 21:39 пользователь NikolaMKD nikola.despoto...@gmail.com написал: Does calling notifyOnDataSetChanged() will restore previous settings for each of the items, that previously had their child views visibility set to View.VISIBLE (supposing item is clicked before) and then set the visibility to View.VISIBLE on the item that is currently clicked? See the code below: This is the onItemClickListener of the listview listView.setOnItemClickListener(new OnItemClickListener(){ @Override public void onItemClick(AdapterView? parent, View viewItem, int position, long arg3) { click=true; cur.notifyDataSetChanged(); viewItem=parent.getChildAt(position); ((Button)viewItem.findViewById(R.id.gotherefav)).setVisibility(View.VISIBLE); ((Button)viewItem.findViewById(R.id.removefav)).setVisibility(View.VISIBLE); TextView text = (TextView)viewItem.findViewById(R.id.item); ime = text.getText(); cur.notifyDataSetInvalidated(); }}); -This is the getView() public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { LayoutInflater vi = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = vi.inflate(R.layout.temp2, null); } String t = items.get(position); if (t != null) { TextView itemText = (TextView) convertView.findViewById(R.id.item); itemText.setText(t); itemText.invalidate(); itemText.setTextSize(20.0f); } ((Button)convertView.findViewById(R.id.gotherefav)).setVisibility(View.INVISIBLE); ((Button)convertView.findViewById(R.id.removefav)).setVisibility(View.INVISIBLE); return convertView; } } Do i call prematurely notifyDatasetchanged() in listviewonclicklistener or dataSetInvalidated? Why it does not show the buttons(child views) when the item is clicked? Please, guide me, what i'm doing wrong? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Modify listview item child views with adapter and getview()
So there is no way to update the child views programically ? List view have textview and 2 buttons, when the list is populated only textview is visible, the 2 buttons are invisible. I tried one way, it worked but only for the first items, but when you scroll it, it threw NPE. On Jul 3, 7:50 pm, Kostya Vasilyev kmans...@gmail.com wrote: Notify rebuilds the list. If there is any state that may have changed since the getView was called, it's up to your code to restore it. Change your data items from strings to a richer data structure, and use them to save and restore visibility. Also, try scrolling your list view up and down, before making those fixes. You may see the visibility change back to invisible, caused by the same bug. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Modify listview item child views with adapter and getview()
Yes, there is a way to update the item's UI without rebuilding the entire list. Your click handler receives a view, and you can take from there. But scrolling artifacts (and a crash) show that your code doesn't work right when listview recycles views. Unless you're going to disable scrolling, that will need to be fixed... -- Kostya Vasilyev 03.07.2011 22:06 пользователь NikolaMKD nikola.despoto...@gmail.com написал: So there is no way to update the child views programically ? List view have textview and 2 buttons, when the list is populated only textview is visible, the 2 buttons are invisible. I tried one way, it worked but only for the first items, but when you scroll it, it threw NPE. On Jul 3, 7:50 pm, Kostya Vasilyev kmans...@gmail.com wrote: Notify rebuilds the list. If there is any state that may have changed since the getView was called, it's up to your code to restore it. Change your data items from strings to a richer data structure, and use them to save and restore visibility. Also, try scrolling your list view up and down, before making those fixes. You may see the visibility change back to invisible, caused by the same bug. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] game engine, how to organize animation and etc. in android ?
You should use the method invalidate() inside a view: @Override protected void onDraw (Canvas canvas) { invalidate(); // Do all your drawings here invalidate(); } First, it tells android that the whole screen should be redrawn, afterwards it tells android that the screen should be redrawn again with the drawings you did. 2011/7/3 razor razorjac...@gmail.com Hi. I'm quite new to android and i want to make some animation (simple game later) like i did on windows (all programatically). So I have questions what classes should be responsible for. Activity It's a base class for whole logic like updating variables (computing move etc.) Should I create a new Thread on onCreate and run it onResume ? (I need continuous computing for moving objects) View Only for drawing animation onDraw method for clearing Canvas (how to do this quickly? drawRect is efficent ? ) and drawing objects. Should I invalidate that view or just call onDraw 30 times per second? Regards razor -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] game engine, how to organize animation and etc. in android ?
It sustains a loop of drawing all by itself... 2011/7/3 Alex Coutinho alexc...@gmail.com You should use the method invalidate() inside a view: @Override protected void onDraw (Canvas canvas) { invalidate(); // Do all your drawings here invalidate(); } First, it tells android that the whole screen should be redrawn, afterwards it tells android that the screen should be redrawn again with the drawings you did. 2011/7/3 razor razorjac...@gmail.com Hi. I'm quite new to android and i want to make some animation (simple game later) like i did on windows (all programatically). So I have questions what classes should be responsible for. Activity It's a base class for whole logic like updating variables (computing move etc.) Should I create a new Thread on onCreate and run it onResume ? (I need continuous computing for moving objects) View Only for drawing animation onDraw method for clearing Canvas (how to do this quickly? drawRect is efficent ? ) and drawing objects. Should I invalidate that view or just call onDraw 30 times per second? Regards razor -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] More Market questions
On Jul 3, 2011 4:08 PM, Spooky spooky1...@gmail.com wrote: Sorry for this...more Market questions. 1) Is the download count that users see in the Market app based on total installs, or active installs? looks like total 2) If it's based on active installs, and given that active install counts are still broken (showed zero for a while when I had confirmed that at least one user has definitely not uninstalled), how does anyone maintain a consistent number? Or do they? Statistics on active installs also show no installs from India, which means it's missed at least one (Yes, I've already been told that the statistics are basically useless...still curious how all of this is SUPPOSED to work.) :-) it's updated with some sort of delay. 3) Here's a big one: in individual categories/subcategories (in my case, Apps/Photography), how many installs (or would that be active installs) does an app need to survive? 0 4) Same question, except regarding the number of ratings/comments, not installs. 0 5) If there is such a number, and an app falls below it, is there a way to revive it, re-publish it in the Market, etc.? Or is it just dead? it stays (most likely) forever, unless you unpublish it (or google remove it for any tos violation). 6) Am I correct in my assessment that most users only leave comments when they're either very satisfied or very disssatisfied? (i.e., far fewer comments from users who fit between those two) i do not see any sane pattern in my case. Great app acompanied with just 3 stars is one example. 7) And finally, is there a way to view what the user sees on their device in the Market for my app via a web page? Or do I only have the developer's console? the see the same you see on your device. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] open app with intent with back button?
On Sun, Jul 3, 2011 at 4:34 AM, ahmed barqawi barqawi...@gmail.com wrote: how to open app inside my activity area inside the activity? You can't. OR how to add back button on top of opened app to back to my application? You can't - but what would be the point of that? The user already has a global back button. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Reliable method for sending attachment in email intent
I've tried a variety of different methods of attaching attachments to email intents and I haven't found a 100% reliable solution yet. Sometimes it works with 1 email apps but not others. I've tried a variety of Intent.putExtra calls. I've tried passing the uri of the file on the device, using the parceable class, etc. Does anyone have any suggestions or know of a reliable way to do this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Geocoder nightmare
Yes, I did this. I read in a book that geocoding doesn't work in AVD 7 and 8. It said to use AVD 6. I'm going to try AVD 6 in a bit. On Jul 3, 1:53 am, Ali Chousein ali.chous...@gmail.com wrote: Your code should work without problems. I use very similar code in my application and it just works. For Geocoder you need to set android.permission.INTERNET in your manifest file. Did you do this? -- Ali Chousein Geo-Filtered Assistanthttp://geo-filtered-assistant.blogspot.com/ On Jul 2, 6:53 pm, bob b...@coolgroups.com wrote: I've been playing around with Geocoder stuff, and it is a nightmare. Nothing works. Is there any version of the emulator where this code does not give a weird exception? import java.io.IOException; import java.util.List; import android.app.Activity; import android.location.Address; import android.location.Geocoder; import android.os.Bundle; public class hmm extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); boolean ok=Geocoder.isPresent(); final Geocoder geocoder = new Geocoder(this); final String locName = 1600 Amphitheatre Parkway, Mountain View, CA; try { final ListAddress list = geocoder.getFromLocationName(locName, 1); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Force hdpi drawables on mdpi-xlarge devices
It uses a facility that is under development in the platform to do mipmap style drawables. It isn't in any way running at hdpi; it is loading application icons to have a larger size. On Sun, Jul 3, 2011 at 1:03 AM, Federico Carnales fedecarna...@gmail.comwrote: On May 23, 7:49 pm, Dianne Hackborn hack...@android.com wrote: Don't force the Xoom to use hdpi. You will be inconsistent with every other app, all of which are using the Xoom's correct density which is mdpi. Why do you want to do this? As I've said, Galaxy Tab made a design decision to use a larger density and thus have a blown up UI. Again use the density the device reports so you are consistent with the UI in the rest of the device. Trying to play games like this is only going to lead to pain. Use the density the device reports. Doesn't the stock Honeycomb launcher force HDPI drawables for the app icons? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Reliable method for sending attachment in email intent
The way it's supposed to work, according to the documentation, is: - An ACTION_SEND with an EXTRA_STREAM holding a content:// Uri as a parcelable. - An ACTION_SEND_MULTIPLE with EXTRA_STREAM holding multiple content:// Uris as an array of parcelables. You also may want to check the sources of the built-in email application. -- Kostya 03.07.2011 23:36, EmilDiego пишет: I've tried a variety of different methods of attaching attachments to email intents and I haven't found a 100% reliable solution yet. Sometimes it works with 1 email apps but not others. I've tried a variety of Intent.putExtra calls. I've tried passing the uri of the file on the device, using the parceable class, etc. Does anyone have any suggestions or know of a reliable way to do this. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Force hdpi drawables on mdpi-xlarge devices
Just tested this on my Motorola XOOM with Android 3.0.1 and it is using the icon.png from res/drawable-hdpi even though the device is mdpi. On 3 Juli, 10:05, Federico Carnales fedecarna...@gmail.com wrote: On May 23, 7:49 pm, Dianne Hackborn hack...@android.com wrote: Don't force the Xoom to use hdpi. You will be inconsistent with every other app, all of which are using the Xoom's correct density which is mdpi. Why do you want to do this? As I've said, Galaxy Tab made a design decision to use a larger density and thus have a blown up UI. Again use the density the device reports so you are consistent with the UI in the rest of the device. Trying to play games like this is only going to lead to pain. Use the density the device reports. Doesn't the stock Honeycomb Launcher force HDPI drawables for the app icons? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Modify listview item child views with adapter and getview()
Solved it like this: listView.setOnItemClickListener(new OnItemClickListener(){ @Override public void onItemClick(AdapterView? parent, View viewItem, int position, long arg3) throws NullPointerException{ new UI(parent.getChildAt(position)).execute(null); }}); private class UI extends AsyncTask View, String, View { public View viewItem=null; public UI(View v) { this.viewItem=v; } @Override protected View doInBackground(View... arg0) { // TODO Auto-generated method stub return null; } @Override protected void onPreExecute() { listView.getChildCount(); for(int i = 0; i = listView.getChildCount(); i++) { if(listView.getChildAt(i)!= null) { (listView.getChildAt(i).findViewById(R.id.gotherefav)).setVisibility(View.INVISIBLE); (listView.getChildAt(i).findViewById(R.id.removefav)).setVisibility(View.INVISIBLE); } } super.onPreExecute(); } @Override protected void onPostExecute(View result) { ((Button)viewItem.findViewById(R.id.gotherefav)).setVisibility(View.VISIBLE); ((Button)viewItem.findViewById(R.id.removefav)).setVisibility(View.VISIBLE); ime=((TextView)viewItem.findViewById(R.id.item)).getText(); super.onPostExecute(result); } } -- Without invoking getView() and repopulating the list No I have to reduce the time for parsing the xml, I mean reduce the usage of findViewById somehow. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Installing APK + DB
hi guys, I am trying to install my first ;-( Android application into a Samsung tab phone device but it does not start; i wonder if i am missig something in the process: 1- Appl needs a pre-existing sqlite database, which i have installed (eclipse+DDS+pull) into my development environment ... so, it is installed under data/data/MYAPPL/databases/myDB.db 2- the appl runs fine into the emulator 3- i have conected my phone device, start adb and have seen my device: ./adb kill-server ./adb start-server ./adb devices 4- i have installed (with sucess) my apk: ./adb install -l workspace/myAppl.apk DOES THE APK FILE INCLUDES THE DB ? 5- disconnect my device: ./adb kill-server + unpluged BUT, THE APPLICATION DOES NOT START: ... application has stopped unexpectedly ... I think the problem is related with the database; maybe it does not exist, but i am tryin to see waths going on ... may somebody help me ? thanks in advance, Hector -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Installing APK + DB
On Sun, Jul 3, 2011 at 6:43 PM, hectordu...@yahoo.com hectordu...@yahoo.com wrote: I am trying to install my first ;-( Android application into a Samsung tab phone device but it does not start; i wonder if i am missig something in the process: 1- Appl needs a pre-existing sqlite database, which i have installed (eclipse+DDS+pull) into my development environment ... so, it is installed under data/data/MYAPPL/databases/myDB.db 2- the appl runs fine into the emulator 3- i have conected my phone device, start adb and have seen my device: ./adb kill-server ./adb start-server ./adb devices 4- i have installed (with sucess) my apk: ./adb install -l workspace/myAppl.apk DOES THE APK FILE INCLUDES THE DB ? Not based on anything you have described here. You manually copied the database to the device in step #1. That does not put the database inside of the APK file, any more than copying a file to a Windows PC automatically puts it inside an .MSI file. 5- disconnect my device: ./adb kill-server + unpluged BUT, THE APPLICATION DOES NOT START: ... application has stopped unexpectedly ... I think the problem is related with the database; maybe it does not exist, but i am tryin to see waths going on ... may somebody help me ? Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your error message. -- 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] More Market questions
I haven't usually experienced some of the weirdness that others here have talked about until recently. My stats have been going crazy for the past week. Sometimes they're up 5% sometimes (within hours) they're down 8% (the original 5% uptick and then -3% more) My guess is that they're upgrading something and hopefully soon everything will smooth out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Help in writing a graphical/game app
I would also recommend looking into Andengine and/or libgdx. Both very good game framework/engine. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Installing APK + DB
Mark, yes, i agree, the process is not right ... may you share with me a link which help me including my database into the apk file ? thanks in advance. On 3 jul, 17:59, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jul 3, 2011 at 6:43 PM, hectordu...@yahoo.com hectordu...@yahoo.com wrote: I am trying to install my first ;-( Android application into a Samsung tab phone device but it does not start; i wonder if i am missig something in the process: 1- Appl needs a pre-existing sqlite database, which i have installed (eclipse+DDS+pull) into my development environment ... so, it is installed under data/data/MYAPPL/databases/myDB.db 2- the appl runs fine into the emulator 3- i have conected my phone device, start adb and have seen my device: ./adb kill-server ./adb start-server ./adb devices 4- i have installed (with sucess) my apk: ./adb install -l workspace/myAppl.apk DOES THE APK FILE INCLUDES THE DB ? Not based on anything you have described here. You manually copied the database to the device in step #1. That does not put the database inside of the APK file, any more than copying a file to a Windows PC automatically puts it inside an .MSI file. 5- disconnect my device: ./adb kill-server + unpluged BUT, THE APPLICATION DOES NOT START: ... application has stopped unexpectedly ... I think the problem is related with the database; maybe it does not exist, but i am tryin to see waths going on ... may somebody help me ? Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your error message. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Installing APK + DB
Save it as resource in raw folder, load it as resource then try to copy it into app path. It does not need to be inside /databases folder. It can be anywhere (SDcard not recommended) Thats how you ship external SQLiteDatabase. Google it how to ship external sqlite database android, there is sample codes (on one blog, i cant remember), but they must be modified based on your app requirements. They are just good for start. On Jul 4, 2:08 am, hectordu...@yahoo.com hectordu...@yahoo.com wrote: Mark, yes, i agree, the process is not right ... may you share with me a link which help me including my database into the apk file ? thanks in advance. On 3 jul, 17:59, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jul 3, 2011 at 6:43 PM, hectordu...@yahoo.com hectordu...@yahoo.com wrote: I am trying to install my first ;-( Android application into a Samsung tab phone device but it does not start; i wonder if i am missig something in the process: 1- Appl needs a pre-existing sqlite database, which i have installed (eclipse+DDS+pull) into my development environment ... so, it is installed under data/data/MYAPPL/databases/myDB.db 2- the appl runs fine into the emulator 3- i have conected my phone device, start adb and have seen my device: ./adb kill-server ./adb start-server ./adb devices 4- i have installed (with sucess) my apk: ./adb install -l workspace/myAppl.apk DOES THE APK FILE INCLUDES THE DB ? Not based on anything you have described here. You manually copied the database to the device in step #1. That does not put the database inside of the APK file, any more than copying a file to a Windows PC automatically puts it inside an .MSI file. 5- disconnect my device: ./adb kill-server + unpluged BUT, THE APPLICATION DOES NOT START: ... application has stopped unexpectedly ... I think the problem is related with the database; maybe it does not exist, but i am tryin to see waths going on ... may somebody help me ? Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your error message. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Installing APK + DB
there is something i don't understand ... if the application works fine into the emulator: --- does not mean that it will work into de real device ? --- does not mean that the apk file is complete ... including the database ? --- directory: data/data/MYAPPL/databases is or not the right place for databases? regards On Jul 3, 8:19 pm, NikolaMKD nikola.despoto...@gmail.com wrote: Save it as resource in raw folder, load it as resource then try to copy it into app path. It does not need to be inside /databases folder. It can be anywhere (SDcard not recommended) Thats how you ship external SQLiteDatabase. Google it how to ship external sqlite database android, there is sample codes (on one blog, i cant remember), but they must be modified based on your app requirements. They are just good for start. On Jul 4, 2:08 am, hectordu...@yahoo.com hectordu...@yahoo.com wrote: Mark, yes, i agree, the process is not right ... may you share with me a link which help me including my database into the apk file ? thanks in advance. On 3 jul, 17:59, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jul 3, 2011 at 6:43 PM, hectordu...@yahoo.com hectordu...@yahoo.com wrote: I am trying to install my first ;-( Android application into a Samsung tab phone device but it does not start; i wonder if i am missig something in the process: 1- Appl needs a pre-existing sqlite database, which i have installed (eclipse+DDS+pull) into my development environment ... so, it is installed under data/data/MYAPPL/databases/myDB.db 2- the appl runs fine into the emulator 3- i have conected my phone device, start adb and have seen my device: ./adb kill-server ./adb start-server ./adb devices 4- i have installed (with sucess) my apk: ./adb install -l workspace/myAppl.apk DOES THE APK FILE INCLUDES THE DB ? Not based on anything you have described here. You manually copied the database to the device in step #1. That does not put the database inside of the APK file, any more than copying a file to a Windows PC automatically puts it inside an .MSI file. 5- disconnect my device: ./adb kill-server + unpluged BUT, THE APPLICATION DOES NOT START: ... application has stopped unexpectedly ... I think the problem is related with the database; maybe it does not exist, but i am tryin to see waths going on ... may somebody help me ? Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your error message. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to fix the orientation of a particular view in Honeycomb?
Thanks Zsolt for your reply. But I do no actually understand because it seems we are solving different problems. So in your solution, if I rotate the device, will A be rotated? If it's, then this does not work for me. On Jul 1, 10:45 am, Zsolt Vasvari zvasv...@gmail.com wrote: Yes. I do this all the time. Let's say you have a vew A layout: Create a A-port layout, which is just a copy of the portrait oriented A Create a new A layout that include A-port layout-land: Create a A-land layout, which is just a copy of landscape oriented A Create a new A layout that include A-land layout-xlarge-v11 (or just layout-xlarge): Create a new A layout that include A-land. It's a copy of the A from layout-land So, with this setup, on Honeycomb (or any XLARGE device, depending on the folder you used), the layout used will always be layout-land. On other devices, it will use the appropriately oriented layout. On Jun 28, 6:10 pm, Neil wan...@gmail.com wrote: Hi guys, In my activity I have a SurfaceView which I want to lock the orientation when rotating the device. But I still want other views in the activity to be rotated with the device which means I can not use Activity.setRequestedOrientation to lock the orientation. So is there a way to achieve this? Thanks.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Force hdpi drawables on mdpi-xlarge devices
Yes as I said this is some initial work on doing mipmaps, and oh hey look at that if you are doing a mipmap there is a larger bitmap there that can be used if you want a larger size image. On Sun, Jul 3, 2011 at 2:16 PM, nadam a...@anyro.se wrote: Just tested this on my Motorola XOOM with Android 3.0.1 and it is using the icon.png from res/drawable-hdpi even though the device is mdpi. On 3 Juli, 10:05, Federico Carnales fedecarna...@gmail.com wrote: On May 23, 7:49 pm, Dianne Hackborn hack...@android.com wrote: Don't force the Xoom to use hdpi. You will be inconsistent with every other app, all of which are using the Xoom's correct density which is mdpi. Why do you want to do this? As I've said, Galaxy Tab made a design decision to use a larger density and thus have a blown up UI. Again use the density the device reports so you are consistent with the UI in the rest of the device. Trying to play games like this is only going to lead to pain. Use the density the device reports. Doesn't the stock Honeycomb Launcher force HDPI drawables for the app icons? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] can I use debit card for android market
Hi, I want to upload application in android market. Can I use debit card to pay 125$? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Virtual keyboard moves the image upwards
Hello, I think i myself found the solution. using android:windowSoftInputMode=stateAlwaysHidden|adjustResize fixes the issue. adjustPan was also one alternative but its not behaving consistently. Also i read the below post from Dianne Hackborn regarding adjustPan:- But generally I would *strongly* suggest not using adjustPan. It is mostly there for compatibility with apps that can't resize themselves to account for the IME. It is intrinsically a poorer user experience than adjustResize because when the IME is displayed the user can't scroll around in the window's content. *** Thanks .. On Wed, Jun 29, 2011 at 1:10 AM, Sudeep Sharma sudeep.andr...@gmail.comwrote: Hi, In the package com.android.setupwizard where the first screen displays the Android Logo and an animated hand arrives, i see one issue there. When you try to open virtual keyboard by long press menu, the Android logo moves up and the image is half cut. I have a similar image and want to prevent that going out of screen when the virtual keyboard comes up. Can anybody suggest something? My expectation will be that virtual keyboard covers the previous activity instead moving the image upwards. 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] 2.3.4
How to get API Level 2.3.4 ? Cause when i try to update my SDK with API Level 2.3.4 it's no exist in update proses...only 2.3.3 and then 3.0 and 3.1..? Any Suggest?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] help for audio sensor?
any help pls? On Sat, Jul 2, 2011 at 2:18 AM, Hitendrasinh Gohil hitendra.virtuei...@gmail.com wrote: Hi, I am able to record audio.But i want to do that when there is some voice or noise mediarecorder start recording automatically on basis of voice and when there is silence it stops recording audio. how can i do it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Hitendrasinh Gohil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 binded service from broadcast receiver
hi , I am using AIDL , in that i am binding a service which sends messages to the phone numbers if the sim is changed . i need to start this service as soon as the phone switches on . but i am getting a exception java.lang.RuntimeException: Unable to start receiver com.pssl.thefttracker.StartAppTheftTracker: android.content.ReceiverCallNotAllowedException: IntentReceiver components are not allowed to bind to services can anyone tell me how to overcome this exception . tell me how to make a service not available fro the user from the running services , i mean user should not stop it from the running services Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en