[android-developers] Re: Set Screen Orientation of a Tab

2009-03-19 Thread Uri.Kanonov
I see. Is there any way you can think of that will enable me to set the orientation per displayed tab (without wrecking havoc)? Thanks again for all the help! On Mar 19, 7:59 am, Dianne Hackborn hack...@android.com wrote: When you call setRequestedOrientation(), your activity will be restarted

[android-developers] Re: Dynamically loading a .jar file at Runtime

2009-03-19 Thread Dianne Hackborn
On Wed, Mar 18, 2009 at 10:18 PM, Asif k asifk1...@gmail.com wrote: Security will be one concern but , my plan is to load the required .jar files in the sdcard only when it is necessary and I will remove that .jar files from the /sdcard when my application execution completes. That

[android-developers] Re: Set Screen Orientation of a Tab

2009-03-19 Thread Dianne Hackborn
Just set it to what you want in the top-level activity and make sure not to change it to something else until the user explicitly changes tabs. On Wed, Mar 18, 2009 at 11:01 PM, Uri.Kanonov urikano...@gmail.com wrote: I see. Is there any way you can think of that will enable me to set the

[android-developers] Re: Dynamically loading a .jar file at Runtime

2009-03-19 Thread Asif k
Hi Dianne, Yes you are right, But Is there any way to store over .jar file in the app's data directory. Because I am working on emulator and I can store any file there. Please tell the way I can store in the data dir. And yes any alternate idea to call the .jar files dynamically at

[android-developers] SimpleCursorAdapter and setListAdapter problems

2009-03-19 Thread sddandroid
I am trying to fill the data in two text views in a single row (see xml) and am trying to use SimpleCursorAdapter to do it. As I understand the function, it is allowed to take an array of strings and an array of ids which you see in the list below. When I run the application from the phone, it

[android-developers] Re: how to implement scrolling text?

2009-03-19 Thread FBear
I implemented a scrollable TextView, named ScrollTextView before Android 1.1R1 with the marquee feature for TextView. It used android.widget.Scroller and attached TextPaint. Here's the source code: http://bear-polka.blogspot.com/2009/01/scrolltextview-scrolling-textview-for.html It's glad to see

[android-developers] Re: how to implement scrolling text?

2009-03-19 Thread Romain Guy
The TextView doesn't have to be focused. You can also use setSelected(true). -- 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,

[android-developers] How to set color to String?

2009-03-19 Thread AlexNguyen
I have the String, how can I set color the text in String? For example: String S1; S1 =Name: + \t + this.Name1 + \n + Country/Area: + \t + this.Country1 + \n + Department: + \t + this.Department + \n + Title: + \t + this.Title + \n; I want set color: Name,

[android-developers] Re: Hidden Contacts

2009-03-19 Thread EboMike
I have the same problem, but I need a better solution. I'm doing a managed query on the contacts and am already filtering out entries that do not have a DISPLAY_NAME, but I still get all the suggested contacts. I need to deal with contacts that have a name but no phone number or email address. I

[android-developers] Android Developer Challenge II Cancelled?

2009-03-19 Thread Eelke Folmer
This ( http://code.google.com/android/adc.html ) gives a 404 which is weird for a google site. Is this challenge cancelled? I hope not.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: how to implement scrolling text?

2009-03-19 Thread FBear
Set the focus on the buttons to make them scrolling. not selecting the text, but use the UP and Down navigator button of the simulator to change the focus ... On 3月10日, 下午1时55分, soniya soniy...@gmail.com wrote: I am talking about this API Demo: API Demos - Text - Marquee I tried selecting the

[android-developers] When another activity is called from main activity, The calling activity get destroyed?

2009-03-19 Thread jj
When another activity is started from main activity, The main activity get destroyed and created when returned back from second Activity OR main activity remains in pause state till second activity finish (), onSart or onResume from when returned back from second activity?

[android-developers] Re: Hidden Contacts

2009-03-19 Thread EboMike
To answer my own post... I looked at the Contacts source code, and this is essentially what they do: The main My contacts group is called Contacts.Groups.GROUP_MY_CONTACTS. To query all members in that group, simply use this URI: Uri uri = Uri.parse(content://contacts/groups/system_id/ +

[android-developers] Re: IWindowManager Not Available

2009-03-19 Thread AndRaj
If I want to use those thing into my application. How can I use. Is there any way to do that. I want to create a object for the Iwindowmanager class. Ho can I do this... On Mar 19, 12:38 am, Dianne Hackborn hack...@android.com wrote: Those are not part of the SDK. On Wed, Mar 18, 2009 at 6:53

[android-developers] Re: SimpleCursorAdapter and setListAdapter problems

2009-03-19 Thread Mike Garcia
Nevermind, I found the solution... The final fillData function does exactly what I need. Hope this helps someone... private void fillData(){ Cursor c = mDbHelper.fetchAllClients(); startManagingCursor(c); // Set Client Row Title String[] from = new String[]{

[android-developers] Re: How to config G1 to make both browser and MMS work?

2009-03-19 Thread FayGU
It works. But very unstable. Thanks a lot. On Mar 19, 3:18 am, David Turner di...@android.com wrote: when you want to use different APNs for both data and MMS, you need to set the apn type field for the system to make a difference between them and use them both. use apn type=default for the

[android-developers] Re: IWindowManager Not Available

2009-03-19 Thread Dianne Hackborn
No, you can't. It is internal implementation details of the platform. On Wed, Mar 18, 2009 at 11:59 PM, AndRaj rajendran.b...@gmail.com wrote: If I want to use those thing into my application. How can I use. Is there any way to do that. I want to create a object for the Iwindowmanager

[android-developers] Re: Dynamically loading a .jar file at Runtime

2009-03-19 Thread Dianne Hackborn
You can put whatever you want in your private data directory. On Wed, Mar 18, 2009 at 11:15 PM, Asif k asifk1...@gmail.com wrote: Hi Dianne, Yes you are right, But Is there any way to store over .jar file in the app's data directory. Because I am working on emulator and I can store any

[android-developers] Re: IWindowManager Not Available

2009-03-19 Thread AndRaj
Really... Is it, as an application developer I can only use the ADK API's. But I can able to see the source of those API's, then I can use those classes in my applicaition right On Mar 19, 12:18 pm, Dianne Hackborn hack...@android.com wrote: No, you can't.  It is internal implementation

[android-developers] Re: Problem with setTheme() method

2009-03-19 Thread Marcus
I'm sorry. But even if I put the setTheme on the first line of onCreate (even beforce super.onCreate), I get a dark black background and not a transparent/blur background. But if I set the theme in the manifest, it works. It's not a great problem, because I can set it in the manifest. But really

回复: [android-developers] Re: Problem w ith setTheme() method

2009-03-19 Thread Jiang
Please invoke setTheme() just before setContentView() --- 09年3月19日,周四, Marcus marcus.ter...@gmail.com 写道: 发件人: Marcus marcus.ter...@gmail.com 主题: [android-developers] Re: Problem with setTheme() method 收件人: Android Developers android-developers@googlegroups.com 日期: 2009,319,周四,3:31下午 I'm sorry.

Re: 回复: [android-developers] Re: Probl em with setTheme() method

2009-03-19 Thread Marcus
That's my code: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTheme(android.R.style.Theme_Dialog); setContentView(R.layout.whatsnew); } And it doesn't work!

[android-developers] Re: Android Developer Challenge II Cancelled?

2009-03-19 Thread Anonymous Anonymous
http://developer.android.com/ try in here.. its moved i guess On Thu, Mar 19, 2009 at 12:10 PM, Eelke Folmer eelke.fol...@gmail.comwrote: This ( http://code.google.com/android/adc.html ) gives a 404 which is weird for a google site. Is this challenge cancelled? I hope not..

[android-developers] Re: IWindowManager Not Available

2009-03-19 Thread Dianne Hackborn
Just because you can browse through the source and find something doesn't mean it is supported for application development. You can use the APIs in the SDK. Things that are not in the SDK were deliberately removed because they can change in arbitrary ways across versions of the platform. On

[android-developers] Re: Android Developer Challenge II Cancelled?

2009-03-19 Thread luigi bertoneri
Where are the info about the 2° comp ? Post the link please the search give no result. Thanks. 2009/3/19 Al Sutton a...@funkyandroid.com Very very recently though. Googling for android developer challenge still brings up the 404ed page as the top result. Al. Anonymous Anonymous wrote:

[android-developers] Re: Creating Android.Jar File

2009-03-19 Thread Kenny
from device directory, make sdk will generate android.jar to ./out/ host/linux-x86/sdk/android-sdk_eng.user_linux-x86/... Kenny On Mar 18, 9:55 pm, Rajendrakumar C rajendran.b...@gmail.com wrote: Hi all, I downloaded the android source code.. Can any one tell me how to make our own jar

[android-developers] Will SyncML engine be available in Android?

2009-03-19 Thread wopeipeipei
Hi Experts, Is there a plan to add SyncML engine to Android platform? I just heard from someone that Esmertec AG is going to implement a SyncML engine and will be contributing it back to Android, is it true? Regards, DH --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Marquee Api demo

2009-03-19 Thread soniya
The marquee does work on Focus. :) On Mar 4, 11:44 am, soniya soniy...@gmail.com wrote: I downloaded the Android SDK 1.1 and tried to run the Marquee demo (API Demos - Text -Marquee). But the program is not working .The text is static and does not move :( Did any one try this demo? And

[android-developers] Issue in android:duration in frame animation

2009-03-19 Thread Nithin
Hi, In Frame Animation, in item tag, when i am putting android:duration=5, its not working. 15ms is the minimum which i tried and working. Is it a bug in Android ?. Anybody else got the same kind of problem. Thanks Nithin --~--~-~--~~~---~--~~ You received this

[android-developers] Changing drawing order while animating

2009-03-19 Thread crazycat
Hi , Im trying to do a custom animation on two image views which are placed one below the other (the object in the background is half visible and half the size compared to the object in the foreground ) . Now on animation , the visibilty and size of the images should be swapped .i.e the

[android-developers] Re: Understand Broadcast and Intent with Dalvik process

2009-03-19 Thread Kenny
As no one answers, I also see similar questions with other threads. I want to rephrase the question. Android defines Application as components Activity, Service, Broadcast/Intent and Content provider; Android designs the inter-process communication - BINDER; Usually application components send

[android-developers] Re: Google dev phone G1 activation problem

2009-03-19 Thread HalfAsleep
If anyone gets their phone set up with telenor, including MMS, please let us know. I have got my phone working too now, with these settings... name: Telenor apn: telenor username: password: mmsc: http://mmsc/ mms proxy: 10.10.10.11 mms port: 8080 mcc:242 mnc:01 apn type: default The only

[android-developers] Re: When another activity is called from main activity, The calling activity get destroyed?

2009-03-19 Thread Stoyan Damov
http://developer.android.com/guide/topics/fundamentals.html On Thu, Mar 19, 2009 at 8:50 AM, jj jagtap...@gmail.com wrote: When another activity is started from main activity, The main activity get destroyed and created when returned back from second Activity               OR      main

[android-developers] Re: Android Developer Challenge II Cancelled?

2009-03-19 Thread De San Nicolas Jean Philippe
The strategy of Google for Android is very very obscure. I think for a while that the Challenge Two will not come. As I know Objective C maybe I ll take a pause with android. ... 2009/3/19 luigi bertoneri luigi.berton...@gmail.com Where are the info about the 2° comp ? Post the link please the

[android-developers] Re: Dynamically loading a .jar file at Runtime

2009-03-19 Thread Asif k
Yes I can push file to /data/app-private/ directory using DDMS but not programmatically. But I want to call .jar file at runtime to complete my task. Please any suggestion On Mar 19, 12:19 pm, Dianne Hackborn hack...@android.com wrote: You can put whatever you want in your private data

[android-developers] Re: How can i access html code of a web page.

2009-03-19 Thread Mark Murphy
Thanks for the replies. I can be able to access a web page. But can anyone tell me how can i get the html coding of the respective web page? You cannot access the HTML source from a running Browser instance. If you want to download HTML for your own use, use URLConnection or

[android-developers] Accuracy of sensors such as electronic compass

2009-03-19 Thread mscwd01
Just a quick question... I am now beginning an app which will use the compass and tilt sensors to determine a persons heading and line of sight. Can I assume the sensors on devices such as the G1 are fairly accurate or can I expect to run into problems such as the compass being 5-10 degress off

[android-developers] Re: help with my implementation of mediaplayer

2009-03-19 Thread susanner
yes,thanks you very much. you got it. The reason for my problem is because I have used the android tools-》export unsigned apk, so my apk is unsigned, On 2月23日, 下午1时55分, Gray graham.stachow...@gmail.com wrote: From what I can understand you want to move the compiled file. In eclipse load your

[android-developers] Re: Obtaining IP address when on 3G (MOBILE) connection

2009-03-19 Thread Joseph Teo
Hi Regina.. Many Thanks for the codes! :) Joseph On Thu, Mar 19, 2009 at 5:38 AM, Regina Mitsue Azuma rmaz...@gmail.comwrote: I was able to get the IP address using the following code: public String getLocalIpAddress() { try { for (EnumerationNetworkInterface en =

[android-developers] Re: Can i convert AMR to MP3 OR WAV in my activity?

2009-03-19 Thread zeeshan
? On Mar 18, 2:31 pm, zeeshan genx...@gmail.com wrote: Thanks for reply Dave, can anyone tell me how can i do this, i assume to install any converter application and use it in my code to convert and return the mp3 uri please help me - On Mar 18, 10:31 am, Dave Sparks

[android-developers] Re: modal ViewGroups

2009-03-19 Thread skink
On 19 Mar, 09:53, skink psk...@gmail.com wrote: hi, suppose i have two 'main' subtrees in my view hierarchy. is there any way to 'disable' one subtree (ViewGroup) so that it does not gain fosus, touch events etc (maybe even it gets blurred/ translucent). basically something similar to

[android-developers] Re: IWindowManager Not Available

2009-03-19 Thread AndRaj
Thanks for the reply... On Mar 19, 1:10 pm, Dianne Hackborn hack...@android.com wrote: Just because you can browse through the source and find something doesn't mean it is supported for application development.  You can use the APIs in the SDK.  Things that are not in the SDK were

[android-developers] Re: Could I release a new version of an app under a new name and port existing users for free?

2009-03-19 Thread Avraham Serour
couldn't you ask google the key under you dev account? it is a registered account which the app was released under On Wed, Mar 18, 2009 at 6:21 PM, Sena Gbeckor-Kove s...@imkon.com wrote: Dude, that sucks so hard! The same thing happend to me 4 weeks ago, luckily I had backups though. Good

[android-developers] How can i access html code of a web page.

2009-03-19 Thread Suman
Hi all. Thanks for the replies. I can be able to access a web page. But can anyone tell me how can i get the html coding of the respective web page? i want to get the html coding of interface of any web page through android coding. I have used this coding for accessing a

[android-developers] Re: need help on --core-library

2009-03-19 Thread Marco Schmitz
I think I have to compile the java.bean. using the makefiles (just like the android core sources). to be honest I didnt find any documentation how to use them. greetings, darolla 2009/3/18 Stoyan Damov stoyan.da...@gmail.com: FreeTTS is a text-to-speech engine. It's only dependency is *again*

[android-developers] Re: Count Down Timer in list view

2009-03-19 Thread AnuR
Can i have ny solution from any oneee Y is the count down timer showing different time periods if all are set to the same duration in the start??? and thy are ticking in inetrval of 3-4 secs... pls tel me any soultion to fix thisss On Mar 18, 5:15 pm, AnuR

[android-developers] How to get System Endianess

2009-03-19 Thread Luca Belluccini
In Sun Java I can get System endianess using the System.getProperty (sun.os.endian). How to get endianess of the system in Android? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Scheduling a repeating task and being notified

2009-03-19 Thread Streets Of Boston
I did something similar, however, i did not use a BroadcastReceiver to get callbacks back from the service. Instead i used the RemoteCallbackList class: http://developer.android.com/reference/android/os/RemoteCallbackList.html No fiddling with intents and such. Just define a callback

[android-developers] Stopping autoscroll on scrolling up

2009-03-19 Thread Al
Hi all, normally my scrollview scrolls down when text is added to the textview it wraps around. When I scroll up, I want to stop it from autoscrolling. I have boolean which says if it should scroll or not, but the problem I'm having it to work out if the scrollbar is at the bottom of the

[android-developers] Re: File Upload Question

2009-03-19 Thread Carl Whalley
Sure its not the MIME type not being defined correctly on the server? Try changing the extensions to txt, bin, etc and if you see a pattern where some work and others don't then thats the culprit. -- Android Academy: http://www.androidacademy.com On Mar 18, 8:36 pm, Bobbie

[android-developers] Problem launching my own (camera) application on press of Camera-button

2009-03-19 Thread Streets Of Boston
When i press the phone's camera button, both my application and the system's camera application are launched: - I press camera button - After a few seconds, my camera app appears and all looks good. - However, when i go back (back-button), i'm not brought back to where i was before. Instead,

[android-developers] Re: IWindowManager Not Available

2009-03-19 Thread Lars
Actually you can use some of them. Just add tools\lib\layoutlib.jar to the build path (Eclipse: right click the project, select Build Path/ Add Libraries. Click User Libraries, select Android libs, click Add JARs, browse to layoutlib.jar, click OK, Finish etc.) BR Lars Brange / User Library On

[android-developers] Re: When the system launches a ResolverActivity or ChooserActivity it doesn't present...

2009-03-19 Thread Hans
On Mar 18, 11:16 pm, Dianne Hackborn hack...@android.com wrote: They use queryIntentActivities(), which only returns activities.  In the package manager, the four component types are completely disjoint, and there is simply no call you can make that will give you a mix of them. Thanks for the

[android-developers] detect screensize

2009-03-19 Thread Bob
Hi, How do I get the current screen resolution (width and height)? Thanks, Bob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: How to get System Endianess

2009-03-19 Thread fadden
On Mar 19, 6:57 am, Luca Belluccini lucabellucc...@gmail.com wrote: In Sun Java I can get System endianess using the System.getProperty (sun.os.endian). How to get endianess of the system in Android? One possibility: java.nio.ByteOrder.nativeOrder().

[android-developers] Re: decompilar .dex

2009-03-19 Thread fadden
On Mar 18, 2:52 pm, Carlos Alberto tic...@gmail.com wrote: how to decompile a. dex for instructions in machine language anyone know of a disassembler. Dalvík in dex dexdump -d file. Works on .dex, .odex, and .apk/.jar with a classes.dex inside. dexdump is included on the device and in (most

[android-developers] Re: detect screensize

2009-03-19 Thread Pd
this may work but I've not tested it :-) getWindow().getWindowManager().getDefaultDisplay().getWidth(); getWindow().getWindowManager().getDefaultDisplay().getHeight(); Bob wrote: Hi, How do I get the current screen resolution (width and height)? Thanks, Bob

[android-developers] Re: Accuracy of sensors such as electronic compass

2009-03-19 Thread David Turner
On Thu, Mar 19, 2009 at 3:49 AM, mscwd01 mscw...@gmail.com wrote: Just a quick question... I am now beginning an app which will use the compass and tilt sensors to determine a persons heading and line of sight. Can I assume the sensors on devices such as the G1 are fairly accurate or can I

[android-developers] Re: Accuracy of sensors such as electronic compass

2009-03-19 Thread David Turner
the compass measures the local magnetic field, and as such might be influenced by various electronics devices around the phone. For example, try using a compass application and move near/far a PC, and you'll see the pin tilting towards it sensibly. In other words, the accuracy of the compass is

[android-developers] Re: Could I release a new version of an app under a new name and port existing users for free?

2009-03-19 Thread Michael MacDonald
Google does not have the private key which you would need to sign new apps. Moral of the story: Make sure your keystore is backed up off-site *before* you publish an app (If nothing else you can mail it to your web mail account as an attachment) Avraham Serour wrote: couldn't you ask google

[android-developers] Re: Issue in android:duration in frame animation

2009-03-19 Thread Romain Guy
It's normal, 15ms is the resolution of the clock on the G1. It's the same kind of resolution you can expect on desktop machines. On Thu, Mar 19, 2009 at 2:05 AM, Nithin nithin.war...@gmail.com wrote: Hi, In Frame Animation, in item tag, when i am putting android:duration=5, its not working.

[android-developers] Re: Issue in android:duration in frame animation

2009-03-19 Thread Romain Guy
Note that the hardware also won't let you do more than 60 frames per second, so any duration lower than 15ms is useless. On Thu, Mar 19, 2009 at 8:26 AM, Romain Guy romain...@google.com wrote: It's normal, 15ms is the resolution of the clock on the G1. It's the same kind of resolution you can

[android-developers] Re: File Upload Question

2009-03-19 Thread Bobbie
I'm currently not specifying a MIME type, do I need to do this? Here is the PHP code I'm using: ?php $target_path = uploads/; $target_path = $target_path.basename($_FILES['uploadedfile'] ['name']); if (move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo The

[android-developers] onResume called while device is off for hours??

2009-03-19 Thread Marc
Hi, all. I have documented cases of an activity's onResume method getting called HOURS after the G1 is - well, not asleep, since a WakeLock is in use, but idle with the screen off (indeed, it had been off in one case for 6+ hours). Can anyone here explain how that might have happened? Thanks.

[android-developers] Re: File Upload Question

2009-03-19 Thread Bobbie
Nevermind, I'm a moron. I understand what you are talking about now. Bobbie On Mar 19, 11:38 am, Bobbie bobbie.st...@gmail.com wrote: I'm currently not specifying a MIME type, do I need to do this?  Here is the PHP code I'm using: ?php $target_path = uploads/; $target_path =

[android-developers] Polite discussion of lite/trial vs pro distribution

2009-03-19 Thread Keith Wiley
First I will explain my situation. Then, I would greatly appreciate constructive dialog on how other developers feel similar situations should be managed. I wrote a simple app in November. I offered it for free on the Market for two reasons. One, Google hadn't implemented paid apps yet, so I

[android-developers] Re: Polite discussion of lite/trial vs pro distribution

2009-03-19 Thread Stoyan Damov
I don't think anyone would flame you on this list. You had a free app, you made some improvements which cost you this and that hours of hard work, angry wife, etc :) and you want a reward for that - how this can be wrong? What I'd do is have the lite version display a dialog on 1st startup,

[android-developers] Re: Polite discussion of lite/trial vs pro distribution

2009-03-19 Thread Al Sutton
My solution would be to leave the old version on the market, then, under a new name, have the lite and pro versions. Put in the 325 char description that the old app is not supported and people may want to look at the new app name. Al. Keith Wiley wrote: First I will explain my situation.

[android-developers] Re: decompilar .dex

2009-03-19 Thread strazzere
Here is another --- never used undx, but Gabbor did a nice job with dedexer; http://dedexer.sourceforge.net/ On Mar 19, 10:48 am, fadden fad...@android.com wrote: On Mar 18, 2:52 pm, Carlos Alberto tic...@gmail.com wrote: how to decompile a. dex for instructions in machine language

[android-developers] Using WifiManager or WifiConfiguration.Status

2009-03-19 Thread wafa
Hi all, Does anyone have an idea how use those Class(WifiManager or WifiConfiguration.Status) this is my code but doesn't work even if the manifestxml has all the necessary permession WifiManager manager= (WifiManager) getSystemService (Context.WIFI_SERVICE); if( manager.isWifiEnabled()){

[android-developers] Re: How to config G1 to make both browser and MMS work?

2009-03-19 Thread Weizhong
If I leave apn type to blank, is that same to default? Actually I have tested with cmnet apn type blank, and cmwap apn type mms, it's not working either. On Mar 19, 3:18 am, David Turner di...@android.com wrote: when you want to use different APNs for both data and MMS, you need to set the apn

[android-developers] openInputStream problem

2009-03-19 Thread Tejas
Hi, I'm trying to read an image (taken on camera) that I need to POST to a server. I'm using the following code: CODE OutputStream os = urlConn.getOutputStream(); ContentResolver cR = this.getContentResolver(); InputStream is = cR.openInputStream(photoUri);

[android-developers] Long Click Event of Button

2009-03-19 Thread Omer Saatcioglu
Hello all, I have a problem. I use Click and Long Click Event in a button. Everything's seems fine. However; whenever a user long click the button, the click event also triggers. I couldn't find what I am doing wrong. On the other hand, I noticed something might highly relevant showDialog

[android-developers] Re: Unified Database Populating Solution

2009-03-19 Thread Carlo
On Mar 14, 2:17 am, Dianne Hackborn hack...@android.com wrote: On Tue, Mar 10, 2009 at 6:36 PM, Justin Allen Jaynes jus...@ragblue.comwrote: 1.  Why is there a file size limit on resources in the raw or assets folders (such a small limit, that is)? Assets are normally stored

[android-developers] Emulator fails at boot up

2009-03-19 Thread android_user
hello everyone, I am using android-sdk-windows-1.1_r1. when i start the emulator the first screen appears and then it freezes. I dont get the home screen even if i wait for 10 min. In ddms log cat i get these messages 03-19 09:08:18.291: INFO/DEBUG(20): debuggerd: Feb 5 2009 15:37:59 03-19

[android-developers] catching a trackball event

2009-03-19 Thread djr
I have tried all day to capture a trackball event in a View. Basically I want to use the trackball to move a Sprite in a 2D game left and right. The onTouchEvent works perfectly well in the View to move the Sprite with my finger but it would be nicer and cleaner to use the trackball. The

[android-developers] content://sms/sent Read SMS

2009-03-19 Thread Martin
Hi, I'm having a problem reading the SMS messages from the device. When acquiring a content provider for the URI content://sms/inbox - everything is fine, I read the person column to find the foreign key into the people table and I can ultimately reach the contact and their name. However, I also

[android-developers] Is there a Color Picker widget in Android?

2009-03-19 Thread Oceanedge
Hi, Is there a Color Picker widget which developer can call in Android? 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] Re: Accessing contact' email addresses

2009-03-19 Thread what
I think you can try ContactMethods.DATA,this field contains the email address. Good luck! On Mar 18, 2:10 pm, Umair knowledgeinter...@gmail.com wrote: Posted: Tue Mar 17, 2009 11:47 am    Post subject: Accessing contact' email addresses Hi! I'm developing an application in which I need to

[android-developers] Extra Icons in Menu

2009-03-19 Thread Grant Kimm
Hi, When I run my app, I see about 8 or 9 icons in the main phone menu. One is to run the app, and the others actually run activities within the app. I want there to only be one icon for users. Any ideas as to why this is happening? My code is structured similar to examples from the

[android-developers] regarding android screenshot source code

2009-03-19 Thread rajiv
hello.. we are trying to use the screen shot source code in our project, we tried to compile screenshot code on eclipse, there is a write function used which uses renderd image as one of its parameter , but the one which is being passed is buffered image, and we are getting an error .. so

[android-developers] Handling Sensor Events and optimal way of using SensorGestureDetector?

2009-03-19 Thread Learning_Android
Hi All My dbt is that lets say I have the applications like Gallery and Calendar which want to use Sensor input as another input apart from touch i/p and key i/p and for this there is a utility say SensorGestureDetector(Example SensorGestureDetector:

[android-developers] Re: Android and Java Security Running Together

2009-03-19 Thread Aubrey-Derrick Schmidt
Hi, do you have any official publications on this. This sounds very interesting. Good look in progressing. BR, Aubrey Daniel Janev wrote: Hi Guys, I've just succeeded in changing the security model of the dalvik VM! So I've run an OSGi implementation on the android platform with

[android-developers] Getting current on-screen GUI objects?

2009-03-19 Thread adil.b
Hello all, Is there any way for an Android application to retrieve some sort of Collection object that contains references to all of the GUI elements which are currently on the phone's screen? This could be very useful for testing purposes and so on. If I have overlooked a well-known class

[android-developers] How do I cleanup my Android application/Market?

2009-03-19 Thread Andrew
Hi In the process of updating some software on my ADP1 using Market I apparently created an inconsistent state which I cannot resolve. I have reported it as a bug (http://code.google.com/p/android/issues/ detail?id=2238) but to make a long story short. When I start Market the application is

[android-developers] How does LocationManager.requestLocationUpdates interact with power management?

2009-03-19 Thread Charles Duffy
I'm looking at writing an application which includes functionality similar to Google's My Tracks (with some additional data collection support and a specialized user interface). If periodic location updates are requested with a minimum update delay provided but the phone goes to sleep either by

[android-developers] Using WifiManager or WifiConfiguration.Status

2009-03-19 Thread wafa
Hi all, Does anyone have an idea how use those Class(WifiManager or WifiConfiguration.Status) this is my code but doesn't work even if the manifestxml has all the necessary permession WifiManager manager= (WifiManager) getSystemService (Context.WIFI_SERVICE); if( manager.isWifiEnabled()){

[android-developers] Re: detect screensize

2009-03-19 Thread Dianne Hackborn
You almost certainly don't want to do that. It does not tell you the actually available space (taking into account any screen decorations that may or may not be showing), just the raw size. You should always use the view hierarchy layout system to place your UI. On Thu, Mar 19, 2009 at 9:36 AM,

[android-developers] Re: Getting current on-screen GUI objects?

2009-03-19 Thread Dianne Hackborn
You can look at the hierarchyviewer app. Note that this only works on dev phones for security reasons. On Thu, Mar 19, 2009 at 8:43 AM, adil.b adil.bukh...@gmail.com wrote: Hello all, Is there any way for an Android application to retrieve some sort of Collection object that contains

[android-developers] Re: Handling Sensor Events and optimal way of using SensorGestureDetector?

2009-03-19 Thread Dianne Hackborn
Didn't we just have this discussion on another list? 1. This class is not part of the platform at this point, it is stuff people are working on separate and you can just use if you want. 2. Statically link the class into your platform and use it, as has already been suggested. On Thu, Mar 19,

[android-developers] Re: catching a trackball event

2009-03-19 Thread Dianne Hackborn
Make sure your view has input focus. On Wed, Mar 18, 2009 at 7:51 PM, djr ryand...@gmail.com wrote: I have tried all day to capture a trackball event in a View. Basically I want to use the trackball to move a Sprite in a 2D game left and right. The onTouchEvent works perfectly well in the

[android-developers] Re: onResume called while device is off for hours??

2009-03-19 Thread Dianne Hackborn
If something is starting an activity while the screen is off, it can happen. If the screen is off during that time, it should quickly be re-paused though. On Thu, Mar 19, 2009 at 8:39 AM, Marc gram...@gmail.com wrote: Hi, all. I have documented cases of an activity's onResume method getting

[android-developers] shared Jar files between different project

2009-03-19 Thread Jove
Hi guys, I meet a problem when using jar files, I simplify my question by below examples: test.jar include a class of com.example.test.class eclipse project A using test.jar and declare test1 extend from com.example.test eclipse project B using test.jar too and declare test2 extend

[android-developers] How to open files from browser or mail or filebrowser or so with my application?

2009-03-19 Thread sdz
Hi, how can I open all files (for example all files with mime type application/msword or application/msexcel) with my Application? And how can I read the content of the files? Are there any examples? Thank you. --~--~-~--~~~---~--~~ You received this message

[android-developers] adb version failed

2009-03-19 Thread jammy
hello every one.. im new to android... i have installed android in eclipse every thing was going fine but at last when i gave path of android sdk it is giving error as ' adb version failed!' error while loading shared libraries:libncurses.so.5:wrong ELF class:ELFCLASS64. im not able to

[android-developers] Signal strength seen by the G1 phone

2009-03-19 Thread Matthew
Hello, This is my first post here. Please let me know if I should be posting this question elsewhere or if I should be asking the question in a different manner. I am trying to obtain the signal strength seen by the G1 phone. I have implemented a PhoneStateListener and onSignalStrengthChanged

[android-developers] how to color key 2d sprite backgound?

2009-03-19 Thread Tazzer
Hi, I am working on a 2d library for creating a game including sprite collisions, sorting and animation converting (.spr to Java classes/ bmp's). At first I used png's with the background color being transparant (24 bits png image) but I want to use 256 color bitmaps with the background color

[android-developers] How to open files from browser or mail or filebrowser or so with my application?

2009-03-19 Thread sdz
Hi, how can I tell Android that I want all files (with mimetype for example application/msword) open with my application. And in my application, I want to be able to read the file. Is there any example? Thank you. Greetings --~--~-~--~~~---~--~~ You received

[android-developers] Re: When the system launches a ResolverActivity or ChooserActivity it doesn't present...

2009-03-19 Thread Dianne Hackborn
On Thu, Mar 19, 2009 at 7:33 AM, Hans hkess...@gmail.com wrote: Services are just completely different from receivers, which are different from activities. They don't receive any broadcasts at all. They certainly do when you register for them dynamically. Seriously, they don't.

[android-developers] webview contentwidth

2009-03-19 Thread Bob
Hi, Is there anyway to get the measured width of a webview's rendered html. There is a getContentHeight method that gets the height but there doesn't seem to be a analogous method for widths. Thanks, Bob --~--~-~--~~~---~--~~ You received this message because you

  1   2   >