[android-developers] How to access shared preference outside of Activity
Dear all, I need to access the shared preference in a background service instead of activity on phone boot up. But getSharedPreferences function is define in the activity, so how can i access the data without creating the activity? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HTC Hero Update 2.1 -- Broke Audio Streaming ????
I am seeing this exact same thing on my Hero. Have you made any progress? On Jun 30, 3:20 am, MobDev developm...@mobilaria.com wrote: Hi there, I have installed the 2.1 update on my HTC Hero yesterday, and happy as a puppy I instaleld my streaming app... Just to discover that it won't stream decently... It has to stream an mp3 stream and it works on my ADP 1.6 device, on a Samsung Galaxy S test-device (with 2.1) and on the 2.1 emulator... Logcat is gettign the follwoing errors : 06-30 10:14:18.360: INFO/AudioPolicyService(56): stopOutput(): before lock 06-30 10:14:21.259: DEBUG/dalvikvm(1906): GC freed 28 objects / 1944 bytes in 186ms 06-30 10:14:21.439: INFO/AudioHardwareMSM72XX(56): AudioHardware pcm playback is going to standby. 06-30 10:14:21.439: DEBUG/StreamProcess(56): OutputStreamProcess::ResetAOLC() 06-30 10:14:22.919: INFO/AudioPolicyService(56): startOutput(): before lock 06-30 10:14:22.987: INFO/AudioHardwareMSM72XX(56): AUDIO_START: start kernel pcm_out driver. 06-30 10:14:26.329: DEBUG/dalvikvm(287): GC freed 11 objects / 488 bytes in 268ms 06-30 10:14:47.789: INFO/AudioPolicyService(56): stopOutput(): before lock 06-30 10:14:50.879: INFO/AudioHardwareMSM72XX(56): AudioHardware pcm playback is going to standby. 06-30 10:14:50.879: DEBUG/StreamProcess(56): OutputStreamProcess::ResetAOLC() 06-30 10:14:53.911: INFO/AudioPolicyService(56): startOutput(): before lock 06-30 10:14:54.022: INFO/AudioHardwareMSM72XX(56): AUDIO_START: start kernel pcm_out driver. The result is a playing player, which stops (pauzes) every 10 seconds, the restarts... This will work for about 8-10 restarts and then will simply stop without ever thrwoing an exception or something like that... Which makes it somewhat difficult (if not impossible) to catch for us developers... So has anyone been experiencing the same problem ? Does anyone have a clue if in this update another OpenCore lib has been used ? Does anyone have any solution ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Remove a row in a Listview
use the methode remove with position of the row mAdapter.remove(2); On Jul 9, 2:32 am, Albert albert8...@googlemail.com wrote: Hi all, Does someone know how to remove a row from a Listview? I have an Adapter that takes care of the List and when I try mAdapter.remove(Object) it does not remove the Object I passed but instead the last row on the list. I have tried different ways and it always ends up deleting the last row. Thanks in advance, Alberto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Sending and reveiving mails in emulator
Hello, I configured my gmail account successfully in the emulator. My goal is to respond to incoming messages in the mail account from my own application - for example display notification. I am using the standard mail application that comes with the emulator. I tried to receive mails from my account, but it does not work, there are no conversations in the standard mail application. I can't send and reveive messages from inside the emulator. Why? Thank you very much! -Danny Schimke -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] hows gdata working with he android default Calendar widget.
Hi, can anyone tell me hows gdata working with the android default Calendar widget. From my RD till now gdata Calendar API not supported on the Android devices. http://groups.google.com/group/android-developers/browse_thread/thread/35a7817d22604645 How Android Calendar Widget works? Event i downloaded calendar source code from the git repository; http://android.git.kernel.org/platform/packages/providers/Calendar.git http://android.git.kernel.org/platform/packages/providers/CalendarProvider.git But not able to compile the source code. some jars missing. till now android gdata calendar api not supported on the android device. But Android Calendar widget syncing with the google account. What jars it is using? Any one has idea. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Whether to use a Service or Thread for Http Connection?
I had replied to this thread already, but for some reason that reply is in limbo... If you use a service, you'll typically find that you'd still need to invoke a thread within that service for HTTP requests otherwise the Service might get killed for hogging the main thread. Under Eclair I'd found that services that hog the main thread (i.e. GUI-handling thread) would yeild a prompt to either 'force close' or 'wait', while under Froyo the service just gets forcibly closed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] file handling : reading a file in internal storage
hey guys, The following is my code: OutputStreamWriter out2 = new OutputStreamWriter(openFileOutput(myfilename2.txt,1)); sa_lt=3 2 1; out2.write(sa_lt); // close the file out2.close(); InputStreamReader in2 = new InputStreamReader(openFileInput(myfilename2.txt)); in2.read(buf,0,5); sa_lt = String.valueOf(buf); status.setText(sa_lt); in2.close(); I get null in 'buf' (the buffer i.e). I have defined it as private char[] buf on the top. Why m I getting this error. Does anyone happen to know. Please enlighten. Thanks, Abhyudai -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Whether to use a Service or Thread for Http Connection?
Hi Mikey, Thanks for reply but i still some how have a question if my activity starts a thread and say that activity dies somehow so what happens to the thread it started does it complete its run properly and then ends or it its killed as soon as the activity dies? Thanks, Sagar On Jul 9, 12:18 pm, metal mikey coref...@gmail.com wrote: I had replied to this thread already, but for some reason that reply is in limbo... If you use a service, you'll typically find that you'd still need to invoke a thread within that service for HTTP requests otherwise the Service might get killed for hogging the main thread. Under Eclair I'd found that services that hog the main thread (i.e. GUI-handling thread) would yeild a prompt to either 'force close' or 'wait', while under Froyo the service just gets forcibly closed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to access shared preference outside of Activity
getSharedPreferences is defined in Context. Service is a Context also. On Jul 9, 9:08 am, Jeruliu jeru@gmail.com wrote: Dear all, I need to access the shared preference in a background service instead of activity on phone boot up. But getSharedPreferences function is define in the activity, so how can i access the data without creating the activity? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: about library projects
Second one might be a bit more involved, but hopefully there is an easy fix. I have my projects into a subversion repository, but the app project builder (Android pre-compiler) seems to copy all the source from the library project, including the .svn folders, to the app/bin project. As a result of this, I get loads of files checked into the commit dialog, and I have uncheck all and then hunt down the files I actually changed. Is there any way to configure it to ignore .svn files when copying source? I realise that it has to merge source from both projects to create the final apk, but .svn files are surely not needed. At least this type of thing worked for me. 1. Delete the bin directory 2. Commit the delete changes to svn When you build your project the bin directory is recreated and it should now have the blue question mark (as telling not is svn) above the folder icon. Now you should be able to add the bin directory to svn:ignore. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 hardware platform do you use?
Only 20 years? I have you beat there. But more importantly, your review of key points is still seriously deficient in logic. Your conclusions still do not follow. Repeating conclusions that do not follow IS a mark of being uneducated, no matter how much experience you have. The G1 is not yet obsolete, nor would the OP be forced to either leave the OP limited to Android 1.6 and below, or [be left] with an experience as painful as the experience they had with the emulator on the Laptop which caused them to look at getting a device in the first place, by choosing the G1 as his hardware platform. Furthermore, you are forgetting one of the OP's considerations: cost. You cannot find a phone originally released with 2.0 or 2.1 for as low a cost as he can find a G1. I don't know how you reached the conclusion a T-Mobile Pulse could be bought for the same price as a G1: I see eBay prices of $273 for the pulse, but I got my G1 on Craigslist for $80. On Jul 8, 10:44 pm, Al Sutton a...@funkyandroid.com wrote: I've only been developing software for 20 years, but if you want to consider me uneducated, then I guess that's your call. To me if you can't buy a device for the purpose you want to use it, the devices firmware hasn't officially been updated for a few revision of the OS it's running, and all the signs indicate it won't be, then it's an obsolete device. Lets review a couple of key points; 1) You can't buy the ADP1 (i.e. the shipped as unlocked G1) through Google any more. All you can buy is the ADP2. Yes, T-Mobile USA are still selling the G1, but carriers will usually sell anything until demand is almost non-existant. 2) There is no *official* support for anything beyond 1.6, and it seems unlikely it ever will see an *official* update (seehttp://androinica.com/2010/06/29/will-the-g1-get-froyo-yes-no-maybe/ for the reasoning). 3) As you've said, even if you do get a 3rd party Android 2.x ROM it is pig slow running it, making developing/testing any 2.x code with it an unpleasant experience (and the OP originally said he wanted a device because debugging on the emulator was too slow and painful). 4) eBay prices for a T-Mobile pulse (an Android 2.1 HVGA device) are about the same if not cheaper than the eBay price for a G1. At no point did I suggest writing apps to block their use on a G1, all I've done is point out that the G1 isn't the best fit for the OPs situation, and in terms of being a phone for developers it's no longer available for purchase as one, and using it for developing will either leave the OP limited to Android 1.6 and below, or with an experience as painful as the experience they had with the emulator on the Laptop which caused them to look at getting a device in the first place. Al. On Jul 9, 12:20 am, Indicator Veritatis mej1...@yahoo.com wrote: Lack of an official 2.1 update makes it 'obsolete'? Not in my book. Nor in the book of any educated software engineer. It takes a LOT more than that to make it 'obsolete', especially when Google ENCOURAGES third parties to release their own ROMs, and Cyanogen has already ported 2.1 to the G1 (http://androidspin.com/2010/04/29/cyanogen-ports- android-2-1-rom-in-g1-and-mytouch-3g/). Of course, it is pig slow when running Cyanogen's 2.1 (compared to new 2.1 phones), and it lacks the hardware features for much of 2.1. But people are running 2.1 on the G1 already, and more want to do it. The G1 is nowhere near the bleeding edge: but it is still a good phone for testing new software against, since yet again, if it runs on the G1, and accommodates small screens correctly, then it will run almsot anywhere. This gets closer than JME ever got to the promise of write once, run anywhere. So don't write-off the G1 yet. You will risk locking your apps out of 1/5 the market if you do. On Jul 8, 5:03 am, Al Sutton a...@funkyandroid.com wrote: It's highly unlikely the G1 will ever see an official update to Android 2.x or higher, so it is obsolete. In the OPs shoes I personally would put the money towards a better computer as it'll most likely make the whole development process more pleasant. Al. On Jul 8, 7:32 am, Indicator Veritatis mej1...@yahoo.com wrote: G1 obsolete? Well, almost. But take a look at the famous Platform Version 'dashboard' athttp://developer.android.com/resources/dashboard/platform-versions.html. It shows that as many as 21.3% of phones connecting to the market are still on 1.5. 45% are running 1.6 or 1.5. So by that standard the G1 is not obsolete, since it is already on 1.6. Now sure, the hardware is slow and the runtime memory limited compared to the hot new phones running 2.1 and accounting for 53% of the market. But it would be a mistake to design your app -- or test your app -- on only the latest and greatest (unless, of course, your app relies on features only available on the latest
[android-developers] Re: what hardware platform do you use?
What is your source for this 88% figure? If it is correct, then how do you explain the fact that the dashboard shows 45% of phones connecting to the Market are not even running 2.x yet? 45+88100, after all. On Jul 8, 6:01 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I suppose you're still using that 8086 with the fancy 10 meg hard drive? While the G1 may be a nostalgic look at what Android was (2% of devices), the reality of the situation is that most users have a Droid, Hero, Evo, Incredible, Moment, Magic or Eris (88% of devices). -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: How to access shared preference outside of Activity
Thanks, actually i need to access the shared preference in a class that extends from BroadcastReceiver, how can i call the context then? On Jul 9, 4:21 pm, Mika mika.ristim...@gmail.com wrote: getSharedPreferences is defined in Context. Service is a Context also. On Jul 9, 9:08 am, Jeruliu jeru@gmail.com wrote: Dear all, I need to access the shared preference in a background service instead of activity on phone boot up. But getSharedPreferences function is define in the activity, so how can i access the data without creating the activity? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Socket connection question
The normal Java socket classes (Socket, DatagramSocket, SocketImpl, DatagramSocketImpl, ServerSocket) do force you to choose between TCP (stream) and UDP (datagram). They give you no control over choosing the layers below IP, so you cannot choose between WiFi and cellular. On Jul 8, 5:20 pm, piwaf j...@ahg.net wrote: But you can defenitly open sockets, use the normal java socket classes. But I don't know if you can choose the network type to use. On Jul 8, 11:41 am, Kostya Vasilyev kmans...@gmail.com wrote: Alex, If you mean 3G vs. Wifi - I think the answer is no. I believe Android maintains only one data connection option at a time, although it can be either Wifi, or, in its absence, cellular (HSDPA / 3G / EDGE / GPRS, depending on the phone and the network). -- Kostya 08.07.2010 19:34, JoksanCPEN пишет: I don't think so. I think that the problem here is that carriers doesn't want people using direct port connections over their network. If you find something let me know, Ohh and if you know how to read socket on android let me know also. On Jul 5, 1:48 am, Alex Xinxinxi...@gmail.com wrote: Hi, Are there any methods which I can use to establish a socket connection that only use 3G network? Thank you a lot! Alex -- Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Importing existing projects to Android
Another thing to try (when 'clean' fails) is to edit the whitespace in main.xml, forcing Android to treat it as news. This in turn means 'rebuild R.java'. Usually, this works. I have seen it fail only rarely. Then I copy all my files to a safe place and create the project all over from scratch:( On Jul 8, 12:42 pm, kypriakos demet...@ece.neu.edu wrote: It seems that the gen dir is empty and that no generated java classes are not being generated (no R.java etc.). I am assuming the Clean Project removed them (??). How can they be regenerated? Thanks again On Jul 8, 3:37 pm, kypriakos demet...@ece.neu.edu wrote: Never mind - I needed to manually clean up the build path file as well to match the fact that the lib didn't have those files anymore. So now I can compile the project with no errors either visible (with x next to the dir or any file in the project tree) or in the Error Log that Eclipse provides. However, still the plug in will complain when I try to run it with the same error msg 'The project contains errors ' ... makes no sense. On Jul 8, 3:18 pm, kypriakos demet...@ece.neu.edu wrote: David - thanks very much for the detailed and very informative response. I appreciate it. I looked into the Error Log of the IDE and I did see that certain libraries (external libraries that I needed to reference through my code, such as BouncyCastle etc.) had also a txt file with them that the Android plug in didn't like. By removing them I was able to remove those errors. However, what's interesting now is that after I also did a Clean on the pioject, all of the bin classes I had in the bin directory are not being regenerated. I checked the IDE's configuration and it does has the project to build automatically. I can see the workspace build progress flash at the bottom bar but no classes (even after refreshing the view) generated in the bin. This makes no sense unless those txt files are necessary for using their corresponding libs: (1) if that is the case, where could I include those txt licenses in the case of Android (2) if not then what would cause the classes that about 10 mins were generating output binaries to do it now as we. Thanks aga On Jul 7, 7:03 am, Bagatelle: David Lee Evans dle.ev...@gmail.com wrote: On Jul 7, 1:07 am, Demetris demet...@ece.neu.edu wrote: Hi all, I generated a standard Android under Eclipse (using the plugin) and I imported code from an existing project (J2SE-based). I was able to iron out all the complaints from the Android SDK 2.1 (compile errors). However, the runtime (emulator startup) the IDE displays a message saying that the project contains errors, please fix them before running it. But all that there is there are warnings - is Android unforgiving about Java warnings or is there something else I should be looking into in there - no class has any compile errors. Thanks Without seeing the exact Eclipse error output, I am assuming the following. When you view your project in the package explorer window, your project has an error X icon next to it, but looking at the project tree structure there is no offending error X icon next to any other directory. So I going to suggest a shotgun approach to fix your problem, probably all you have tried. 1)The always first move that I always do is clean the project, sometimes the Eclipse ADT gets a little confuse about the state of the project. 2) Since you imported the project from another source project, check the AndroidManifest.xml file for incompatibility problems makes sure is the attribute tag android:minSdkVersion if defined is appropriate for the project. 3) Then there is the hidden .project file that ant uses to build the project, make sure that file exist because if it does not, it will give you the exact same symptoms that you have describe. It should have been create for you by the Eclipse IDE when you created an Android project. And about Android warnings, my projects have a lot of them ;-) but this has never caused the emulator to start up, so unless you have some special flag set that I have never heard of I don't think that the warnings would abort an emulator launch. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to define some smart layout?
I will have a list view on the top and a button on the bottom in the view. Regardless the height of the list view i would like to fix the button position on the bottom all the time. If the list view is too long then make it scrollable. How to do this? thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: 2.2 SDK refresh
I couldn't figure out why I couldn't see the search widget after updating the SDK and restarting the AVD. Finally I figured out thay I needed to recreate the AVD or at least blow away the userdata-qemu.img file. On Jul 9, 3:39 am, Xavier Ducrohet x...@android.com wrote: Developers, We've just released an updated version of the 2.2 SDK. Besides the updated system image to match FRF91, we've put back the search widget that was missing, and we fixed an issue with the backup manager that prevented it from working on the emulator. More info:http://developer.android.com/sdk/android-2.2.html Xav -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Making Video files Android ready for playback over HTTP
I am working on an Android application which is supposed to play videos over HTTP on Android devices. Before we setup a server to host the video files just wanted a few things clarified: As per the developer documentation, Android supports .mp4 and .3gp container formats for video. The audio-video codec used for our media files is H.263(video) and AAC LC (Audio). I did a little experiment and passed URL of one of the video files to the MediaPlayer class and got the following error: Command PLAYER_INIT completed with an error or info PVMFErrContentInvalidForProgressivePlayback From the docs, I came to know that for progressive playback, the video's index (e.g moov atom) should be at the start of the file. How do we make our videos Android-ready? What are the different considerations that we need to make? Please help. 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] AndroidGroup: Nested Actvities
Hi! I'm trying to create an application with an persistent menu at the bottom for displaying different Activites. Think of it like a custom tabbed layout. I need the applications to be stand alone so using views won't work (unless I've missed something). I've created a main window using a FrameLayout and a Linearlayout to hold menu items. But whenever I start an Activity inside the FrameLayout it takes all the focus and no interaction can be done with the items inside the LinearLayout. Any suggestions on how to accomplish this type of behavior? CODE: http://pastebin.com/nySA8k4A -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Transparent Image button, can be more transparent ?
Hi! I have already found how can I do an ImageButton with Transparent background, but I would like to ask, how can I set the effective of it ? How can I do it more transparent ? My way as I do it: gradient android:startColor=#aaff android:endColor=#aaff ... What should I write in to the color to be more transparent ? Thank you: Karoly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Water ripple effect
Thanks robert green . and all who replied to the post. I acheived the ripple effect by drawing the water background on a 2d mesh and generated ripples by using sine wave function.Ripples are quite realistic and good.once again thank u all :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Remove a row in a Listview
Thanks karteek for your answer but it does not work as my adapter takes a list of Strings. mAdapter.remove(String) should actually work, I have override getCount() as well but still no luck... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Transparent Image button, can be more transparent ?
The first two chars after the '#' symbol are the opacity. So, '00' would be totally transparent, and 'FF' would be 100% opaque. 2010/7/9 Károly Holczhauser holczhau...@gmail.com Hi! I have already found how can I do an ImageButton with Transparent background, but I would like to ask, how can I set the effective of it ? How can I do it more transparent ? My way as I do it: gradient android:startColor=#aaff android:endColor=#aaff ... What should I write in to the color to be more transparent ? Thank you: Karoly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroid http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to define some smart layout?
You can achieve this by using a RelativeLayout: http://groups.google.com/group/android-developers/browse_thread/thread/f88b83d3b453a981/db595fb356a92467 (substitute height / bottom for width / right in the thread above) -- Kostya 09.07.2010 13:35, Jeruliu пишет: I will have a list view on the top and a button on the bottom in the view. Regardless the height of the list view i would like to fix the button position on the bottom all the time. If the list view is too long then make it scrollable. How to do this? thanks. -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to define some smart layout?
I think RelativeLayout should be helpful in this case. For your button, simply put in its xml tags: android:layout_alignParentBottom=true On Fri, Jul 9, 2010 at 11:35 AM, Jeruliu jeru@gmail.com wrote: I will have a list view on the top and a button on the bottom in the view. Regardless the height of the list view i would like to fix the button position on the bottom all the time. If the list view is too long then make it scrollable. How to do this? thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroid http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: options menu problems with SurfaceView and ListView
I found the problem. The Lunar Lander template I was using overrode onWindowFocusChanged which paused the SurfaceView while the background threads getting images kept going. This caused everything to get out of synch. The Lunar Lander is designed to take up the whole screen and mine is not. I commented out the pause and everything works. Still some issues with the ListView, but I think I can handle that. The lesson here is to be sure you understand everything going on in a template before using it. Thanks On Jul 7, 10:27 am, javelin21 dsma...@javelin21.com wrote: In my application, I have extended SurfaceView and ListView. I create a LinearLayout as below mainForm = new LinearLayout(this); mainForm.setOrientation(LinearLayout.VERTICAL); mainForm.setLayoutParams(new LinearLayout.LayoutParams( LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.FILL_PARENT)); I then add the SurfaceView and ListView to the mainForm and then setContentView(mainForm); I also override onPrepareOptionsMenu and call menu.clear() and then dynamically create menus each time the menu button is pressed by the user. The application loads fine and the SurfaceView works fine as I directly draw images to it in a sleep loop. The ListView displays items and is desined to refreshed with new items. The options menu also displays once as well. However, once the SurfaceView is running and the ListView is loaded, a second call to onPrepareOptionsMenu by pressing the menu key disrupts the SurfaceView drawing, causing it to get stuck on the last image it was drawing. But the list view does refresh the adapter to change content once. After that, the application is hung and the SurfaceView keeps playing the same images in a random order. I am using runOnUiThread to update the views in the mainForm (LinearLayout) and the Lunar Landing template for the SurfaceView as shown below In Activity public void ViewsUpdate() { System.out.println(Before ViewsUpdate method); runOnUiThread(new updateDoer()); } public class updateDoer implements Runnable { public updateDoer(){ } public void run() { contentDone2(); viewForm.invalidate(); //viewForm is where the ListView and other views are added } } In SurfaceView private void drawSurfaceView(){ Canvas c = null; try { c = mSurfaceHolder.lockCanvas(null); synchronized (mSurfaceHolder) { if (mMode == STATE_RUNNING) doDraw(c); } } finally { // do this in a finally so that if an exception is thrown // during the above, we don't leave the Surface in an // inconsistent state if (c != null) { mSurfaceHolder.unlockCanvasAndPost(c); } } } I am at a loss as to why everything gets clobbered after the options menu is built and displayed the second time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Socket connection question
Thanks for explanation. Are there possibles if I use NDK to do that? On Fri, Jul 9, 2010 at 5:12 PM, Indicator Veritatis mej1...@yahoo.comwrote: The normal Java socket classes (Socket, DatagramSocket, SocketImpl, DatagramSocketImpl, ServerSocket) do force you to choose between TCP (stream) and UDP (datagram). They give you no control over choosing the layers below IP, so you cannot choose between WiFi and cellular. On Jul 8, 5:20 pm, piwaf j...@ahg.net wrote: But you can defenitly open sockets, use the normal java socket classes. But I don't know if you can choose the network type to use. On Jul 8, 11:41 am, Kostya Vasilyev kmans...@gmail.com wrote: Alex, If you mean 3G vs. Wifi - I think the answer is no. I believe Android maintains only one data connection option at a time, although it can be either Wifi, or, in its absence, cellular (HSDPA / 3G / EDGE / GPRS, depending on the phone and the network). -- Kostya 08.07.2010 19:34, JoksanCPEN пишет: I don't think so. I think that the problem here is that carriers doesn't want people using direct port connections over their network. If you find something let me know, Ohh and if you know how to read socket on android let me know also. On Jul 5, 1:48 am, Alex Xinxinxi...@gmail.com wrote: Hi, Are there any methods which I can use to establish a socket connection that only use 3G network? Thank you a lot! Alex -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: get the name of the package that started a service
Sorry i forgot to mention this earlier but I used to just use .putExtra() on the intent before it was started but i want this process to resart automatically if killed so my code is in the onCreate() method rather that the onStart() and i can therefore no longer access the intent. Please can some one help me out with this. On Jul 8, 7:51 pm, Boozel boozelcl...@gmail.com wrote: I am writing a service that will be compiled into a .jar file for use in other apps. is there any way to get the name of the package that uses or launches the service? thanks for any help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] getting package name in included .jar fil
If i create a service and in it use the method context.getPackageName() or context.getPackageCodePath(). If i then compile that service into a .jar file and someone else includes it in their app will those methods return the original package of the service or that package that they have been included in? Any help would be great, Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Making Video files Android ready for playback over HTTP
MP4Box -hint does the trick: http://www.videohelp.com/tools/mp4box More info here: https://help.ubuntu.com/community/AndroidVideoEncoding On Fri, Jul 9, 2010 at 6:17 AM, Samuh samuh.va...@gmail.com wrote: I am working on an Android application which is supposed to play videos over HTTP on Android devices. Before we setup a server to host the video files just wanted a few things clarified: As per the developer documentation, Android supports .mp4 and .3gp container formats for video. The audio-video codec used for our media files is H.263(video) and AAC LC (Audio). I did a little experiment and passed URL of one of the video files to the MediaPlayer class and got the following error: Command PLAYER_INIT completed with an error or info PVMFErrContentInvalidForProgressivePlayback From the docs, I came to know that for progressive playback, the video's index (e.g moov atom) should be at the start of the file. How do we make our videos Android-ready? What are the different considerations that we need to make? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to access shared preference outside of Activity
On Fri, Jul 9, 2010 at 5:03 AM, Jeruliu jeru@gmail.com wrote: Thanks, actually i need to access the shared preference in a class that extends from BroadcastReceiver, how can i call the context then? PreferenceManager.getDefaultSharedPreferences(), passing in the Context supplied to you in onReceive() of your BroadcastReceiver. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How does the Marketplace app widget use a ViewFlipper? (or a fading view)
On Fri, Jul 9, 2010 at 12:12 AM, James W jpbwebs...@gmail.com wrote: Are you talking about an actual AppWidget that sits on the users home screen? I was not aware there was a widget for the market. I think it is new for 2.2. After seeing this thread, I found it on my N1. It does what looks like an AlphaAnimation to transition between apps it is promoting. Unless it is actually part of the N1's home screen, I have no idea how they're pulling off that effect. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: what hardware platform do you use?
I'm going to skip the personal insults aimed at me (which will make this a short reply). The dictionary.com definition of obsolete says; of a discarded or outmoded type; out of date, which, as the G1 is no longer on sale as an unlocked developer 'phone and has no officially supported firmware which provide any of the last 3 versions of Android, seems to fit pretty well to me. As for prices; I didn't realise T-Mo US were hammering the price up that much. In the UK you can get the new Pulse for around US$150 which is within 30% of what G1s go for on eBay (and is cheaper than some eBayers Buy It Now G1 prices). I guess we're not going to agree, and nothing you've said has swayed me to recommending the G1 as a 'phone for new developers, so I'll guess we'll agree to disagree and let the OP choose which of our personal opinions he finds more useful. Al. On Jul 9, 9:49 am, Indicator Veritatis mej1...@yahoo.com wrote: Only 20 years? I have you beat there. But more importantly, your review of key points is still seriously deficient in logic. Your conclusions still do not follow. Repeating conclusions that do not follow IS a mark of being uneducated, no matter how much experience you have. The G1 is not yet obsolete, nor would the OP be forced to either leave the OP limited to Android 1.6 and below, or [be left] with an experience as painful as the experience they had with the emulator on the Laptop which caused them to look at getting a device in the first place, by choosing the G1 as his hardware platform. Furthermore, you are forgetting one of the OP's considerations: cost. You cannot find a phone originally released with 2.0 or 2.1 for as low a cost as he can find a G1. I don't know how you reached the conclusion a T-Mobile Pulse could be bought for the same price as a G1: I see eBay prices of $273 for the pulse, but I got my G1 on Craigslist for $80. On Jul 8, 10:44 pm, Al Sutton a...@funkyandroid.com wrote: I've only been developing software for 20 years, but if you want to consider me uneducated, then I guess that's your call. To me if you can't buy a device for the purpose you want to use it, the devices firmware hasn't officially been updated for a few revision of the OS it's running, and all the signs indicate it won't be, then it's an obsolete device. Lets review a couple of key points; 1) You can't buy the ADP1 (i.e. the shipped as unlocked G1) through Google any more. All you can buy is the ADP2. Yes, T-Mobile USA are still selling the G1, but carriers will usually sell anything until demand is almost non-existant. 2) There is no *official* support for anything beyond 1.6, and it seems unlikely it ever will see an *official* update (seehttp://androinica.com/2010/06/29/will-the-g1-get-froyo-yes-no-maybe/ for the reasoning). 3) As you've said, even if you do get a 3rd party Android 2.x ROM it is pig slow running it, making developing/testing any 2.x code with it an unpleasant experience (and the OP originally said he wanted a device because debugging on the emulator was too slow and painful). 4) eBay prices for a T-Mobile pulse (an Android 2.1 HVGA device) are about the same if not cheaper than the eBay price for a G1. At no point did I suggest writing apps to block their use on a G1, all I've done is point out that the G1 isn't the best fit for the OPs situation, and in terms of being a phone for developers it's no longer available for purchase as one, and using it for developing will either leave the OP limited to Android 1.6 and below, or with an experience as painful as the experience they had with the emulator on the Laptop which caused them to look at getting a device in the first place. Al. On Jul 9, 12:20 am, Indicator Veritatis mej1...@yahoo.com wrote: Lack of an official 2.1 update makes it 'obsolete'? Not in my book. Nor in the book of any educated software engineer. It takes a LOT more than that to make it 'obsolete', especially when Google ENCOURAGES third parties to release their own ROMs, and Cyanogen has already ported 2.1 to the G1 (http://androidspin.com/2010/04/29/cyanogen-ports- android-2-1-rom-in-g1-and-mytouch-3g/). Of course, it is pig slow when running Cyanogen's 2.1 (compared to new 2.1 phones), and it lacks the hardware features for much of 2.1. But people are running 2.1 on the G1 already, and more want to do it. The G1 is nowhere near the bleeding edge: but it is still a good phone for testing new software against, since yet again, if it runs on the G1, and accommodates small screens correctly, then it will run almsot anywhere. This gets closer than JME ever got to the promise of write once, run anywhere. So don't write-off the G1 yet. You will risk locking your apps out of 1/5 the market if you do. On Jul 8, 5:03 am, Al Sutton a...@funkyandroid.com wrote: It's highly unlikely the G1 will ever see an official update to
[android-developers] Re: what hardware platform do you use?
John has a very popular app which he keeps stats on. Last I hear he was about to break the half million download mark and was clocking up around 5,000 downloads a day. Some of the devices he lists in his 88% figure run versions of Android prior to 2.0 in some countries, but updates to Android 2.x are reported as confirmed in the press (Hero Magic). Al. On Jul 9, 9:53 am, Indicator Veritatis mej1...@yahoo.com wrote: What is your source for this 88% figure? If it is correct, then how do you explain the fact that the dashboard shows 45% of phones connecting to the Market are not even running 2.x yet? 45+88100, after all. On Jul 8, 6:01 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I suppose you're still using that 8086 with the fancy 10 meg hard drive? While the G1 may be a nostalgic look at what Android was (2% of devices), the reality of the situation is that most users have a Droid, Hero, Evo, Incredible, Moment, Magic or Eris (88% of devices). -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] Is there a way to find out if an app is in a folder(on the home screen)?
Hi. What I'd like to do is find out the name of the folder an app placed in. A folder on the home screen that is: http://pocketnow.com/how-to/how-to-speed-up-your-android-organize-your-home-screens-using-folders Is there a way to find out if an app is in a folder(on the home screen)? And if so, what the folder name is? I'm guessing this would not have anything to do with the app's location in the file system. I'm I right? Thanks, Christoffer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] GPS accuracy reliability
This is a general question about GPS accuracy reporting based on feedback from my user community. My app has an issue where many players get bounced all over kingdom come when using GPS to get a signal. I had this issue with my G1 on occasion but not on my Nexus One. I am talking hundreds of miles from their real location. I changed the code to throw out anything that was not at least 500 meters accurate. My question is, if the location placement is hundreds of miles off, how reliable will the accuracy reporting be? Does it realize that it could be hundreds of miles off? I am asking the community because I cannot reproduce the scenario with what I currently have so I can't test if my fix is meaningful. Does GPS know when its readings are that far off? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: GPS accuracy reliability
I have had the same reports from my user community within my GPS application for Android. In my support emails I have been telling them that it is most likely a hardware/OS issue, and a hard reset (battery pull) should fix it. I have had a few users reply back and said that has fixed it. I think this may be a issue with the API that is is providing use the wrong information when we request it. In my eyes I see this as a bug with Android if it provides the wrong information once we request it. Justin On Jul 9, 8:48 am, jgostylo jgost...@gmail.com wrote: This is a general question about GPS accuracy reporting based on feedback from my user community. My app has an issue where many players get bounced all over kingdom come when using GPS to get a signal. I had this issue with my G1 on occasion but not on my Nexus One. I am talking hundreds of miles from their real location. I changed the code to throw out anything that was not at least 500 meters accurate. My question is, if the location placement is hundreds of miles off, how reliable will the accuracy reporting be? Does it realize that it could be hundreds of miles off? I am asking the community because I cannot reproduce the scenario with what I currently have so I can't test if my fix is meaningful. Does GPS know when its readings are that far off? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 hardware platform do you use?
On Fri, Jul 9, 2010 at 8:11 AM, Al Sutton a...@funkyandroid.com wrote: John has a very popular app which he keeps stats on. Last I hear he was about to break the half million download mark and was clocking up around 5,000 downloads a day. Bear in mind, though, that his app will be much more popular in the US (AFAIK, Radar Now only shows radar images for the US). If you click on his usage map, he only shows usage in the US. His stats will not completely line up with those from the Android Market, simply because they are polling different sets of users. That being said, I generally agree with the just say no position regarding the G1 as a test device. I do not recommend that you use devices that have not passed the CTS as your one-and-only test device unless you are specifically writing for that device. That would include: -- devices that never had the Market (e.g., ARCHOS 5 Android tablet) -- devices running modded ROMs that have not demonstrated that the mods pass the CTS (and I have no idea which modders do this analysis, let alone the results) -- rooted devices that were not intended as having user-installable applications (e.g., nook) Using such devices as a personal device is fine, and using one as a device in a larger fleet of test devices is fine. And having such a device because that is your specific target (e.g., apps compatible with the nook's dual-screen setup) is fine. Which device is the best to use will vary by country, based on the availability of new and pre-owned devices, and so it is difficult to say conclusively what is best globally (see the US vs. UK pricing differences cited earlier in this thread). However, even if the G1 is substantially less expensive than a 2.x-capable model, the G1's relevance with official ROMs is fading fast, forcing the developer to then have to buy a *second* device to stay current on CTS-compliant devices. If there are 2.x G1 ROMs that are demonstrably CTS-compliant, then my concerns would tend to fall away. A JIT-enabled 2.2 G1 ROM that was CTS-compliant might truly be the best answer -- lower price plus possibly-acceptable speed. But CTS compliance is pretty damn important, IMHO. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is there a way to find out if an app is in a folder(on the home screen)?
On Fri, Jul 9, 2010 at 8:39 AM, Christoffer Davidsson christof...@chlirre.com wrote: What I'd like to do is find out the name of the folder an app placed in. Bear in mind that there are many, many home screens that ship on devices (AOSP, Nexus One, HTC Sense, MOTOBLUR, Sony Ericsson, LG, Samsung, Vodafone, etc.) and others available as third-party apps (e.g., aHome). Is there a way to find out if an app is in a folder(on the home screen)? You would need to ask the developers of each home screen application. I am not aware of an API to find this out for the open source (AOSP) home screen application. I'm guessing this would not have anything to do with the app's location in the file system. I'm I right? Correct. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Remove a row in a Listview
have you tried to delete the element from the array instead of deleting it from the listview? On Jul 9, 2:12 am, karteek kartee...@gmail.com wrote: use the methode remove with position of the row mAdapter.remove(2); On Jul 9, 2:32 am, Albert albert8...@googlemail.com wrote: Hi all, Does someone know how to remove a row from a Listview? I have an Adapter that takes care of the List and when I try mAdapter.remove(Object) it does not remove the Object I passed but instead the last row on the list. I have tried different ways and it always ends up deleting the last row. Thanks in advance, Alberto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: oh no - lost my keystore
What we do here is we put the keystore on 3 seperate flashdrives! When one goes down we send the intern(slave) to the store yo buy one! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Market reporting wrong app size
On Wed, Jul 7, 2010 at 9:47 PM, Stephen Lebed srle...@gmail.com wrote: It is reported as 3.5mb in the developer console. But in the market it is showing up as 7.02mb. Do you have copy protection on? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Remove a row in a Listview
On Jul 9, 2:23 pm, JoksanCPEN joksan...@gmail.com wrote: have you tried to delete the element from the array instead of deleting it from the listview? Yes and then I call notifyDataSetChanged() and it only deletes the last one. A temporary solution I'm using is when a row is deleted, the item gets deleted from the database and then I just initialise everything again and get all the info from the DB. It would obviously nice not to have to do that... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Making Video files Android ready for playback over HTTP
Mark: Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] writing to sd card issue
On Wed, Jul 7, 2010 at 11:16 PM, guru guru.nav...@gmail.com wrote: Whether I have to mention this permission in application manifest or i have to mention in other places also. What other factors I have to look in to this. Your question, as phrased, makes no sense. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OpenGL texture wrapping flickers. Why?
I was able to solve this... I was calling the texture wrapping code on every draw, right before I bound the texture. Now, I set the texture parameters when the textures are generated, and I don't need to specify wrapping every time I draw a shape... No more flicker, and the code is probably more efficient. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Theme.NoTitleBar.Fullscreen not working when other activities use a custom title?
I found the solution here: http://groups.google.com/group/android-developers/browse_thread/thread/2de77043f32835aa/f2a1357bf1335461 It's basically: Add the following to your activity: getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Onwindowfocuschanged() not ever called
anyone? On Jul 8, 11:50 pm, Michael michael...@gmail.com wrote: Hello, I have a map in one of three tabs, with each tab being a separate activity. The MapsActivity class extends MapActivity, but my overrided Onwindowfocuschanged() is never called (tested using logcat outputs) when the map is panned or zoomed. Is this because it's in a tab? is there any workaround? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] @override
On Thu, Jul 8, 2010 at 5:49 AM, B Woods bradleydeanwo...@gmail.com wrote: What is the purpose of this? What is the purpose of THIS http://lmgtfy.com/?q=%40override+java? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: screen occasionally goes blank on Milestones
This issue is not caused by your app but instead is a Milestone problem and has been reported by many people. On Jul 7, 3:58 pm, Brian bkmetz...@gmail.com wrote: I have an application I am currently working on for a client which is suffering from a particularly hard to debug problem. Every so often, the device screen will go blank, not just while running my application, but entirely. If I press the home button, for instance, it's still blank. This happens fairly rarely ( I myself have only seen it once or twice in a couple of months, and unfortunately couldn't gather log information immediately when it happened. What log info I was able to gather seemed to show that the phone continued to run properly - I was still seeing events in the log file - the screen was just blank ). So far, this has only been observed while running on Motorola Milestones ( this may or may not be coincidence - it's hard to tell given the infrequency of occurance ). Has anyone else observed anything similar? Any suggestions as to possible causes/ways of debugging? Thanks, Brian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 hardware platform do you use?
Mark is correct, my stats are for US only. I should have clarified that when I stated device stats. I believe they are more or less relevant in regard to the G1 vs. all the other devices though, so for the average developer looking for a representative device, something other than the original G1 would be the best bet. Radar Now! is closing on the 600,000 download mark and should hit that in about two or three days, depending on the weather. -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
Re: [android-developers] Re: screen occasionally goes blank on Milestones
Second that. What's weird, is that defective light sensors get confused in _bright_ light. http://kmansoft.wordpress.com/2010/05/16/motorola-milestone-light-sensor-problems/ -- Kostya 09.07.2010 18:32, Alain пишет: This issue is not caused by your app but instead is a Milestone problem and has been reported by many people. On Jul 7, 3:58 pm, Brianbkmetz...@gmail.com wrote: I have an application I am currently working on for a client which is suffering from a particularly hard to debug problem. Every so often, the device screen will go blank, not just while running my application, but entirely. If I press the home button, for instance, it's still blank. This happens fairly rarely ( I myself have only seen it once or twice in a couple of months, and unfortunately couldn't gather log information immediately when it happened. What log info I was able to gather seemed to show that the phone continued to run properly - I was still seeing events in the log file - the screen was just blank ). So far, this has only been observed while running on Motorola Milestones ( this may or may not be coincidence - it's hard to tell given the infrequency of occurance ). Has anyone else observed anything similar? Any suggestions as to possible causes/ways of debugging? Thanks, Brian -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: GPS accuracy reliability
Question: How are you getting your location fix? Are you using ACCURACY_FINE and assuming it will use the GPS? Unless you specifically test for the provider being GPS, it might default to network, which would give you a position with limited accuracy. I've seen this bouncing around effect when the wireless location (network) provider is trying to figure out where the device is, as it zeros in on the location, it can hop all over the map. Bottom line: Don't assume that ACCURACY_FINE will be GPS, unless you have GPS satellites in view and the user has enabled GPS, you'll be using the network location service instead. -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] Calling Activity
Hello , I have a broadcast class that blocks the incoming call. I want to call that broadcast receiver from the activity . Can any one help me fix this. I appreciate your help. 1. Class A extends activity will call Class B that extends BroadcastReceiver, now I want to block calls , only based on certain requirements, which are checked in Class A, if true then call the Class B (or block the call in short) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to define some smart layout?
This simple layout seems to work for me: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical android:gravity=center ListView android:id=@+id/ListView01 android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=1 / Button android:text=@+id/Button01 android:id=@+id/Button01 android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout On Jul 9, 5:35 am, Jeruliu jeru@gmail.com wrote: I will have a list view on the top and a button on the bottom in the view. Regardless the height of the list view i would like to fix the button position on the bottom all the time. If the list view is too long then make it scrollable. How to do this? thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Transparent Image button, can be more transparent ?
Thank you so much!!! On júl. 9, 12:49, YuviDroid yuvidr...@gmail.com wrote: The first two chars after the '#' symbol are the opacity. So, '00' would be totally transparent, and 'FF' would be 100% opaque. 2010/7/9 Károly Holczhauser holczhau...@gmail.com Hi! I have already found how can I do an ImageButton with Transparent background, but I would like to ask, how can I set the effective of it ? How can I do it more transparent ? My way as I do it: gradient android:startColor=#aaff android:endColor=#aaff ... What should I write in to the color to be more transparent ? Thank you: Karoly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroidhttp://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to attach custom map on MapView? Can MapView be used when phone is offline?
I am trying to place my custom map (overlay) over Google map. For example, my MapView will be positioned to look at some building. I want to load custom image(s) that will show building's floor plan. Want to be able to pan and zoom, and place markers (for example, Room 1, Room 2, etc...), in other words, I would like to be able to use Google Map API methods. The best would be if Google map images are not loaded at all, since that will (I believe) slow down user's experience. Also, the user may be inside the building, and connection may be slow or non-existing. Is this possible? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to attach custom map on MapView? Can MapView be used when phone is offline?
On Fri, Jul 9, 2010 at 11:51 AM, bobetko bobe...@gmail.com wrote: I am trying to place my custom map (overlay) over Google map. For example, my MapView will be positioned to look at some building. I want to load custom image(s) that will show building's floor plan. Want to be able to pan and zoom, and place markers (for example, Room 1, Room 2, etc...), in other words, I would like to be able to use Google Map API methods. The best would be if Google map images are not loaded at all, since that will (I believe) slow down user's experience. Also, the user may be inside the building, and connection may be slow or non-existing. Is this possible? It is certainly possible for a qualified programmer (or team) to create an application that shows a building's floor plan, with pan and zoom, place markers, etc. It just won't use MapView, since that is for showing Google Maps. Furthermore, MapView is proprietary, and so you cannot repurpose its code for your own uses. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to attach custom map on MapView? Can MapView be used when phone is offline?
I was hoping to use MapView in my application. It seems I will have to come up with something else. Thanks for quick reply. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to attach custom map on MapView? Can MapView be used when phone is offline?
One nifty way to do this, with a lot less effort than writing a custom map view, is to use Google's v3 map API within a webview. I've done this in the app What Zip Code? (free on the market) with a custom overlay and it works great. For those that already understand how to write html, JavaScript and CSS, this is a valid and fairly easy to accomplish method. You'll still have to use standard Android code to get your position or access any of the sensors, but that's fairly trivial compared to writing a custom mapview, at least in my opinion. -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
Re: [android-developers] getting package name in included .jar fil
That returns the name of the .apk the code is in. On Fri, Jul 9, 2010 at 4:37 AM, Boozel boozelcl...@gmail.com wrote: If i create a service and in it use the method context.getPackageName() or context.getPackageCodePath(). If i then compile that service into a .jar file and someone else includes it in their app will those methods return the original package of the service or that package that they have been included in? Any help would be great, Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problems while working with Android 2.2 Froyo - Need help - Thanks very much!
Does anybody have the similar issues? Are there any guidelines about how to solve compatibility problems while trying to let app works on different Android platforms? My app use Java NIO as core functions, I cannot imagine if I can't use that class anymore.. Thanks a lot... Alex On Mon, Jul 5, 2010 at 4:11 PM, Alex Xin xinxi...@gmail.com wrote: *Hi,* * * *I have a problem while trying to run my app in new Android 2.2 Froyo emulator and real device Nexus One.* *The problem is that when I try to call java.nio.channels.Selector.wakeup() method, it will throw a runtime exception NullPointerException. But this code works very well on all previous releases of Android platform.* * * *Does anybody know why in Froyo this method doesn't work as expected?* * * *thanks very much* * * *Alex* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Camera preview - strange on Samsung Galaxy S (2.1update1)
In my activity I show the camera preview on a surfaceView. It works perfectly fine on Nexus One (2.1update1, 2.2) and HTC Desire (2.1update1), but on Samsung Galaxy S (2.1update1) I see strange lines, weird proportions and everything three times. see the screenshot http://img249.imageshack.us/img249/7466/device1s.png The issue seems to be similar to this one: http://stackoverflow.com/questions/2053440/camera-preview-on-androd-strange-lines-on-1-5-version-of-sdk but none of the comments there helped. I tried to swap height,width for the camera parameters, but not much of a difference. (Side note: my activity is always in landscape mode, fixed. I have that fix in my manifest as screenOrientation parameters, in case that matters somehow). Camera preview parameters as below: == snip == private static final int IMAGE_WIDTH = 512; private static final int IMAGE_HEIGHT = 384; private static final String ORIENTATION = orientation; private static final String ROTATION = rotation; private static final String PORTRAIT = portrait; private static final String LANDSCAPE = landscape; camera = Camera.open(); Parameters p = camera.getParameters(); p.setPictureSize(IMAGE_WIDTH, IMAGE_HEIGHT); p.set(ORIENTATION, PORTRAIT); p.set(ROTATION, 90); Camera.Size s = p.getSupportedPreviewSizes().get(0); p.setPreviewSize( s.width,s.height ); p.setPictureFormat(PixelFormat.JPEG); p.set(flash-mode, auto); camera.setParameters(p); camera.setPreviewDisplay(surfaceHolder); == snap == Full code of my SurfaceHolderCallback (the relevant inner class in my activity) http://pastebin.com/YmcwEVn8 Anybody experiencing such issue on the Samsung Galaxy S as well? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: getting package name in included .jar fil
thanks On Jul 9, 6:19 pm, Dianne Hackborn hack...@android.com wrote: That returns the name of the .apk the code is in. On Fri, Jul 9, 2010 at 4:37 AM, Boozel boozelcl...@gmail.com wrote: If i create a service and in it use the method context.getPackageName() or context.getPackageCodePath(). If i then compile that service into a .jar file and someone else includes it in their app will those methods return the original package of the service or that package that they have been included in? Any help would be great, Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Making Video files Android ready for playback over HTTP
Thank you!! This post is very useful for me!! On Fri, Jul 9, 2010 at 9:43 PM, Samuh samuh.va...@gmail.com wrote: Mark: Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Putting a service into a .jar?
I have created a service that works great, it is launched from an activity at the moment. I'm looking to package it into a .jar file so that other people can add the jar to then their projects and then run the service. Can anyone tell me how i can launch this service from the app that it is included in? Any help would be really appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Putting a service into a .jar?
On Fri, Jul 9, 2010 at 12:52 PM, Boozel boozelcl...@gmail.com wrote: I have created a service that works great, it is launched from an activity at the moment. I'm looking to package it into a .jar file so that other people can add the jar to then their projects and then run the service. Can anyone tell me how i can launch this service from the app that it is included in? The same way they would if the code were in their own app: add an entry for the service in their manifest and call startService() or bindService(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Regarding language support
Hi all! I also interested in the chat, how can I write an application witch is supporting the multi language ? If we are in sweden I have to display in that language else I need to use the English language. I think, I should use the string.xml, but how ? How can I define there two or more language and how can I switch between them ? thank you: Karoly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Regarding language support
Hi! I had found the solution: http://developer.android.com/resources/tutorials/localization/index.html On júl. 9, 19:36, Károly Holczhauser holczhau...@gmail.com wrote: Hi all! I also interested in the chat, how can I write an application witch is supporting the multi language ? If we are in sweden I have to display in that language else I need to use the English language. I think, I should use the string.xml, but how ? How can I define there two or more language and how can I switch between them ? thank you: Karoly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How does the Marketplace app widget use a ViewFlipper? (or a fading view)
Are you talking about an actual AppWidget that sits on the users home screen? I was not aware there was a widget for the market. Yes, it is a part of the Froyo update. It's an actual AppWidgetProvider. I think it is new for 2.2. After seeing this thread, I found it on my N1. It does what looks like an AlphaAnimation to transition between apps it is promoting. Unless it is actually part of the N1's home screen, I have no idea how they're pulling off that effect. I am seeing it on a myTouch with Froyo. So it seems it is a part of the 2.2 release. I will look into the AlphaAnimation. I'm just not sure how it is done with RemoteViews. What I suspect is that it is something new to the 2.2 SDK, which is unfortunate because we can't lock our widget to 2.2 and above. I would still like to hear any other ideas people may have, though! :) -Matt -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Ad Hoc/Netfilter
I am trying to enable ad hoc networking for two android phones (ADP2/ Sapphire), and I seem to have made some progress using some of the information posted on this message board (in particular issue 82), but I still seem to not be having much luck. It appears that people have done quite a bit with ad hoc networking (android-wifi-tether), but you need Netfilter enabled. I have built the source code successfully, but I do not know how to enable Netfilter. Is this the best way to get ad hoc networking? How do I enable it? -Greg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Trace flow of method call on android for implementing for JVMTI
Dear Sirs, We are implementing some of the event callbacks of JVMTI ( http://java.sun.com/j2se/1.5.0/docs/guide/jvmti/ ) in the Dalvik VM. However, we are having trouble in event Method_Entry and Method_Exit. In our current implementation, we can only intercept the Method_Entry event of the some system initialization methods, including java.lang.reflection.Constructor.init(),java.lang.reflect.Method.init(),android.graphics.Button.init()... java.lang.ClassLoader.loadClass() android.os.Binder.execTransact() android.graphics.Canvas.finalize(),android.os.Parcel.finalize(), ... All the methods written in Java applications are missing. Currently, we have inserted fprintf() in the following places: stack.c: dvmCallMethod() stack.c: dvmCallMethodV() stack.c: dvmCallMethodA() stack.c: dvmInvokeMethod() Interp.c: dvmInterpret() Mterp.c: dvmMterpStd() When these places of DVM are executed, we will print a message in our log file. However, only the system initialization functions has triggered our println() code. In other words, it looks like that the execution of application methods does not go through the above places of DVM. We don't know which part of DVM is responsible for method execution of applications. Can anyone give us a clue? Thank you very much! Regards, Spike, National Tsing Hua University, Taiwan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SDK 1.6 installation problem with Install_parse_failed_no_ceritifcates
Hi, All, Our application package can install on devices and emulator with SDK 2.0.1, but fail to install on devices and emulator with SDK 1.6. The error messages is Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES], Does anybody known what cases this problem? thanks, Bruce. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Sending UDP's
Hey guys, working on a project and have run into a problem that we've been working on for a couple of days. We are trying to send a UDP from the Android emulator out to a Robot dog that has a wifi card. When we run the program as a simple java applet, it works perfectly. The way it should work is the robot dog should receive the udp from the emulator, and it will trigger the dog to start sending video feed back to the emulator at about 30 fps. each frame is a jpeg image, so each image is sent in one UDP. When we run the program just as a java applet, the program runs fine and the dog starts sending back UDP packets. However, when we run it in the Emulator, the dog never responds, we assume because it never gets the initial UDP packet. We believe this is a problem with the emulator and may have something to do with the port, but we have been messing with port forwarding and still have had no luck. We have also been using Wireshark to analyze the output of the emulator. thanks for any tips you have. let me know if you need more information -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Importing existing projects to Android
Go to the problem tab and if there are messages that don't go away, right click them and delete them. Ignore the warning about you can't get it back. Then do a Project -- Clean, and try running the project again. I was getting these every time I tried to Run while I was editing an xml file. You have to select the project under the src tab in the Project Manager, or a java source file, then click Run. I tried to reproduce the error I was getting, but couldn't. On Jul 6, 10:07 pm, Demetris demet...@ece.neu.edu wrote: However, the runtime (emulator startup) the IDE displays a message saying that the project contains errors, please fix them before running it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Library Project
Hello Mark, I faced the same problem with attrs.xml in Library Project. Have you finally found the solution? On 23 май, 23:22, Mark Carter mjc1...@googlemail.com wrote: I'm sure that thelibrary.apk file error was because I had added thelibraryprojectto my appprojectbuild path. The other problem, where appprojectclasses could not seelibraryprojectclasses was due to something else. For some strange reason, even when the androidlibrarycompiles by itself (I mean, does not show any errors in eclipse), it can give compiler errors when used as alibraryin anotherproject. In that situation, it does not show up like LibProject in your png file. In my situation, this was caused by a problem with a custom widgets I had defined in mylibrary. The attrs.xml file was being ignored for some reason. Everything worked fine (i.e. the LibProject showed up as in your png file) when I removed those custom widget (I'm not talking about homescreen widgets)attributesfrom the relevant layout xml in thelibraryproject. Sorry all this is a bit vague. I'll try and come up with a clearer scenario but I'm right in the middle of something now. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Unable to Install .apk
The app has an AndroidManifest file which specifies (usually) the lowest level of device your app will run on. If your app is building under 2.2 (sdk 8) and your phone is 2.0 (sdk 7) it will not install. See http://developer.android.com/guide/appendix/api-levels.html On Jul 4, 5:39 am, diptendu diptendu...@gmail.com wrote: Hi All I am very new to this Android.. problem is my game is running in emulator but not in my Sony ericsion X10 Xperia , while installing i got message XYZ_Application could not be installed on this phone Thanks Diptendu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Zephyr HxM BT and HTC Legend Bluetooth issues
Hi, I have bought myself a Zephyr HxM BT device and I am trying to listen to its messages in a simple application. I have paired the Device to my HTC Legend and I can establish a connection but everytime I call the read() or available() method on my InputStream I get a NullPointerException. Has anyone succeed in getting information off this device? I have tried to establish the connection by reflection on the createRfcommSocket method but this throws a MethodNotFound Exception on my device. Any help would be appreciated. Thanks, Dennis below is my Listener class: HXMListener(BluetoothDevice device) { this.device = device; this.open = true; if (device != null){ createSocket(device); } } /** * @param device */ private void createSocket(BluetoothDevice device) { try { socket = device.createRfcommSocketToServiceRecord(HXM_UUID); in = socket.getInputStream(); /** * BluetoothDevice hxm = * BluetoothAdapter.getDefaultAdapter().getRemoteDevice * (00:07:80:97:62:a3); Method m = * hxm.getClass().getMethod(createRfcommSocket, new * Class[]{int.class}); socket = (BluetoothSocket)m.invoke(hxm, * Integer.valueOf(1)); socket.connect(); */ } catch (IOException e) { Log.d(TAG, Unable to open Socket streams for + socket); writeToHXMFile(Unable to open Socket streams for + socket); // tidy up the socket try { if (socket != null) { socket.close(); } } catch (IOException e1) { Log.d(TAG, Unable to close Socket for + socket); } } } private void connectionFailed() { Log.d(TAG, Connection Failed); writeToHXMFile(Connection Failed); } /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ @Override public void run() { boolean connected = false; while (!connected open) { try { socket.connect(); connected = true; } catch (IOException e) { connectionFailed(); Log.d(TAG, Failed, e); // Close the socket try { socket.close(); } catch (IOException e2) { Log.d( TAG, unable to close() + socket during connection failure ,e); } } finally{ createSocket(device); } } byte[] b = new byte[1]; while(open){ writeToHXMFile(Listening...); try { ////FIXME in.available keeps throwing a null pointer //while(open in.available()0){ //Thread.currentThread(); //Thread.sleep(10); Log.d(TAG, Waiting...); //} //now we have the message lets read it to this String s = ; //while(open in.available()0){ s+= in.read(b); //} //now we have read it all Log.d(TAG+_INPUT, s); writeToHXMFile(COMPLETE + s); } catch (IOException e) { Log.d(TAG, IO Exception , e); writeToHXMFile(IO Excep + e); open = false; } } try { in.close(); socket.close(); } catch (IOException e) { in = null; socket = null; } } private void writeToHXMFile(final String string) { runOnUiThread(new Runnable() { @Override public void run() { bluetoothMessageBox.setText(string); Log.d(SOCKET MESSAGE,string); } }); } public void close() { open = false; } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this
[android-developers] Say halo to all members
Hi All, I am a new member in this group. Currently, i am working on the Android framework layer. Now focusing on Bluetooth, Wifi and GPS level. If you guys are interested in this topic, we should discuss further. Thanks Regards Sam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 3D Game Development
You can use OpenGL. Create a GLSurfaceView, and you can draw on it in 3D. See the Cube demo in APIApps sample program. On Jul 6, 8:46 am, Renan Lima renan.lim...@gmail.com wrote: Hey all! I´m new on Android 3D game development. I would like to know if there any engine/ API/ platform about 3D development that I could use. Or any tip which you could give me, like where I could start looking for. Thank you all! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How many Database we can open/access at same time from our application?
I am working on one task where I have to work with multiple sqlite database files which are downloaded from different location and then they are merged together. can any one tell me that how many sqlite database I can access at a same time from my android application as right now my current requirement is to access 8 sqlite database. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Detect phone feature usage
Hello, I am looking for directions on how to detect phone feature usage in an Android application. For example, I want my program to be notified when an app is using camera or microphone. I cannot rely on the app to notify my program via an intent because I want to detect phone feature usage on any given app. Android OS certainly knows about everything an app does but I wonder if there is any hooks to get that knowledge using the SDK. If it is not possible to do this using SDK, I would appreciate information on where in the OS I can add my hook. Thanks, doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How does forceStopPackage work in Android 2.2 (Froyo)?
forceStopPackage is equal to the restartPackage in Android 2.1 but in 2.2 you need android.Manifest.permission.FORCE_STOP_PACKAGES, a system- permission so this method is not available to third party applications On Jun 25, 10:04 pm, Happy C. taiwanhappin...@gmail.com wrote: Thanks Dianne's reply. What is the main difference between killBackgroundProcesses and forceStopPackage? or forceStopPackage is equal to the restartPackage in Android 2.1? Thanks again. On 6月25日, 上午8時26分, Dianne Hackborn hack...@android.com wrote: Yes it is an internal API. On Thu, Jun 24, 2010 at 4:13 PM, Happy C. taiwanhappin...@gmail.com wrote: How does forceStopPackage work in Android 2.2 (Froyo)? Thanks Google released 2.2 source code. In this code-InstalledAppDetails.java It shows how android 2.2 do the force close function. private void forceStopPackage(String pkgName) { ActivityManager am = (ActivityManager)getSystemService( Context.ACTIVITY_SERVICE); am.forceStopPackage(pkgName); checkForceStop(); } However forceStopPackage method is not in ActivityManager class. http://developer.android.com/reference/android/app/ActivityManager.html Is it a interneal API? Many Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs -cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.- 隱藏被引用文字 - - 顯示被引用文字 - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to reverse engineer(create a new project) a project from a stock phone?
How would i go about reverse engineer what i have on my phone into a project in eclipse. To clarify, i want to create project where i have all the source code that was used to set up my stock phone. Thanks. Jad0gar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] calling open method from service
hey all... am new in android developement,am trying to call open(); method for database to open...from on create of service but its showing runtime error.. . Ankit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Emulator WVGA
Hello, I'm having the same problem described here: http://groups.google.com/group/android-developers/browse_thread/thread/32545dd9501ad448/92189979e511a138?lnk=gstq=emulator+wvga#92189979e511a138 That is that I cannot get a WVGA AVD to run with the correct resolution. This is completely independent of an application running in the emulator. I mean, open AVD manager, create a WVGA AVD for 2.2 and start it. The resolution I get is 320x480 but in the big skin. 480x800 worked exactly twice. The first time was when I first created a WVGA AVD. I happened to quit the emulator and when I restarted it, I got the big skin but the resolution is 320x480, not 480x800. I tried several things and couldn't get it back, then I rebooted my mac and started the AVD and it was back to WVGA. Now after coming home for the day, I cannot get a WVGA AVD up and running. I've gone so far as to go from Eclipse 3.6 back to 3.5, delete .android and recreate everything, etc. I've rebooted about 25 times trying different combination's. I've only seen two other threads in here that show the same problem but the only solution so far is, reboot your computer. I was hoping this would work when I got home this evening but it didn't and I've been troubleshooting for a while now. I'm thinking there is some setting being set somewhere that isn't in the eclipse directory or in .android that is keeping it from running at the correct resolution. Here's how I'm creating the AVD: Run android from terminal Click New to create a new AVD Name: WVGA_2.2 Target: 2.2 Skin: Built-in WVGA800 Abstracted LCD Density: 240 Max VM application heap: 24 Create AVD Select new AVD and click Start No Scale, no wipe user data - Launch Big AVD skin starts, after bootup, I see a huge 320x480 screen, it's like everything is zoomed. Any thoughts on what the issue is? Thank you, Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Motorola Droid - QCIF Camera Preview and Capture
i've faced the same issue with the droid's camera. and i think i can add few details. 1. reboot droid and start droid's native camera application preview is ok (every time after reboot) 2. exit the camera app and start modified (for QCIF) sample app preview is bad. 3. exit the sample app and start native camera app again (no reboot) preview is bad. and it stays bad until you reboot the droid. so it seems that all we need is to force camera's reset as it happens during droid startup. does anyone know how to do this? On Jun 23, 6:09 am, Ignas ignas.limanaus...@gmail.com wrote: Hello, I am seeing a very annoying behavior on Motorola Droid when trying to do a simple camera preview at QCIF resolution. And I was wondering if someone experienced something similar. Is there a workaround? Am I doing something wrong? Let me explain the situation. Firstly, right after boot-up, using native camera application there is nothing out of ordinary, I see preview each time and it is all perfectly well for as long as needed as many times as I want. The interesting behavior starts when I use the slightly modified API Demos (full app available in Android SDK, modified file is attached). My goal is to preview (and later capture) video at QCIF (176 x 144) resolution. Using CameraPreview module in API Demos application I can start preview and capture normally only the first time – picture is clear, focused, normal colors, etc. Preview and all is nice. The second time I do preview I see a very over-exposed picture, I need to turn it away from any light source to see anything, otherwise it is all white. And even in the shadow, everything is grainy, as if picture is taken with too sensitive settings (high ISO) with too long exposure. The third time, it is the opposite – the preview and capture is way too dark. I need to point the camera directly into the light source to see even a faintest picture. Pointing out of the window does not help, it has to be straight into the lamp or sun. The effect is like taking pictures with much too low ISO setting – it is way too underexposed. The overexposed and underexposed sessions interchange, but it is not clear-cut which one appears first. So far the prevailing pattern is that overexposed one starts first. Now surprise comes when I try using native camera application. The pattern continues! It is as if hardware or or software (camera process) got tainted with the QCIF. This continues until I reboot the device. Another interesting point is that if I allow device to rest, symptoms are much less pronounced after 10 minutes, then in 15 minutes they become barely visible. However, it all comes back after the first time I capture in QCIF. Nothing like this is visible when resolution is higher, say, CIF, VGA or similar. The problem is that, for my purposes I need it to be QCIF. This does look like a problem in HW, drivers, or somewhere around OS. Any ideas, workarounds, tricks? If it is not too much to ask, can somebody try the code modifications below to try on your device? I am curious which devices are working properly and which are not. Shall we have a vote? === Device Information === Firmware version: 2.1-update-1 Baseband version: C_01.3E.03P Kernel version: 2.6.29-omap1-g7fa8788 android-bu...@apa26 #1 Build number: ESE81 === To reproduce === Open CameraPreview.java from SDK root/samples/android-7/ApiDemos/src/ com/example/android/apis/graphics, and add the following method: @Override protected void onMeasure(int w, int h) { super.onMeasure(w, h); setMeasuredDimension(176, 144); } Also in the surfaceChanged method, add the following line: parameters.setPreviewFrameRate(15); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Instrumentation and Activities not under test?
Hi, I have a question. When an instrumentation is testing an activity, does it kill other activities? Thanks, Chun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] custom attributes in library projects
Hello, Having custom attribute (in attrs.xml) in library project leads to compilation fail of the project dependent of that library. I.e.: MyLib project (library) AndroidManifest.xml: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.mycompany.test.lib android:versionCode=1 android:versionName=1.0 ... /manifest res/layout/main.xml: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android xmlns:my=http://schemas.android.com/apk/res/ com.mycompany.test.lib android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.mycompany.test.lib.MyWidget android:id=@+id/my_widget android:layout_width=fill_parent android:layout_height=fill_parent my:customValue=324/ /LinearLayout res/values/attrs.xml: resources declare-styleable name=MyWidget attr name=customValue format=integer/ /declare-styleable /resources And there are nothing in TestApp except AndroidManifest.xml: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.mycompany.test.app android:versionCode=1 android:versionName=1.0 ... /manifest And aapt says that res/layout/main.xml:13: error: No resource identifier found for attribute 'customValue' in package 'com.mycompany.test.lib' How to avoid this except for no having custom attributes in library? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Does AppWidget(On homescree) Support Touch Event?
Dear all, I'm developing an android widget on homescreen. I want this widget support tap operation,(press and move).and the widget's content will scroll like a scrollview. but romoteviews does not support scrollview. how can i do it? Best regards. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Error while parsing the JSON response.
Hi I am getting the below error while parsing JSON. MY CODE: Overridden method in POJO RootCategories; public String toString(){ return Category ID: + catId + Category Name: + catName + Description: + description + isPP: + isPP + isRootCategory: + isRootCategory + isTerminalCategory: + isTerminalCategory; } Parser in my Activity: private ListRootCategories parse(String jsonString) throws Exception { java.lang.reflect.Type collectionType = new TypeTokenListRootCategories() { }.getType(); ListRootCategories rootCategories = new Gson().fromJson(jsonString, collectionType); return rootCategories; } Please help Thanks Suneel 07-08 19:21:00.016: WARN/ActivityManager(69): Launch timeout has expired, giving up wake lock! 07-08 19:21:00.367: WARN/ActivityManager(69): Activity idle timeout for HistoryRecord{43f8ed70 com.jcp.androidpoc/.CategoryHomeActivity} 07-08 19:21:09.537: DEBUG/dalvikvm(1072): JDWP invocation returning with exceptObj=0x43e270c0 (Ljava/lang/NullPointerException;) 07-08 19:21:15.967: DEBUG/dalvikvm(1072): GC_FOR_MALLOC freed 2799 objects / 181800 bytes in 127ms 07-08 19:21:16.228: WARN/System.err(1072): java.lang.NullPointerException 07-08 19:21:16.247: WARN/System.err(1072): at org.apache.harmony.luni.lang.reflect.ListOfTypes.length(ListOfTypes.java: 47) 07-08 19:21:16.268: WARN/System.err(1072): at org.apache.harmony.luni.lang.reflect.ImplForType.toString(ImplForType.java: 83) 07-08 19:21:16.286: WARN/System.err(1072): at java.lang.StringBuilder.append(StringBuilder.java:203) 07-08 19:21:16.306: WARN/System.err(1072): at com.google.gson.JsonDeserializerExceptionWrapper.deserialize(JsonDeserializerExceptionWrapper.java: 56) 07-08 19:21:16.327: WARN/System.err(1072): at com.google.gson.JsonDeserializationVisitor.visitUsingCustomHandler(JsonDeserializationVisitor.java: 65) 07-08 19:21:16.327: WARN/System.err(1072): at com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:96) 07-08 19:21:16.356: WARN/System.err(1072): at com.google.gson.JsonDeserializationContextDefault.fromJsonObject(JsonDeserializationContextDefault.java: 73) 07-08 19:21:16.398: WARN/System.err(1072): at com.google.gson.JsonDeserializationContextDefault.deserialize(JsonDeserializationContextDefault.java: 49) 07-08 19:21:16.427: WARN/System.err(1072): at com.google.gson.Gson.fromJson(Gson.java:379) 07-08 19:21:16.457: WARN/System.err(1072): at com.google.gson.Gson.fromJson(Gson.java:329) 07-08 19:21:16.487: WARN/System.err(1072): at com.jcp.androidpoc.CategoryHomeActivity.parse(CategoryHomeActivity.java: 137) 07-08 19:21:16.507: WARN/System.err(1072): at com.jcp.androidpoc.CategoryHomeActivity.onCreate(CategoryHomeActivity.java: 76) 07-08 19:21:16.547: WARN/System.err(1072): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) 07-08 19:21:16.597: WARN/System.err(1072): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2627) 07-08 19:21:16.607: WARN/System.err(1072): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) 07-08 19:21:16.648: WARN/System.err(1072): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 07-08 19:21:16.677: WARN/System.err(1072): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 07-08 19:21:16.717: WARN/System.err(1072): at android.os.Handler.dispatchMessage(Handler.java:99) 07-08 19:21:16.756: WARN/System.err(1072): at android.os.Looper.loop(Looper.java:123) 07-08 19:21:16.807: WARN/System.err(1072): at android.app.ActivityThread.main(ActivityThread.java:4627) 07-08 19:21:16.818: WARN/System.err(1072): at java.lang.reflect.Method.invokeNative(Native Method) 07-08 19:21:16.846: WARN/System.err(1072): at java.lang.reflect.Method.invoke(Method.java:521) 07-08 19:21:16.867: WARN/System.err(1072): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 07-08 19:21:16.887: WARN/System.err(1072): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 07-08 19:21:16.887: WARN/System.err(1072): at dalvik.system.NativeStart.main(Native Method) 07-08 19:21:00.016: WARN/ActivityManager(69): Launch timeout has expired, giving up wake lock! 07-08 19:21:00.367: WARN/ActivityManager(69): Activity idle timeout for HistoryRecord{43f8ed70 com.jcp.androidpoc/.CategoryHomeActivity} 07-08 19:21:09.537: DEBUG/dalvikvm(1072): JDWP invocation returning with exceptObj=0x43e270c0 (Ljava/lang/NullPointerException;) 07-08 19:21:15.967: DEBUG/dalvikvm(1072): GC_FOR_MALLOC freed 2799 objects / 181800 bytes in 127ms 07-08 19:21:16.228: WARN/System.err(1072): java.lang.NullPointerException 07-08 19:21:16.247:
Re: [android-developers] Re: Signup for C2DM ?
Hi, all. Me too. no reply yet. anybody received a response? On Tue, May 25, 2010 at 6:38 PM, qvark joseluishuertasfernan...@gmail.com wrote: Eagerly waiting here to start testing... has anybody received a response? On 22 mayo, 01:12, brian br...@bwalsh.com wrote: Filled out the form requesting access. I was wondering if anyone has started to work withC2DM? Has Google responded to your signup request? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Masaaki YONEBAYASHI http://d.hatena.ne.jp/yone098 http://twitter.com/yone098 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ANDROID: How to load the images from a URL in the Grid.
Hi I have been working on a POC, where I have an activity which displays a group of images from my local drawable folder in a Grid view. I have created the ImageAdapter and that has actually an integer array with the image ids and it is working fine. But the actual problem is I have to read the image which resides in a remote server through a URL and display it in the Grid. Please help Thanks Suneel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] GLSurfaceView onPause/onResume
Hi, I have an app wich is is a TabActivity with 3 tabs. Each tab is an activity. The first tab (Activity1) has a FrameLayout which contains a GLSurfaceView. All the GL code is done in my native library (using the ndk)/ I have put logs into the onSurfaceDestroyed (in GLSurfaceView) and the onSurfaceCreated (in the renderer of the GLSurfaceView) methods to know when they are called I launch the app, the first tab (Activity1) is displayed, my GL stuff works fine. I switch to the second tab, Activity1 receives the onPause event, so i call the GLSurfaceView.onPause to pause the glThread. That's works. I 'm in the second tab, i re-switch in the first tab. Activity1 receives the onResume event, so i call the GLSurfaceView.onResume but i see in my logs that onSurfaceCreated is called and i have never seen onSurfaceDestroyed in logs ... If I don't call the GLSurfaceView.onPause/onResume, the switch/re- switch works but onDrawFrame is always called. Of course, i can use a boolean to draw nothing when the activity is paused but the onDrawFrame is always called and official doc recommends to call the GLSurfaceView.onPause/onResume methods. Any ideas about that? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: build android sdk from git on ubuntu 10.04 fail
Same here. No solution. If anyone knows, how to fix it, please respond. On 8 июл, 04:04, Taewoong Kim stw...@gmail.com wrote: I have a same problem. but I could not have solution. 2010/7/4 zyanho zya...@gmail.com i getting start withhttp://source.android.com/source/download.html. i use ubuntu 10.04 ,i install android step by step. i type make at last,i get an error host C: libneo_util = external/clearsilver/util/neo_hash.c host SharedLib: libneo_util (out/host/linux-x86/obj/lib/ libneo_util.so) host C: libneo_cs = external/clearsilver/cs/csparse.c host SharedLib: libneo_cs (out/host/linux-x86/obj/lib/libneo_cs.so) host C: libneo_cgi = external/clearsilver/cgi/cgiwrap.c host C: libneo_cgi = external/clearsilver/cgi/cgi.c host C: libneo_cgi = external/clearsilver/cgi/html.c host C: libneo_cgi = external/clearsilver/cgi/date.c host C: libneo_cgi = external/clearsilver/cgi/rfc2388.c host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so) /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/ 4.4.3/../../../libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/ 4.4.3/../../../libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for - lz /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] error 1 it look like somethings wrong with libz,but zlib1g-dev is install .i try to google it all around web,but i get nothings,could anybody have some idea with 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Build Error
I did $ file /lib/libz.so.1.2.3.3 and it said, that: /lib/libz.so.1.2.3.3: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped So, it seems, everything is ok. But I still get the first error. On Jul 8, 5:15 am, Robert Craig robertpcr...@gmail.com wrote: My first response when looking at your error was that you need to point your libz.so to your 32 bit version. I would try that first and see if that works. Try doing an 'ls -l' on /usr/lib/libz.so and see where that points. My first guess is that you need to create a symlink to the 32bit version, /usr/lib32/libz.so. On Wed, Jul 7, 2010 at 10:06 PM, Taewoong Kim stw...@gmail.com wrote: My dev environment is ubuntu 10.04(32bit) on 64bit cpu(dual). Is this problem? 2010/7/8 Robert Craig robertpcr...@gmail.com it could be a 64 bit versus 32 bit issue. what does your dev environment look like? On Wed, Jul 7, 2010 at 9:03 PM, Taewoong Kim stw...@gmail.com wrote: I have a same problem. but I could not have solution. 2010/7/6 David Rhodus sdrho...@gmail.com Anyone seen this ? I feel like I'm just missing a package or something easy. On Sun, Jul 4, 2010 at 6:24 PM, David Rhodus sdrho...@gmail.com wrote: Any Suggestions ??? apt-get install git-core gnupg sun-java6-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev g++-multilib repo sync r...@myhost:/home/android# make showcommands PLATFORM_VERSION_CODENAME=AOSP PLATFORM_VERSION=AOSP TARGET_PRODUCT=generic TARGET_BUILD_VARIANT=eng TARGET_SIMULATOR= TARGET_BUILD_TYPE=release TARGET_BUILD_APPS= TARGET_ARCH=arm HOST_ARCH=x86 HOST_OS=linux HOST_BUILD_TYPE=release BUILD_ID=OPENMASTER Install: out/host/linux-x86/framework/apicheck.jar out/host/linux-x86/bin/acp -fpt out/host/common/obj/JAVA_LIBRARIES/apicheck_intermediates/javalib.jar out/host/linux-x86/framework/apicheck.jar Install: out/host/linux-x86/framework/clearsilver.jar out/host/linux-x86/bin/acp -fpt out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar out/host/linux-x86/framework/clearsilver.jar Install: out/host/linux-x86/framework/droiddoc.jar out/host/linux-x86/bin/acp -fpt out/host/common/obj/JAVA_LIBRARIES/droiddoc_intermediates/javalib.jar out/host/linux-x86/framework/droiddoc.jar host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so) g++ -Wl,-rpath-link=out/target/product/generic/obj/lib -Wl,-rpath,\$ORIGIN/../lib -shared -Wl,-soname,libneo_cgi.so -m64 -Lout/host/linux-x86/obj/lib out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgiwrap.o out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgi.o out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/html.o out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/date.o out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/rfc2388.o -Wl,--whole-archive -Wl,--no-whole-archive -lneo_util -lneo_cs -o out/host/linux-x86/obj/lib/libneo_cgi.so -lz /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] Error 1 r...@myhost:/home/android# -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs
[android-developers] eclipse HELIOS (3.6) Code Assist very slow
Code Assist very slow any soluation for that? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Flash usage in android 2.2
Hi, I am aware that we can create our own flash files and run it on android. I have tried doing this and it works. But I don't see how we can connect android data such as pictures in sdcard or gallery or contact information, such that it can be used in flash. eg, some cool way of animating images in the gallery.-- using flash I am new to flash so I am not sure how to do this. Is this possible using flash ? If so, can you just point me to a few starters on how this can be done ? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android build error : libz.so, libz.a
You need to rollback the patch in Clearsilver that forces a 64bit build if using java6. now that the HEAD requires java6, it will hork on a 32bit system. http://android.git.kernel.org/?p=platform/external/clearsilver.git;a=commitdiff;h=d36910a8110d8377b22301274d2b5131a732a72b I submitted the request to the mailing list to have the maintainers roll that back now Brian On Jul 7, 12:12 am, brilliant winger stw...@gmail.com wrote: Hi I try build android full source. I have an error. Install: out/host/linux-x86/framework/apicheck.jar Install: out/host/linux-x86/framework/clearsilver.jar Install: out/host/linux-x86/framework/droiddoc.jar host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so) /usr/bin/ld: skippingincompatible/usr/lib/gcc/i486-linux-gnu/ 4.4.3/../../../libz.so when searching for -lz /usr/bin/ld: skippingincompatible/usr/lib/gcc/i486-linux-gnu/ 4.4.3/../../../libz.a when searching for -lz /usr/bin/ld: skippingincompatible/usr/lib/libz.so when searching for -lz /usr/bin/ld: skippingincompatible/usr/lib/libz.a when searching for - lz /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status what solution? help me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Communicate between two tabs
Is it possible when pressing a button on one tab, to talk to the other tab activity (such as a call to a refresh function in the other activity)? When I try to give the tabhost or this (tabactivity class) to all activities then the application crashes at startup. Hopefully you know a good solution for this. Thanks in advanced, Ivo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en