[android-developers] ViewFlipper

2008-04-10 Thread Redhunt
Can you use ViewFlipper to switch one view at a time. I know about ViewSwitcher but that can only have two views at a time. I have more than one view. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] ViewFlipper one at a time?

2008-04-10 Thread Redhunt
Can you use ViewFlipper to switch one view at a time. I know about ViewSwitcher but that can only have two views at a time. I have more than two views I want to switch between and I would like to define things in a XML layout file. Thanks --~--~-~--~~~---~--~~

[android-developers] Re: LocationManager: getLastKnownLocation and getBestProvider broken?

2008-04-10 Thread [EMAIL PROTECTED]
I have realized now I can implement a mock location provider, and have done that by creating a kml file from google earth, creating a directory parallel to gps, and placed 2 files in it: location and properties. I have also tried location.kml, but both return null from getCurrentLocation and

[android-developers] Re: LocationManager: getLastKnownLocation and getBestProvider broken?

2008-04-10 Thread [EMAIL PROTECTED]
Here is the exception I mentioned in the first post. I get this when calling getLastKnownLocation using the gps provider: E/LocationManagerService( 516): NumberFormatException reading /data/ misc/location/gps/location E/LocationManagerService( 516): java.lang.NumberFormatException:

[android-developers] Re: ListView getCount question

2008-04-10 Thread Ram
Thanks Romain guy, I'll try this later on. I'd like to change the UI depending on whether all data items in the list view are visible ...or whether some data items aren't visible. Ideally, I'd like to use something like isScrollbarNecessary , but since I couldn't find an api to do that, I

[android-developers] Re: ListView getCount question

2008-04-10 Thread Ram
Btw listView.post(Runnable) in onCreate() returns false. So I'm not able to run the runnable. Anyway, I guess, I'll just change my UI plans and not use listview.getchildcount() On Apr 9, 11:14 pm, Ram [EMAIL PROTECTED] wrote: Thanks Romain guy, I'll try this later on. I'd like to change the

[android-developers] Re: View Activity Communicaton

2008-04-10 Thread hackbod
On Apr 9, 8:43 pm, Rui Martins [EMAIL PROTECTED] wrote: Is there a way to avoid the Dark Grey background while the application is starting, like setting up a layout.xml or similar, so that we get either a predefined background or at the worst case a full Black background while the

[android-developers] Re: Retrieving an ApplicationContext

2008-04-10 Thread hackbod
http://code.google.com/android/reference/android/content/Context.html#createPackageContext(java.lang.String,%20int) On Apr 9, 11:43 pm, Adriano Crestani [EMAIL PROTECTED] wrote: Is there a way to get a reference to an ApplicationContext object? Something like getContext(int id). I'm creating

[android-developers] Re: APK file rename

2008-04-10 Thread hackbod
No, the apk filename itself doesn't matter at all as far as it being able to run on the device. On Apr 9, 10:19 pm, Shamim [EMAIL PROTECTED] wrote: If I export APK file from the project and at the time of saving if I save it into different file name , will it work? do i need to keep the same

[android-developers] Re: LocationManager: getLastKnownLocation and getBestProvider broken?

2008-04-10 Thread [EMAIL PROTECTED]
Made some more progress here. Cut my kml file down from 280k to 10k and that sped up emulator load time from 7 minutes to 2minutes. Also fixed a typo in my properties file and got rid of the NPEs. However, I still get NULL back from getBestProvider and getLastKnownLocation everytime.

[android-developers] Re: Load a class from another .apk file dynamic?

2008-04-10 Thread David Welton
I want to develop an application, it was form by plugins. Then I need to load a class from plugin. Use Class.forName() to load a class from the same apk file, it's successful, but if the class is in another apk file, the method throw ClassNotFoundException. How to load the class from

[android-developers] Re: Dynamic UI-Processing - without XML files.

2008-04-10 Thread simon
Thanx for the hint with the Theming. That looks interesting. But not for the problem i had. ;-) I'm always passing the Activity context. I don't know which context i should pass anyway. what does the context do? can you do fancy things by passing other contexts? are there other context at all? i

[android-developers] Re: Retrieving an ApplicationContext

2008-04-10 Thread Zach Hobbs
Activity is a subclass of ApplicationContext, so in an Activity you can just use this. -- Zach Hobbs HelloAndroid.com Android OS news, tutorials, downloads On Thursday 10 April 2008 02:43:35 Adriano Crestani wrote: Is there a way to get a reference to an ApplicationContext object?

[android-developers] Re: Load a class from another .apk file dynamic?

2008-04-10 Thread David Welton
I believe there are lots of limits with script in android, such as OpenGL. And Hecl is a language for J2ME but not Android, I'm afrade it doesn't compatible? An Android port of Hecl is going to be my entry into the ADC, actually. The code is all in Hecl's subversion, and of course open

[android-developers] How to pick a face in OpenGL ES?

2008-04-10 Thread Macro
In PC platform, OpenGL provide various functions to pick a face, but in OpenGL ES, I cann't find needed function such as glRenderMode and so on. Thus, how to pick a face with OpenGL ES? Calculate face coordinate data and line function by myself?

[android-developers] Re: Load a class from another .apk file dynamic?

2008-04-10 Thread Carl H.
Hi, You can use Dex file to load a class dynamically: DexFile df = new DexFile(new File(appDir)); ClassLoader cl = getClassLoader(); Class clazz = df.loadClass(dynClass, cl); appDir can be found using PackageManager if you wish so (eg: /data/app/

[android-developers] Re: About load '.so' library file with JNI

2008-04-10 Thread David Given
Macro wrote: [...] My shared library name is libNativeAdd.so, but system doesn't find it ? Need I register it somewhere? Your log doesn't show you loading the library --- you are calling System.loadLibrary(NativeAdd), aren't you? If there are unresolved symbols, loadLibrary() will throw

[android-developers] Re: Communication between two emulators. UDP Chat app

2008-04-10 Thread Digit
you need to type redir add udp:5000:5000 on the server emulator's console you typed it in a Windows command-line :-) On Thu, Apr 10, 2008 at 12:24 PM, Amit [EMAIL PROTECTED] wrote: Hello Digit, I did following steps: 1.changed the server ip in my code to 10.0.2.15 and port to 5000.

[android-developers] Re: Communication between two emulators. UDP Chat app

2008-04-10 Thread Amit
Hello Digit, I did following steps: 1.changed the server ip in my code to 10.0.2.15 and port to 5000. 2.changed the client ip to 10.0.2.2 and port no to 5000 3 then i executed the command redir udp:5000:5000 it gave me error saying the vdm redirector already running. And I am not getting any

[android-developers] Queries on ADC Submission

2008-04-10 Thread Abhishek
Hi, I am developing an application on Android with the help of my friend, Due to some reasons we started development slight later than we had planned, now we are in the mid of development, I am not sure that we will be able to submit the application with all features we conceptualized. So now

[android-developers] Getting gray scale for color

2008-04-10 Thread Mi
Hi, I'm wondering if it is possible to get the gray color representing a specified color? Or can I in some way calculate it from the red, green and blue component in a color? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Queries on ADC Submission

2008-04-10 Thread Harsh Jain
I would say go ahead, it atleast wouldnt hurt. If your unimplemented ideas are really cool, that may impress judges. On Thu, Apr 10, 2008 at 4:19 PM, Abhishek [EMAIL PROTECTED] wrote: Hi, I am developing an application on Android with the help of my friend, Due to some reasons we started

[android-developers] Re: Getting gray scale for color

2008-04-10 Thread Chandan
Intensity = ( R + G + B ) / 3 On Apr 10, 4:02 pm, Mi [EMAIL PROTECTED] wrote: Hi, I'm wondering if it is possible to get the gray color representing a specified color? Or can I in some way calculate it from the red, green and blue component in a color?

[android-developers] Meet problem when back from sub activity to map activity

2008-04-10 Thread areslp
I have a map activity with several overlays,and I start a sub activity, and when the work has done in sub activity, I set the result code and finish the sub activity. In map activity's onActivityResult() method,I got the resultEvery thing goes well until now,but I find that the map view

[android-developers] How do I know that the SMS was sent..

2008-04-10 Thread Saj
How do I know that the SMS was sent properly and was received in the other end since I can't send an sms from my emulator to another one to test? Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Load a class from another .apk file dynamic?

2008-04-10 Thread Ben Dodson
Hi, I and a few others have gotten this working successfully. Check this thread for details: http://groups.google.com/group/android-developers/browse_thread/thread/fe0978b471d4bef4/72507bfb7586aded?hl=enlnk=gstq=installer#72507bfb7586aded Ben On Apr 10, 5:28 am, David Welton [EMAIL PROTECTED]

[android-developers] LocationManager: addProximityAlert not working

2008-04-10 Thread john
Does anyone know if the LocationManager is working, or if it works for multiple alerts. I am trying to add multiple proximity alerts to my LocationManger, and it does not ever fire the intent I pass into the proximity alerts. I am adding it with parameters something like this

[android-developers] How to initiate call

2008-04-10 Thread Raja Nagendra Kumar
Hi, What are the api related to dialing a perticular number from the andorid application. I am unable to find api or package related to dialing. Regards, Nagendra --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: LocationManager: addProximityAlert not working

2008-04-10 Thread john
Whoops! Sorry I did not see the other posts on this not working. I guess I will have to write my own proximity alert function for the contest until this one is working. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Alternative for Thread.sleep or TimerTasks (as a workaround)?

2008-04-10 Thread NTR
I figured out a way! Object obj = new Object(); synchronized (obj) { try { obj.wait(FETCH_DELAY_MILLIS); } catch (InterruptedException e) { // Ignore } } This one sleeps just perfectly!

[android-developers] OpenGL shading with filtering issue

2008-04-10 Thread Chandan
Hi, When I use smooth shading on triangles that are textured using nearest filtering mode, the result is black triangles. With smooth shading + linear filtering the result is correct. Same problem with flat shading + linear filtering (but correct results for flat shading + nearest filtering).

[android-developers] Re: Thread.sleep() and Lock.lock() don't release CPU

2008-04-10 Thread NTR
You can use a workaround as described in here: http://groups.google.com/group/android-developers/browse_thread/thread/79fe3f22c0c764cf# [EMAIL PROTECTED] wrote: Do you measure CPU activity in Android, or on your PC? On Mar 9, 2:44�pm, Peli [EMAIL PROTECTED] wrote: If I run

[android-developers] Re: changing to the newest version of the sdk problems

2008-04-10 Thread Rui Martins
some of the first Sticky Threads, are named: - New version of Android SDK released! - M3 to M5 Porting and Migration Tips There you can find some more info, specially this link: http://code.google.com/android/intro/upgrading.html They are just there, hiding in plane sight ! :) On Apr 10,

[android-developers] Re: HttpsURLConnection

2008-04-10 Thread kksrini
Hi, Please help me to resolve the following issue, DEBUG/SSLSocketFactory(1909): Using factory [EMAIL PROTECTED] DEBUG/SSLSocketFactory(1909): Peer certificate validation is enabled DEBUG/dalvikvm(1909): Exception Ljava/net/ConnectException; from Socket.java:951 not caught locally INFO/(1909):

[android-developers] ListView onListViewScroll behavior

2008-04-10 Thread Phision
Hi all, I am using a scroll listener on a ListView. The listener is being called whenever the listview scrolls by dragging with the pointer device, or by selecting (with a touch) an item that is near the end of the visible portion of the list (which causes the list to scroll in order to show the

[android-developers] Re: how to catch map zoom event??

2008-04-10 Thread Ils
The same problem exists in WebView - the is interface OnZoomChangedListener, but method setOnZoomChChangedListener absent. Is it possible to register ZoomSlider's listener for WebView ? thanks. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Reflection of classes in other packages

2008-04-10 Thread chris.p
Hello everyone, is there an easy way for reflection of classes in other packages that are currently installed on the device? Class.forName() obviously doesn't work since the classes are not on the static classpath. I've tried it via the Context.createPackageContext(packagename) method which

[android-developers] Re: how to play a JSpeex encoded audio file?

2008-04-10 Thread Anil
*bump* On Apr 9, 8:40 pm, Anil [EMAIL PROTECTED] wrote: can any of the google engineers assigned to the codecs help? On Apr 9, 1:34 pm, Anil [EMAIL PROTECTED] wrote: *bump* On Apr 9, 9:43 am, Anil [EMAIL PROTECTED] wrote: I am trying to figure out how to play a JSpeex encoded audio

[android-developers] title bar progress indicator

2008-04-10 Thread colintheprep
I can make the title bar of an application have a progress bar + the little progress circle indicator. Is there a way I can only give it the progress circle indicator, and not the bar? thanks anybody! Colin --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Load a class from another .apk file dynamic?

2008-04-10 Thread hackbod
If you want to load a package already installed in the system, it is much easier to use Context.createApplicationContext(). On Apr 10, 2:05 am, Carl H. [EMAIL PROTECTED] wrote: Hi, You can use Dex file to load a class dynamically:                 DexFile df = new DexFile(new File(appDir));

[android-developers] Re: LocationManager: getLastKnownLocation and getBestProvider broken?

2008-04-10 Thread [EMAIL PROTECTED]
Thanks Ram. I have a properties file and my provider is working now. However, I still get null from getBestProvider and getLastKnownLocation. I guess I can workaround this for now. On Apr 10, 12:22 am, Ram [EMAIL PROTECTED] wrote: I have realized now I can implement a mock location provider,

[android-developers] Re: Taking care of proxy Internet access for Dev Challenge?

2008-04-10 Thread Stefan Handschuh
Proxies are the STANDARD-way for you mobile device to connect to the internet. I have never owned a device that doesn't use a proxy server. But: Android makes no devision into HTTP and HTTPS which is a huge disadvantage I'm becoming confused with all of the guidance being given to entrants

[android-developers] Re: how to play a JSpeex encoded audio file?

2008-04-10 Thread Anil
no reply? On Apr 10, 10:14 am, Anil [EMAIL PROTECTED] wrote: *bump* On Apr 9, 8:40 pm, Anil [EMAIL PROTECTED] wrote: can any of the google engineers assigned to the codecs help? On Apr 9, 1:34 pm, Anil [EMAIL PROTECTED] wrote: *bump* On Apr 9, 9:43 am, Anil [EMAIL PROTECTED]

[android-developers] Re: Retrieving an ApplicationContext

2008-04-10 Thread Adriano Crestani
Yes, I know that. But I got a situation it's not possible. I'm extending the URLStreamHandlerFactory and the URLStreamHandler, and I'm needing to pass the context reference to my URLStreamHandler object. The URLStreamHandler objects are created using the URLStreamHandlerFactory (obviously), but

[android-developers] Re: Alternative for Thread.sleep or TimerTasks (as a workaround)?

2008-04-10 Thread NTR
OK. Though this service needs a state, which should be possible to be altered at any time. I could store it to the hard drive, but all that loading and saving files would be waste of time, too. So do you suppose it'd take less resources if I'd use the intent to start the service over and over

[android-developers] Gdata in Android, Class Load error

2008-04-10 Thread Weyllor
I have compile parts of Gdata in android successfully, but some error occurs as ExceptionInInitializerError. When i use ClassLoader, some class can't be found also, for example ContactsService. I dx a dump, ContactsService can be found somehow. Please give me a way to solve this problem. THX.

[android-developers] Re: Gallery OnItemClicked event issue!

2008-04-10 Thread ColinHo
Hi JY, I haven't tried clicking the center button yet and I don't intend to do that because I want the user interact with my app through touch screen. That's why I tried to figure out how to handle OnItemClicked event of the gallery. However as it's a bug of android, I have to find another way

[android-developers] Re: dx result is not always the same?

2008-04-10 Thread Weyllor
does the dx doc gives some advise? On Apr 11, 1:30 am, Digit [EMAIL PROTECTED] wrote: I think that the Eclipse plugin uses the --optimize option by default, resulting in much smaller .dex files On Thu, Apr 10, 2008 at 7:21 PM, Weyllor [EMAIL PROTECTED] wrote: I try to dx a bound of

[android-developers] Re: Re : [android-developers] Re: progress bar

2008-04-10 Thread Yassine
I just followed what Dan U said in the link Mihai provide... (http://groups.google.com/group/android-developers/browse_thread/ thread/9c90e97c5a907d87/bb9974a4b168057c?hl=enlnk=gstq=Progress +dialog+dismiss()+method) Here is my progress bar: lProgressBar =

[android-developers] intent actions vs. filter actions

2008-04-10 Thread David Given
I have an Activity that can be invoked in two ways. activity android:name=InstallerActivity intent-filter category android:name=android.intent.category.BROWSABLE/ category android:name=android.intent.category.DEFAULT / data android:mimeType=application/vnd.cowlark.package / action

[android-developers] Icon guidelines?

2008-04-10 Thread Redhunt
Are there any guidelines for third party application icons? Is it best to subcribe to a similar look as the system icons, or to keep them different? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] what is wrong with this simple custom view?

2008-04-10 Thread Android-Berry
Hi There, I have created a simple custom view to display a line and added it to the LinearLayout. the custom view is displayed on Screen, the other view following the cusomview never show up on Screen. Thanks here is the code: from the code, I have added a CheckBox to LinearLayout after

[android-developers] Re: Reflection of classes in other packages

2008-04-10 Thread chris.p
Hello everyone, meanwhile I can answer the thread concerning reflection on classes in other packages myself. The approach with Context.createPackageContext(packagename) eventually was successful - What was missing is to set the appropriate permissions: Code snippet //ask for

[android-developers] Re: Taking care of proxy Internet access for Dev Challenge?

2008-04-10 Thread tomgibara
It shows how much I have to learn :) Thanks for setting me straight. I think my comments regarding the ADC still stand though. Warning: more ill informed follows. I always had the impression that mobile phones and their like would use gateways (yes proxies I guess) that would be determined and

[android-developers] Re: LocationManager: getLastKnownLocation and getBestProvider broken?

2008-04-10 Thread Ram
That is good to know, btw please remember that you cannot use a custom mock location provider for challenge-submissions. The judges will not adb-push kml or properties files On Apr 10, 9:08 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks Ram. I have a properties file and my provider is

[android-developers] Re: Location and geocoding question for Google devs

2008-04-10 Thread Ram
*bump* On Apr 9, 1:58 pm, Ram [EMAIL PROTECTED] wrote: Hi, as perhttp://groups.google.com/group/android-challenge/browse_thread/thread... , devs particpating the android-challenge aren't allowed to provide a mock kml file and properties file (for LBS) or a mock geodb file for geocoding.

[android-developers] How to Format Widget Sizes?

2008-04-10 Thread gilgantic
Hi All, For the longest time I have been trying to figure out how to change the size of any of the Android widgets. The default widget sizes are just too big on the screen. I have used the following attributes with my CheckBox and other widgets, the text sizes changes but the buttons them self

[android-developers] Re: SQLiteDatabase.update, example?

2008-04-10 Thread Carl H.
where=name=?, rank=? should be: where=name=? AND rank=? remember that you will have the failing SQL in the log that you can try directly within the shell ./Carl http://androforge.net On Apr 10, 7:32 pm, colintheprep [EMAIL PROTECTED] wrote: Does anybody know the syntax for using

[android-developers] Re: Setting click handler for a WebView?

2008-04-10 Thread Megha Joshi
Hi, The OnClickListener is not supported for webview. I am still in process of finding out if there are any workarounds or whether it should throw OperationNotSupported exception or mention it in Javadoc. Thanks, Megha On Wed, Apr 9, 2008 at 12:41 PM, Mark Wyszomierski [EMAIL PROTECTED]

[android-developers] Re: Bug in the PhoneStateIntentReceiver

2008-04-10 Thread Abhinav Parashar
Yes Greg I also noticed the same thing. Could you suggest me what should i do because i need to track if the person hits ...send to voicemail ? Abhinav Parashar On Apr 9, 12:11 am, Greg_G [EMAIL PROTECTED] wrote: I can confirm this also, using the AndroidManifest.xml

[android-developers] Re: How to connect with remote app without good ServerSocket?

2008-04-10 Thread Pipex
I have the same problem, i create a ServerSocket to port 2027, I telnet to the emulator and execute redir add tcp:2027:2027, i can connect from localhost, but no from a remote host. It's not a firewall issue because I turned it off for the test. I'm in a linux machine, anyone has found a solution

[android-developers] Extract focus color from theme

2008-04-10 Thread revcom
Hi there, I want to extract the current theme's button focus colour (ie 'orange' in the dark theme) so I can use it draw the focused state of a custom control. Can anyone give me or point me to some code that will extract that particular colour from the current theme's StyledAttributes? There

[android-developers] Re: Icon guidelines?

2008-04-10 Thread Megha Joshi
Hi, There are no published guidelines for the third party application icons as of now. Thanks, Megha On Thu, Apr 10, 2008 at 11:00 AM, Redhunt [EMAIL PROTECTED] wrote: Are there any guidelines for third party application icons? Is it best to subcribe to a similar look as the system icons,

[android-developers] Re: Sqlite problem, urgent request!

2008-04-10 Thread Megha Joshi
Hi, A future release of the SDK will provide a SQLiteDatabase.query() which takes LIMIT clause as an argument. For now you can use the use execSQL() method directly and specify the LIMIT in that way. Thanks, Megha On Wed, Apr 9, 2008 at 10:44 AM, vinh2b [EMAIL PROTECTED] wrote: Hi,

[android-developers] Re: Adding browser supported types

2008-04-10 Thread pavan
Looks like this is a bug in android. Where can I file a bug for this? -Pavan. On Apr 1, 6:28 am, David Given [EMAIL PROTECTED] wrote: pavanwrote: Here are the steps to recreate the problem. I'm seeing this too, in exactly the same way. Select file in browser, browser crashes before my code

[android-developers] Re: Slow Bitmap operations

2008-04-10 Thread qvark
These performance issues are being a real headache for me! My project relies very heavily into image processing algorithms, and they take too long when executing over the emulator. The set of algorithms executed with a Sun JVM (1.6.0_03) take less than 20 secs but when I execute them within the

[android-developers] Re: Slow Bitmap operations

2008-04-10 Thread Romain Guy
The emulator depends greatly on the performance of your local machine and does not reflect at all the actual performance on a real device. On Thu, Apr 10, 2008 at 3:31 PM, qvark [EMAIL PROTECTED] wrote: These performance issues are being a real headache for me! My project relies very

[android-developers] HELP! Weird Activity lifecycle / thread issue

2008-04-10 Thread SapperSix
I have ActivityA, which invokes ActivityB using startSubActivity using an explicit intent. In ActivityB, I start a worker thread. Case 1: If I handle a click in ActivityB and setResult() and finish(), I go through the lifecycle (onFreeze, onPause, onStop). I put a call to worker.interrupt() in

[android-developers] Re: Slow Bitmap operations

2008-04-10 Thread David Given
qvark wrote: [...] The set of algorithms executed with a Sun JVM (1.6.0_03) take less than 20 secs but when I execute them within the emulator (in the same machine), they are taking over 7 minutes! That's more than 20x slower! AFAIK, the Dalvik VM is currently an *interpreter*... running on an

[android-developers] Re: Remove text on ViewMap

2008-04-10 Thread Megha Joshi
Hi, It is not possible to remove the text in the MapView, but it seems like a good feature to have, you may want to file a feature request for this in the android issue tracker. You may want to mention that you are asking for a pure satellite view as opposed to the hybrid view which appears on

[android-developers] applyAlpha?

2008-04-10 Thread Redhunt
Would it be possible to extract the alpha values of a bitmap (with extractAlpha for example) and then apply just the alpha values to a different image. Essentially this would act as an alpha mask. or will I need to get the alpha values from one bitmap using extractAlpha, then getPixels of the

[android-developers] Re: How can MapView display standard map menu options (like directions to location etc.) without extra code

2008-04-10 Thread Ram
*bump* On Mar 20, 11:42 am, Ram [EMAIL PROTECTED] wrote: *bump* --~--~-~--~~~---~--~~ 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

[android-developers] Dialog generating NullPointerException

2008-04-10 Thread WildLuka
hi are Dialog sub-classes supposed to be used only once ? when I create one, then cancel the operation, and recreate the same one, i get a NullPointerException. I can however create as many as I want, as long as i don't hit on the cancel button. Uncaught handler: thread Main exiting due to

[android-developers] Extending android.app.Application

2008-04-10 Thread WildLuka
Dear All, can you tell me how to go about extending android.app.Application, as I need some global data access, and what to write in the AndroidManifest.xml ? your help will be appreciated many thanks in advance. Luka --~--~-~--~~~---~--~~ You received this

[android-developers] Re: HELP! Weird Activity lifecycle / thread issue

2008-04-10 Thread SapperSix
Okay, found my own (bonehead) issue. I was sending the finish message to ActivityB from a listener implemented as an anonymous class in my worker. I mistakenly thought I was in the worker thread when I returned. Not so. Now, the listener signals the main Runnable that it should end and I

[android-developers] Proxy.getInvocationHandler(...) returns null

2008-04-10 Thread Christian Sprajc
Hi there, It seems that Proxy.getInvocationHandler(..) is broken since it always returns null. Background: I'm porting a java application to Android which utilizes dynamic proxies. The application is working on a usual JDK 5.0. Scenario: 1) I create a Proxy instance P via

[android-developers] Discussion on media-sample-apps

2008-04-10 Thread Anil
there are compiler errors at public void surfaceCreated(SurfaceHolder holder) { // TODO Auto-generated method stub Log.d(TAG, surfaceCreated called); } in MediaPlayer_video.java must override a superclass method and MyMediaRecorder.java public void

[android-developers] Discussion on media-sample-apps

2008-04-10 Thread Anil
Were you able to get this to run? In MediaPlayerTest, local file audio, file video and streaming video don't play. MediaRecorder has a null pointer exception upon clicking record. ViewVideoDemo doesn't play any video. - Anil --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Proxy.getInvocationHandler(...) returns null

2008-04-10 Thread Christian Sprajc
Update: The Proxy class seems to be broken at all. I got NullPointerExceptions when invoking Proxy.hashCode() or Proxy.equals(Object). I found other users reporting similar Problems with the Proxy class already:

[android-developers] Re: dx result is not always the same?

2008-04-10 Thread Weyllor
I'm sorry. the first size is 412KB, the other is 388KB. And the problem exsit although. On Apr 11, 1:21 am, Weyllor [EMAIL PROTECTED] wrote: I try to dx a bound of classes into dex with eclipse adt and dx.bat, the first results a dex file of 173,318  bytes in size, the other results a 396,995

[android-developers] SearchManager / Searchability API feedback (M5)

2008-04-10 Thread thrusty
There seems to be a fundamental problem with the existing SearchManager API. Perhaps the developers are already aware of this, just wanted to spell it out. Let's say you've set up your typical query-search app MyApp so that activity A is your primary starting point for searches, and activity B

[android-developers] getScale() method of BaseAdapter class Question!

2008-04-10 Thread ColinHo
Hello, I implement a class inheriting the BaseAdapter to provide data for a Gallery. There is a method in the BaseAdapter class that I have to implement is getScale(boolean focused, int offset) This method is used to scale images which are on left and right hand side of the center image. I

[android-developers] Re: How to connect with remote app without good ServerSocket?

2008-04-10 Thread [EMAIL PROTECTED]
Yes, I think this is a bug. My solution is: 1. Enter the Android tools path and run: adb forward tcp:2027 tcp:2027 2. Download a tool which named stcppipe and run: stcppipe.exe -b 192.168.0.85 127.0.0.1 2027 2027 and you can run your application correctly now. Regards. On Apr 11,

[android-developers] Re: How to connect with remote app without good ServerSocket?

2008-04-10 Thread [EMAIL PROTECTED]
by the way, 192.168.0.85 is your IP address. On Apr 11, 11:09 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes, I think this is a bug. My solution is: 1. Enter the Android tools path and run: adb forward tcp:2027 tcp:2027 2. Download a tool which named stcppipe and run:

[android-developers] Changing view widget properties in a ListAdapter

2008-04-10 Thread SnowDrifter
I have a list adapter with the following view: ?xml version=1.0 encoding=utf-8? CheckBox android:id=@+id/taskTitleCheck xmlns:android=http:// schemas.android.com/apk/res/android android:layout_width=fill_parent android:layout_height=?android:attr/listPreferredItemHeight

[android-developers] Re: Extending android.app.Application

2008-04-10 Thread SnowDrifter
I started here: http://code.google.com/android/intro/index.html download Eclipse and install the android package as instructed in the documentation above. using Eclipse will help you with setting up applications and your manifest. Enjoy! On Apr 10, 6:33 pm, WildLuka [EMAIL PROTECTED] wrote:

[android-developers] Re: Length of text drawn in pixel?

2008-04-10 Thread Joa
Thanks guys, works! On Apr 7, 12:37 am, babyblue [EMAIL PROTECTED] wrote: You can use Paint.getTextWidths to get it On 4月7日, 下午1时57分, Joa [EMAIL PROTECTED] wrote: Is there a way to find out the length of text drawn to a Canvas (using drawText()) inpixel?

[android-developers] Re: LocationManager: getLastKnownLocation and getBestProvider broken?

2008-04-10 Thread Ram
Should I simulate location through code, bypassing the locationProvider? This is what I plan to do. I don't think there are any specific recommendations on what to do. Some apps will probably use the mock gps provider and some more will simulate location. Since your app supports people picking

[android-developers] Re: Changing view widget properties in a ListAdapter

2008-04-10 Thread SnowDrifter
I also tried using the getListView, which seems like the right thing to use but at onStart it reports that it has views (when getCount is called) but all of the children are null. I also tried it at onContentChanged with no luck. On Apr 10, 9:20 pm, SnowDrifter [EMAIL PROTECTED] wrote: I have a

[android-developers] Re: JAD - Java Application Descriptor like

2008-04-10 Thread Raja Nagendra Kumar
David, I understand that apk file genereted is jar format file with .apk extention. However I don't see manifest file beeing placed. Could you let me have any example application if any thing exists on the net pl. Also, I was hoping that like jad the similar functionality would be available as

[android-developers] Re: Remove text on ViewMap

2008-04-10 Thread Redhunt
Will do thanks Megha Actually are the text strings drawn separatelly or are they part of the image. I thought they where separate mainly because the satellite view is slower than the standard view. My application is running slow with one overlay with several path and the map. I thought taking

[android-developers] Re: toplevel in traceview. What is it?

2008-04-10 Thread Redhunt
Anyone with some insignt on this? On Apr 9, 6:11 pm, Redhunt [EMAIL PROTECTED] wrote: When I run traceview on my application and the data file the first method in the method profiler just says (toplevel) and when you click on it nothing happens (there are no parents no children). What is

[android-developers] Passing bundles across activities

2008-04-10 Thread Ram
I'm passing a bundle of values (by setting intent.putExtra before calling startSubActivity) from a top-level activity to a subactivity. However, for the reverse scenario, it looks like setResult can only pass back one integer result code. Does anyone know of a good way to pass another bundle of

[android-developers] Re: Progress bar problem

2008-04-10 Thread Rui Martins
Do you really need to use that syncrhonized(lock) ? Doest it work fine without it ? If no one else is messing with the progressDialog, why would you need to lock it ? There shouldn't be any concurrency issues. On 10 abr, 22:59, AkaZn [EMAIL PROTECTED] wrote: Hi I want to show a progress bar

[android-developers] Re: JAD - Java Application Descriptor like

2008-04-10 Thread Shane Isbell
Hi Raj, You can check out JVending: http://code.google.com/p/jvending . It's using OMA OTA for Android delivery so it includes a descriptor (of which JAD is a subset). The client is located here: http://code.google.com/p/slideme . There is nothing built into the client for making the dd2

[android-developers] Imagine the possibilities of Android + Carnegie Mellon's Alice

2008-04-10 Thread RichardBronosky
http://www.alice.org/index.php?page=what_is_alice/what_is_alice If Google gets the Android platform so that anyone on any network has the freedom to run it, and uses something like Alice to teach normal people to program for it... What could ever compete against that?

[android-developers] Intent Receiver

2008-04-10 Thread jcmb
Does an Android application have to contain at least one Activity in order to be valid? If I try to run an intent receiver in Android, it gives me an error The Manifest defines no activity! Launch aborted! I tried installing the program manually using the adb tool, but when I tried to trigger

[android-developers] Re: Passing bundles across activities

2008-04-10 Thread Dan U.
Actually, there are 3 setResult methods. You want this: http://code.google.com/android/reference/android/app/Activity.html#setResult(int,%20java.lang.String,%20android.os.Bundle) On Apr 10, 10:08 pm, Ram [EMAIL PROTECTED] wrote: I'm passing a bundle of values (by setting intent.putExtra before

[android-developers] 咨询

2008-04-10 Thread yong ye
你好: 如何申请适用你们的服务. 13261284360 MSN:[EMAIL PROTECTED] [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to