[android-developers] Re: Webview has changed in RC33, problem with touch event and encoding
Just to update anyone interested, then I've posted this as issue 1958 with code that reproduces the problem. I hope someone can answer on this newsgroup since that's usually a lot faster than the issues list! http://code.google.com/p/android/issues/detail?id=1958 Code that breaks on RC33: String xml = html + body + Norwegian chars: æøå + /body + /html; myWebView.loadData(xml, text/html, UTF-8); Output RC33: Norwegian chars: ??? Output before RC33: Norwegian chars: æøå -Christer On Feb 9, 8:06 pm, Chister Nordvik cnord...@gmail.com wrote: The update also broke the polish RSS feed that I've used to display news for soccer (http://ekstraklasa.wp.pl/ver,rss,rss.xml). I would really like to know what happened with the Webview (or XML library) in this release! -Christer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: 3gpp files
Can you elaborate a bit more on how you are playing the file? Did you write your own video player? On Feb 9, 2:57 pm, KC grssmount...@gmail.com wrote: I have a video file in 3gpp format and I can use QuickTime to play it. But when tried with the SDK Windows emulator, I got the error msg: [2009-02-09 14:46:23 - DeviceMonitor]Error reading jdwp list: EOF [2009-02-09 14:46:23 - DeviceMonitor]Connection Failure when starting to monitor device 'emulator-5554' : device (emulator-5554) request rejected: device not found Any ideas?? -KC --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Home Screen source code in SDK 1.0
Thanks! I found it! Now I'm surprised about the non-public classes that are used in the code... android.os.ServiceManager or android.os.SystemProperties I have heard that this classes are not present in the public SDK, but they are implemented in the mobile devices. Is that true? On 6 feb, 17:36, Romain Guy romain...@google.com wrote: Hi, The GIT repository has a branch called release-1.0 which contains the source code of Home as found in SDK 1.0. On Fri, Feb 6, 2009 at 3:48 AM, Jose Cortes jbeerb...@gmail.com wrote: Well, I can download the branch of the project I need (I have done that). The point is, that I need to work with the present SDK, the official, and I need to know how present Home is made. The fires that are on the web (Android source code) are in development, so they are using, probably, the SDK 1.5. Maybe anyone who downloaded the code some time ago, would have a copy of the proyect I need. Anyway, I will keep searching. On 6 feb, 11:14, Marco Schmitz netzprofi.ma...@googlemail.com wrote: you can download the whole 2gb android sources using GIT (there is a windows implementation for that, too) :) greetings, darolla 2009/2/6 Jose Cortes jbeerb...@gmail.com: Hello everybody. I have been looking the home Screen source code (The Launcher code) in the Android project page:http://android.git.kernel.org/ And, in this case, there are some classes that are not implemented in the actual public SDK (1.0), like android.provider.LiveFolders. I supose that is normal, because they are continuing developing and creating new packages and so... The thing is... Does anyone know a place to get the soure code to the actual launcher (home) with the public/official SDK? -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Home Screen source code in SDK 1.0
Thanks! I found it! Now I'm surprised about the non-public classes that are used in the code... android.os.ServiceManager or android.os.SystemProperties I have heard that this classes are not present in the public SDK, but they are implemented in the mobile devices. Is that true? On 6 feb, 17:36, Romain Guy romain...@google.com wrote: Hi, The GIT repository has a branch called release-1.0 which contains the source code of Home as found in SDK 1.0. On Fri, Feb 6, 2009 at 3:48 AM, Jose Cortes jbeerb...@gmail.com wrote: Well, I can download the branch of the project I need (I have done that). The point is, that I need to work with the present SDK, the official, and I need to know how present Home is made. The fires that are on the web (Android source code) are in development, so they are using, probably, the SDK 1.5. Maybe anyone who downloaded the code some time ago, would have a copy of the proyect I need. Anyway, I will keep searching. On 6 feb, 11:14, Marco Schmitz netzprofi.ma...@googlemail.com wrote: you can download the whole 2gb android sources using GIT (there is a windows implementation for that, too) :) greetings, darolla 2009/2/6 Jose Cortes jbeerb...@gmail.com: Hello everybody. I have been looking the home Screen source code (The Launcher code) in the Android project page:http://android.git.kernel.org/ And, in this case, there are some classes that are not implemented in the actual public SDK (1.0), like android.provider.LiveFolders. I supose that is normal, because they are continuing developing and creating new packages and so... The thing is... Does anyone know a place to get the soure code to the actual launcher (home) with the public/official SDK? -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: What's in raw data from PictureCallback of camera?
On the G1, no data is returned - only a null pointer. The original intent was to return an uncompressed RGB565 frame, but this proved to be impractical. On Feb 9, 3:57 pm, Xster xyxyx...@gmail.com wrote: Hi, Our university is intending to use the Android as a platform for mobile image analysis. We're wondering what kind of information is returned in the raw format when android.hardware.Camera.takePicture() is called with a raw Camera.PictureCallback. I can't seem to find more information about it on thehttp://code.google.com/android/reference/android/hardware/Camera.Pict... page. Thanks, Xiao --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Home Screen source code in SDK 1.0
That is correct. You cannot use them to write SDK based applications because these classes are private APIs and may change/disappear in any release. On Tue, Feb 10, 2009 at 12:00 AM, Jose Cortes jbeerb...@gmail.com wrote: Thanks! I found it! Now I'm surprised about the non-public classes that are used in the code... android.os.ServiceManager or android.os.SystemProperties I have heard that this classes are not present in the public SDK, but they are implemented in the mobile devices. Is that true? On 6 feb, 17:36, Romain Guy romain...@google.com wrote: Hi, The GIT repository has a branch called release-1.0 which contains the source code of Home as found in SDK 1.0. On Fri, Feb 6, 2009 at 3:48 AM, Jose Cortes jbeerb...@gmail.com wrote: Well, I can download the branch of the project I need (I have done that). The point is, that I need to work with the present SDK, the official, and I need to know how present Home is made. The fires that are on the web (Android source code) are in development, so they are using, probably, the SDK 1.5. Maybe anyone who downloaded the code some time ago, would have a copy of the proyect I need. Anyway, I will keep searching. On 6 feb, 11:14, Marco Schmitz netzprofi.ma...@googlemail.com wrote: you can download the whole 2gb android sources using GIT (there is a windows implementation for that, too) :) greetings, darolla 2009/2/6 Jose Cortes jbeerb...@gmail.com: Hello everybody. I have been looking the home Screen source code (The Launcher code) in the Android project page:http://android.git.kernel.org/ And, in this case, there are some classes that are not implemented in the actual public SDK (1.0), like android.provider.LiveFolders. I supose that is normal, because they are continuing developing and creating new packages and so... The thing is... Does anyone know a place to get the soure code to the actual launcher (home) with the public/official SDK? -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem with SDK 1.1 - can not see javadoc
Dear all, I have just upgraded the SDK version to 1.1. But after that, I can not see the javadoc of the methods. Example: I can not see the javadoc of onCreate() when I move the mouse over this method. Has anyone got into this trouble? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] ADC II
are there any rumors around concerning the google android challenge ADC II? or will it be canceled due to the financial worldwide crisis or the success of ADC I? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: J2ME Sprite equivalent api
Hi Mike, android.graphics.Bitmap and android.graphics.Canvas does seem to have clip support as they support very low level way to do things. We are exploring the option of using openGL as they have higher level support for animations and image manipulations. In this regard, I am looking to know which the openGL library which works fine in Android. There was a support of opengl api in M5 directly, however in sdk, it looks like we need to use opengl as 3rd party libary, if one needs it. Pl. find api docs of M3 http://lamp.epfl.ch/~linuxsoft/android/android-m3-rc22a/docs/reference/android/graphics/OpenGLContext.html, Regards, Nagendra --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: J2ME Sprite equivalent api
Open GL ES 1.0 is fully supported in Android 1.0. On Tue, Feb 10, 2009 at 1:41 AM, Raja Nagendra Kumar nagendra.r...@gmail.com wrote: Hi Mike, android.graphics.Bitmap and android.graphics.Canvas does seem to have clip support as they support very low level way to do things. We are exploring the option of using openGL as they have higher level support for animations and image manipulations. In this regard, I am looking to know which the openGL library which works fine in Android. There was a support of opengl api in M5 directly, however in sdk, it looks like we need to use opengl as 3rd party libary, if one needs it. Pl. find api docs of M3 http://lamp.epfl.ch/~linuxsoft/android/android-m3-rc22a/docs/reference/android/graphics/OpenGLContext.html, Regards, Nagendra -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ADC II
maybe it's a fake... 2009/2/10 sommeralex alexander.som...@gmail.com are there any rumors around concerning the google android challenge ADC II? or will it be canceled due to the financial worldwide crisis or the success of ADC I? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] object serialization ???
hi, I get nuts on this, who can help? package de.test; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; import java.io.Serializable; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class SerialisiereAndroidActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { Serialisiere pi = new Serialisiere(3, Math.PI, pi); ((TextView) findViewById(R.id.tv1)).setText(Serialisiere:+ pi.toString()); pi.writeIt(pi.ser); } catch( Exception e) { Log.d( SerialisiereAndroidActivity, e.toString() ); } } public class Serialisiere implements Serializable { private static final long serialVersionUID = -3922493985071195239L; private int i; private double d; private String s; public Serialisiere(int i, double d, String s) { this.i = i; this.d = d; this.s = s; } public void writeIt(String filename) throws IOException { FileOutputStream fos = openFileOutput(filename, MODE_WORLD_WRITEABLE); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(Serialisiere.this); oos.close(); fos.close(); } @Override public String toString() { return i= + i + d= + d + s= + s; } } } the problem is: oos.writeObject(Serialisiere.this); this throws an java.io.NotSerializableException. who can help me on this? greetings, darolla --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] ListView - TextFilter
Hi guys, Let's say i have a ListView with the text filter enabled, and an OnItemClickListener, how can i find out which item from my initial list was selected? For example: listView.setOnItemClickListener(new OnItemClickListener(){ public void onItemClick(AdapterView ? parent, View v, int position, long id){ // here the position of an item which in the initial list was the 4th is 0, // because now it is the first one in the list // the question is how do i find out the idx of this item in the initial list? } }); Thanks, Ciprian. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ADC II
:-( On 10 Feb., 10:45, De San Nicolas Jean Philippe jph...@gmail.com wrote: maybe it's a fake... 2009/2/10 sommeralex alexander.som...@gmail.com are there any rumors around concerning the google android challenge ADC II? or will it be canceled due to the financial worldwide crisis or the success of ADC I? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 get the IMEI number of a android device programmatically?
Hi frnds, I want get the IMEI number of a android device programmatically. But I dont know how to get it by writing a program. Can any one please help me to get the IMEI? Thanks, Manoj. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: taking picture from emulator, if pc having webcam
But now that solution is not usefull because the class CameraDevice is depreciated, do you know another solution? thanks. On 20 ene, 19:07, Peli peli0...@googlemail.com wrote: Have a look at this solution:http://www.tomgibara.com/android/camera-source Peliwww.openintents.org On Jan 20, 12:57 pm, jalandar jagtap...@gmail.com wrote: is it possible totakephoto with emulator's camera?, if the pc(on emulator is there) having web cam thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: J2ME Sprite equivalent api
Oh ok..Got it.. we need to use all the OpenGL functionality though GL interfaces only.. Thank you Romain and Mike. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Is the holiday_devphone build an official ADP1 image?
Hello, Yesterday I flashed my phone with the ADP1.1 image. This morning I got two system updates pushed to my phone. This is the message of the second update A system update is available Holiday phone update 2 of 2: This is a full system update. Your data and settings will be preserved Update now Update later Updating took some time. But after rebooting Google Latitude and Voice search is available. About Phone shows: Baseband: 62.33.20.08H_1.22.14.11 Kernel: 2.6.25-01845-g85d4f0d android-bu...@apa27 #27 Build: holiday_devphone-userdebug 1.1 UNLOCKED 130444 test-keys Does this mean that the RC33 is pushed to ADP1 phones? Or has this something to do with the ADP1.1 image which I installed last night? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: G1 device is slow
Rockingteam wrote: applications on my G1 device are very slow when GPS is ON. is there any solution for this. all the applications responds with force close messsage. Remove (or upgrade) third-party applications that use GPS, one at a time, until the problem goes away. If that fails, try powering the phone off and on, to see if some rogue process from one of those third-party applications was still alive and kicking. If that fails, write back, though [android-discuss] might be a better choice of list. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 add the superscript affect to the string?
manoj wrote: Hi frnds, I would like to write m2 (m to the power of 2, 2 should be on top of m in lower case). Can any one please tell me how to do this? Find the superscript-2 character in the font you want to use, and use that character. Many fonts have that one built in. If you are looking for a general purpose superscript routine, though, I'm not aware that Android has one, outside of the one buried in WebKit somewhere. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] g1 accelerometer refresh rate
Hey, I'm interested in an app that gets as much accelerometer data as possible in a fixed amount of time. How frequent can an application access the accelerometer (in the order of magnitude: 10Hz, 1kHz, 1mHz? How often is the accelerometer updated? --Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 get the IMEI number of a android device programmatically?
Use TelephonyManager's getDeviceId(). On Tue, Feb 10, 2009 at 3:48 PM, manoj manojkumar.m...@gmail.com wrote: Hi frnds, I want get the IMEI number of a android device programmatically. But I dont know how to get it by writing a program. Can any one please help me to get the IMEI? Thanks, Manoj. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 add the superscript affect to the string?
Christoph Studer wrote: Actually, styled text supports superscript. A string resource like string name=E_mc2E=mcsupsmall2/small/sup/string Is there a definitive list floating around somewhere of the HTML tags that string resources support? -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] API for changing main menu
Hi there, is it possible, to control the icons shown in the main menu and on the desktop of the device by code? Is there an API for adding and removing icons/applications and for changing the arrangement? Best regards mboehmer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 add the superscript affect to the string?
Not that I know of. One can find some clues here: http://code.google.com/android/reference/android/text/Spannable.html#setSpan(java.lang.Object, int, int, int) http://code.google.com/android/reference/android/text/style/CharacterStyle.html Christoph On Tue, Feb 10, 2009 at 12:28 PM, Mark Murphy mmur...@commonsware.com wrote: Christoph Studer wrote: Actually, styled text supports superscript. A string resource like string name=E_mc2E=mcsupsmall2/small/sup/string Is there a definitive list floating around somewhere of the HTML tags that string resources support? -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 add the superscript affect to the string?
Christoph Studer wrote: Not that I know of. One can find some clues here: http://code.google.com/android/reference/android/text/Spannable.html#setSpan(java.lang.Object, int, int, int) http://code.google.com/android/reference/android/text/style/CharacterStyle.html Sometime when I have spare time (bwahahahahahaha!) I'll have to sit down and try to work up a reasonably-definitive list. Thanks for pointing it out! -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Reg playing youtube video in android
Dave, But will this work on real device, if i try to run m.youtube.com from browser. Thanks and Regards, HarishKumar On Tue, Feb 10, 2009 at 1:28 PM, Dave Sparks davidspa...@android.comwrote: I'm pretty sure this is due to the way the emulator handles UDP packets. There is an outstanding bug about this, but no one has had time to work on it. On Feb 9, 10:59 pm, Harishkumar V harishpres...@gmail.com wrote: Michael, using browser running in the android in emulator mode, i launchedhttp:// m.youtube.com. it opened up a page contaning list of video files. when i click any one of them, it starts to load video, but finally it fails with the message, Sorry, this video cannot be played. using adb logcat, i got the log messages as, I/ActivityManager( 50): Starting activity: Intent { action=android.intent.action.VIEW categories={android.intent.category.BROWSABLE} data=rtsp:// bfug.rtsp-youtube.l.google.com/CkYLENy73wIaPQkcSEPa1Fc6nRMYDSANFEIJbXYtZ29vZ2xlSARSBWluZGV4Wg5DbGlja1RodW1ibmFpbGCqqamFtdjqsQkM/0/0/0/video.3gpcomp={c om.android.music/com.android.music.MovieView}} W/SensorService( 50): could not enable sensor 2 I/MediaPlayer-JNI( 189): prepareAsync: surface=0x1ae340 (id=1) I/ActivityManager( 50): Displayed activity com.android.music/.MovieView: 418 ms D/dalvikvm( 166): GC freed 3935 objects / 290168 bytes in 75ms E/MediaPlayer( 189): Error (-1,0) D/VideoView( 189): Error: -1,0 W/PlayerDriver( 25): PVMFInfoErrorHandlingComplete in the shell, when i do ps command, app_8189 2491620 13156 afe0c824 S com.android.music:MovieView is appearing. how the complete flow works? who is responsible for launching the video stream, is MovieView consists of MediaPlayer and VideoView. is any format changes in m.youtube.com video, any way to clearly see the Error(-1,0) means. Thanks and Regards, HarishKumar.V On Fri, Jan 30, 2009 at 8:15 PM, kolby kolbys...@gmail.com wrote: Here is the sample code to launch the view intent: Uri uri = Uri.parse(url); // check if others handle this url Intent intent = new Intent(Intent.ACTION_VIEW, uri); intent.addCategory(Intent.CATEGORY_BROWSABLE); try { if (startActivityIfNeeded(intent, -1)) { // success } } catch (ActivityNotFoundException ex) { // fail } The rtsp link doesn't seem to be recognized by anything on the emulator. Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Where is a system-image for DP1?
Hi Jean, Could you please give us the estimated release schedule? On Feb 10, 10:04 am, Keiji Ariyama ml_andr...@c-lis.co.jp wrote: Jean, Thank you for your response. I'm looking forward install new system image to my phone. Regards, keiji Jean-Baptiste Queru wrote: We're working on it. JBQ On Mon, Feb 9, 2009 at 4:48 PM, Keiji Ariyama ml_andr...@c-lis.co.jp wrote: Hi folks, I downloaded new Android SDK 1.1 release 1. But I cannot find new system image for Dev Phone 1. I thought that new system-image will be included in new SDK. Where is a system-image for DP1? -- Keiji, ml_andr...@c-lis.co.jp -- Keiji, ml_andr...@c-lis.co.jp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 solve the landscape mode issue?
Well, I assume your chosen layout does not fit well onto the landscape mode, which the app will change into when you open the keyboard. You will need to adapt this by either having a fitting layout for landscape mode or having something like a ScrollView around it. Without knowing anything about your layout it is hard to say what would be the right approach. However, you can also test this with the emulator. Typing 9 on the numeric keypad will toggle screen orientation and you should have an easier way of fixing your problem HTH Ludwig 2009/2/10 manoj manojkumar.m...@gmail.com Hi friends, I have a small application. It has some user inputs (like name, phone number, country, connection type...etc, I used editText for the user to enter). Its working fine on the emulator. When I installed the same app on real device, firstly it shows the whole input screen. But when I tried to give input, (changing into landscape mode) half of the screen is not visibiling. I want to show the whole screen, I dont know how to do? can any one please help me? Thanks, Manoj. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: in-memory live object histogram
Tnx Fadden. Two more issues: 1. hprof only works on emulator (unless i'm missing something). i would much prefer to analize mem usage on the device itself. Is there a tool that does it? 2. when used on the emulator, hprof measure an amazing level of mem usage by rather 'trivial' classes such as Class object and byte[], is there a way for me to learn which 'significant' class is the owner of these classes, e.g.: - your app has 555 byte[] classes, 70% of which are owned by MyClass GiladH On Feb 9, 11:18 pm, fadden fad...@android.com wrote: On Feb 9, 6:00 am,GiladHgila...@gmail.com wrote: Is there a way of querying Android (or G1 or DDMS) for a list of all currently live objects by type and by nymber of instances. That is: - your app currently have 122 objects of type MyClass - your app currently have 201 objects of type MyOtherClass You can generate an hprof dump by using runhat; some information is available in this thread: http://groups.google.com/group/android-developers/browse_thread/threa... The android-specific dump must be converted with hprof-conv; sources are currently available here: http://bigflake.com/HprofConv.c.txt The conversion tool, and a new API for generating dumps, will be included in a future release. Once you have the hprof output, you can process it with a number of tools, including jhat (part of the JDK) and MAT. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ImageView.setColorFilter and/or LightingColorFilter- how to use them?
The int values are colors (see android.graphics.Color), and each of its 4 bytes (one for each alpha, red, green, blue components) range from 0..255, thus you can multiply/add each component with different coefficients. On Mon, Feb 9, 2009 at 5:52 PM, myIP marckas...@gmail.com wrote: It looks like the int values can range from -255 to 255. I was mislead, the docs has a range of values of 0 to 255. On Feb 9, 5:06 pm, myIP marckas...@gmail.com wrote: How would I be able to adjust a channel (R,G or B) using ImageView.setColorFilter by passing an instance of LightingColorFilter in its construct? For an example, when I create an instance of LightingColorFilter, I adjust the two params that are int values between 0-255. With this instance, I then pass it into setColorFilter. The image always ends up anywhere from being black to blue. How can I adjust the Red or Green channel? LightingColorFilter lcf = new LightingColorFilter( mul, add); imageView.setColorFilter(lcf); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 solve the landscape mode issue?
Well there can be some reasons. Problem is you aren't specific enough to get a clue what could be causing it. First off, you can also swap to Landscape Mode in the emulator too, if you press Ctrl+F11 (iirc, don't have eclipse/SDK installed on work) However, there could be a few reasons for this: 1. If you have designed your application for potrait mode, you maybe forgot to add a scroll view. So an application in potrait mode would look fine but when you flip it (i.e. open the keyboard in the G1), it turns into landscape mode. In this case you could simply add a ScrollView element as top element in the XML file i.e. ScrollView android:layout_height=fill_parent android:layout_width=fill_parent LinearLayout android:layout_ !-- Your other Views comes here -- /LinearLayout /ScrollView 2. Maybe you used fixed layout where every view has a fixed position. this can cause some very unflexible layouts. Instead use something more flexible, like Relative or Linear Layout (even Table Layout) On Feb 10, 1:28 pm, manoj manojkumar.m...@gmail.com wrote: Hi friends, I have a small application. It has some user inputs (like name, phone number, country, connection type...etc, I used editText for the user to enter). Its working fine on the emulator. When I installed the same app on real device, firstly it shows the whole input screen. But when I tried to give input, (changing into landscape mode) half of the screen is not visibiling. I want to show the whole screen, I dont know how to do? can any one please help me? Thanks, Manoj. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Where is a system-image for DP1?
At this point I can't give any schedule estimate. JBQ On Tue, Feb 10, 2009 at 4:22 AM, cpedia cpe...@gmail.com wrote: Hi Jean, Could you please give us the estimated release schedule? On Feb 10, 10:04 am, Keiji Ariyama ml_andr...@c-lis.co.jp wrote: Jean, Thank you for your response. I'm looking forward install new system image to my phone. Regards, keiji Jean-Baptiste Queru wrote: We're working on it. JBQ On Mon, Feb 9, 2009 at 4:48 PM, Keiji Ariyama ml_andr...@c-lis.co.jp wrote: Hi folks, I downloaded new Android SDK 1.1 release 1. But I cannot find new system image for Dev Phone 1. I thought that new system-image will be included in new SDK. Where is a system-image for DP1? -- Keiji, ml_andr...@c-lis.co.jp -- Keiji, ml_andr...@c-lis.co.jp -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Replace dialer application by installing another dialer app
Hi Android, We want to disable the default dialer application and install our own dialer application on phone. We want to know how we can disable the default dialer so that it doesn't listen for missed calls, incoming calls and also it doesn't gets launched by other application for making calls instead our application gets launched. Only our dialer application should be listening on it. We want to use same format as existing content URIs supported by default dialer in our own dialer application. Is this possible? If yes then how we can achieve it? We don't want to delete the call log application code or we don't want to remove it from build. We want to have default dialer in device. Our dialer application will be installed later may be by downloading from internet by end user. Regards, Shaddu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is the holiday_devphone build an official ADP1 image?
On Tue, Feb 10, 2009 at 2:33 AM, Johan de Koning ikbennu...@gmail.com wrote: Hello, Yesterday I flashed my phone with the ADP1.1 image. This morning I got two system updates pushed to my phone. This is the message of the second update A system update is available Holiday phone update 2 of 2: This is a full system update. Your data and settings will be preserved Update now Update later Updating took some time. But after rebooting Google Latitude and Voice search is available. About Phone shows: Baseband: 62.33.20.08H_1.22.14.11 Kernel: 2.6.25-01845-g85d4f0d android-bu...@apa27 #27 Build: holiday_devphone-userdebug 1.1 UNLOCKED 130444 test-keys Does this mean that the RC33 is pushed to ADP1 phones? Or has this something to do with the ADP1.1 image which I installed last night? -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is the holiday_devphone build an official ADP1 image?
This is not PLAT-RC33. There is no 1.1 image available for ADP1. JBQ On Tue, Feb 10, 2009 at 2:33 AM, Johan de Koning ikbennu...@gmail.com wrote: Hello, Yesterday I flashed my phone with the ADP1.1 image. This morning I got two system updates pushed to my phone. This is the message of the second update A system update is available Holiday phone update 2 of 2: This is a full system update. Your data and settings will be preserved Update now Update later Updating took some time. But after rebooting Google Latitude and Voice search is available. About Phone shows: Baseband: 62.33.20.08H_1.22.14.11 Kernel: 2.6.25-01845-g85d4f0d android-bu...@apa27 #27 Build: holiday_devphone-userdebug 1.1 UNLOCKED 130444 test-keys Does this mean that the RC33 is pushed to ADP1 phones? Or has this something to do with the ADP1.1 image which I installed last night? -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Service permission and AndroidManifest.xml errors
Hi, I have created two .apk as client and server. My client Acticity wants to invoke the Service of my Server .apk. I used the AIDL and IPC mechanism to communicate betwwen the Client and server. My Client code was compiled fine but during Server compliation it was giving bunch of errors as : 02-10 17:40:22.310: WARN/dalvikvm(246): threadid=3: thread exiting with uncaught exception (group=0x40010e28) 02-10 17:40:22.310: ERROR/AndroidRuntime(246): Uncaught handler: thread main exiting due to uncaught exception 02-10 17:40:22.330: ERROR/AndroidRuntime(246): java.lang.RuntimeException: Unable to start activity ComponentInfo {oem.android.proj2/oem.android.proj2.RemoteServiceBinding}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2140) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2156) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.os.Handler.dispatchMessage(Handler.java:88) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.os.Looper.loop(Looper.java:123) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread.main(ActivityThread.java:3742) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at java.lang.reflect.Method.invokeNative(Native Method) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at java.lang.reflect.Method.invoke(Method.java:515) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at dalvik.system.NativeStart.main(Native Method) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ListActivity.onContentChanged(ListActivity.java:236) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at com.android.internal.policy.impl.PhoneWindow.setContentView (PhoneWindow.java:230) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.Activity.setContentView(Activity.java:1569) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at oem.android.proj2.RemoteServiceBinding.onCreate (RemoteServiceBinding.java:35) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1122) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2103) = My AndroidManifest.xml file are as below: Server Manifest file: service android:name=.RemoteService android:label=@string/app_name android:exported=true android:enabled=true android:permission=oem.android.permission.READ_OWNER_DATA /service activity android:name=DisplayPage/activity Client Manifest file: uses-permission android:name=android.permission.READ_OWNER_DATA/ application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.RemoteServiceBinding android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application Can some plz help me to resolve the errors. To communicate between two normal .apks what permission should be prefered, for time being i am using android.permission.READ_OWNER_DATA, is that ok. -Kumar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is the holiday_devphone build an official ADP1 image?
Okey but where did this update came from? On 10 feb, 14:00, Jean-Baptiste Queru j...@android.com wrote: This is not PLAT-RC33. There is no 1.1 image available for ADP1. JBQ On Tue, Feb 10, 2009 at 2:33 AM, Johan de Koning ikbennu...@gmail.com wrote: Hello, Yesterday I flashed my phone with the ADP1.1 image. This morning I got two system updates pushed to my phone. This is the message of the second update A system update is available Holiday phone update 2 of 2: This is a full system update. Your data and settings will be preserved Update now Update later Updating took some time. But after rebooting Google Latitude and Voice search is available. About Phone shows: Baseband: 62.33.20.08H_1.22.14.11 Kernel: 2.6.25-01845-g85d4f0d android-bu...@apa27 #27 Build: holiday_devphone-userdebug 1.1 UNLOCKED 130444 test-keys Does this mean that the RC33 is pushed to ADP1 phones? Or has this something to do with the ADP1.1 image which I installed last night? -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: object serialization ???
maybe I didnt explain enough :) so what I want to is to serialize an Object in order to deserialize it later on. but its not that easy. I think the way I try to write is ok. but why do i get that exception? its only an in, a double and a string inside that object. greetings, darolla 2009/2/10 DaRolla netzprofi.ma...@googlemail.com: hi, I get nuts on this, who can help? package de.test; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; import java.io.Serializable; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class SerialisiereAndroidActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { Serialisiere pi = new Serialisiere(3, Math.PI, pi); ((TextView) findViewById(R.id.tv1)).setText(Serialisiere: + pi.toString()); pi.writeIt(pi.ser); } catch( Exception e) { Log.d( SerialisiereAndroidActivity, e.toString() ); } } public class Serialisiere implements Serializable { private static final long serialVersionUID = -3922493985071195239L; private int i; private double d; private String s; public Serialisiere(int i, double d, String s) { this.i = i; this.d = d; this.s = s; } public void writeIt(String filename) throws IOException { FileOutputStream fos = openFileOutput(filename, MODE_WORLD_WRITEABLE); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(Serialisiere.this); oos.close(); fos.close(); } @Override public String toString() { return i= + i + d= + d + s= + s; } } } the problem is: oos.writeObject(Serialisiere.this); this throws an java.io.NotSerializableException. who can help me on this? greetings, darolla --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 solve the landscape mode issue?
Hi frnds, I did as you suggested. I used ScrollView, inside that I used LinearLayout, but still the problem persists. can you please help me. Thanks, Manoj. On Feb 10, 5:52 pm, Odessa Silverberg silverberg.ode...@googlemail.com wrote: Well there can be some reasons. Problem is you aren't specific enough to get a clue what could be causing it. First off, you can also swap to Landscape Mode in the emulator too, if you press Ctrl+F11 (iirc, don't have eclipse/SDK installed on work) However, there could be a few reasons for this: 1. If you have designed your application for potrait mode, you maybe forgot to add a scroll view. So an application in potrait mode would look fine but when you flip it (i.e. open the keyboard in the G1), it turns into landscape mode. In this case you could simply add a ScrollView element as top element in the XML file i.e. ScrollView android:layout_height=fill_parent android:layout_width=fill_parent LinearLayout android:layout_ !-- Your other Views comes here -- /LinearLayout /ScrollView 2. Maybe you used fixed layout where every view has a fixed position. this can cause some very unflexible layouts. Instead use something more flexible, like Relative or Linear Layout (even Table Layout) On Feb 10, 1:28 pm, manoj manojkumar.m...@gmail.com wrote: Hi friends, I have a small application. It has some user inputs (like name, phone number, country, connection type...etc, I used editText for the user to enter). Its working fine on the emulator. When I installed the same app on real device, firstly it shows the whole input screen. But when I tried to give input, (changing into landscape mode) half of the screen is not visibiling. I want to show the whole screen, I dont know how to do? can any one please help me? Thanks, Manoj. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Views
try to create a folder layout-land and layout-port next to layout. just place main.xml inside both folders but not inside layout. swapping the layout (numlock+7 inside the emulator) will show you the best fitting xml file. greetings, darolla 2009/2/10 Romain Guy romain...@google.com: 1) Does Google think there will only be one screen size on Android phones? No. The reason I ask is because I haven't been able to find anything on variable layouts in Android? All layouts are variable. I would like to create a layout with 2 webviews, one 80% of screen height and the other 20%. Is this even possible, or do I need to assign the height of each as a static px value? That's what wrap_content, fill_parent, weight and in some measure the dip unit are for. 2) How do I preserve the data in my views when someone switches between landscape and portrait? I doubt it's hard, but I've not been able to find it. Can someone post an example? It's done automatically for all the views with an id. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to solve the landscape mode issue?
I pressed ctrl + F11, the emulator got into landscape mode and It is not allowing me to scroll down. Nothing is happening. On Feb 10, 6:07 pm, manoj manojkumar.m...@gmail.com wrote: Hi frnds, I did as you suggested. I used ScrollView, inside that I used LinearLayout, but still the problem persists. can you please help me. Thanks, Manoj. On Feb 10, 5:52 pm, Odessa Silverberg silverberg.ode...@googlemail.com wrote: Well there can be some reasons. Problem is you aren't specific enough to get a clue what could be causing it. First off, you can also swap to Landscape Mode in the emulator too, if you press Ctrl+F11 (iirc, don't have eclipse/SDK installed on work) However, there could be a few reasons for this: 1. If you have designed your application for potrait mode, you maybe forgot to add a scroll view. So an application in potrait mode would look fine but when you flip it (i.e. open the keyboard in the G1), it turns into landscape mode. In this case you could simply add a ScrollView element as top element in the XML file i.e. ScrollView android:layout_height=fill_parent android:layout_width=fill_parent LinearLayout android:layout_ !-- Your other Views comes here -- /LinearLayout /ScrollView 2. Maybe you used fixed layout where every view has a fixed position. this can cause some very unflexible layouts. Instead use something more flexible, like Relative or Linear Layout (even Table Layout) On Feb 10, 1:28 pm, manoj manojkumar.m...@gmail.com wrote: Hi friends, I have a small application. It has some user inputs (like name, phone number, country, connection type...etc, I used editText for the user to enter). Its working fine on the emulator. When I installed the same app on real device, firstly it shows the whole input screen. But when I tried to give input, (changing into landscape mode) half of the screen is not visibiling. I want to show the whole screen, I dont know how to do? can any one please help me? Thanks, Manoj. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 solve the landscape mode issue?
maybe you can create 2 different xml files for each mode. create a folder layout-land and a folder layout-port under res and place the xml file (same filename) into it. the xml file mustnt be inside layout. this way the best fitting xml file is used :) greetings, darolla 2009/2/10 manoj manojkumar.m...@gmail.com: Hi frnds, I did as you suggested. I used ScrollView, inside that I used LinearLayout, but still the problem persists. can you please help me. Thanks, Manoj. On Feb 10, 5:52 pm, Odessa Silverberg silverberg.ode...@googlemail.com wrote: Well there can be some reasons. Problem is you aren't specific enough to get a clue what could be causing it. First off, you can also swap to Landscape Mode in the emulator too, if you press Ctrl+F11 (iirc, don't have eclipse/SDK installed on work) However, there could be a few reasons for this: 1. If you have designed your application for potrait mode, you maybe forgot to add a scroll view. So an application in potrait mode would look fine but when you flip it (i.e. open the keyboard in the G1), it turns into landscape mode. In this case you could simply add a ScrollView element as top element in the XML file i.e. ScrollView android:layout_height=fill_parent android:layout_width=fill_parent LinearLayout android:layout_ !-- Your other Views comes here -- /LinearLayout /ScrollView 2. Maybe you used fixed layout where every view has a fixed position. this can cause some very unflexible layouts. Instead use something more flexible, like Relative or Linear Layout (even Table Layout) On Feb 10, 1:28 pm, manoj manojkumar.m...@gmail.com wrote: Hi friends, I have a small application. It has some user inputs (like name, phone number, country, connection type...etc, I used editText for the user to enter). Its working fine on the emulator. When I installed the same app on real device, firstly it shows the whole input screen. But when I tried to give input, (changing into landscape mode) half of the screen is not visibiling. I want to show the whole screen, I dont know how to do? can any one please help me? Thanks, Manoj. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is the holiday_devphone build an official ADP1 image?
It came from whoever thinks that you got your phone from them and manages such phones. JBQ On Tue, Feb 10, 2009 at 5:04 AM, Johan de Koning ikbennu...@gmail.com wrote: Okey but where did this update came from? On 10 feb, 14:00, Jean-Baptiste Queru j...@android.com wrote: This is not PLAT-RC33. There is no 1.1 image available for ADP1. JBQ On Tue, Feb 10, 2009 at 2:33 AM, Johan de Koning ikbennu...@gmail.com wrote: Hello, Yesterday I flashed my phone with the ADP1.1 image. This morning I got two system updates pushed to my phone. This is the message of the second update A system update is available Holiday phone update 2 of 2: This is a full system update. Your data and settings will be preserved Update now Update later Updating took some time. But after rebooting Google Latitude and Voice search is available. About Phone shows: Baseband: 62.33.20.08H_1.22.14.11 Kernel: 2.6.25-01845-g85d4f0d android-bu...@apa27 #27 Build: holiday_devphone-userdebug 1.1 UNLOCKED 130444 test-keys Does this mean that the RC33 is pushed to ADP1 phones? Or has this something to do with the ADP1.1 image which I installed last night? -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 invoke a service of one APK in another APK
Hi, My objective: I want to develop two .apks as .apk#1 and .apk#2. My .apk#1 has one serice as serv#1 and .apk#2 has serive as .serv#2. I wanna to invoke the serv#1 of .apk#1 in serv#2 of .apk#2. For time being i have created two .apks and thinking how to commucate between them, i mean how i should proceed to invoke serv# of .apk#1 in my .apk#2. Can someone please help me what all steps i need to follow to achive my objective? If someone can share a sample example if you had that would be really helpful for me. I have lots of questions in my mind mentioned below but not sure whether all my understanding are correct or not as per my objective -- - As per my knowledge both .apk#1 and .apk#2 will run in different process, so i might require the IPC mechanism. - I also need to expose the interface using AIDL. Is it require to generate and compile the AIDL interface for both the .apk#1 and .apk#2. - How i can include the .apk#1 in .apk#2, is it like package .apk#1?? Thanks Regards, Sunil Dianne Hackborn hack...@android.com Sent by: android-developers@googlegroups.com 02/07/2009 01:35 AM Please respond to android-developers@googlegroups.com To android-developers@googlegroups.com cc Subject [android-developers] Re: How to invoke a service of one APK in another APK You have to compile the generated AIDL interfaces into each application, and make sure the service is exported with android:exported=true if it doesn't declare any intent filters. You didn't actually say what exact problem you are hitting, though, so I can't offer much more help than that. On Fri, Feb 6, 2009 at 4:44 AM, Android sunil.mahar...@lntinfotech.com wrote: Hello All I have one query regarding how to use the services of different APK in my APK. Suppose i have created APK1 having services(serv1, serv2) and APK2. I want to invoke the serv1 in APK2. I have tried by using aidl files also. These my question: - How we can access services of different .apk. - How to use the aidl file, is the aidl file should be added in the .apk whose service we want to use. I have gone through the below links, but couldn't find any concret idea of how to impliment. http://code.google.com/android/reference/aidl.html http://minicompact.com/mobiletalk/?tag=android-service http://minicompact.com/mobiletalk/?p=18 http://code.google.com/android/reference/android/os/IBinder.html It would be appreciable If someone answer my question. -Kumar -- 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. All such questions should be posted on public forums, where I and others can see and answer them. __ __ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: KML Support in Maps Application
Ok posting my own answer: Sending an Intent with data URI set as below seems to work fine. Intent mapIntent = new Intent(Intent.ACTION_VIEW, uri); Uri uri1 = Uri.parse(geo:0,0?q=http://code.google.com/apis/kml/ documentation/KML_Samples.kml); mapIntent.setData(uri1); startActivity(Intent.createChooser(mapIntent, Sample Map )); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Views
I tried using fill_parent, but somewhere I still have to specify a percentage screen height instead of a px value, that's what I'm having issues with. Can you post an example of how to do an 80% screen height with a 20% screen height below it? On Feb 9, 11:05 pm, Romain Guy romain...@google.com wrote: 1) Does Google think there will only be one screen size on Android phones? No. The reason I ask is because I haven't been able to find anything on variable layouts in Android? All layouts are variable. I would like to create a layout with 2 webviews, one 80% of screen height and the other 20%. Is this even possible, or do I need to assign the height of each as a static px value? That's what wrap_content, fill_parent, weight and in some measure the dip unit are for. 2) How do I preserve the data in my views when someone switches between landscape and portrait? I doubt it's hard, but I've not been able to find it. Can someone post an example? It's done automatically for all the views with an id. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Service permission and AndroidManifest.xml errors
This seems to be the trigger for your problems: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' you are somehow trying to launch some activity that has has misconfigured UI content. I would put breakpoints into my onCreate() methods to see what is actually getting called. I do not think at this point any IPC has started. In my experience it is a good idea to make sure that a service can be launched inside a process first before trying to launch it remotely. It eliminates a lot of confusion. HTH Ludwig 2009/2/10 Android sunil.mahar...@lntinfotech.com Hi, I have created two .apk as client and server. My client Acticity wants to invoke the Service of my Server .apk. I used the AIDL and IPC mechanism to communicate betwwen the Client and server. My Client code was compiled fine but during Server compliation it was giving bunch of errors as : 02-10 17:40:22.310: WARN/dalvikvm(246): threadid=3: thread exiting with uncaught exception (group=0x40010e28) 02-10 17:40:22.310: ERROR/AndroidRuntime(246): Uncaught handler: thread main exiting due to uncaught exception 02-10 17:40:22.330: ERROR/AndroidRuntime(246): java.lang.RuntimeException: Unable to start activity ComponentInfo {oem.android.proj2/oem.android.proj2.RemoteServiceBinding}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2140) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2156) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.os.Handler.dispatchMessage(Handler.java:88) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.os.Looper.loop(Looper.java:123) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread.main(ActivityThread.java:3742) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at java.lang.reflect.Method.invokeNative(Native Method) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at java.lang.reflect.Method.invoke(Method.java:515) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at dalvik.system.NativeStart.main(Native Method) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ListActivity.onContentChanged(ListActivity.java:236) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at com.android.internal.policy.impl.PhoneWindow.setContentView (PhoneWindow.java:230) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.Activity.setContentView(Activity.java:1569) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at oem.android.proj2.RemoteServiceBinding.onCreate (RemoteServiceBinding.java:35) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1122) 02-10 17:40:22.330: ERROR/AndroidRuntime(246): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2103) = My AndroidManifest.xml file are as below: Server Manifest file: service android:name=.RemoteService android:label=@string/app_name android:exported=true android:enabled=true android:permission=oem.android.permission.READ_OWNER_DATA /service activity android:name=DisplayPage/activity Client Manifest file: uses-permission android:name=android.permission.READ_OWNER_DATA/ application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.RemoteServiceBinding android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application Can some plz help me to resolve the errors. To communicate between two normal .apks what permission should be prefered, for time being i am using android.permission.READ_OWNER_DATA, is that ok. -Kumar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android
[android-developers] Re: Android 1.1_r1 SDK released and developer.android.com launched
I like this suggestion: If you have a retail device running Android, contact your operator for the update schedule. What about if your 'operator' doesn't know anything about an upgrade? eg T-Mobile UK. On Feb 9, 10:31 pm, Justin (Google Employee) j...@google.com wrote: Hey developers, today we released the new, 1.1_r1 SDK. This SDK includes some minor updates that you can read more about on the blog,http://android-developers.blogspot.com/2009/02/android-11-sdk-release... . Also, we've launched the new developer site athttp://developer.android.com which has updated documentation for the 1.1_r1 SDK. Cheers, Justin Android Team @ Google --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is the holiday_devphone build an official ADP1 image?
For everybody reading this post. The update is from https://android.clients.google.com/updates/signed-holiday_devphone-ota-130444-debug.55489994.zip. Looks official to me On 10 feb, 14:23, Jean-Baptiste Queru j...@android.com wrote: It came from whoever thinks that you got your phone from them and manages such phones. JBQ On Tue, Feb 10, 2009 at 5:04 AM, Johan de Koning ikbennu...@gmail.com wrote: Okey but where did this update came from? On 10 feb, 14:00, Jean-Baptiste Queru j...@android.com wrote: This is not PLAT-RC33. There is no 1.1 image available for ADP1. JBQ On Tue, Feb 10, 2009 at 2:33 AM, Johan de Koning ikbennu...@gmail.com wrote: Hello, Yesterday I flashed my phone with the ADP1.1 image. This morning I got two system updates pushed to my phone. This is the message of the second update A system update is available Holiday phone update 2 of 2: This is a full system update. Your data and settings will be preserved Update now Update later Updating took some time. But after rebooting Google Latitude and Voice search is available. About Phone shows: Baseband: 62.33.20.08H_1.22.14.11 Kernel: 2.6.25-01845-g85d4f0d android-bu...@apa27 #27 Build: holiday_devphone-userdebug 1.1 UNLOCKED 130444 test-keys Does this mean that the RC33 is pushed to ADP1 phones? Or has this something to do with the ADP1.1 image which I installed last night? -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is the holiday_devphone build an official ADP1 image?
Despite the crap JBQ is feeding, it is an official (if possibly unreleased) update. https://android.clients.google.com/updates/signed-holiday_devphone-ota-130444-debug.55489994.zip If you wait for JF to wake up, he will probably spin up a new adp1 image with multitouch, etc. Alternately, you can make sure you have the new SPL and just install that as a standard update.zip upgrade and then just change later when JF releases his. I haven't tested, but it is reported to be the rc33 equiv with voice search, etc etc. On Tue, Feb 10, 2009 at 5:33 AM, Johan de Koning ikbennu...@gmail.comwrote: Hello, Yesterday I flashed my phone with the ADP1.1 image. This morning I got two system updates pushed to my phone. This is the message of the second update A system update is available Holiday phone update 2 of 2: This is a full system update. Your data and settings will be preserved Update now Update later Updating took some time. But after rebooting Google Latitude and Voice search is available. About Phone shows: Baseband: 62.33.20.08H_1.22.14.11 Kernel: 2.6.25-01845-g85d4f0d android-bu...@apa27 #27 Build: holiday_devphone-userdebug 1.1 UNLOCKED 130444 test-keys Does this mean that the RC33 is pushed to ADP1 phones? Or has this something to do with the ADP1.1 image which I installed last night? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Problem with SDK 1.1 - can not see javadoc
yeah, I am having the same problem, still haven't found a solution. On Feb 10, 1:26 pm, tranbinh.b...@gmail.com tranbinh.b...@gmail.com wrote: Dear all, I have just upgraded the SDK version to 1.1. But after that, I can not see the javadoc of the methods. Example: I can not see the javadoc of onCreate() when I move the mouse over this method. Has anyone got into this trouble? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Views
2009/2/10 Bobbie bobbie.st...@gmail.com I have a couple different questions: 1) Does Google think there will only be one screen size on Android phones? The reason I ask is because I haven't been able to find anything on variable layouts in Android? I would like to create a layout with 2 webviews, one 80% of screen height and the other 20%. Is this even possible, or do I need to assign the height of each as a static px value? Android caters for different screen sizes already. The Openmoko Freerunner runs Android quite happily on a larger resolution than the G1. If you edit the skins for your emulator (they are just text files) it is quite easy to simulate larger (or smaller) screen sizes for development. Pretty much all layouts are 'variable', apart from the fixed ones: a ListView will have more lines on a larger screen etc. What you are after is the android:layout_weight=x attribute for your view elements. In your case you want, probably inside a LinearLayout, two elements, one with a weight of 4, the other 1. The weights are relative, so the first will get 80% of screen height, the other 20. HTH Ludwig 2) How do I preserve the data in my views when someone switches between landscape and portrait? I doubt it's hard, but I've not been able to find it. Can someone post an example? Thanks everyone! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: is there a way to read the screen text
http://code.google.com/p/eyes-free/ On Feb 10, 7:48 am, redmapleleaf redmaplel...@gmail.com wrote: Hi all, I would like to develop an application to read the screen text for the blind. Do you know if there is any way that I can read the text (word, or line of text) under the cursor at any time. Thank you for your 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] Re: How to solve the landscape mode issue?
Using two different layouts might work for the current default screen resolution. In order to make your app play nice with other screen resolutions, too, you should take the time and make your layout scale well, either by using relative measures or by wrapping it into a ScrollView, as suggested. The outer ScrollView should have android:width=fill_parent and android:height=fill_parent. The inner LinearLayout should have android:width=fill_parent and android:height=wrap_content. Please post excerpts of your layout file so we can see what's wrong. Christoph On Tue, Feb 10, 2009 at 2:13 PM, Marco Schmitz netzprofi.ma...@googlemail.com wrote: maybe you can create 2 different xml files for each mode. create a folder layout-land and a folder layout-port under res and place the xml file (same filename) into it. the xml file mustnt be inside layout. this way the best fitting xml file is used :) greetings, darolla 2009/2/10 manoj manojkumar.m...@gmail.com: Hi frnds, I did as you suggested. I used ScrollView, inside that I used LinearLayout, but still the problem persists. can you please help me. Thanks, Manoj. On Feb 10, 5:52 pm, Odessa Silverberg silverberg.ode...@googlemail.com wrote: Well there can be some reasons. Problem is you aren't specific enough to get a clue what could be causing it. First off, you can also swap to Landscape Mode in the emulator too, if you press Ctrl+F11 (iirc, don't have eclipse/SDK installed on work) However, there could be a few reasons for this: 1. If you have designed your application for potrait mode, you maybe forgot to add a scroll view. So an application in potrait mode would look fine but when you flip it (i.e. open the keyboard in the G1), it turns into landscape mode. In this case you could simply add a ScrollView element as top element in the XML file i.e. ScrollView android:layout_height=fill_parent android:layout_width=fill_parent LinearLayout android:layout_ !-- Your other Views comes here -- /LinearLayout /ScrollView 2. Maybe you used fixed layout where every view has a fixed position. this can cause some very unflexible layouts. Instead use something more flexible, like Relative or Linear Layout (even Table Layout) On Feb 10, 1:28 pm, manoj manojkumar.m...@gmail.com wrote: Hi friends, I have a small application. It has some user inputs (like name, phone number, country, connection type...etc, I used editText for the user to enter). Its working fine on the emulator. When I installed the same app on real device, firstly it shows the whole input screen. But when I tried to give input, (changing into landscape mode) half of the screen is not visibiling. I want to show the whole screen, I dont know how to do? can any one please help me? Thanks, Manoj. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Will the addPreferredActivity method available in the future?
I'm not sure why you are being so upset. I'm just trying to figure out the right way to implement my solution. Per my original post, I agreed with you that a user has the right to decide the preferred activity. I'm just asking if my activity could ask the users their preference. On Feb 9, 5:27 pm, Dianne Hackborn hack...@android.com wrote: You don't get to do that. The user gets to decide which activities they prefer. This is the last time I am answering this question. On Mon, Feb 9, 2009 at 9:35 AM, Sei sei.y...@gmail.com wrote: All, Per this thread, http://groups.google.com/group/android-developers/msg/79752885135cc87b, I know that addPackageToPreferred is going away in the future. Can the Googlers comment on the addPreferredActivity under the android.content.pm.PackageManager package? If both methods are going away, are you plan to replace this feature by the way of broadcasting intent? I have listed my use case below. Maybe you can provide me an alternative way other than using the addPreferredActivity? Use Case 1 1. A user installs and runs the application 2. The activity has detected that this application is running for the first time, and offered the user to use this application as the default activity Thanks in advance, Sei -- 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. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Replace dialer application by installing another dialer app
Your dialer apllication can have same intent as current one and increase the priority of your application comapre existing one. On Tue, Feb 10, 2009 at 6:26 PM, Shadakshari Hiremath shad...@gmail.comwrote: Hi Android, We want to disable the default dialer application and install our own dialer application on phone. We want to know how we can disable the default dialer so that it doesn't listen for missed calls, incoming calls and also it doesn't gets launched by other application for making calls instead our application gets launched. Only our dialer application should be listening on it. We want to use same format as existing content URIs supported by default dialer in our own dialer application. Is this possible? If yes then how we can achieve it? We don't want to delete the call log application code or we don't want to remove it from build. We want to have default dialer in device. Our dialer application will be installed later may be by downloading from internet by end user. Regards, Shaddu -- Best Regards Nagaraj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is the holiday_devphone build an official ADP1 image?
Hi, Is there a link to instructions on how do I use this ZIP to update my ADP1 device ? TIA On Feb 10, 4:36 pm, Disconnect dc.disconn...@gmail.com wrote: Oh, and I just realized (too late, sorry) that we're seriously off topic here - this is better on android-discuss or maybe android-platform. So lets move it over to one of those. On Tue, Feb 10, 2009 at 9:34 AM, Disconnect dc.disconn...@gmail.com wrote: Despite the crap JBQ is feeding, it is an official (if possibly unreleased) update. https://android.clients.google.com/updates/signed-holiday_devphone-ot... If you wait for JF to wake up, he will probably spin up a new adp1 image with multitouch, etc. Alternately, you can make sure you have the new SPL and just install that as a standard update.zip upgrade and then just change later when JF releases his. I haven't tested, but it is reported to be the rc33 equiv with voice search, etc etc. On Tue, Feb 10, 2009 at 5:33 AM, Johan de Koning ikbennu...@gmail.comwrote: Hello, Yesterday I flashed my phone with the ADP1.1 image. This morning I got two system updates pushed to my phone. This is the message of the second update A system update is available Holiday phone update 2 of 2: This is a full system update. Your data and settings will be preserved Update now Update later Updating took some time. But after rebooting Google Latitude and Voice search is available. About Phone shows: Baseband: 62.33.20.08H_1.22.14.11 Kernel: 2.6.25-01845-g85d4f0d android-bu...@apa27 #27 Build: holiday_devphone-userdebug 1.1 UNLOCKED 130444 test-keys Does this mean that the RC33 is pushed to ADP1 phones? Or has this something to do with the ADP1.1 image which I installed last night? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 get the Uri of the contact photos?
Well at the moment I'm trying to set the contact photo in a custom view to the RemoteView of my custom expaneded statur bar. For setting an image to the RemoteView I have two possibilities: contentView.setImageViewUri(...) contentView.setImageViewResource(...) Well now I got the problem that I don't have a static ImageViewResource and the method loadContactPhoto(...) just delivers a Bitmap which I can't set to the RemoteView. Now my question. Is there a possibility to get the Uri to the contact photo of a specific contact? Or how could I reach the above mentioned behaviour? I'm looking forward reading your answers. Thanks for your help. 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] How to lock down device?
Hello, I am developing for an event marketing company that wishes to have event staff use the device with android at events and capture data from people with an app I'm gonna write. What I want to know is if it is possible to lock down the device, e.g. disable the dialer, messaging, not allow them to run programs we dont want them running, etc, because the event staff can't be trusted. The only solution I found so far was to make my own home screen app and set it as default home app and not display the programs/settings in this app and remove shortcut keys. But incoming calls will still bring up the dialer, text messages will still bring up messages program, etc. If you cant disable or lock dialer, messages, etc., is there a 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 -~--~~~~--~~--~--~---
[android-developers] Replacement for android.settings.SYSTEM_UPDATE_SETTINGS ?
Hi, I'm trying to write an Activity to replace system's update activity. In the manifest I have the following entry: activity android:name=.UpdateProcessActivity android:launchMode=singleTask intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter intent-filter action android:name=android.settings.SYSTEM_UPDATE_SETTINGS / category android:name=android.intent.category.DEFAULT / /intent-filter /activity On the emulator, if I go to Settings About Phone System updates, my activity is launched, but on my ADP1, if I follow the very same steps, the default activy appears (the one that shows 'Your system is currently up to date'). Does anyone know why is this happening and how to solve it? Thanks, --- sergi.ve...@gmail.com [In theory, theory and practice are the same. In practice, they are not.] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is there way to keep the phone number as is before it hits the RIL layer?
Anyone there? 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] Detect end of scroll/fling in Gallery
Hello Everyone, Can anyone tell me how to detect the end of scroll/fling in case of Gallery?? The reason I want to know this is that, I want to load the gallery items when it has finished scrolling instead of loading the images while scrolling. There is an OnScrollListener in case of ListView, but i didn't find anything equivalent in case of Gallery. Any insight in this regard will be really helpful. Regards Siva --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Unable to start service Intent
I am repeatedly seeing the following message in the debug console 02-10 16:07:54.186: WARN/ActivityManager(53): Unable to start service Intent { flags=0x4 comp={com.bt.btinnovate.android.photoobserver/ com.bt.btinnovate.android.photoobserver.PhotoUploadService} (has extras) }: not found when trying use the AlarmService to start a local service com.bt.btinnovate.android.photoobserver/ com.bt.btinnovate.android.photoobserver.PhotoUploadService every 30 sconds. Can anyone suggest how to solve this ? Thanks Graeme --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: 3gpp files
Nope. I was using a sample code from a book (I forgot the name). It seems fairly straightforward (below). Of course, I'm newbie, so please bear with me. Thanks. public class VideoDemo extends Activity { private VideoView video; private MediaController ctlr; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); getWindow().setFormat(PixelFormat.TRANSLUCENT); setContentView(R.layout.main); Button show=(Button)findViewById(R.id.show); show.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { ctlr.show(); } }); video=(VideoView)findViewById(R.id.video); video.setVideoPath(D:/Profiles/mgia0013/My Documents/Android/Movies/HomeAlone.3gp); ctlr=new MediaController(this); ctlr.setMediaPlayer(video); video.setMediaController(ctlr); video.requestFocus(); } On Tue, Feb 10, 2009 at 12:00 AM, Dave Sparks davidspa...@android.comwrote: Can you elaborate a bit more on how you are playing the file? Did you write your own video player? On Feb 9, 2:57 pm, KC grssmount...@gmail.com wrote: I have a video file in 3gpp format and I can use QuickTime to play it. But when tried with the SDK Windows emulator, I got the error msg: [2009-02-09 14:46:23 - DeviceMonitor]Error reading jdwp list: EOF [2009-02-09 14:46:23 - DeviceMonitor]Connection Failure when starting to monitor device 'emulator-5554' : device (emulator-5554) request rejected: device not found Any ideas?? -KC --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 get current page content of WebView
hello, It's easy to get current page's url and title of webkit.WebView. But I could not find way to get page content of WebView. Anybody could help me with this problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Question about writing a custom button
Hi, I am writing a custom button. In the android button, I can customize my button like this: Button android:id=@+id/subtract_button android:text=- / And in the Button.java source code, it gets the value like that: In TextView.java: case com.android.internal.R.styleable.TextView_text: text = a.getText(attr); break; My question is if I need to add a new value in the customization for my button. MyButton android:id=@+id/subtract_button android:text=- android:myattribute=myvalue / How can I get 'myattribute' in my class for my custom button? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: 3gpp files
The emulator emulates the device, it can't access your file system. Add an sdcard and upload your video on it, then play it from there. On Tue, Feb 10, 2009 at 6:55 PM, K. Chen grssmount...@gmail.com wrote: Nope. I was using a sample code from a book (I forgot the name). It seems fairly straightforward (below). Of course, I'm newbie, so please bear with me. Thanks. public class VideoDemo extends Activity { private VideoView video; private MediaController ctlr; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); getWindow().setFormat(PixelFormat.TRANSLUCENT); setContentView(R.layout.main); Button show=(Button)findViewById(R.id.show); show.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { ctlr.show(); } }); video=(VideoView)findViewById(R.id.video); video.setVideoPath(D:/Profiles/mgia0013/My Documents/Android/Movies/HomeAlone.3gp); ctlr=new MediaController(this); ctlr.setMediaPlayer(video); video.setMediaController(ctlr); video.requestFocus(); } On Tue, Feb 10, 2009 at 12:00 AM, Dave Sparks davidspa...@android.com wrote: Can you elaborate a bit more on how you are playing the file? Did you write your own video player? On Feb 9, 2:57 pm, KC grssmount...@gmail.com wrote: I have a video file in 3gpp format and I can use QuickTime to play it. But when tried with the SDK Windows emulator, I got the error msg: [2009-02-09 14:46:23 - DeviceMonitor]Error reading jdwp list: EOF [2009-02-09 14:46:23 - DeviceMonitor]Connection Failure when starting to monitor device 'emulator-5554' : device (emulator-5554) request rejected: device not found Any ideas?? -KC --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: 3gpp files
The problem is that your video path is on your host machine. You have to remember that the emulator is actually emulating an ARM processor run its own Linux kernel. The file system is not your host computer, but a virtual file system within the Linux kernel emulation. Use mksdcard to create an SD card virtual file system (there are options to specify the size): mksdcard sdcard.img Start the emulator and tell it to use your SD card image: emulator -sdcard sdcard.img Copy the file from your host computer to the virtual SD card image: adb push D:/Profiles/mgia0013/MyDocuments/Android/Movies/HomeAlone. 3gp /sdcard Now change the path in your setVideoPath: video.setVideoPath(/sdcard/HomeAlone.3gp); On Feb 10, 8:55 am, K. Chen grssmount...@gmail.com wrote: Nope. I was using a sample code from a book (I forgot the name). It seems fairly straightforward (below). Of course, I'm newbie, so please bear with me. Thanks. public class VideoDemo extends Activity { private VideoView video; private MediaController ctlr; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); getWindow().setFormat(PixelFormat.TRANSLUCENT); setContentView(R.layout.main); Button show=(Button)findViewById(R.id.show); show.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { ctlr.show(); } }); video=(VideoView)findViewById(R.id.video); video.setVideoPath(D:/Profiles/mgia0013/My Documents/Android/Movies/HomeAlone.3gp); ctlr=new MediaController(this); ctlr.setMediaPlayer(video); video.setMediaController(ctlr); video.requestFocus(); } On Tue, Feb 10, 2009 at 12:00 AM, Dave Sparks davidspa...@android.comwrote: Can you elaborate a bit more on how you are playing the file? Did you write your own video player? On Feb 9, 2:57 pm, KC grssmount...@gmail.com wrote: I have a video file in 3gpp format and I can use QuickTime to play it. But when tried with the SDK Windows emulator, I got the error msg: [2009-02-09 14:46:23 - DeviceMonitor]Error reading jdwp list: EOF [2009-02-09 14:46:23 - DeviceMonitor]Connection Failure when starting to monitor device 'emulator-5554' : device (emulator-5554) request rejected: device not found Any ideas?? -KC --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Question about writing a custom button
On 10 Lut, 16:34, ying lcs ying...@gmail.com wrote: Hi, I am writing a custom button. In the android button, I can customize my button like this: Button android:id=@+id/subtract_button android:text=- / And in the Button.java source code, it gets the value like that: In TextView.java: case com.android.internal.R.styleable.TextView_text: text = a.getText(attr); break; My question is if I need to add a new value in the customization for my button. MyButton android:id=@+id/subtract_button android:text=- android:myattribute=myvalue / How can I get 'myattribute' in my class for my custom button? Thank you. you should create your styleable attribute by defining declare- styleable in attrs.xml (see android's attrs.xml for more info) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Parse an XML
Hi, I am trying to make a simple application to parse the XML using SAXParser but it is not finding the xml file which I have added in the project. How and where should I add the XML file? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Platform Profiling
Hi Everyone I have successfully brought up a OMAP24240 target running Android with YAFFS2 and UBIFS file systems. I am now trying to identify the performance overheads associated at every level like the application, file system, DVM, File Translation Layer, Linux IO scheduler etc. I am primarily interested in measuring the flash memory read/write performance. Is there any standard application available already for the Android platform for profiling such a scenario? Thanks in advance Rajib --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Browser Plugin for Android
Hello All, My goal is to run a custom plugin on the android web browser. I have found a hello world plugin, and successfully compiled with webkit. now i have the plugin as a .so file. what should be the next steps :- 1. where do i copy this plugin so that browser can load it? 2. How do i check if its loaded. in Firefox we can do about:plugins to list plugins. anything similar available in android browser? Raj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: some question about Pictures
Picture can show images such as jpegbmpgifpng. 2009/2/10 birdy birdy.f...@gmail.com Hi all: I have some questions about AP-Pictures. 1.Android support jpg, png and gif file formate. Can Pictures show *.gif file? I put some gif file in /sdcard, but those files do not in the list. 2.Pictures will auto list still images(jpg , png) in /sdcard, can it show still image from internet? if yes, how? thanks!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~--- inline: pic.png
[android-developers] BlueTooth API in 1.1?
Could anyone tell me if there is Bluetooth API in SDK 1.1? Is bluetooth chatting already been implemented on the G Phone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: object serialization ???
Hi, I've tried several ways but the only way I succeeded to serialize something is to serialize each member of class Serialisiere: public void writeIt(String filename) throws IOException { FileOutputStream fos = openFileOutput(filename, MODE_WORLD_WRITEABLE); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeInt(this.i); oos.writeDouble(this.d); oos.writeChars(this.s); oos.close(); fos.close(); } I'm not sure if this answers your question. Best Regards: Chechy On Feb 10, 11:55 am, DaRolla netzprofi.ma...@googlemail.com wrote: hi, I get nuts on this, who can help? package de.test; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; import java.io.Serializable; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class SerialisiereAndroidActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { Serialisiere pi = new Serialisiere(3, Math.PI, pi); ((TextView) findViewById(R.id.tv1)).setText(Serialisiere: + pi.toString()); pi.writeIt(pi.ser); } catch( Exception e) { Log.d( SerialisiereAndroidActivity, e.toString() ); } } public class Serialisiere implements Serializable { private static final long serialVersionUID = -3922493985071195239L; private int i; private double d; private String s; public Serialisiere(int i, double d, String s) { this.i = i; this.d = d; this.s = s; } public void writeIt(String filename) throws IOException { FileOutputStream fos = openFileOutput(filename, MODE_WORLD_WRITEABLE); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(Serialisiere.this); oos.close(); fos.close(); } @Override public String toString() { return i= + i + d= + d + s= + s; } } } the problem is: oos.writeObject(Serialisiere.this); this throws an java.io.NotSerializableException. who can help me on this? greetings, darolla --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Will there be a Dev 2 phone?
If there's going to be a G2 phone released, ca nwe expect to see a Dev 2? I'm ordering my Dev 1 tomorrow, but if there's been any ruor of a Dev2 I think I'd rather wait. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Detecting Ad Hoc Wifi access points
What you need to do is look at the capabilities of the ScanResult that you have. The following code will tell you if the signal is AdHoc or not. scanResult.capabilities.contains([IBSS]); if it returns true, its AdHoc, false and its not. Hope that helps, - Drew On Feb 9, 5:57 pm, Susahosh Rahman susah...@gmail.com wrote: Hi, I am developing an application on the android platform. The app performs continues WiFi scan and sends information about the list of visible access points to server. However, I need to remove all the Ad Hoc points. The android.net.wifi.ScanResult api does not seem to have any information on mode of the network. Is there anyway I can distinguish a given point is Ad Hoc or Master? Thank you, Susahosh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 1.1_r1 SDK released and developer.android.com launched
Sorry if this is a newbie question, but how do I update the firmware in my Android Developer G1 phone to version 1.1? FWIW - I've got an Android Developer G1 phone and use ATT. I assume if you are on T-Mobile the update is pushed out. On Feb 9, 4:31 pm, Justin (Google Employee) j...@google.com wrote: Hey developers, today we released the new, 1.1_r1 SDK. This SDK includes some minor updates that you can read more about on the blog,http://android-developers.blogspot.com/2009/02/android-11-sdk-release... . Also, we've launched the new developer site athttp://developer.android.com which has updated documentation for the 1.1_r1 SDK. Cheers, Justin Android Team @ Google --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Secure Connection - IS anybody working on any kind of VPN APP!?!
Hi there, just wanted to ask if anybody is working on an app for connecting via vpn or pptp!? As far as i can see, that will be hard to have as e.g.: Openvpn needs root for bridging etc... I was waondering i somebody had any ideas ?! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] changing voice attributes with android
hello, I want to create an application that can change one's voice during a call in real time is there a way to do that in android? can you point me to the right package? thanx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Launching Activity from Overlay onTap
I am wondering if I am going about this problem the correct way. I am making an app that places overlays on top of google maps. When you click on the overlay it should launch a dialog type window that will give you options on what to do with that overlay. Currently the method I am trying to use is to Override onTap(): Intent myIntent = new Intent(context, MyActivity.class); myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(myIntent); The context is the MapActivity that contains the MapView. It is passed to the Overlay with the constructor. It is the line startActivity where the app throws an exception (ActivityNotFoundException). I did the setFlags because an error message said it was needed because I was trying to start the Activity while outside an Activity. That makes me think I am going about this wrong. I have 'MyActivity' listed in my manifest so I don't think that is the issue. I have searched for this problem on the internet and I can't seem to find anyone else running into this so that is another reason I think I may be trying to do this the wrong way. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: object serialization ???
Hi, I've tried several ways to get it work but the only way I found is to serialize all members of the class: public void writeIt(String filename) throws IOException { FileOutputStream fos = openFileOutput(filename, MODE_WORLD_WRITEABLE); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeInt(this.i); oos.writeDouble(this.d); oos.writeChars(this.s); oos.close(); fos.close(); } I know that this is not the way but ... Best Regards: Chechy On Feb 10, 11:55 am, DaRolla netzprofi.ma...@googlemail.com wrote: hi, I get nuts on this, who can help? package de.test; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; import java.io.Serializable; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class SerialisiereAndroidActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { Serialisiere pi = new Serialisiere(3, Math.PI, pi); ((TextView) findViewById(R.id.tv1)).setText(Serialisiere: + pi.toString()); pi.writeIt(pi.ser); } catch( Exception e) { Log.d( SerialisiereAndroidActivity, e.toString() ); } } public class Serialisiere implements Serializable { private static final long serialVersionUID = -3922493985071195239L; private int i; private double d; private String s; public Serialisiere(int i, double d, String s) { this.i = i; this.d = d; this.s = s; } public void writeIt(String filename) throws IOException { FileOutputStream fos = openFileOutput(filename, MODE_WORLD_WRITEABLE); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(Serialisiere.this); oos.close(); fos.close(); } @Override public String toString() { return i= + i + d= + d + s= + s; } } } the problem is: oos.writeObject(Serialisiere.this); this throws an java.io.NotSerializableException. who can help me on this? greetings, darolla --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 do you install updated Android OS images (ver. 1.1) to G1 developer phones?
This may be a 'newbie' level question, but here is my situation: 1) I have an Android G1 developer phone (unlocked) 2) I use it on ATT, WITHOUT a data plan (I use a goPhone SIM, activated and setup the phone, then removed the APN) 3) I'd like to be able to install new versions of the firmware, for example 1.1. I don't have any reason to alter the firmware, I just want to be able to develop and test. And yes, I realize if I am a T-Mobile customer my phone would have the update pushed to it automatically. Thanks in advance, -Jim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to update Android Dev 1
Hi, * where can I find official firmware for my android dev 1? * what is the official way to update the firmware? * does such a firmware update have negative side effects? which one? So far I found only unofficial images for t-mobile g1, and update methods using some root hack, neither is what I want. I'm fine if flashing the firmware resets all settings and deletes all applications I installed, but knowing what it will do exactly would be very helpfull. I hope that firmware updates will always keep the phone unlocked? (I'm not using t-mobile and don't want to be forced into that...) Thanks for your help! Regards, Andreas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] starting Activity in Overlay onTap (dup post?)
I apologize if this is a duplicate post. I tried posting this over an hour ago and there is no indicator that it posted. I am attempting to launch a dialog type window when I click an Overlay that has been placed on google maps. I thought the way I would do this was Override the onTap() method, create an intent, and call startActivity on that intent as follows: Intent myIntent = new Intent(context, MyActivity.class); myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(myIntent); It looks like the program throws an ActivityNotFoundException when executing that last line. The exception reads that if you try to start an Activity while you are not in an Activity you need to set the FLAG_ACTIVITY_NEW_TASK flag which is why that line is there. I have included MyActivity in my manifest. 'context' is passed to my class constructor that extends Overlay and is the MapActivity that I am using to display the map. Considering how I have not been able to find anyone on the internet with this problem, I am beginning to think I am going at this all wrong. If anyone knows of a good description of how what I am trying to do is supposed to work or a tutorial doing what I am trying to do, please post 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] Android Emulator
I want to use Android Emulator in my website. The idea is that I will deploy my application in that emulator and so the users can check that application before downloading it. Is there a way we can install or use emulator on a web server? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] starting Activity in Overlay onTap (dup post?)
I apologize if this is a duplicate post. I tried posting this over an hour ago and there is no indicator that it posted. I am attempting to launch a dialog type window when I click an Overlay that has been placed on google maps. I thought the way I would do this was Override the onTap() method, create an intent, and call startActivity on that intent as follows: Intent myIntent = new Intent(context, MyActivity.class); myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(myIntent); It looks like the program throws an ActivityNotFoundException when executing that last line. The exception reads that if you try to start an Activity while you are not in an Activity you need to set the FLAG_ACTIVITY_NEW_TASK flag which is why that line is there. I have included MyActivity in my manifest. 'context' is passed to my class constructor that extends Overlay and is the MapActivity that I am using to display the map. Considering how I have not been able to find anyone on the internet with this problem, I am beginning to think I am going at this all wrong. If anyone knows of a good description of how what I am trying to do is supposed to work or a tutorial doing what I am trying to do, please post 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: Question about writing a custom button
Thank you. But in my custom button, how can I get the attribute defined in android? For example, if MyButton inherits from Button, how can I get 'TextAppearance_textColor in my MyButton class? This is how the android's Button class get the TextAppearance_textColor case com.android.internal.R.styleable.TextAppearance_textColor: textColor = appearance.getColorStateList(attr); break; But I can't do the same in MyButton since the 'com.android.internal.R.styleable.TextAppearance_textColor' is not accessible. So can you please tell me how can I get the textColor in MyButton? Thank you. On Tue, Feb 10, 2009 at 10:05 AM, skink psk...@gmail.com wrote: On 10 Lut, 16:34, ying lcs ying...@gmail.com wrote: Hi, I am writing a custom button. In the android button, I can customize my button like this: Button android:id=@+id/subtract_button android:text=- / And in the Button.java source code, it gets the value like that: In TextView.java: case com.android.internal.R.styleable.TextView_text: text = a.getText(attr); break; My question is if I need to add a new value in the customization for my button. MyButton android:id=@+id/subtract_button android:text=- android:myattribute=myvalue / How can I get 'myattribute' in my class for my custom button? Thank you. you should create your styleable attribute by defining declare- styleable in attrs.xml (see android's attrs.xml for more info) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Launching Activity from Overlay onTap
On Tue, Feb 10, 2009 at 7:13 AM, jgostylo jgost...@gmail.com wrote: I am wondering if I am going about this problem the correct way. I am making an app that places overlays on top of google maps. When you click on the overlay it should launch a dialog type window that will give you options on what to do with that overlay. Currently the method I am trying to use is to Override onTap(): Intent myIntent = new Intent(context, MyActivity.class); myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(myIntent); This works for me just fine. I want to launch the browser on a URL that's associated with where they tapped: container.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(uri))); Works fine. So the problem must be with finding your activity. -T --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] propagate attribute value through view hierarchy
Hello, I have attribute attr1 defined for my views A, B, C. A and B are actually ViewGroups. Let's say C is contained in B and B in A. Is there an existing mechanism in Android framework that allows me to specify the value of attr1 in A and have it automatically propagated to B and C? Thanks! - Wen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: propagate attribute value through view hierarchy
No :) On Tue, Feb 10, 2009 at 10:46 AM, wen yi wen...@gmail.com wrote: Hello, I have attribute attr1 defined for my views A, B, C. A and B are actually ViewGroups. Let's say C is contained in B and B in A. Is there an existing mechanism in Android framework that allows me to specify the value of attr1 in A and have it automatically propagated to B and C? Thanks! - Wen -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: changing voice attributes with android
No, there is no way to do this in SDK 1.0. On Feb 10, 9:48 am, eliak...@gmail.com eliak...@gmail.com wrote: hello, I want to create an application that can change one's voice during a call in real time is there a way to do that in android? can you point me to the right package? thanx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] can i disable scrolling through tabs on a tabActivity
I don't want tabs in a tabactivity to be selected or switched using the trackball. Is there any way to disable this? I've tried setting selectable=false and focusable=false on both the TabHost and the TabWidget, and neither seems to disable scrolling to the tabs. 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: Question about writing a custom button
But I can't do the same in MyButton since the 'com.android.internal.R.styleable.TextAppearance_textColor' is not accessible. So can you please tell me how can I get the textColor in MyButton? hi, i think you can use android.R.styleable.TextAppearance_textColor --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 does the TabActivity successfully switch activities?
I'm trying to implement my own ActivityGroup to mimic TabActivity (without tabs) but I'm having trouble closing activities. My ActivityGroup has a ViewFlipper, each housing a separate activity's window. When I attempt to switch activities I call ViewFlipper.setDisplayedChild() on the view of choice. However, when I scroll up and down in the view of choice, the OTHER non-visible activities' views are responding to these actions, so it seems like I'm not successfully switching the activity fully. When I use a TabActivity to run this code, this doesn't happen; when I scroll up and down in one activity, I don't see any event firing from any of the other activities. I'm wondering... what does TabActivity do to handle these activities as separate, individual entities? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] java.lang.NoSuchMethodException while running the ProgressBar example
Hi, I am trying to run the ProgressBar example from http://learnandroid.blogspot.com/2008/02/progressbar-android-simple-custom.html But I get this ARProgressBar exception? 02-10 20:13:29.293: ERROR/AndroidRuntime(165): Caused by: java.lang.NoSuchMethodException: ARProgressBar 02-10 20:13:29.293: ERROR/AndroidRuntime(165): at java.lang.Class.getMatchingConstructor(Class.java:537) 02-10 20:13:29.293: ERROR/AndroidRuntime(165): at java.lang.Class.getConstructor(Class.java:401) 02-10 20:13:29.293: ERROR/AndroidRuntime(165): at android.view.LayoutInflater.createView(LayoutInflater.java:474) 02-10 20:13:29.293: ERROR/AndroidRuntime(165): ... 21 more I move the classes to 'com.mycompany'. And I have updated teh main.xml file according. So can you please tell me why I am getting the ' java.lang.NoSuchMethodException'? This is my updated main.xml file: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.mycompany.ARProgressBar id = @+id/cProgres android:layout_width=fill_parent android:layout_height=wrap_content android:text=Processing / Button id = @+id/btnSimulate android:layout_width=wrap_content android:layout_height=wrap_content android:text=Simulate / Button id = @+id/btnStop android:layout_width=wrap_content android:layout_height=wrap_content android:text=Stop / /LinearLayout --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: java.lang.NoSuchMethodException while running the ProgressBar example
This is an old example for an outdated version of Android. On Tue, Feb 10, 2009 at 12:25 PM, ying lcs ying...@gmail.com wrote: Hi, I am trying to run the ProgressBar example from http://learnandroid.blogspot.com/2008/02/progressbar-android-simple-custom.html But I get this ARProgressBar exception? 02-10 20:13:29.293: ERROR/AndroidRuntime(165): Caused by: java.lang.NoSuchMethodException: ARProgressBar 02-10 20:13:29.293: ERROR/AndroidRuntime(165): at java.lang.Class.getMatchingConstructor(Class.java:537) 02-10 20:13:29.293: ERROR/AndroidRuntime(165): at java.lang.Class.getConstructor(Class.java:401) 02-10 20:13:29.293: ERROR/AndroidRuntime(165): at android.view.LayoutInflater.createView(LayoutInflater.java:474) 02-10 20:13:29.293: ERROR/AndroidRuntime(165): ... 21 more I move the classes to 'com.mycompany'. And I have updated teh main.xml file according. So can you please tell me why I am getting the ' java.lang.NoSuchMethodException'? This is my updated main.xml file: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.mycompany.ARProgressBar id = @+id/cProgres android:layout_width=fill_parent android:layout_height=wrap_content android:text=Processing / Button id = @+id/btnSimulate android:layout_width=wrap_content android:layout_height=wrap_content android:text=Simulate / Button id = @+id/btnStop android:layout_width=wrap_content android:layout_height=wrap_content android:text=Stop / /LinearLayout -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ImageView.setColorFilter and/or LightingColorFilter- how to use them?
Mike, thanks for the reply. Perhaps I don't fully understand how a value is assigned to a color. Forgive me, I should have said I am perplexed rather then I was mislead. Anyways, I am still perplexed. Can you give an example on how to manipulate a red or green component? Do I need to use android.graphics.Color.rgb() or Color.red(), etc., with LightingColorFilter? I can't seem to get any color other then blue, if I don't use a neg value. On Feb 10, 7:47 am, Mike Reed r...@google.com wrote: The int values are colors (see android.graphics.Color), and each of its 4 bytes (one for each alpha, red, green, blue components) range from 0..255, thus you can multiply/add each component with different coefficients. On Mon, Feb 9, 2009 at 5:52 PM, myIP marckas...@gmail.com wrote: It looks like the int values can range from -255 to 255. I was mislead, the docs has a range of values of 0 to 255. On Feb 9, 5:06 pm, myIP marckas...@gmail.com wrote: How would I be able to adjust a channel (R,G or B) using ImageView.setColorFilter by passing an instance of LightingColorFilter in its construct? For an example, when I create an instance of LightingColorFilter, I adjust the two params that are int values between 0-255. With this instance, I then pass it into setColorFilter. The image always ends up anywhere from being black to blue. How can I adjust the Red or Green channel? LightingColorFilter lcf = new LightingColorFilter( mul, add); imageView.setColorFilter(lcf); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Market statistics for apps targeting The Netherlands are not correct
Justin, Today, I started to see download numbers for my 'PimPam' app. In the afternoon it was listed as having 3 downloads and now it is bumped up to 52. Can you tell me whether this means that between this afternoon and now there were 49 downloads, of are the downloads from the last 10 days slowly coming in? Will I be seeing a correct number for the total downloads of the app, or were the downloads not counted in the first 10 days? Thank you, Ronald On Feb 6, 9:00 pm, Justin (Google Employee) j...@google.com wrote: There does appear to be some problem here. We're looking into it further. Cheers, Justin Android Team @ Google On Feb 6, 9:29 am, Justin (Google Employee) j...@google.com wrote: Ronald, I've asked the Market team to take a look at your app specifically. I'll update you as I get new information. Cheers, Justin Android Team @ Google On Feb 5, 12:43 pm, Ronald van der Lingen lin...@jsource.nl wrote: At this moment the developer console is still showing 0 downloads after the app has been available for a week. I really suspect that something is wrong with the download count for applications targeted to the Netherlands (or even downloads from the Netherlands in general). I have checked several apps in themarket that are targeted to the Netherlands, and all of them show a download count of 50. I cannot imagine that apps that received a lot of publicity around the launch have not been downloaded more than 50 times. This leads me to believe that the developers of these applications also will see 0 downloads in their developer console. Do any of the developers targeting apps to other new regions (Germany, Poland, etc) experiencing the same? Kind regards, Ronald On Feb 3, 7:43 pm, Justin (Google Employee) j...@google.com wrote: Ronald, I've talked with theMarketteam and there may be a delay in statisticsgathering. My recommendation is to wait a day or two and see what your results are then. Either way, please post back with your results in a day or two. Cheers, Justin Android Team @ Google On Feb 3, 9:51 am, Ronald van der Lingen lin...@jsource.nl wrote: The name of my application is PimPam. Thank you, Ronald On Feb 3, 5:07 pm, Justin (Google Employee) j...@google.com wrote: What is the name of your application? If you're not comfortable sharing this publicly, please message me privately. Cheers, Justin Android Team @ Google On Feb 3, 1:58 am, Ronald van der Lingen lin...@jsource.nl wrote: Last week I published our first app to theMarket, which is a game targeted to users in The Netherlands. Now that the G1 has been available over here for a couple of days, we have received feedback from several of our users. When I look at the developers console in themarkethowever, the download count still shows 0. Also on the device it is listed as 50. When looking around in theMarket, I see that all applications targeted to The Netherlands are listed as having 50 downloads, even an application that received a lot of publicity. Have other developers noticed the same? Kind regards, Ronald --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---