[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[]{ Fin

[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 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 data APN

[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 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 class. Ho can I do this...

[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 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 file there. >

[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 wrote: > No, you can't.  It is internal implementation details of the platfo

[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 主题: [android-developers] Re: Problem with setTheme() method 收件人: "Android Developers" 日期: 2009,319,周四,3:31下午 I'm sorry. But even if I put the setTheme on the first line of onCreate (even beforce super

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 wrote: > > 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: Android Developer Challenge II Cancelled?

2009-03-19 Thread Al Sutton
Very very recently though. Googling for "android developer challenge" still brings up the 404ed page as the top result. Al. Anonymous Anonymous wrote: > http://developer.android.com/ > try in here.. its moved i guess > > On Thu, Mar 19, 2009 at 12:10 PM, Eelke Folmer

[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 Thu,

[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 > > Very very recently though. Googling for "android developer challenge" > still brings up the 404ed page as the top result. > > Al. > > Anonymous Anonymous wrote: > > http://deve

[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 wrote: > Hi all, > > I downloaded the android source code.. > > Can any one tell me how to make our own jar file with all our > a

[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 messa

[android-developers] Re: Marquee Api demo

2009-03-19 Thread soniya
The marquee does work on "Focus". :) On Mar 4, 11:44 am, soniya 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 is it work

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

2009-03-19 Thread Nithin
Hi, In Frame Animation, in 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 mess

[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 object

[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 thing

[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 wrote: > > 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 i

[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 > Where are the info about the 2° comp ? > Post the link please the search give no result. >

[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 wrote: > You can put whatever you want in your private data directory. > > > > > > O

[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 e

[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 wrote: > From what I can understand you want to move the compiled file. In > eclipse load your workspace project, look in

[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 wrote: > > I was able to get the IP address using the following code: > > public String getLocalIpAddress() { >try { >for (Enumeration en = > NetworkInterface.getNetworkInte

[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 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 wrote: > > > > > No, there

[android-developers] Re: "modal" ViewGroups

2009-03-19 Thread skink
On 19 Mar, 09:53, skink 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 Dialog b

[android-developers] Re: " IWindowManager Not Available "

2009-03-19 Thread AndRaj
Thanks for the reply... On Mar 19, 1:10 pm, Dianne Hackborn 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 deliberately removed becau

[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 wrote: > > Dude, that sucks so hard! > > The same thing happend to me 4 weeks ago, luckily I had backups > though. Good luck. > >

[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] "modal" ViewGroups

2009-03-19 Thread skink
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 Dialog behavior... --~--~-~--~~~-

[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 : > > FreeTTS is a text-to-speech engine. It's only dependency is *again* > java.beans.Propert

[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 wrote: > Hi,

[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. T

[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 interface

[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 scrollvie

[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 wrote: > I have inclu

[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, i'm

[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 M

[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 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 info :). > > BT

[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@google

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

2009-03-19 Thread fadden
On Mar 19, 6:57 am, Luca Belluccini 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(). --~--~-~--~~~---~--~~ You rec

[android-developers] Re: decompilar .dex

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

[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 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 expect > to

[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 no

[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 th

[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 wrote: > > Hi, > > In Frame Animation, in tag, when i am putting > android:duration="5", its not working. 15ms is the minimum

[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 wrote: > 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 m

[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: On Mar 19, 10:11 am, Carl Whalley wrote: > 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

[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 wrote: > I'm currently not specifying a MIME type, do I need to do this?  Here > is the PHP code I'm using: > > $target_path = "uploads/"; > > $target_path = $target_path.basename($_FILE

[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 h

[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, s

[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] returning result from webview javascript?

2009-03-19 Thread Bob
Hi, Is there any way for me to get results from javascript functions in a page loaded in the webview component back into android logic? Thanks, Bob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Re: detect screensize

2009-03-19 Thread Bob
Thanks, that seems to work. On Mar 19, 9:54 am, Pd wrote: > 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 c

[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 wrote: > On Mar 18, 2:52 pm, Carlos Alberto wrote: > > > how to decompile a. dex for instructions in machine language > > > anyone know of a disassembler. Da

[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 wrote: > when you want to use different APNs for both data and MMS, you need to set > the "apn type" field

[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: OutputStream os = urlConn.getOutputStream(); ContentResolver cR = this.getContentResolver(); InputStream is = cR.openInputStream(photoUri); BufferedI

[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 functio

[android-developers] Re: Unified Database Populating Solution

2009-03-19 Thread Carlo
On Mar 14, 2:17 am, Dianne Hackborn wrote: > On Tue, Mar 10, 2009 at 6:36 PM, Justin Allen Jaynes > wrote: > > > 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 compressed, so currently opening it re

[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 09:0

[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 onTouchE

[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 als

[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@googl

[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 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 display user a list > of

[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 bo

[android-developers] Browser, videoo, plugins ... why is it not so ?

2009-03-19 Thread sjol
Hello, I have a question concerning the browser and embeds. How can I have the browser play embeded mp4 ( eg : ) As I have a site that is running with embeds that are declared to work with quicktime (if this has to change I will do it gladly ), so the site works A+ with the iPhone but on Androi

[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 .. s

[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: http://code.google.com/p/openintents/source/br

[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 s

[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 o

[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 marke

[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 t

[android-developers] Adding Sensor Events as i/p and right way to use 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: http://code.google.com/p/openintents/source/br

[android-developers] Re: detect screensize

2009-03-19 Thread Ikon
Using DisplayMetrics also works. I read somewhere in the documentation that DisplayMetrics should be used. On Mar 19, 12:36 pm, Bob wrote: > Thanks, that seems to work. > > On Mar 19, 9:54 am, Pd wrote: > > > this may work but I've not tested it  :-) > > >         getWindow().getWindowManager()

[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 wrote: > > Hello all, >Is there any way for an Android application to retrieve some sort > of Collection object that contains references to all of t

[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, 200

[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 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 View to move 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 wrote: > > Hi, all. > > I have documented cases of an activity's onResume method getting > called HOUR

[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 bec

[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 rectify

[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 b

[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 th

[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 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. sendBroadcast() will

[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

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

2009-03-19 Thread Mattaku Betsujin
I think you can make the situation a lot better for yourself by accepting that people generally suck. There are lots of free loaders who don't want to pay for anything. And there are lots of people with lots of free time creating free apps, thus reinforcing the mentality of the free loaders.

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

2009-03-19 Thread Romain Guy
If you want to do it from another tool, it's pretty easy. Run the following commands from a shell: Make sure you have a dev device/emulator (if you see "1", you're out of luck): $ adb shell getprop ro.secure 0 Start the server: $ adb shell service call window 1 i32 4939 You should see the follo

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

2009-03-19 Thread Hans
On Mar 19, 1:08 pm, Dianne Hackborn wrote: > On Thu, Mar 19, 2009 at 7:33 AM, Hans 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 dyna

[android-developers] Problem with writing to SD card / deleting files on it. Number of files relevant?

2009-03-19 Thread Mariano Kamp
Hi, I wrote an app that downloads web sites and all their assets (images/stylesheets) to "disk" and therefore stores lots of small files on the SD card. Sometimes it fails to delete large amounts of files and afterward the file system is r/o. To analyze that behavior I tried to do the removal

[android-developers] raw data from sound file

2009-03-19 Thread Maisonobe.A (MaaKs)
Hello, does someone could tell me if it is or not possible to get raw data from a sound file ? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

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

2009-03-19 Thread Teo
I too feel very sad about the lack of ADC news, but i think one of the explanations might be the financial crisis. On Mar 19, 12:01 pm, De San Nicolas Jean Philippe wrote: > The strategy of Google for Android is very very obscure. I think for a while > that the Challenge Two will not come. As I

[android-developers] Help with Emulator warning (related to QuickDraw and Quartz)

2009-03-19 Thread Priyanka G
When I run one of my apps on emulator, I get this warning and it never runs. "emulator[223:10b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz." However, my other apps work just fine

  1   2   >