[android-developers] Re: Screen orientation woes

2008-11-27 Thread Ralf
On Thu, Nov 27, 2008 at 11:39 AM, Stoyan Damov [EMAIL PROTECTED] wrote: Hi all, For my app the landscape orientation is useless, so I set my activity's Screen orientation attribute to portrait. Even when the screen orientation changes to landscape, whatever I draw is simply drawn flipped

[android-developers] Re: SpecialCharacters

2008-11-27 Thread Ralf
Just use myedittext.setText((c)); or setText(\u1234) where 1234 is the unicode character you want. R/ On Thu, Nov 27, 2008 at 4:32 AM, ena [EMAIL PROTECTED] wrote: I try to draw SpecialCharacters in Edittext.. i want draw '(c)' character i am used Java: KeyCharacterMap keyCharacterMap

[android-developers] Re: Emulator on webpage

2008-11-27 Thread Ralf
On Thu, Nov 27, 2008 at 12:52 AM, Steff [EMAIL PROTECTED] wrote: Hi I would like to alow people on my website to try out android applications before download. Will I be able to make the emulator run on my website to let users try out applications in it. No, the emulator is a desktop app.

[android-developers] Re: Launch Web Browser from Application

2008-11-27 Thread Ralf
On Thu, Nov 27, 2008 at 3:32 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've been looking through the old posts, but all information I found was really outdated. Could you advice me on how to open android's web browser from an application? Thanks. use the http url when starting an

[android-developers] Re: Working on a Map editor for Alien Blood Bath...

2008-11-27 Thread Ralf
If you want help, may I suggest you describe what your issue is in the first place? R/ On Thu, Nov 27, 2008 at 6:35 PM, Mast3rpyr0 [EMAIL PROTECTED] wrote: Anyone at all? On Nov 26, 2:16 pm, Mast3rpyr0 [EMAIL PROTECTED] wrote: Its a java app for desktops, so far i got the main GUI.

[android-developers] Re: ★★★ how to tell in which of Debug/Release modes my app is running? ★★★

2008-11-28 Thread Ralf
There is no debug vs release mode. Both hardware and emulator run the exact same code. R/ 2008/11/28 Nickname [EMAIL PROTECTED]: Dear Android Developers, Can anybody point me to the class and function that I can use to determine whether my app is running on G1 (release mode) or on Emulator

[android-developers] Re: opengl changes in new sdk

2008-11-28 Thread Ralf
You could try to look at some of the OpenGLES samples in apps-for-android: http://code.google.com/p/apps-for-android/source/browse/#svn/trunk/Samples/OpenGLES R/ On Mon, Nov 3, 2008 at 9:05 AM, petunio [EMAIL PROTECTED] wrote: Hi there I used to use the following sentence: OpenGLContext

[android-developers] Re: Need help in Android

2008-11-28 Thread Ralf
The parameters to Menu.add() have changed in the 1.0 SDK. http://code.google.com/android/reference/android/view/Menu.html#add(int, int, int, int) Note the 3rd parameter is wrong in your source. R/ On Wed, Nov 26, 2008 at 10:16 PM, Hasan [EMAIL PROTECTED] wrote: Dear friend, I am hasan from

[android-developers] Re: what want defineClass(...) ?!

2008-11-28 Thread Ralf
You can't. Simply package your java .class in your project and ant/eclipse will convert it when building your app. R/ On Fri, Nov 28, 2008 at 7:13 AM, HotHeart [EMAIL PROTECTED] wrote: Hi, I read some topics and founded that defineClass fails if use java bytecode. But how to convert Java

[android-developers] Re: Pressure On touchScreen

2008-11-28 Thread Ralf
MotionEvent.getPressure(), used with View.onTouchEvent. http://code.google.com/android/reference/android/view/View.html#onTouchEvent(android.view.MotionEvent) R/ On Thu, Nov 27, 2008 at 11:57 AM, MaTriXy [EMAIL PROTECTED] wrote: Hi, I tried to figure out if the android is capable knowing

[android-developers] Re: Pressure On touchScreen

2008-11-28 Thread Ralf
for an example of usage. R/ On Nov 28, 12:48 pm, Ralf [EMAIL PROTECTED] wrote: MotionEvent.getPressure(), used with View.onTouchEvent. http://code.google.com/android/reference/android/view/View.html#onTou...) R/ On Thu, Nov 27, 2008 at 11:57 AM, MaTriXy [EMAIL PROTECTED] wrote: Hi, I tried

[android-developers] Re: ★ How to use self-signed certificate with Htt psURLConnection? ★

2008-11-28 Thread Ralf
Check the documentation of the SDK. It describes certificates. R/ 2008/11/28 Nickname [EMAIL PROTECTED]: Is there any code sample illustrating how to use self-signed certificate? Please help. Thanx!! --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: launch one application from another application

2008-11-28 Thread Ralf
If Snake.java is not part of your project, obviously you can't reference Snake.class. However you can use the fully qualified java name of the class (e.g com.blah.myproject.Snake as a string) with Intent.setClassName().

[android-developers] Re: Working on a Map editor for Alien Blood Bath...

2008-11-28 Thread Ralf
but nothing seems to work. On Nov 28, 2:55 am, Ralf [EMAIL PROTECTED] wrote: If you want help, may I suggest you describe what your issue is in the first place? R/ On Thu, Nov 27, 2008 at 6:35 PM, Mast3rpyr0 [EMAIL PROTECTED] wrote: Anyone at all? On Nov 26, 2:16 pm

[android-developers] Re: ★ How to use self-signed certificate with Htt psURLConnection? ★

2008-11-28 Thread Ralf
, you can find satisfactory answer there. The key to solve it is the fake trust manager. Good lucks, buddies!! On Nov 28, 7:09 pm, Ralf [EMAIL PROTECTED] wrote: Check the documentation of the SDK. It describes certificates. R/ 2008/11/28 Nickname [EMAIL PROTECTED]: Is there any code

[android-developers] Re: Can I use DownloadProvider and PackageInstaller in my application?

2008-11-29 Thread Ralf
You might also want to check the Downloader sample code from apps-for-android: http://code.google.com/p/apps-for-android/source/browse/trunk/Samples/Downloader/README.txt R/ On Sat, Nov 29, 2008 at 8:47 AM, Xiaoliang Ding [EMAIL PROTECTED] wrote: Hi, Jean-Baptiste Queru Thanks a lot for

[android-developers] Re: Starting new Activity vs. setContentPane(newView)

2008-11-30 Thread Ralf
On Fri, Oct 24, 2008 at 12:06 PM, Robert K. [EMAIL PROTECTED] wrote: What I really don't like about it for example is that everytime I want to add a new activity, I have to change the Manifest.xml in addition. Then, a 'Resource is out of sync' message appears, sometimes till I restart the

[android-developers] Re: Wifi Ip Address

2008-12-02 Thread Ralf
On the device, go to the wifi settings and select the connected wifi network. It will show you its IP address. If you mean programmatically, sorry, I do not know. R/ On Mon, Dec 1, 2008 at 2:49 AM, Andrea [EMAIL PROTECTED] wrote: How can I get the Ip address assigned by a WiFi network to

[android-developers] Re: Running java native programs on android

2008-12-02 Thread Ralf
Would you like to elaborate what you mean by native java? If by native java you mean Java byte-code (as opposed to dalvik), not directly, although you can use convert the .class to .dex before packaging them into an apk. If by native java you mean a desktop java app using another UI kit,

[android-developers] Re: Error generating final archive: null

2008-12-02 Thread Ralf
Could you give us a bit more details? - Which number is the ADT plugin ? (eclipse help about eclipse plugins) - What are the exact steps you do to get this error? E.g. right-click and context menu somewhere, and are you clicking one of the links or buttons and which view is currently open.

[android-developers] Re: strang error with aapt on 1.0 SDK on unbuntu 8.04

2008-12-02 Thread Ralf
Would you like to elaborate? - Could you tell us what command you are executing, in which context (command line ant or eclipse?) - Could you give us the exact output generated? R/ On Sun, Nov 30, 2008 at 10:34 PM, Clay [EMAIL PROTECTED] wrote: its very strange. basically I get a No such

[android-developers] Re: Console program with service without actuvity

2008-12-02 Thread Ralf
On Sun, Nov 30, 2008 at 9:57 PM, sal123 [EMAIL PROTECTED] wrote: Hi All, 1. may i know the steps to invoke executable from adb shell. 2. do u mean, we cannot have applications in android without activity class or without subclass of activity my intention is to build a engine which keeps

[android-developers] Re: my PacMan version released

2008-12-02 Thread Ralf
Just out of curiosity, isn't this name already licensed by a game company that actually has a very similarly named game already available on market? http://www.namcogames.com/corporate/press/4968.html R/ On Tue, Dec 2, 2008 at 12:37 PM, Andrea [EMAIL PROTECTED] wrote: Dear members, I've

[android-developers] Re: G1 Linux

2008-12-02 Thread Ralf
Plus One. On Tue, Dec 2, 2008 at 2:22 PM, Dianne Hackborn [EMAIL PROTECTED] wrote: Because He Was Enthralled By The Awesomeness Of It, Like I Am Too. It Is Awesome! On Tue, Dec 2, 2008 at 2:20 PM, Xavier Mathews [EMAIL PROTECTED] wrote: Why Did You Say That? On 12/02/2008, Eric Mill

[android-developers] Re: Eclipse Error while adding ddms

2008-12-03 Thread Ralf
You need to add the AndroidPrefs and PingService as projects to your workspace or add their source to your classpath. You can find them in git under development/tools/. R/ On Wed, Dec 3, 2008 at 5:51 PM, Anonymous Anonymous [EMAIL PROTECTED] wrote: Hi All, When ever i try to add ddms

[android-developers] Re: Eclipse Error while adding ddms

2008-12-03 Thread Ralf
repository. We'll be fixing this shortly. Xav On Wed, Dec 3, 2008 at 6:14 PM, Ralf [EMAIL PROTECTED] wrote: You need to add the AndroidPrefs and PingService as projects to your workspace or add their source to your classpath. You can find them in git under development/tools/. R/ On Wed

[android-developers] Re: Eclipse Error while adding ddms

2008-12-04 Thread Ralf
Make sure to run development/tools/eclipse/script/create_ddms_symlink.sh and then only import the ddms-plugin project (from dev/tools/eclipse/plugins/com.android.blah.ddms) in Eclipse. You don't need the ddmlib and ddmuilib projects in Eclipse for ADT because they are symlinked under the

[android-developers] Re: Eclipse Error while adding ddms

2008-12-05 Thread Ralf
FYI I fixed the create_ddms_plugin script in the git repo, so the steps 1..3 below should work now. R/ On Fri, Dec 5, 2008 at 12:47 AM, Anonymous Anonymous [EMAIL PROTECTED] wrote: Hi Ralf, Thanks again.. 1. Ran create_ddms_symlink.sh 2.In eclipse File - import-plugins and fragments

[android-developers] Re: Eclipse Error while adding ddms

2008-12-07 Thread Ralf
is if you want to work on the plugin itself. To develop/debug application, using the standalone DDMS or _installing_ the plugin inside eclipse is enough. Xav On Sat, Dec 6, 2008 at 11:08 PM, Anonymous Anonymous [EMAIL PROTECTED] wrote: Hi Xav, Ralf, Now am able to launch DDMS and debug built

[android-developers] Re: AndroidManifest.xml file missing!

2008-12-09 Thread Ralf
On Fri, Dec 5, 2008 at 5:49 PM, Bill Tan [EMAIL PROTECTED] wrote: Hi all, I created a project for Android development in eclipse according to http://source.android.com/using-eclipse: If Eclipse asks you for a workspace location, choose the default. If you have a Welcome screen, close it to

[android-developers] Re: Eclipse problem viewing threads on emulator

2008-12-09 Thread Ralf
You don't need to restart the emulator to enable automatic thread updates. R/ On Mon, Dec 8, 2008 at 5:31 PM, Greg [EMAIL PROTECTED] wrote: For posterity, I found the answer. I didn't find any button which was referenced by the error message above, but I was able to locate under

[android-developers] Re: Astronomical Android Dev Phone 1 shipping free

2008-12-09 Thread Ralf
For France that doesn't seem outrageous. The duty import fee is 30% of the list price on such items. R/ On Mon, Dec 8, 2008 at 7:13 AM, elDoudou [EMAIL PROTECTED] wrote: Dear Google Team. Just wanted to react over the now available Android Dev Phone 1 device, which is available at $399. A

[android-developers] Re: Error generating final archive: null

2008-12-09 Thread Ralf
Could you describe what you're trying to do and the steps you took in a bit more detail? Thanks in advance, R/ On Sat, Dec 6, 2008 at 7:56 PM, Birds [EMAIL PROTECTED] wrote: Eclipse Version: 3.4.1. Find the Error that generating final archive: null, I use Fedora 7 Linux . Hi all.,

[android-developers] Re: Exception in Ant console

2008-12-10 Thread Ralf
From the paths you give, ant is trying to execute this: D:\Tharun\DM_LJ\Android\apache-ant-1.7.1-bin\apache-ant-1.7.1\android_sdk\tools\aapt.exe Is this the location where $SDK/tools/aapt.exe is really located? That seems unlikely. It sounds like you might have generated a build.xml using

[android-developers] Re: Is a SIM Required for Dev 1?

2008-12-14 Thread Ralf
Once activated you don't need the sim. R/ On Sun, Dec 14, 2008 at 8:19 AM, cyntacks kevin.clout...@cyntacks.com wrote: Bummer, Looks like I am going to have to keep moving my SIM from my iPhone to the Dev 1 each time I want to test... seems like a HUGE oversight. I'm surprised we can't

[android-developers] Re: Receiving Alarms when the program is not running

2008-12-14 Thread Ralf
What do you mean by your program might not be running when the alarm goes off? Are you using the AlarmManager and a PendingIntent? Also if you just want to get a quick display for testing purposes you can simply display a Toast from a BroadcastReceiver. R/ On Sat, Dec 13, 2008 at 9:06 PM,

[android-developers] Re: How to power off the emulator

2008-12-14 Thread Ralf
I believe that is not properly handled by the emulator. Just close the emulator window when you're done with it. Note that if you're going to relaunch an app on the emulator you don't need to stop it between. R/ On Sat, Dec 13, 2008 at 5:40 PM, Xiongzh zx.zhangxi...@gmail.com wrote: Hi

[android-developers] Re: Using resources in WebView

2008-12-14 Thread Ralf
You might have to duplicate them. Resources in /res/drawable and in /assets are not handled the same way. R/ On Sat, Dec 13, 2008 at 10:50 AM, Eric rellimc...@gmail.com wrote: My app has ImageButtons that use icons in drawable. I want a help page that can refer to those icons. I made a help

[android-developers] Re: Android OpenGl Documentation?

2008-12-14 Thread Ralf
There are two sample applications here: http://code.google.com/p/apps-for-android/source/browse/trunk/#trunk/Samples/OpenGLES The triangle one is good for starting and giving you a working GL application. You can also try to search android gl on your favourite search engine. R/ On Sat, Dec

[android-developers] Re: TelephonyManager.listen Freezes when the screen is shutted down!

2008-12-14 Thread Ralf
Your activity is a Context. R/ On Fri, Dec 12, 2008 at 8:16 PM, bparker cbpar...@gmail.com wrote: Where does your context (ctx) come from? I'm curious because I want to do the same thing, but getting a correct context to pass to Toast.makeText is the only part I can't figure out. On Dec

[android-developers] Re: How to bring a exist activity to foreground

2008-12-14 Thread Ralf
On Fri, Dec 12, 2008 at 5:55 AM, mady369 aditya.mare...@gmail.com wrote: That was informative but unfortunately didn't solve my problem :( I have written an app. with three Activities A1, A2, A3. A2 can be launched from A1 and A3 can be launched from A2. Suppose if we are in A3 (the

[android-developers] Re: G1 usb drivers for linux

2008-12-14 Thread Ralf
For Ubuntu, you need to configure udev. http://www.google.com/search?q=ubuntu+android+udev R/ On Fri, Dec 12, 2008 at 7:20 AM, Peterman pserr...@gmail.com wrote: I have ubuntu also, but when I connect my phone g1 to the pc, and I put adb devices in a shell, the shell give me nothing!! How

[android-developers] Re: Exception in Ant console

2008-12-14 Thread Ralf
From my previous post: - look at the tools path defined in default.properties = you can override it build.properties. R/ On Wed, Dec 10, 2008 at 11:43 PM, tharun ktha...@gmail.com wrote: Hi Ralf, I'm using SDK 1.0 The path where aapt.exe is D:\Tharun\DM_LJ\Android\AndroidSDK\android

[android-developers] Re: SubMenu MenuItem icon?

2008-12-14 Thread Ralf
On Wed, Dec 10, 2008 at 3:01 PM, Jamie androidapp...@gmail.com wrote: Is it by design that we can't set icons in a submenu's menu item? Yes. R/ SubMenu sub = menu.addSubMenu(...); MenuItem item = sub.add (...); item.setIcon(...); -- icon does not show up Any Idea? Thanks, J

[android-developers] Re: Is there a way to tell the emulator to kill an activity?

2008-12-14 Thread Ralf
Use ddms, select the process and use the kill button just above the device list. R/ On Wed, Dec 10, 2008 at 10:35 AM, Cheryl Sedota cherylsed...@gmail.com wrote: Is there a way to tell the emulator to kill an activity (not the entire process / just the activity)? An adb or ddms command

[android-developers] Re: manage files

2008-12-14 Thread Ralf
See /res/raw here: http://code.google.com/android/devel/resources-i18n.html#CreatingResources R/ On Wed, Dec 10, 2008 at 11:10 AM, alberto agleste...@gmail.com wrote: Hello. I would like to know if there is possible to use txt or xml files that I put in the assets folder. I mean, I´m

[android-developers] Re: AndroidManifest.xml file missing!

2008-12-14 Thread Ralf
On Tue, Dec 9, 2008 at 6:43 PM, billt@gmail.com billt@gmail.com wrote: Hi Ralf, If I create it as Android Project and Select Create project from existing source, it won't proceed further because the AndroidManifest.xml doesn't exist in the top path of the source (The Finish button

[android-developers] Re: track boor isn't working on button with has only background image

2008-12-15 Thread Ralf
Just a random thought: you could try to add android:focusable=true There's also android:focusableInTouchMode=true. That might be a moot point as I believe buttons are focusable by default. R/ On Mon, Dec 15, 2008 at 10:51 AM, cindy ypu01...@yahoo.com wrote: Hi all, I have defined a button

[android-developers] Re: Using resources in WebView

2008-12-15 Thread Ralf
On Mon, Dec 15, 2008 at 9:14 AM, Eric rellimc...@gmail.com wrote: Ralf: Thanks: I have duplicated them and it works. I don't like wasting the storage space, especially since apps need to live in internal memory. Having two copies of many icons seems very wasteful. You could avoid duplication

[android-developers] Re: Is a SIM Required for Dev 1?

2008-12-15 Thread Ralf
are talking GREAT to know... Thanks Ralf! On Dec 14, 11:33 am, Ralf ralfo...@gmail.com wrote: Once activated you don't need the sim. R/ On Sun, Dec 14, 2008 at 8:19 AM, cyntacks kevin.clout...@cyntacks.com wrote: Bummer, Looks like I am going to have to keep moving my SIM from my

[android-developers] Re: SubMenu MenuItem icon?

2008-12-15 Thread Ralf
, 2008 at 10:53 AM, Ralf ralfo...@gmail.com wrote: On Wed, Dec 10, 2008 at 3:01 PM, Jamie androidapp...@gmail.com wrote: Is it by design that we can't set icons in a submenu's menu item? Yes. R/ SubMenu sub = menu.addSubMenu(...); MenuItem item = sub.add (...); item.setIcon

[android-developers] Re: Computer Reboots when accessing G1 through USB

2008-12-17 Thread Ralf
Did you update XP from service pack 1 to service pack 2? IIRC the base usb driver in XP from service pack 1 is buggy and updating to SP2 doesn't automatically update this driver. Forcing XP to update this driver solved the issue for someone else. R/ On Wed, Dec 17, 2008 at 11:47 AM, Urig

[android-developers] Re: getting started with eclipse

2008-12-17 Thread Ralf
FYI subclipse works just fine with Eclipse + ADT. R/ On Wed, Dec 17, 2008 at 2:45 PM, Fred Grott(shareme) fred.gr...@gmail.com wrote: I have a good setup, steps: 1. Download Eclipse-RCP-3.4.1 2 Do not install subclipse, use subversive instead 3 Install the ADT plugin right after your full

[android-developers] Re: Problem setting up SDK

2008-12-20 Thread Ralf
For Eclipse you also need to install the ADT plugin. I'd recommend getting it from the official download site rather than trying to build it yourself unless you really plan to modify it. R/ On Tue, Dec 16, 2008 at 4:37 AM, Gary Thomas samoht.y...@gmail.com wrote: I've downloaded and built the

[android-developers] PreferenceActivity with blur behind?

2008-12-21 Thread Ralf
I'm trying to use a PreferenceActivity with prefs inflated from XML and at the same time I'd like the window to blur whatever was behind (i.e. my previous activity where I invoked the settings from.) I tried something like this below but the background is always black (or whatever color I select)

[android-developers] Re: Identifying GUI items of the IM chat dialog

2008-12-21 Thread Ralf
FYI the SDK contains a tool called HierarchyViewer. It can connect to an emulator or actual device via adb and show you the exact UI objects used by any screen, with all its properties. R/ On Sun, Dec 21, 2008 at 4:52 AM, Falcon4ever laurence.mul...@gmail.com wrote: Hi, currently I am

[android-developers] Re: SHA1 Encryption

2008-12-22 Thread Ralf
On Mon, Dec 22, 2008 at 4:22 AM, flash bennyco...@gmail.com wrote: Hi, Is there anyway in android that you can SHA1 encrypt a String? Try googling java crypto sha1 to see how to use the MessageDigest API: http://code.google.com/intl/fr/android/reference/java/security/MessageDigest.html R/

[android-developers] Re: Display a screen for 2 0r 3 seconds

2008-12-22 Thread Ralf
You can use View.postDelayed(action, delayMillis) to execute something after a delay. If you don't have a View, use the Handler class instead. See their various postXxx() methods. R/ On Mon, Dec 22, 2008 at 10:08 AM, nithin warier nithin.war...@gmail.com wrote: I want to display a screen for

[android-developers] Re: Testing a Android Activity..

2008-12-23 Thread Ralf
M (ಮಂಜುನಾಥ ಎಂ) man...@gmail.com wrote: Can I get any examples??? On Mon, Dec 22, 2008 at 11:36 PM, Ralf ralfo...@gmail.com wrote: It's called Instrumentation under Android: http://code.google.com/intl/fr/android/reference/android/test/InstrumentationTestRunner.html R/ On Mon, Dec 22

[android-developers] Re: Problems running telnetd on adp1

2008-12-23 Thread Ralf
There will be an official Android driver for Vista 64 bit later. In the meantime there's an unofficial hacked one at xda. R/ On Tue, Dec 23, 2008 at 2:51 AM, onlythoughtwo...@googlemail.com onlythoughtwo...@googlemail.com wrote: Thanks. But I´m currently running Vista 64-Bit Version, but i

[android-developers] Re: Manipulating the keyguard lock screen

2008-12-24 Thread Ralf
Not when using the SDK. R/ On Tue, Dec 23, 2008 at 10:43 PM, bparker cbpar...@gmail.com wrote: Is it possible to add items to the lock screen? I noticed that when setting an alarm using AlarmClock, it adds another view to the layout that has a bell icon and tells the day/time of the next

[android-developers] Re: Anyone success to build emulator for Windows?

2008-12-24 Thread Ralf
To build the SDK for Windows, look at this: http://android.git.kernel.org/?p=platform/development.git;a=blob_plain;f=tools/eclipse/README_WINDOWS.txt;hb=HEAD It's a bit old but step #2 is still mostly valid except you MUST make sure cygwin is in binary/unix mode and not text/dos mode. Also the

[android-developers] Re: Regarding .apk files

2008-12-24 Thread Ralf
There is no converter from dex to java. Feel free to write one. R/ On Wed, Dec 24, 2008 at 5:11 AM, Naina K kna...@gmail.com wrote: Hello, If I have an .apk file for android application, I would like to know how can I convert this .apk file to .java file so that I can see the code in

[android-developers] Re: Development Platform Compatibility

2009-03-15 Thread Ralf
I think the SDK and the Eclipse tools will work reasonably well with an XP or Vista 64 bit now. The latest SDK has the USB driver in 64 bit. However at that point Vista 7 is totally unsupported (i.e. not tested at all) and I would not recommend it. R/ On Sat, Mar 14, 2009 at 11:05 PM,

[android-developers] Re: Development Platform Compatibility

2009-03-15 Thread Ralf
I think the SDK and the Eclipse tools will work reasonably well with an XP or Vista 64 bit now. The latest SDK has the USB driver in 64 bit. However at that point Vista 7 is totally unsupported (i.e. not tested at all) and I would not recommend it. R/ On Sat, Mar 14, 2009 at 11:05 PM,

[android-developers] Re: The specified child already has a parent. You must call removeView() on the child's parent first.

2009-03-15 Thread Ralf
Random guess: you tried to add a child view in a ListView statically in your layout XML file? You can't. ListView childs must be added programmatically. And yes it would help if you told us a bit about what is your layout or what you are trying to achieve. R/ On Sun, Mar 15, 2009 at 7:18 AM,

[android-developers] Re: class com.android.camera.UploadService does not exist?

2009-03-15 Thread Ralf
Just to clarify: - is this Camera the one in the git android repository? - are you trying to build from the android repository using make or from the SDK? - what is your platform? (i.e. not windows) R/ On Sun, Mar 15, 2009 at 7:57 AM, Hans hkess...@gmail.com wrote: Manifest for Camera.git

[android-developers] Re: Capture / Trap for ActivityNotFoundException

2009-03-16 Thread Ralf
It means you need a try..catch around the call. Try a tutorial on Java Exceptions, it might help: http://java.sun.com/docs/books/tutorial/essential/exceptions/ R/ On Sun, Mar 15, 2009 at 10:46 PM, hazlema hazl...@gmail.com wrote: I am playing with android.speech.action.RECOGNIZE_SPEECH

[android-developers] Re: Keystores

2009-03-16 Thread Ralf
On Mon, Mar 16, 2009 at 12:34 AM, Kenny yxw...@gmail.com wrote: Not helping you, but I wonder what keystore is for? where to get some docs? thank you very much, http://developer.android.com/guide/publishing/app-signing.html On Mar 14, 5:18 am, linkmaster_6 linkmast...@gmail.com wrote:

[android-developers] Re: Redistributing the eclipse plugins

2009-03-16 Thread Ralf
With the usual I'm not a lawyer disclaimer applied, I'd think yes as long as you comply with the EPL and thus redistribute that part using the EPL. However you'd have to carefully choose your wording to make it clear this is not the original plugin distributed by Google. There's a FAQ here that

[android-developers] Re: Would you like to let me know how to get SDK version in my application code?

2009-03-16 Thread Ralf
On Sun, Mar 15, 2009 at 7:51 AM, Lucky-dog honglian...@gmail.com wrote: it failed that i try to get android.R.attr.minSdkVersion. Would you like to let me know how to get SDK version in my application code? PackageManager pm = getPackageManager(); PackageInfo pi =

[android-developers] Re: Sensing The Touch Event

2009-03-16 Thread Ralf
When your second activity is running, your first one is most likely stopped. What are you trying to achieve? There might be other ways to achieve it, e.g. using a service or collecting data and passing it back to the first activity. R/ On Sun, Mar 15, 2009 at 4:31 AM, mateen abmat...@gmail.com

[android-developers] Re: Button with both Text and Image

2009-03-16 Thread Ralf
On Mon, Mar 16, 2009 at 9:50 AM, dan raaka danra...@gmail.com wrote: Button inherits from Textview .. and Textview has the ability to set drawables/images on left or bottom or right or left .. Check this setCompoundDrawablesWithIntrinsicBounds(Drawable left, Drawable top, Drawable right,

[android-developers] Re: Asset Image in WebView

2009-03-29 Thread Ralf
In this case simply use a data URI when creating the loadData string. See 4. Examples at http://www.ietf.org/rfc/rfc2397.txt R/ On Sun, Mar 29, 2009 at 6:44 PM, Beginner ayrton.merc...@gmail.com wrote: I thought this might have fixed my problem, but not quite. Since the apk is readonly, it

[android-developers] Re: How to make translucent control just like 'zoom' in Pictures

2009-03-29 Thread Ralf
You can use a FrameLayout in your XML to layer widgets or sub-layouts on top of each others. R/ On Sun, Mar 29, 2009 at 8:54 PM, Ren rens...@gmail.com wrote: Thanks, I'll try On Mon, Mar 30, 2009 at 4:46 AM, Lukasz Mosdorf lukasz.mosd...@gmail.com wrote: Hi I guess that this would be

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-29 Thread Ralf
Did you consider simply subclassing PreferenceScreen and overriding some of its methods? There are various methods such as onClick, onAttachedToActivity, onCreateView, etc., that might give you the behavior you're looking for. R/ On Sun, Mar 29, 2009 at 8:42 PM, Noam noam.ha...@gmail.com wrote:

[android-developers] Re: Buffering Background Image - Graphics Advice Sought

2009-03-29 Thread Ralf
If you want to work with the 2d draw api (e.g. not the GL one), a typical way to organize your code is to have a view that knows how to draw your static background and all the pieces (aka sprites) that you need on top. However before drawing anything get the clip bounds and check your sprites

[android-developers] Re: require eclipse 3.1 , 3.2

2009-04-10 Thread Ralf
For your information, the ADT plugin for Eclipse requires Eclipse 3.3 or 3.4 (ganymede) now. R/ On Tue, Apr 7, 2009 at 11:08 PM, harne prashant harneprashant...@gmail.com wrote: hi group  i want  eclipse 3.1 , 3.2 (europa )for developing application in Android. i searched it but i didnt get

[android-developers] Re: What happened to the HOME button in cupcake

2009-04-10 Thread Ralf
On Fri, Apr 10, 2009 at 12:24 PM, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: I tried the 'unofficial' cupcake SDK and found that the hardware HOME button doesn't bring me back to the home screen anymore. Is this a conscious UI decision? What's the reason behind it? You are talking

[android-developers] Re: SDKs comparison with the iPhone

2009-04-11 Thread Ralf
On Sat, Apr 11, 2009 at 12:34 AM, Al Sutton a...@funkyandroid.com wrote: Now before I start on the iPhone comparison I'm going to pre-empt the normal But Android is open source. response by saying lets be honest and admit it as it stands Android is not an open source project because the

[android-developers] Re: adb version

2009-04-11 Thread Ralf
It means you have adb from the sdk 1.1 running in the background -- adb is also a background process. You need to kill the existing adb before switching to the m5 one by doing one of the following: - either reboot your mac - run adb kill-server from a terminal - eclipse ddms perspective devices

[android-developers] Re: draw text as big as possible inside a rectangle

2009-04-11 Thread Ralf
Are you looking for Paint.measureText? http://developer.android.com/reference/android/graphics/Paint.html#measureText(java.lang.String) Example here: http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/graphics/MeasureText.html R/ On Sat, Apr 11, 2009 at 6:42 AM,

[android-developers] Re: finish() not killing Activity

2009-04-12 Thread Ralf
On Sun, Apr 12, 2009 at 6:28 PM, Todd Sjolander guyfantas...@gmail.com wrote: Marco, your hunch was right.  I was somehow creating multiple copies of Activity C.  In case anyone can benefit from this, let me explain how it went wrong. I implemented onTouch() in Activity B, which would

[android-developers] Re: Getting errors for the source platform/packages/apps/Camera.git

2009-04-12 Thread Ralf
When you say project in Eclipse, do you mean an Android project created using the ADT plugin from the SDK? The Camera app is a system app. You can't compile its Java code using a regular SDK project since the SDK does not have access to the system's internals. R/ On Thu, Apr 9, 2009 at 1:29

[android-developers] Re: multiple successive queries to a database

2009-04-12 Thread Ralf
What kind of crash do you get? Is this a force close or an exception? R/ On Thu, Apr 9, 2009 at 9:26 PM, iki qui.af...@gmail.com wrote: Has anyone other than me needed to make consecutive queries to a sqlitedatabase? My application works sometimes but other times (about 98% of the time),

[android-developers] Re: GPS application gets killed on screen timeout

2009-04-12 Thread Ralf
You should try to post on the android-porting forum, it doesn't seem like you're targetting the G1. To be more constructive, don't you simply need to hold a WakeLock? R/ On Thu, Apr 9, 2009 at 12:33 PM, sagar saghar.ab...@gmail.com wrote: Hi , I can see on OMAP zoom2 platform, the moment

[android-developers] Re: onCreateContextMenu

2009-04-12 Thread Ralf
This method is defined in View, not Activity: http://developer.android.com/reference/android/view/View.OnCreateContextMenuListener.html Where is that tutorial that you mention? Any URL? R/ On Sat, Apr 11, 2009 at 8:06 AM, streetdestroy...@gmail.com streetdestroy...@gmail.com wrote:    public

[android-developers] Re: passing a class from one process to another

2009-04-12 Thread Ralf
You might want to read the section on the developer guide on AIDL and IPC: http://developer.android.com/guide/developing/tools/aidl.html It explains how you can send a Parceleable data via an IPC. R/ On Sun, Apr 12, 2009 at 11:41 AM, DevilMayCry cyank...@gmail.com wrote: Hi guys i am looking

[android-developers] Re: Showing/hiding dynamically the title bar

2009-04-12 Thread Ralf
What is your motivation for hiding or showing the title bar at runtime? Did you consider slicing your app in various activities, which can have different themes? R/ On Fri, Apr 10, 2009 at 1:27 AM, bonfo vale...@javaground.com wrote: Hi, I already know ho to hide the title bar with the

[android-developers] Re: How-to start service automatically on system startup and on installation

2009-04-12 Thread Ralf
All you need is to create a BroadcastReceiver that is bound to the BOOT_COMPLETED action. Tout ce que tu as a faire c'est de creer un BroadcastReceiver qui recoit l'action BOOT_COMPLETED (avec la permission qui va bien). Exemple: manifest

[android-developers] Re: Can I use UNIQUE in the query() parameter?

2009-04-12 Thread Ralf
What Mark said, you probably meant DISTINCT. For reference, the Sqlite3 doc on SELECT is here: http://www.sqlite.org/lang_select.html Also remember that you have the sqlite3 binary either in SDK/tools or via adb shell. It can be handy to simulate your select manually once before you code your

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-12 Thread Ralf
You forget that Google is a US entity and as such is bound to US laws, such as, for example, complying to US export limitations. If you don't like it, you can always create your own app store that is not bound to US laws and encourage developers to use it :-p R/ On Sun, Apr 12, 2009 at 5:32 AM,

[android-developers] Rendering a map off-screen?

2009-02-08 Thread Ralf
special magic to the MapView object only when it is set on- screen through SetContentView()? Thanks, Ralf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: ADT Layout Editor

2009-03-09 Thread Ralf
The EPL license of the plugin allows you to reuse the code if you use a compatible license for your own project. That being said, the layout editor has not been designed to be re-usable as such. That means the API will surely change and you'd be basing your project on something hard to keep up

[android-developers] Timezone changed intent action received too many times

2010-01-18 Thread ralf
One of my apps, Timeriffic, has a broadcast receiver on android.intent.action.TIMEZONE_CHANGED to recompute its alarms when the timezone changes. That works fine. The issue is that on some devices, the app receives just too many times this intent. I have logs of multiple users showing the

[android-developers] Best way to start the Alarm Clock app?

2010-01-22 Thread ralf
I'd like to start the Alarm Clock app from one of my apps. But looking at the default Intent categories, I don't see any that defines an alarm clock. Looking at the packages/apps/AlarmClock I don't see any specific category in the manifest either. Is the correct way instead to let the user pick

[android-developers] Re: Geeting Error in New SDK:- emulator: broken configuration file doesn't have 'window' element

2008-08-21 Thread Ralf
what operating system are you using? how do you launch the emulator? click some icon or use a command line? If so, which one? R/ On Thu, Aug 21, 2008 at 12:37 PM, Dipen [EMAIL PROTECTED] wrote: Group, I am getting following error if launch emulator itself. And also I don't see emulator.cfg

[android-developers] Re: [Problem] Could not fine HelloAndroid.apk when lauching the HelloAndroid example

2008-08-26 Thread Ralf
It seems eclipse didn't build the apk. Do you have errors in your project? (try windows shows views errors). Do you have other errors in the Console view? You did create your project using New Android Project, right? R/ On Tue, Aug 26, 2008 at 7:21 PM, yukinoba [EMAIL PROTECTED] wrote: Hi,

[android-developers] Re: Could not fine HelloAndroid.apk when lauching the HelloAndroid example

2008-08-27 Thread Ralf
Please file a bug in the tracker. Also please specify which original timezone, locale and your operating system in the bug report so that we can try to reproduce it. R/ On Wed, Aug 27, 2008 at 8:58 AM, Vittee [EMAIL PROTECTED] wrote: Problem solved! Thanks :) I tried your solution and I

[android-developers] Re: 0.9 SDK Build Error

2008-08-27 Thread Ralf
Simply remove the debug.keystore in ~/.android and it will be re-created with an updated expiration date. R/ On Wed, Aug 27, 2008 at 9:21 AM, Gil [EMAIL PROTECTED] wrote: This morning I ran into the following error when I initiated the first build of the day: Error generating final

  1   2   >