[android-developers] How to show a Progress dialog in AsyncTask?

2009-08-29 Thread Juan David Trujillo C.
Hi all! I am creating an app that show a Progress dialog in AsyncTask to inform the user while web information is being fetched. I've read there are two ways of doing this: Using handlers or creating and executing an inner class that overrides the AsyncTask class I am trying to create and execu

[android-developers] Re: How to add the image on surface view?

2009-08-29 Thread manoj
Another thing I noticed is that, the image is showed because I commented the //mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); if I remove comments, then I am getting exceptions. How to handle it. Please help me. On Aug 30, 10:51 am, manoj wrote: > Hi, > > is there any one to help? >

[android-developers] Re: Accelerometer OnSensorChanged() no longer occur in standby

2009-08-29 Thread Alexander Kosenkov
I have exactly the same problem with Hero! My app works fine on G1 but does not receive accelerometer events on Hero in standby with partial lock. What could we do? Have you posted bugreport to Android? --~--~-~--~~~---~--~~ You received this message because you ar

[android-developers] Re: How to add the image on surface view?

2009-08-29 Thread manoj
Hi, is there any one to help? Basically, what I am looking for is, I want to write a video recorder aap, while recording the app, I want to show my logo at the corner of the capturing screen. I tried the above code. But didn't get the preview. Please help me. Thanks, Manoj. On Aug 29, 9:44 am

[android-developers] Re: Error messages in logcat while browsing!

2009-08-29 Thread edwardlee.2002
Hi ysadhu, Have you fixed this issue? I meet the same issue as you. Would you please share the method to fix it? Thanks! On Aug 13, 9:13 am, ysadhu wrote: > Hello Android developers, > > While browsing the net i am getting Error messages in logcat. > And this comes only while typing the URL o

[android-developers] Re: escaping string in SQLite

2009-08-29 Thread Marco Nelissen
On Sat, Aug 29, 2009 at 12:25 PM, Nate wrote: > > How should I be escaping strings for SQLite? I found I was inserting a > string with single quote and this broke. I am now replacing single > quote with two single quotes, but I am wondering what else I should be > escaping, if anything? The SQLite

[android-developers] Re: Threads and Screen Orientation Change

2009-08-29 Thread CraigsRace
It would only be a forward reference (from the destroyed activity to the new activity), not a back reference. On Aug 30, 2:34 pm, Romain Guy wrote: > > However, couldn't the Android framework just forward any requests from > > a destroyed activity, to the newly created Activity, saving us > > de

[android-developers] Re: Threads and Screen Orientation Change

2009-08-29 Thread Romain Guy
> However, couldn't the Android framework just forward any requests from > a destroyed activity, to the newly created Activity, saving us > developers the pain of handling it ourselves? To do this, the framework would have to keep around references to all previous Activities pretty much forever.

[android-developers] Re: Testing OpenGL rendering in Java outside of Android?

2009-08-29 Thread Romain Guy
I think that JOGL 2 supports OpenGL ES 1.0 and 2.0. You could try with this. On Sat, Aug 29, 2009 at 9:28 PM, SChaser wrote: > > I would like to write OpenGL classes and test them in java outside of > an Android device or emulator, and then use these in the Android. > > Has anybody done this?: If

[android-developers] Testing OpenGL rendering in Java outside of Android?

2009-08-29 Thread SChaser
I would like to write OpenGL classes and test them in java outside of an Android device or emulator, and then use these in the Android. Has anybody done this?: If so, are there JOGL implementations that are directly compatible? I tried doing this on Windows using JOGL and writing wrappers, etc,

[android-developers] Threads and Screen Orientation Change

2009-08-29 Thread CraigsRace
Hi, In the following sequence of events: 1. Start a new thread (as a result of a button click - or similar). 2. User changes the screen orientation (causing the Activity that started the thread to be destroyed). 3. Thread finishes, and wants to do some dialog (or any UI) work. However, doing a sh

[android-developers] Re: Wake Lock - Finalized exception

2009-08-29 Thread Dianne Hackborn
Keep a reference on the object somewhere in your app as long as you need to hold the wake lock. You need to do that, anyway, so you can release the wake lock at the appropriate time. On Sat, Aug 29, 2009 at 7:37 PM, flohier wrote: > > Dear All, > > I'm acquiring a wake lock and apparently, it g

[android-developers] Re: How to dismiss Spinner's Dialog automatically

2009-08-29 Thread dweebo
Yes same problem here, figure it out yet? -Peter On Jul 30, 8:56 am, Gery wrote: > Hi group, > > I am sure that everybody can easily recur the problem I am facing. > There is a Spinner in the view, which includes a few entries. When I > cllick the Spinner, it pops up a dialog so user can choose

[android-developers] Wake Lock - Finalized exception

2009-08-29 Thread flohier
Dear All, I'm acquiring a wake lock and apparently, it gets garbage collected in my app at some point with the following error; D/dalvikvm( 3554): GC freed 6047 objects / 487704 bytes in 198ms E/AndroidRuntime( 3554): java.lang.Exception: WakeLock finalized while still held: AMBU E/AndroidRuntim

[android-developers] Re: Proper Intent for Launching Gallery?

2009-08-29 Thread Donn Felker
Great,thank you Dianne. I appreciate the quick response. On Aug 29, 8:25 pm, Dianne Hackborn wrote: > You should use GET_CONTENT with the MIME type you want (such as image/*). > > Never ever ever use explicit component names for things outside of your > app.  Those are implementation details tha

[android-developers] discount sale Air Max shoes , Nike shox shoes in ( http://nikesoso.51.com )

2009-08-29 Thread nike shox
cheap wholesale air max shoes, nike shox shoes in http://nikesoso.51.com NIKE SHOES Nike Shox Series Shox R2 Shox R3 Shox R4 Shox R5 Shox RZ Shox NZ Shox OZ Shox TL1 Shox TL3 Shox TZ1 Shox TZ2

[android-developers] InvokeZoomPicker

2009-08-29 Thread Maps.Huge.Info (Maps API Guru)
How can a webview be created with the ZoomPicker enabled and the webpage zoomed out? I have the following code that doesn't work: WebView mywebview = getWebView() ; mywebview.setWebViewClient(getWebViewClient()); mywebview.getSettings().setJavaScri

[android-developers] Re: Proper Intent for Launching Gallery?

2009-08-29 Thread Dianne Hackborn
You should use GET_CONTENT with the MIME type you want (such as image/*). Never ever ever use explicit component names for things outside of your app. Those are implementation details that can't be relied upon. Unfortunately I don't believe there is any way to use the stock gallery on a particul

[android-developers] Re: Home Screen Detection

2009-08-29 Thread GodsMoon
I admit that what I'm trying to do is a little unorthodox and somewhat creative. The idea I have does slightly change the way security works on the phone. However, I don't think I'm abusing the API or decreasing security. Its somewhat hard to explain my app idea. I will be releasing a video of my

[android-developers] Proper Intent for Launching Gallery?

2009-08-29 Thread Donn Felker
What is the proper Intent to launch the gallery or gallery picker? I'm using the following code, and a lot of users are complaining of a force close error. It works just fine on my stock G1, but with the new phones out it seems to be an issue. Intent intent = new Intent(); intent.setClassName("

[android-developers] Re: Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

2009-08-29 Thread Dianne Hackborn
Apparently your app needs Google's maps library. That library is not in the emulator image you are using. I am pretty sure there is an image included in the SDK that contains that library; the documentation about the SDK and ADTs should be of help. On Sat, Aug 29, 2009 at 1:24 PM, jsdf wrote:

[android-developers] Re: Home Screen Detection

2009-08-29 Thread Dianne Hackborn
On Sat, Aug 29, 2009 at 12:54 PM, GodsMoon wrote: > Dianne Hackborn, > Are you familiar with the KeyguardManager class? Its really cool, I > haven't seen anything like it on any other platform and I'm excited to > take advantage of it. > http://developer.android.com/reference/android/app/Keyguard

[android-developers] Re: Service - Activity (simplest way)

2009-08-29 Thread Dianne Hackborn
You're much safer if you explicitly connect them together. There are many ways a static object can be cleared or not yet set (by your process being killed) when you aren't expecting it. On Sat, Aug 29, 2009 at 2:42 PM, Rafael Martins wrote: > > But I would like to know if there is any problem i

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread longhairedsi
Hi Diane, I will post a bug report with example code after the developer challenge monday deadline. I've found the problem, it seems to be totaly unrelated, but this is for sure where the problem comes from. I reverted project then added code line by line. This is where it went wrong: (this is

[android-developers] Re: Hello World - Unknown Error

2009-08-29 Thread Mark Murphy
DemoShadow wrote: > How do I do that? If by "that" you mean "send a complete trace of your logcat": http://developer.android.com/guide/developing/tools/adb.html#logcat Or, look in DDMS or the DDMS perspective in Eclipse, and LogCat is a tab towards the bottom. Highlight a series of rows and cli

[android-developers] Re: Service - Activity (simplest way)

2009-08-29 Thread Rafael Martins
But I would like to know if there is any problem if I just call “public static” methods between activities and services, without using the IBinder object from the OnServiceConnected(ComponentName className, IBinder service) method. Calling directing the methods (“public static”) we don’t need this

[android-developers] Re: Hello World - Unknown Error

2009-08-29 Thread DemoShadow
How do I do that? On Aug 29, 2009 3:52 PM, "Roman ( T-Mobile USA)" < roman.baumgaert...@t-mobile.com> wrote: Could you send a complete trace of your logcat. It might be from importance when exactly you are getting this error message. Furthermore you can check in the project folder of your applic

[android-developers] Re: Accelerometer OnSensorChanged() no longer occur in standby

2009-08-29 Thread Yuri Dario
Hi, > the Magic or Hero when I tried partial wake locks (you mentioned > trying on ADP1, ie a G1 - have you tried it on any other handsets?) there are over 100 users now, so I think it works; I'll ask someone I know has a magic. > It has worked in the past without any requirement on a wake loc

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread Roman ( T-Mobile USA)
Any ideas what is the size of your input stream? I assume that when you call the method with passing the input stream, your stack is too small that's why you get the segmentation fault. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements i

[android-developers] Re: Support for Arabic?

2009-08-29 Thread Mark Murphy
Ehab Bassilli wrote: > Can someone from Google kindly tell me when you expect Android to work > for languages such as Arabic. I'm aware that Arabic is not currently > supported. There are contributors working on that right now -- there has been a fair bit of discussion over on [android-platform]

[android-developers] Re: Urgent: ListView icon problem

2009-08-29 Thread Mark Murphy
Sonic wrote: > Hi all, > > I would be VERY greatful if you could help me with this one, its > literally driving me insane, been trying to do this for 2 days now. > > I have a listview, now what I want to do it is, when a position in the > listview gets clicked on, it changes the icon for that po

[android-developers] Re: Quattrowireless - monetizing your app

2009-08-29 Thread Maps.Huge.Info (Maps API Guru)
Got the same e-mail, sort of spammy. I use the example app they posted, "Weatherbug" which is a nice app. The ads displayed on it are of reasonable size and unobtrusive, so perhaps they are an ok source of ad revenue. Don't know how they pay or what kind of company they are though. -John Coryat

[android-developers] Re: Hello World - Unknown Error

2009-08-29 Thread Roman ( T-Mobile USA)
Could you send a complete trace of your logcat. It might be from importance when exactly you are getting this error message. Furthermore you can check in the project folder of your application whether the APK was correctly created (look in the bin folder). Sometimes the emulator behaves weird, a e

[android-developers] Quattrowireless - monetizing your app

2009-08-29 Thread James
I recently posted a free app and subsequently received an email about "monetizing your app" from quattrowireless. It sounds enticing but am wondering if anyone has taken advantage of this offer and how they may feel about it? Thanks for any responses! --~--~-~--~~~---~

[android-developers] Re: Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

2009-08-29 Thread jsdf
Dianne, Yes, the log tells me that my package "requires unavailable shared library com.google.android.maps". When I take out the from my manifest, it loads successfully. On launch, I get an error: "Unable to resolve superclass of Lcom/jsdf/app/map/MapViewActivity;" And, clearly, that is not the

[android-developers] Re: Service - Activity (simplest way)

2009-08-29 Thread Dianne Hackborn
Actually, the official example in the same process doesn't use binders for communication at all: http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/app/LocalServiceBinding.html http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/app/LocalS

[android-developers] Re: JSONExceptions

2009-08-29 Thread Mark Murphy
Eurig Jones wrote: > I'm fetching a lot of JSON values. Values that could potentially not > exist from my server. > > Having android throw JSONExceptions when something doesn't exist is > really annoying! Returning a null value would be enough. > > Anyone know the reason behind this? You would

[android-developers] Re: Home Screen Detection

2009-08-29 Thread GodsMoon
Dianne Hackborn, Are you familiar with the KeyguardManager class? Its really cool, I haven't seen anything like it on any other platform and I'm excited to take advantage of it. http://developer.android.com/reference/android/app/KeyguardManager.html It can take over the Home screen button I've c

[android-developers] Re: can one cmulator control controls two emulators in the same computor at the same time ?

2009-08-29 Thread Emre A. Yavuz
Did you try opening two command screens and telneting to each emulator seperately ? You can then use the command "geo fix lat long .. " to send mock locations. Cheers, Emre Date: Sat, 29 Aug 2009 13:23:11 +0800 Subject: [android-developers] can one cmulator control controls two em

[android-developers] Re: Countries for selling priced applications in Android Market

2009-08-29 Thread CG
This is indeed very annoying, sitting in Denmark and cannot bye or sell aps. --~--~-~--~~~---~--~~ 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@googlegro

[android-developers] Programmaticly adding playlists

2009-08-29 Thread Nathan Ekstrom
I've been banging my head against this for over a day now. How do I get a play list file (extension .m3u) to show up in the media player programmaticly? I figured out how to add .mp3 files by handing them to the media scanner. When I hand the play list file to the media scanner it does nothing.

[android-developers] erase char in adb shell?

2009-08-29 Thread Carl Banks
Anyone know if there's a built-in way to change erase char when using adb shell? adb doesn't forward my terminal settings, stty isn't installed, and unfortunately on my desktop backspace sends ^H, whereas android has erase set to ^? (DEL). No, I'm not going to change the erase character on my de

[android-developers] Re: Play audio over an active phone call, so other end can hear it

2009-08-29 Thread jsdf
tcp, No, I haven't been able to find anything. Looks like it was either overlooked or intentionally decided against. jdsf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] Re: App shutdown during package reinstall

2009-08-29 Thread nubin...@gmail.com
I don't know the details of your app, but every app in the Android market can be upgraded by the user while the app is running. During the upgrade process, the running instance of the older version would be shut down. I've rarely seen any complaints that "the app is broken during upgrade from And

[android-developers] can one cmulator control controls two emulators in the same computor at the same time ?

2009-08-29 Thread 于洋
Hello, I'm dealing with a application which associate with GPS mock locations and XMPP comunication,and need to send the mock location to two emulator by ADT at the same time .However I've got a problem .It seems that the location cann't be send to two emulator in my computor at the same time .

[android-developers] Re: Home Screen Detection

2009-08-29 Thread Dianne Hackborn
On Sat, Aug 29, 2009 at 11:52 AM, GodsMoon wrote: > I'm writing an app that turns off the keyguard and I would like to > exitKeyguardSecurely when you user goes back to the home screen. > This works great when hitting the Home button, but the user can back > to the home screen without prompt by u

[android-developers] Upload a valid APK ADC2

2009-08-29 Thread William Frati
I'm keep getting "upload a valid APK" when i'm uploading my app in ADC2 site submission. I followed all istructions at http://developer.android.com/guide/publishing/preparing.html, then signed my application with private key (40 years due date) all with Eclipse (Android tools\Export signed appl

[android-developers] Re: Ubuntu Jaunty and adb not playing well together

2009-08-29 Thread Rino
Here's what works for me on Ubuntu Karmic with my Htc Dream (Vendor ID 0bb4 as seen with 'lsusb') : - device in usb debug mode (settings/applications/developpment/) - in file /etc/udev/rules.d/51-android.rules : SUBSYSTEM==”usb”,ATTRS(idVendor)==”0bb4“,SYMLINK +="android_adb",MODE=”0666″ - chmod

[android-developers] Hello World - Unknown Error

2009-08-29 Thread DemoShadow
I have just set-up the AndroidSDK in Eclipse in linux. Everything was going smoothly until I hit the final run that would run the emulator and start the application. I came up with an "[2009-08-29 10:28:35 - HelloAndroid] Unknown error: " Is their a way to run the emulator by itself just to check

[android-developers] Showing places near current location

2009-08-29 Thread chris price
Hi, I have a app which shows my current location on a map. I want to display places the user is interested in, for example, the location of nearby pubs. I have the lat and long, is there a API method call to say get 1) all the locations matching this 'Pub' 2) within 1 mile or simply get 10 pub

[android-developers] How do I unsubscribe?

2009-08-29 Thread John Zebrowski
I tried android-developer-unsubscribe@ googlegroups.com but my account is not a gmail account so I get a failed delivery status notification. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" grou

[android-developers] Android project

2009-08-29 Thread sriram
Hello friends, I am a student studying in final year engineering in IT. I am willing to do my final year projecto Android platform. Can anyonelease suggest me a good idea that camn be implemented on Android platform. We, a group of 5 will be working on this for 5-6 months. Please, help me out wit

[android-developers] Urgent: ListView icon problem

2009-08-29 Thread Sonic
Hi all, I would be VERY greatful if you could help me with this one, its literally driving me insane, been trying to do this for 2 days now. I have a listview, now what I want to do it is, when a position in the listview gets clicked on, it changes the icon for that position, to a drawable named

[android-developers] Service - Activity (simplest way)

2009-08-29 Thread Rafael Martins
Hi, folks! I'm searching for the simplest way to implement a communication between an activity and a service when both are running at the same process. I've already made it using binders like the official example in the API Demo, but I want to call activity's methods from the service. So, I've m

[android-developers] Re: escaping string in SQLite

2009-08-29 Thread Agus
use: org.apache.commons.lang.StringEscapeUtils.escapeSql(str) On Sat, Aug 29, 2009 at 12:25 PM, Nate wrote: > > How should I be escaping strings for SQLite? I found I was inserting a > string with single quote and this broke. I am now replacing single > quote with two single quotes, but I am wo

[android-developers] Re: China to have there own Android Market?

2009-08-29 Thread Kai
China is a very different market. Each carriers is working on running its own app store that supports different platforms(like app stores inside carrier app store). The 3 carriers are very powerful so that you won't see a standalone app store like Apple App Store across carriers. The traditiona

[android-developers] escaping string in SQLite

2009-08-29 Thread Nate
How should I be escaping strings for SQLite? I found I was inserting a string with single quote and this broke. I am now replacing single quote with two single quotes, but I am wondering what else I should be escaping, if anything? The SQLite documentation is especially unhelpful. I realize this

[android-developers] Re: Date Limit

2009-08-29 Thread Brian Conrad
I've done something like this with my own DatePicker like widget where I used the TextWatcher member to keep input within bounds. I haven't tried it with the DatePicker widget but it may be possible. - Brian Sasi Kumar wrote: > Can any one suggess that i want a limited datepicker > > > ex:- 2

[android-developers] Re: Countries for selling priced applications in Android Market

2009-08-29 Thread karthikr
And there has been no updates for quite sometime now, seems things are going very slow for the past few months, i hope google atleast keeps us updated on the status. I have sent numerous number of emails to android support mail id over the past 6 moths regarding this issue, but i havnt receieved

[android-developers] Re: Home Screen Detection

2009-08-29 Thread GodsMoon
I'm writing an app that turns off the keyguard and I would like to exitKeyguardSecurely when you user goes back to the home screen. This works great when hitting the Home button, but the user can back to the home screen without prompt by using the back button (I think this is an API bug). So I'm t

[android-developers] Re: Home Screen Detection

2009-08-29 Thread Dianne Hackborn
No there is no API to do this. What are you trying to accomplish? Note that your code will break in many many situations -- when a custom home screen is being used, on a device where the manufacturer is not using the base platform home app, in the future when we have more memory so don't need to

[android-developers] Re: Force Close-Wait

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)
You have an ANR...check your code and logcat output, there's a problem. http://developer.android.com/guide/practices/design/responsiveness.html Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author so

[android-developers] Re: Bluetooth Support (lack of it)

2009-08-29 Thread CaseyB
> Andriod doesn't support many profiles.  (ummm 1, the headset profile) > I can't listen to music via bluetooth in my car anymore. It supports the Headset profile and the Stereo bluetooth profile. I listen to music and podcasts in my car via bluetooth every day. > The new version of windows mob

[android-developers] Re: textbox error

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)
...and your code (java and xml) please. Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 2

[android-developers] Re: BroadcastReceiver on Service

2009-08-29 Thread GodsMoon
Thanks for the advice. That works way better. On Aug 29, 12:19 pm, Dianne Hackborn wrote: > I would instead suggest the service just make a BroadcastReceiver inner > class, which it explicitly registers in onCreate() with registerReceiver() > (and unregisterReceiver() in onDestroy() of course).

[android-developers] TextView encoding types? I need to display asian characters...

2009-08-29 Thread Moto
Hi all, To me it seems crazzy that nowhere in the internet I could find information about displaying say Chinese text encoded... How can I do this? I tried changing the encoding type on the xml of a layout but I believe that's there only for eclipse to read and understand the xml that it... i.e

[android-developers] Re: Home Screen Detection

2009-08-29 Thread GodsMoon
I have a solution for home screen detection, but its slow and horrible. I run this bit of code every 1 seconds. ActivityManager actvityManager = (ActivityManager) this.getSystemService( ACTIVITY_SERVICE ); List procInfos = actvityManager.getRunningAppProcesses();

[android-developers] Re: can u tel me what are the attributes we want to specify in the xml file

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)
It needs atleast one child layout like LinearLayout and the android:layout_width, android:layout_height attributes Here is a working layout using ScrollView http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="fill_parent" > http://sch

[android-developers] Don't Send mail

2009-08-29 Thread Ravisanjkar S
I am not android developer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread Dianne Hackborn
Could you please file a bug report with full code to reproduce? Also I know this is not going to be helpful at all, but I would really recommend staying away from DocumentBuilder -- it is a lot more overhead compared to directly parsing the XML. In fact, by far the most efficient way to parse an

[android-developers] Re: BroadcastReceiver on Service

2009-08-29 Thread Dianne Hackborn
I would instead suggest the service just make a BroadcastReceiver inner class, which it explicitly registers in onCreate() with registerReceiver() (and unregisterReceiver() in onDestroy() of course). On Fri, Aug 28, 2009 at 9:06 PM, GodsMoon wrote: > > Looks like I answered my own question. > Th

[android-developers] Re: Question about assets vs resources

2009-08-29 Thread Dianne Hackborn
The .apk is mmapped, and assets/resources are only accessed when needed. Also this -is- a zip file, so to open it we need to find and load the zip table of contents; this generally is fairly cheap to do, though. What is "much" longer? How does that compare to other apps that are large (such as ma

[android-developers] Re: No com.android.camera.CropImage on HTC Magic?

2009-08-29 Thread Dianne Hackborn
This is not part of the SDK. You dug up the internal package and class name from somewhere, which happens to exist on the G1, but there is no guarantee it will exist on other devices (nor that it won't change in a future update to the G1). On Fri, Aug 28, 2009 at 3:16 PM, Klaus Kartou wrote: >

[android-developers] Re: Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

2009-08-29 Thread Dianne Hackborn
You have a line in your manifest for a shared library that is not built into the emulator. The log will probably tell you more. On Sat, Aug 29, 2009 at 8:37 AM, jsdf wrote: > > Hi all, > When I try to install one of my applications to the emulator with "adb > install bin/app.apk", I constantly

[android-developers] HTC Hero Networking Stack

2009-08-29 Thread Dan Sherman
Hey guys, I've been working on a game for a while now that relies heavily on UDP connections. Its been running great, but since releasing in the market, we've been flooded by complaints from Hero users that it doesn't run what-so-ever. We haven't received this complaint from anyone other than He

[android-developers] Re: reduce list view font size

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)
You can create a custom adapter and override the getView method. Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-M

[android-developers] JSONExceptions

2009-08-29 Thread Eurig Jones
I'm fetching a lot of JSON values. Values that could potentially not exist from my server. Having android throw JSONExceptions when something doesn't exist is really annoying! Returning a null value would be enough. Anyone know the reason behind this? --~--~-~--~~~---

[android-developers] Re: how to build adb.exe for windows.

2009-08-29 Thread Kyo Yin
CATC USB Chief Bus & Protocol Analyzer. With this equipment, i catch the 0 length packet when the host is ubuntu. 2009/8/29 Tejas : > > Not sure. What usb analyzer are you using ? > > On Aug 27, 11:37 pm, Kyo Yin wrote: >> "old framework of adb in target" ===> means i don`t use the composite >>

[android-developers] GLSurfaceView does not invoke OnKeyDown(...)

2009-08-29 Thread Gameboy
I'm trying to use SDK 1.5 for developing app on opengl feautre, but GLSurfaceView does not invoke OnKeyDown(...) any more, what's reason? App runs on windows emulator. There is sample code in SDK document: class MyGLSurfaceView extends GLSurfaceView { private MyRenderer mMyRenderer;

[android-developers] Publishing Upgrades on Android Market ... Still Relevant?

2009-08-29 Thread Jason Van Anden
Are the docs on the Developer site regarding Publishing out of date? In other words, is the Market still considered Beta and do users actually need a web service to compare their versions with so they can query the Market for updates? This is what is on the Android Developer site: http://develop

[android-developers] Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

2009-08-29 Thread jsdf
Hi all, When I try to install one of my applications to the emulator with "adb install bin/app.apk", I constantly receive the following: 1134 KB/s (123414 bytes in 0.106s) pkg: /data/local/tmp/app-lite.apk Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY] I have built with two external li

[android-developers] Re: Automatic launch of Virtual Keypad in first screen(launcher) of application

2009-08-29 Thread Gustav Mauer
What I did in the same situation was make one of the images in the screen focusable (a property in the layout) and then when creating the view in onCreate after the setContentView() call, called code like this: displayIcon = (ImageView)findViewById(R.id.your_image_widget); displayIcon.requestFocus

[android-developers] Re: code for simple client server http communication

2009-08-29 Thread Gustav Mauer
Search the internet for the following string: android "HttpClient httpclient = new DefaultHttpClient();" This should give you a lot of examples. On Aug 29, 7:00 am, ragavendran s wrote: > I am new to android development > > can u give anybody .code for simple client server http communication

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread longhairedsi
Sorry, forgot to say that the method builds everything as expected, when inspecting objects in the debugger the xml looks good the JamPack looks good Cheers Simon On Aug 29, 3:30 pm, longhairedsi wrote: > Arggh! it seems to be a random error, it just happned again a few > times. If I debug

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread longhairedsi
Arggh! it seems to be a random error, it just happned again a few times. If I debug and step through it works fine. If i run normally it fails. the code fails when builder.create().show(); is called on the dialogue Here's the snippets( i'm using the template pattern to build different loading o

[android-developers] Re: My emulator is running 100% CPU, it's annoying..

2009-08-29 Thread Chauncey Chen
Hi Jiaoni, I still look forward to an officer's or groupmate's answer. I have only one CPU. But I think we encountered almost the same situation. Maybe I should reinstall my operating system although it has been WinXP SP2. Or it is because my OS is Chinese version? (I guess you come from China)

[android-developers] Re: Date Picker

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)
How about just using a Spinner instead of a DatePicker ? Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA

[android-developers] Re: textbox error

2009-08-29 Thread kabir
Ah sorry, have pasted below: 08-29 14:15:15.717: INFO/dalvikvm(742): Stack overflow, expanding (0x41048200 to 0x41048000) 08-29 14:15:15.727: INFO/dalvikvm(742): Shrank stack (to 0x41048200, curFrame is 0x41049cd8) 08-29 14:15:15.727: DEBUG/AndroidRuntime(742): Shutting down VM 08-29 14:15:15.737

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread longhairedsi
Ok i found the problem. But don't ask my why this would cause a problem, I have no idea! It stems from me passing the inputstream into a method. This is what i was doing. //in the activity InputStream filestream = null; filestream = mCtx.getResources().openRawResource(R.raw.default_song); Docume

[android-developers] Re: Very nasty error for no reason

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)
Firstly, I agree it does fail in a "spectacular way" :) Secondly, please paste your code snippet : before and after ! Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual ca

[android-developers] Re: textbox error

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)
What's the error - please paste the logcat output. Thanks, Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile

[android-developers] Re: draw textview

2009-08-29 Thread Balwinder Kaur (T-Mobile USA)
I didn't quite see your problem..however if you want to drawText, you can create a CustomView and override the onDraw method. Use the Canvas.drawText method to draw your text. Also, did you try textview's android:typeface and android:textStyle options Balwinder Kaur Open Source Development Cen

[android-developers] textbox error

2009-08-29 Thread kabir
Hi, I am experiencing a bug with some EditTexts. when you click on them and they take focus, all is fine, but when you navigate away using the track ball to another similar edittext they crash, throwing an error from the onDraw function. the textboxes are referenced minimally by other code, and

[android-developers] Very nasty error for no reason

2009-08-29 Thread longhairedsi
Hi I've just changed my app to load an xml file from a raw resource instead of from the sdcard. Every time i run the app it now fails in a spectacular way. It just closes down, no exceptions. Log output is below. I'm not kidding, all i changed was the way an xml file is loaded. If change back an

[android-developers] Re: Question about assets vs resources

2009-08-29 Thread longhairedsi
Hi Diane, thanks for the reply Could I have a little clarification please? On app startup would the resources and assets be loaded into memory or only when they are used? Something like this seems to be happening to my app. Since I added the files I had on the sdcard to the assets folder the app

[android-developers] Re: No com.android.camera.CropImage on HTC Magic?

2009-08-29 Thread Klaus Kartou
Bump. Please, have anyone used the CropImage intent on a HTC Magic? On Sat, Aug 29, 2009 at 12:39 AM, Klaus Kartou wrote: > This code works on G1 > > Intent intent = new > Intent("com.android.camera.action.CROP"); > intent.setClassName("com.android.camera", > "com.andr

[android-developers] Re: Will ADC 2 submission deadline be extended?

2009-08-29 Thread Chris Stratton
You need a developer phone if you want to change android itself, but you do not need one to test ordinary applications. At most you may need a sim unlocked phone (without carrier cruft like myfaves) if no carrier in your location yet offers one for its network. (In an ideal world, any phone would

[android-developers] Re: Countries for selling priced applications in Android Market

2009-08-29 Thread Dollars 5
I am eager to see India on that list. Not sure why it takes them this long to get more countries :( On Aug 24, 10:58 am, Michael Leung wrote: > Hi, >   That is near the end of Q3 now. Does anyone know whether there will be a > new list of Countries for selling priced applications in Android Mark

[android-developers] draw textview

2009-08-29 Thread Sasi Kumar
please give some suggestion for me... I want to draw text in my text view my class is extended with Activity. textview t1; textview t2; t1.settext("sun 29 Sug 2009"); t2.settext("tue 29 Sug 2009"); see here sun and tue both are having same length words but it is moving. so wh

[android-developers] Re: Inserting Photo to Contacts

2009-08-29 Thread Michel Albert
Hmmm... I am trying the same thing. The method with "setPhotoData" does indeed run without a hitch. Except that the photo does not show on the contact when displaying it with the default "Contacts" application. I double checked both the Uri and the bytearray. Both are perfectly fine. The whole thi

  1   2   >