[android-developers] Re: How do I know whether my device is currently charging?

2009-09-21 Thread Walles
Is this documented anywhere? I looked here... http://developer.android.com/reference/android/os/BatteryManager.html ... but AFAICS there's nothing about 0 meaning unplugged. What you're suggesting *is* what I'm after, but I'm unwilling to use undocumented API features since they risk

[android-developers] Re: How do I know whether my device is currently charging?

2009-09-21 Thread Dianne Hackborn
It will be documented in Eclair. On Sun, Sep 20, 2009 at 11:22 PM, Walles johan.wal...@gmail.com wrote: Is this documented anywhere? I looked here... http://developer.android.com/reference/android/os/BatteryManager.html ... but AFAICS there's nothing about 0 meaning unplugged. What

[android-developers] Location constructors are stubs?

2009-09-21 Thread Walles
Hi! I'm writing unit tests for a class containing Locations. To create a (mock) Location, I do this: Location from = new Location(Johan); However, the Location(String) constructor throws a RuntimeException saying Stub!. How can I create a mock location? Note that I'm running this on the

[android-developers] Re: WebView.loadDataWithBaseURL bug

2009-09-21 Thread tomei.ninge...@gmail.com
My work-around works for all cases except one: if the page contains this link: a href=click/a When the user clicks the link, shouldOverrideUrlLloading is not called. On Sep 18, 5:15 pm, Jason Proctor jason.android.li...@gmail.com wrote: you probably want to set the web view client before

[android-developers] Re: OnItemClickListener onItemClick in custom adapter not firing

2009-09-21 Thread lf.hl
Hi Joy, thanks for your response. I see the OnClickListeners for the button and edittext firing (the one i have registered in the adapter). I don't see the OnItemClickListener in the AdapterTest.class. Thanks again and best, lf.hl On 21 Sep., 02:17, Joy 3crownt...@gmail.com wrote: Hi, You

[android-developers] problem to display multi line text..

2009-09-21 Thread ragavendran s
I am new to android development... How to Display multi lines in a Screen... here i m using StringTokenizeri m displaying in Textviewit displays last text only ..i think it override the text with in it can u tell anybody how to Display a whole String in a Screen.here i want to

[android-developers] Re: Android 1.6 SDK is here!

2009-09-21 Thread tstanly
is any update for stream of media issue in sdk 1.6?? thanks On 9月16日, 上午6時22分, Xavier Ducrohet x...@android.com wrote: http://android-developers.blogspot.com/2009/09/android-16-sdk-is-here... Enjoy! -- Xavier Ducrohet Android Developer Tools Engineer Google Inc.

[android-developers] Re: Disable WebKit JavaScript security for XMLHttpRequest

2009-09-21 Thread Miguel Paraz
On Sep 17, 10:23 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Use JSON instead. No cross domain security with that method. Sorry I don't understand - how can JSON help here? Retrieving JSON data from the remote side would still need a XMLHttpRequest. The bug I filed was rejected

[android-developers] about webview.clearCache

2009-09-21 Thread tstanly
hi all, I had a problem about webview.clearCache method, what's the main function about clearCache? is a essential steps for using webview? I used for it in my app when user load his webview everytime, but there are errors some times, like app had not permission to touch cache in the sqlite, so

[android-developers] Re: Hierarchy Viewer

2009-09-21 Thread Dianne Hackborn
It is over the adb connection. You can look at the source in the open-source repository... though keep in mind that there are no guarantees the protocol it uses will remain compatible across platform versions. On Fri, Sep 18, 2009 at 1:38 PM, Marcelo Alves malves.i...@gmail.comwrote: Hi

[android-developers] Re: how to add openobex to android

2009-09-21 Thread petter
I think too, but for me it is hard to compile for android by ./ configure and make with NDK. Yes you can create *.so file, but you must create makefile for it and it will not be easy, if you will succeed, please write me info. On Jul 23, 11:51 am, lm llming2...@sina.com wrote: I am a new man to

[android-developers] How can I get Activity object from Intent object or something else

2009-09-21 Thread HandsomeboyIT
I have an Activity that running on system. I can get the Intent that is used to start the activity. But i don't know how to get the Activity object from the Intent object or something else. Can anyone tell me how to do this??? Note that, I don't use Instrumentation object. Thanks so much...

[android-developers] Re: switch to another applications programmatically

2009-09-21 Thread HandsomeboyIT
Thanks Diana Hackborn, I can do my work by getting the RecentRunningTask list and corresponding Intent obejct list. So I can run or switch to any application from my app. Thanks for your help!! On Sep 13, 10:42 pm, Dianne Hackborn hack...@android.com wrote: First of all, don't use am.  All it

[android-developers] clear issue on Mapview

2009-09-21 Thread tstanly
hi all, I have a mapview, and I draw two point on the same mapview, using mapview.getoverlay().add(point1); mapview.getoverlay().add(point2); and now I want to clear point1, I just can find: mapview.getoverlay().clear() method to clear mapview, but this action will clear point1 and point2, but

[android-developers] Re: Default Styles?

2009-09-21 Thread Felix Oghina
Thank you for the reply. So I was looking in the right place. Well, my task was to display a title-like text in the activity. I couldn't find a suitable style for it so I used android:backgroud=@android:drawable/ title_bar, as I found in [platform/packages/apps/Contacts.git] / res / layout-finger

[android-developers] The format of system date is wrong in Chinese

2009-09-21 Thread HelloWorld
A small application based on cupcake 1.5 import java.util.Calendar; import java.text.DateFormat; private Calendar mCalendar; private java.text.DateFormat mTitleDateFormat; . mTitleDateFormat.format(mCalendar.getTime()); If system language is Chinese, output is: 5,2009 9 10 If system

[android-developers] long-running loadUrl() JavaScript with a callback

2009-09-21 Thread Miguel Paraz
Hi, I'm planning to use the JavaScript interface to Java, to connect to Java methods that go to the network (or some other long-running function) and deliver the results via callback. The flow is: 1. User clicks on a link in the WebView, which calls my Java code. 2. My Java code posts a worker

[android-developers] The screen was black case, service sleep?

2009-09-21 Thread lili
I wrote a service and I registered BroadcastReceiver in it. In the onReceive () method of BroadcastReceiver catagory,I just wrote Intent.ACTION_TIME_TICK.equals(intent.getAction()) to receive the systenm time every minute and deal with everything that I should do in it every minute.But i found a

[android-developers] how webview recoginze phone number

2009-09-21 Thread 铁锋 许
in current email, phone number can be clickable now, I want to customerize the phone number format, So, May I ask how webview recognize a phone number? Anybody knows where the code is in current android code? Thanks very much Best Regards Xu Tiefeng

[android-developers] Re: The screen was black case, service sleep?

2009-09-21 Thread tauntz
The problem (it's not a problem, really - it's designed so) is that your device goes to sleep to save battery when the user is not actively using their device. That means that the main CPU will also power down to some state and for applications the time stops. What you can do is: * Use the

[android-developers] SimpleCursorAdapter with rawQuery

2009-09-21 Thread Siu Man Yu
In the API Demo, there is example on using SimpleCursorAdapter. However, it is using the MediaStore cursor. Is there any method so that I can use other external cursor prepare by SQL database. I don't know what should I input to the from String[]. Thank you in advance.

[android-developers] How to get the InputMethodService to focus on Dialog after dispatch a KeyEvent on Spinner???

2009-09-21 Thread HandsomeboyIT
I have a Spinner and related Adapter. I use InputMethodService to click on the Spinner. A Dialog appears after click on Spinner. but after the dialog appeared, InputMethodService object can not get focus on the item list on Dialog for doing another event? Is anyone know how to send event to the

[android-developers] about webview

2009-09-21 Thread Burne Xu
in current email, phone number can be clickable now, I want to customerize the phone number format, So, May I ask how webview recognize a phone number? Anybody knows where the code is in current android code? Thanks very much --~--~-~--~~~---~--~~ You received this

[android-developers] Re: long-running loadUrl() JavaScript with a callback

2009-09-21 Thread Mark Murphy
I made an example that sleeps inside the Runnable. The entire WebView becomes unresponsive! What is the proper way (if any) of implementing a long-running JavaScript call? Everything is fine except for sleeping in the Runnable. The Runnable is run on the UI thread -- sleeping on the UI

[android-developers] WebView.loadUrl on a hidden view opens the android browser

2009-09-21 Thread Rainer
Hi I am trying to transition between 2 web views. One is in the foreground and the other already prepares another URL in the background. Everything works fine except for the fact that calling loadURL on the 2nd (invisible) view causes the native browser to open with the specified url, rather

[android-developers] Re: Use external fonts in android

2009-09-21 Thread mudit
hi.. i hv tried loading ttf file of the font but it is still not loading. i am also getting error in the console while loading the app onto device.. here is the error .. Starting activity com.test.abc on device [2009-09-21 14:56:32 - test] ActivityManager: DDM dispatch reg wait timeout

[android-developers] Re: Multiple notifications with one status bar icon

2009-09-21 Thread Bryan
Make that trigger a different intent, not action. On Sep 21, 5:09 am, Bryan bryanw...@gmail.com wrote: Is there a way to have one status bar icon, but multiple entries in the notification pull down? I need to generate a few notifications that each trigger a different action when clicked, but

[android-developers] Progress bar not visible with a white background in 1.6 sdk

2009-09-21 Thread And-Rider
when i ran my old application in 1.6 i noticed that the progress bar was not showing up on the screen.When i analyzed it further i found the issue.The progress bar is getting activated but its not visible since my background color is also white.When i changed the background color i was able to

[android-developers] Re: Cannot upload Promotional Graphic to Android Market

2009-09-21 Thread Tom Gibara
For what it's worth, I ran into the same problem yesterday with not being able to upload a promo image. Changing browsers made no difference. In the end I converted it into a high quality JPEG and that worked fine. Tom. 2009/9/8 Streets Of Boston flyingdutc...@gmail.com I meant that the

[android-developers] Re: how to use gluUnProject

2009-09-21 Thread androidDeveloper
Have you checked the MatrixGrabber? I tried to use the MatrixGrabber, but I got an class Cast Exception in the MatrixGrabber Row 56: private void getMatrix(GL10 gl, int mode, float[] mat) { MatrixTrackingGL gl2 = (MatrixTrackingGL) gl; ...} Does anyone know how to use it? On 8

[android-developers] Re: OpenGL 2D Game Framework

2009-09-21 Thread rich...@stickycoding.com
Definitely a good idea Fred, something else that I put into the TODO list, thanks. 1.6 wasn't out when I was working the audio part of the engine, so it never crossed my mind. Also, I've been working on a game from the engine myself, and I've made a nifty path following modifier, that will get

[android-developers] OpenGL ES - How to map 2D-X-Y-screen Coordinates to 3D-X-Y-Z Object

2009-09-21 Thread androidDeveloper
Does anyone know how to map 2D-X-Y screen coordinates to 3D-X-Y-Z Object coordinates in a openGL World (Or 3D-X-Y-Z to 2D-X-Y)? What I want is to determine on which 3D-Object a user clicked, when he touches the phone screen (onTouchEvent). Thanks!

[android-developers] Route between two GeoPoints/ lat-lon pairs

2009-09-21 Thread Stefan
Hello, i am using the android 1.6 sdk. i search for a function / api, where i can find a route between 2 points. The DrivingDirections library doesn't exist!? So if there is a function or an api for that, please let me know. I take a look in the google-addon for android, but i don't find

[android-developers] How can I use Attribute android:keyPreviewLayout ??

2009-09-21 Thread Ryu
How can I use Attribute android:keyPreviewLayout ?? It always make a err message!! my XML file like that com.example.android.softkeyboard.LatinKeyboardView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/keyboard android:keyPreviewOffset=50px

[android-developers] Re: How to create an app which will install other .apk

2009-09-21 Thread DaminouU
I have just tried this code but something is not just as I wanted. The user shoud confirm that he want to install the new version when this application is already install. Is it possible to force the installation without any user confirmation? On Sep 17, 10:36 am, DaminouU dam.le...@gmail.com

[android-developers] How read img files

2009-09-21 Thread Francesco Pace
Hi guys, I need some information about Android filesystem. I'm using emulator and I want to open system.dd file, which has been created by the dd tool. I used the following command: dd if=/dev/mtd/mtd0 of=/sdcard/system.dd bs=2048 Now, how can I read this file? There are any tools able to

[android-developers] Re: Hierarchy Viewer

2009-09-21 Thread Marcelo Alves
What this link repository?? You know? 2009/9/21 Dianne Hackborn hack...@android.com It is over the adb connection. You can look at the source in the open-source repository... though keep in mind that there are no guarantees the protocol it uses will remain compatible across platform

[android-developers] Re: Please help me !

2009-09-21 Thread Smelly Eddie
please help me is a useless topic title. You are not going tom get valuable help this way. Please trya clear title that rel;ates to ty7our problem. and in the text describe what you ahve tried or read until this point, and why that may not be working. This is not a 'code my app' forum On Sep

[android-developers] Re: Please help me !

2009-09-21 Thread Eduardo Gonçalves
*Try this!* package org.apache.maps; import android.graphics.Canvas; import android.graphics.Paint; import com.google.android.maps.Overlay; import com.google.android.maps.Point; import com.google.googlenav.Placemark; import com.google.googlenav.Search; public class MyOverlay extends Overlay {

[android-developers] How to Force browser activity to close after passing control

2009-09-21 Thread Smelly Eddie
So I read through the SDK docs and I thought that calling a new activity(browser) as part of a task (myTask) will mean that activity* (browser) will close when a user closes the task (myTask) But I am left with a browser window. here is my scenario (in sudo code); **Start myTask Activity1

[android-developers] Re: OpenGL ES - How to map 2D-X-Y-screen Coordinates to 3D-X-Y-Z Object

2009-09-21 Thread Streets Of Boston
Search for gluUnProject in this discussion group. You'll find the answer there. On Sep 21, 7:18 am, androidDeveloper stepmas...@googlemail.com wrote: Does anyone know how to map 2D-X-Y screen coordinates to 3D-X-Y-Z Object coordinates in a openGL World (Or  3D-X-Y-Z to 2D-X-Y)? What I want

[android-developers] Re: how to use gluUnProject

2009-09-21 Thread Streets Of Boston
Be sure that the 'gl' you use in your app is actually a MatrixTrackingGL, a wrapper around the GL10 instance returned by the opengl api. Look at the API Demoes source code that comes with the Android SDK. Look at the 'Kube.java' class. On Sep 21, 7:09 am, androidDeveloper

[android-developers] To add Image in Listview....

2009-09-21 Thread ragavendran s
how can i add image to my listview dynamically Thanks in advance.. with Regards, Raghav.S Here is My Code: .final String[] options1 = new String[] {My Wedding To Do List,My Reminders,My Appointments ,My Vendors,My Gift Tracker,My Wedding Budget Calculator,My

[android-developers] Re: To add Image in Listview....

2009-09-21 Thread Mark Murphy
how can i add image to my listview dynamically One way is to extend your adapter class and implement getView(), so you can take control over the process of creating and customizing rows. Here is a free excerpt from one of my books that describes how to do this:

[android-developers] Re: OpenGL and pause/resume

2009-09-21 Thread Guian
well, I did put those lines in the onPause/onResume methods but still have the black screen with this error in the logcat: ERROR/SurfaceComposerClient(15353): using an invalid surface id=0, identity=1431 should be 1435 Doesn't seem exactly the same error... can anybody help please ? On 30

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-09-21 Thread Tom Gibara
Even with if one specifies inScaled=false, there's a surprise lurking: 1) Using BitmapFactory.decodeResource(), I load a background bitmap (which I don't want scaled), create a mutable copy of it and wrap it with a canvas. 2) Using Bitmap.create() I create a bitmap (into which I render a flower)

[android-developers] Re: WebView.loadUrl on a hidden view opens the android browser

2009-09-21 Thread Mark Murphy
I am trying to transition between 2 web views. One is in the foreground and the other already prepares another URL in the background. Everything works fine except for the fact that calling loadURL on the 2nd (invisible) view causes the native browser to open with the specified url, rather

[android-developers] Evaluate a javascript expression in android

2009-09-21 Thread bennyb
Is it possible to reference the javax.script.ScriptEngine library when developing an android application? If not is there anyway possible to evaluate a javascript expression in android? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: To add Image in Listview....

2009-09-21 Thread justinh
Might also want to look here: http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/view/List14.html On Sep 21, 8:50 am, ragavendran s sraghav.ra...@gmail.com wrote: how can i add image to my listview dynamically Thanks in advance.. with Regards,

[android-developers] Re: how to use gluUnProject

2009-09-21 Thread androidDeveloper
Thanks. I found the error. The Code example is found in the ApiDemos com.example.android.apis.graphics.spritetext SpriteTextActivity. On 21 Sep., 14:56, Streets Of Boston flyingdutc...@gmail.com wrote: --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Using maps with a postcode

2009-09-21 Thread Neilz
Is this possible with the current Maps implementation? I want my map to navigate to a location dependent on the postcode, just like you would on the google maps website. Or at least to retrieve the latitude and longitude from the postcode. Thanks.

[android-developers] Re: OpenGL 2D Game Framework

2009-09-21 Thread pro
Hi Richard, What is the terms conditions for using it? I mean copyright etc... I'm developing some games ( my area of interest is AI type games ), but I might be able to take some fragments of code for animations, placement of objects etc. But for commercial side, I don't want to get into

[android-developers] Re: OnItemClickListener onItemClick in custom adapter not firing

2009-09-21 Thread justinh
You array adapter has extended ArrayAdapterFuItem: public class FuItemAdapter extends ArrayAdapterFuItem Your ArrayAdapter is expecting type FuItem, your overridden OnItemClick function isn't being called because the AdapterView's type isn't explicit maybe? So try AdapterViewFuItem arg0 instead

[android-developers] using tesseract on android

2009-09-21 Thread mudit
hello.. i am working on a android project that uses tesseract OCR engines..i hv been searching on internet from past few days about any support for tesseract for android platform..but i didnt get any help...Plz help me about how i do use tesseract for android platform...or how do i install it on

[android-developers] Re: OpenGL 2D Game Framework

2009-09-21 Thread Phred
I tried it out and noticed that animation and movement jerks once a second. Anyone else get that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Request to official ADC2 team.

2009-09-21 Thread Salt
+ On 9月15日, 午前3:40, Mobidev android.mobi...@gmail.com wrote: .               Once upon a time, we had this little group…http://groups.google.com/group/android-challengeAndroid Challenge: Discuss the Android Developer Challenge, including questions on contest details. You can also seek other

[android-developers] Re: OpenGL 2D Game Framework

2009-09-21 Thread nEx.Software
Probably some GC going on, I also noticed it but it seemed less frequent than once per second. On Sep 21, 7:45 am, Phred phr...@gmail.com wrote: I tried it out and noticed that animation and movement jerks once a second.  Anyone else get that?

[android-developers] Re: using tesseract on android

2009-09-21 Thread Cédric Berger
On Mon, Sep 21, 2009 at 16:36, mudit mudit.a...@gmail.com wrote: hello.. i am working on a android project that uses tesseract OCR engines..i hv been searching on internet from past few days about any support for tesseract for android platform..but i didnt get any help...Plz help me about

[android-developers] Re: OpenGL 2D Game Framework

2009-09-21 Thread Andrew Shu
I noticed on the google code page http://code.google.com/p/rokon/ that the license is GPL 3, which means anyone who uses it must open source their app. Richard, have you given some thought to changing the license to something more permissive? Either way, impressive work. Good job. On Sep 21,

[android-developers] Re: using tesseract on android

2009-09-21 Thread Mark Murphy
i am working on a android project that uses tesseract OCR engines..i hv been searching on internet from past few days about any support for tesseract for android platform..but i didnt get any help...Plz help me about how i do use tesseract for android platform...or how do i install it on

[android-developers] Misunderstand about MediaPlayer play the rtsp streaming media.

2009-09-21 Thread yjshi
I use the WIFI to connect to the internet.And I use a wifi link named linksys,it plays ok. while I use another wifi link named dlink,it was fail.The speed oflinksys is 1.2Mbps and the bitrate of the dlink is just 700Kbps.Does the opencore have the speed limited while MediaPlayer play the rtsp?

[android-developers] Re: Android 1.6 SDK is here!

2009-09-21 Thread Eric M. Burke
I do understand that sources are available at source.android.com, but it would save people time if a src JAR were bundled with the SDK download. http://code.google.com/p/android/issues/detail?id=979 This seems like a reasonable request. I know I've personally spent many hours on previous SDKs

[android-developers] An approach and very **drafty** sample code for utilizing models for storing widget state..

2009-09-21 Thread Satya Komatineni
I have been experimenting with widgets for a few days, and I needed a simple abstract means of saving the widget state. I want to be able to do something like the following: private void updateAppWidget(String name, String dob) { //create a widget model with its own data

[android-developers] Re: Bug in GL10.texSubImage2D?

2009-09-21 Thread Mark Gjøl
Thank you for that elaborate response. Your assumptions were all correct (and I _did_ do a little too much work when I called texImage2D, I only really needed to do that once, not every time I updated the texture). I now make a Canvas, which I draw my dynamic bitmap to, and just bind that

[android-developers] Re: OpenGL 2D Game Framework

2009-09-21 Thread Dan Sherman
The library looks great (after a few hours of playing with it), definitely has some improvements that could be made, but very well laid out and easy to work with. However, the GPLv3 does make game development a bit of an issue, if the games need to be released as GPLv3 as well... - Dan On Mon,

[android-developers] Re: OpenGL 2D Game Framework

2009-09-21 Thread nEx.Software
Dan, that's what I was thinking as well (regarding the GPLv3). On Sep 21, 9:42 am, Dan Sherman impact...@gmail.com wrote: The library looks great (after a few hours of playing with it), definitely has some improvements that could be made, but very well laid out and easy to work with.

[android-developers] Re: Hierarchy Viewer

2009-09-21 Thread Mark Murphy
What this link repository?? You know? http://source.android.com -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Is it possible to extend resources xml with custom views?

2009-09-21 Thread kalikali
Hi.. Following this topic, If i customized a view in A application and want to reuse in other B or C applications, as i know, the resource file ( the default background image and string... in custom view class ) can't be used by other apps. Advanced, If we want to release this custom view

[android-developers] Fwd: [android-porting] How to add multiple frame buffer support in Android?

2009-09-21 Thread தங்கமணி அருண்
please help him -- Forwarded message -- From: Pankaj dubepankaj1...@gmail.com Date: 2009/9/16 Subject: [android-porting] How to add multiple frame buffer support in Android? To: android-porting android-port...@googlegroups.com Hi all, We are looking for one serious change in

[android-developers] Android Dev Phone 1 Out Of Stock :-(

2009-09-21 Thread AJs
It was frustrating to pay $25 only to find out that the ADP 1 is out of stock. The page says it will be available early September ! I guess thats not true as September is ending now. Does anyone know when will the device be available ? -Thanks much AJs

[android-developers] is there anything wrong with the function camera.takePicture()???

2009-09-21 Thread lu
when i use the Camera class to make a little app to get a bitmap,but when it run,there'll be a problem: . 09-21 12:56:06.913: ERROR/AndroidRuntime(6083): at android.hardware.Camera.takePicture(Camera.java:362) . is anything wrong with this function

[android-developers] Re: Animation Problem

2009-09-21 Thread HVT
I know its too late but Thanks for the reply. Basically what I want is a combination of Translate and rotate animation. I dont know if i chose the right thing as i'm very new to android. I want to animate a object on a random curve (like a freehand drawn curve which has no specific shape).So

[android-developers] Searchable Dictionary Example: R.raw.definitions cannot be resolved

2009-09-21 Thread Huanghuan
Hi there, I am trying to compile the Searchable Dictionary example on my Eclipse (OS: XP) http://developer.android.com/guide/samples/SearchableDictionary/index.html but it complians about R.raw.temp cannot be resolved at line 92 of Dictionary.java file: InputStream inputStream =

[android-developers] Re: Android market application on emulator

2009-09-21 Thread neverland...@gmail.com
Hi,I can also see the market app, but when I sign in with a google account , an error go out, You don't have a network connection. hmm.. On Sep 12, 4:32 am, dhr dima.hris...@gmail.com wrote: Finally managed to make it work. Instead of copying the image file directly to the avd directory, had

[android-developers] How to update expandable view when adapter's data changed

2009-09-21 Thread lunatic
I have an activity that extends ExpandableListActivity. I use SimpleCursorTreeAdapter to fill ExpandableListView. My layout contains list view and empty view. On app start ExpandableListActivity automatically chooses the right view to display. My steps: 1. App starts, there is no data. (empty

[android-developers] Animation

2009-09-21 Thread HVT
Hello All, I'm facing a problem while clicking the objects while they animate. Please help me identify the click on the objects while they are animating. My requirement is to randomly move a ball around the screen and the user should be able to click this ball any time. Also this ball changes

[android-developers] DHCP request failed wifi with WEP2 enterprise

2009-09-21 Thread John
I got a problem when I try to connect the wifi with WEP2 enterprise. In the log, I found it failed when doing DHCP request. I don't know why. Is any place I can get detail log. Or anything wrong with my config, Or it is not supported by Android 1.5 Here is my config in

[android-developers] Query...

2009-09-21 Thread nisha.devit
How can apply motion like touch screen animation in android... I apply the following code ViewFlipper vf = (ViewFlipper) findViewById(R.id.details); // Set an animation from res/anim: I pick push left out vf.setAnimation(AnimationUtils.loadAnimation(view.getContext(),

[android-developers] Re: Is it possible to extend resources xml with custom views?

2009-09-21 Thread kalikali
Hi, Following this topic, if i customized a view in A application, and want to re-use this view in other B or C... apps. As i know the resource ( the default background image or string in custom view ) can't be used in other apps. Advanced, if i want to release this view to other android

[android-developers] How to split a screen into two?

2009-09-21 Thread Zombie
How do I run two apps by splitting a screen into two? --~--~-~--~~~---~--~~ 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

[android-developers] updateTimeMillis not called for home screen widgets in 1.6

2009-09-21 Thread Norbert
Hi, I came accross the issue that my widgets aren't working anymore when I use the updateTimeMillis is used for home screen widgets. Same code works fine on 1.5 but on 1.6 it's just not calling the onUpdate() method any more. The bug, that onDelete isn't called seems to be fixed. Could the

[android-developers] How to split a screen into two? One running with an application and the other with another application?

2009-09-21 Thread Karthik P
Does anyone has an idea of how to split the screen into two? Is it possible for me to run an application in one screen and another app in other screen? Any help in this regard will be of great help. Karthik --~--~-~--~~~---~--~~ You received this message because

[android-developers] bug in FileInputStream for some chars?

2009-09-21 Thread Jan Zach
Hi, I am trying to parse an xml file from the /sdcard/... directory using the XmlPullParser. For a file containing a mixture of Czech and Japanese (czech national chars + kana + kanji) I am getting exception: position:END_TAG so that it looks that the parser cannot recognize tags properly. I

[android-developers] Re: Where did platform/packages/apps/Sync.git go?

2009-09-21 Thread Matt
Does anyone know the answer to this? Has Google made it proprietary, like their G-Mail application? On Sep 18, 1:09 pm, Matt matthew.quig...@gmail.com wrote: I noticed that the Data Synchronization app was removed from the Donut branch; all of the files were deleted.  However, the Donut

[android-developers] Making UPNP work for Android

2009-09-21 Thread Satish Kota
Hi Guys, I am in this BIG BIG problem...getting UPNP working on my computer and for many reasons...it doesn't seem to be working... Any body has any clue on how to get it working? Are there any one who has any kind of code that could help me on this? I believe Andromote is the only person who

[android-developers] Re: Widgets changes with 1.6?

2009-09-21 Thread Norbert
Hi BoD, I'm having the same issue with my widget. It's working fine in 1.5 I'm wondering if this has to do with the bugfix for the onDelete()- Call in 1.5. Norbert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: How to force soft keyboard to be visible?

2009-09-21 Thread James W
I have exactly the same requirement. Running on a Hero, which only has a soft keyboard. The above code is copied exactly, yet it doesnt work. The keyboard is not shown no matter where I put the code, before or after SetContentView(). This seems like a pretty standard thing to want to do, is

[android-developers] Re: How to split a screen into two? One running with an application and the other with another application?

2009-09-21 Thread Mark Murphy
Does anyone has an idea of how to split the screen into two? Is it possible for me to run an application in one screen and another app in other screen? That is not presently possible in Android. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books:

[android-developers] Re: OpenGL 2D Game Framework

2009-09-21 Thread polyclefsoftware
Yes, the description in Google Code for the project says powerful enough to create a highly polished commercial game. But you can't exactly create a commercial game with code licensed under the GPL, right? On Sep 21, 11:46 am, nEx.Software email.nex.softw...@gmail.com wrote: Dan, that's what I

[android-developers] Re: Problem running on 1.6 SDK.

2009-09-21 Thread Spencer Riddering
I found the problem. My view (CheckableRelativeLayout) was inadvertently declared abstract. Apparently this isn't a problem for the 1.5 platform but is a problem for the 1.6 platform. Depending on when carriers release 1.6, this change could cause my app to start acting unreliably before the

[android-developers] Re: is there anything wrong with the function camera.takePicture()???

2009-09-21 Thread Mark Murphy
when i use the Camera class to make a little app to get a bitmap,but when it run,there'll be a problem: . 09-21 12:56:06.913: ERROR/AndroidRuntime(6083): at android.hardware.Camera.takePicture(Camera.java:362) . is anything wrong with this function

[android-developers] Re: How to force soft keyboard to be visible?

2009-09-21 Thread Dianne Hackborn
All I can say is the edit contacts activity in the standard platform does this just fine, using the standard API. Either you are doing something different than it, or HTC's IME has some different behavior, but I don't know much about either of those. Do note that normally the system will not

[android-developers] Re: How to force soft keyboard to be visible?

2009-09-21 Thread Dianne Hackborn
Oh also it doesn't show by default if the IME needs to run in fullscreen (typically because the device is in landscape). Both of these are because showing the IME is these cases is much more disruptive than showing it when the target window can resize nicely to show all of its important UI in

[android-developers] Re: Animation

2009-09-21 Thread Dianne Hackborn
Don't use animations. This is not what they are for. They are for performing transitions between different states of a UI, not for writing game-like interactions. On Mon, Sep 21, 2009 at 1:56 AM, HVT vikramhiman...@gmail.com wrote: Hello All, I'm facing a problem while clicking the objects

[android-developers] fit text on 1 line

2009-09-21 Thread Wouter
Hey, I am working on a project and i need to fit a text (string) on line at a textView. I know I can work with maxLines but if the text does not fit the view, it has to end with ... so for example directed by brad pitt an... So can users see that it is not the end of the text they are seeing

[android-developers] Re: OpenGL 2D Game Framework

2009-09-21 Thread Dan Sherman
You can technically. Nothing prevents your from selling the game you make, you do have to release all of the source however, which makes doing anything that you might want hidden (network protocols, etc) a bit tougher. :) - Dan On Mon, Sep 21, 2009 at 1:07 PM, polyclefsoftware dja...@gmail.com

[android-developers] Re: Android 1.6 SDK is here!

2009-09-21 Thread Dianne Hackborn
I am personally pretty opposed to including source in the formal -SDK- for a couple reasons: 1. The source is not documentation. You should be coding your application against the SDK specification in the documentation, not whatever some current implementation is in the platform. 2. Yes, the

[android-developers] Re: fit text on 1 line

2009-09-21 Thread Mark Murphy
Hey, I am working on a project and i need to fit a text (string) on line at a textView. I know I can work with maxLines but if the text does not fit the view, it has to end with ... so for example directed by brad pitt an... So can users see that it is not the end of the text they are

[android-developers] Re: webview crashes

2009-09-21 Thread Jason Proctor
i'm also seeing some occasional WebView crashes with multiple views up. seems to have calmed down without any code changes from me. my app contains a regular ListView which has a dynamic number of WebViews in it depending on various factors. most of the time it works splendidly, and WebView

[android-developers] Re: Please help me !

2009-09-21 Thread Jason Proctor
we have this thing called Google now. a simple search led me to this article -- http://developer.android.com/guide/tutorials/views/hello-mapview.html -- which was enough for me to get Maps and Overlays going. hth I want to display a overlay in maps ( as Overlay of MyLocation - The circle

  1   2   >