[android-developers] [android-developers]JNI_CreateJavaVM link error,can't find reference of JNI_CreateJavaVM

2009-08-07 Thread frog
HI,All I hava write a application with function JNI_CreateJavaVM.It 's all ok when compile,but link can't find the JNI_CreateJavaVM method. (jint res = JNI_CreateJavaVM(&jvm,&env,&vm_args);) The stand java application use the jvm.lib when link,but It seems there is no file named jvm.lib in android

[android-developers] Re: arcade style virtual joystick

2009-08-07 Thread Luciano Broussal
Hi all, Any idea if such widget already exists ? or the best way to implement it? Thanks Croco On Aug 3, 9:01 pm, Croco wrote: > Hi All, > > I'm wondering if someone know a snippet of code that would implement a > joystick behavior. > > I did a 4 orientation button widget but it's really not

[android-developers] How to extract views ( e.g. combobox, edit box) from a WebView?

2009-08-07 Thread devendra.madhe...@gmail.com
Hi, Some WebView/WebPage contains combobox control and I want to extract these combobox entries from a webview. Is there any way to extract combobox entries from webview ? Any help will be greatly appreciated. Thanks, Devendra --~--~-~--~~~---~--~~ You received

[android-developers] Re: Emulator quick start

2009-08-07 Thread Jack Jia
Hi, I found out it is still very slow even I keep the emulator running. Jack On Thu, Jul 30, 2009 at 12:08 PM, rehab mohamed wrote: > do not close the emulator after run and you can run your application again > and the emulator will be updated with out closing it > this way is faster than close

[android-developers] question about TableLayout

2009-08-07 Thread chandlersong
http://schemas.android.com/apk/res/ android" > it's my xml config file.when I add the tableLayout into the raidogroup. I find that I can select more than one radiobutton at one time. Does anyone konw how to fixed i

[android-developers] Is there small style editText and spinner

2009-08-07 Thread 单单
I know there is a buttonStyleSmall can create a small button. But there is not edittextStyleSmall or spinnerStyleSmall. How to make edittext and spinner shorter? they are too high in my application. Thanks in advance. --~--~-~--~~~---~--~~ You received this messa

[android-developers] Re: KEYCODE_HOME

2009-08-07 Thread Marco Nelissen
The home key is not delivered to applications. On Fri, Aug 7, 2009 at 7:25 PM, eags wrote: > > I have implemented onKeyDown and can successfully intercept > KEYCODE_BACK and many others to prohibit the default behavior.  Is > this not possible with KEYCODE_HOME?  I have a test activity that will

[android-developers] KEYCODE_HOME

2009-08-07 Thread eags
I have implemented onKeyDown and can successfully intercept KEYCODE_BACK and many others to prohibit the default behavior. Is this not possible with KEYCODE_HOME? I have a test activity that will only finish() if KEYCODE_A is seen. Even KEYCODE_BACK does nothing. However KEYCODE_HOME continues

[android-developers] Re: HTC Touch Input

2009-08-07 Thread alkar
I think you are a bit off topic. I already have HTC Touch Input installed, by the way. In any case, someone might benefit from it while searching the lists :) On Aug 8, 1:44 am, DG_18729 wrote: > Readhttp://forum.xda-developers.com/showthread.php?t=516396 > > Install AppsInstaller or AppManager

[android-developers] Re: How to add footer in a list view

2009-08-07 Thread Mark Murphy
Jonas wrote: > Hi. > > The foooter for this list view goes out of scope. The header is fixed > but I like the footer also to > be fixed, thus scrolling the list between the header and footer. Cant > get this to work below is my xml: > > > http://schemas.android.com/apk/res/ > android" > andro

[android-developers] How to add footer in a list view

2009-08-07 Thread Jonas
Hi. The foooter for this list view goes out of scope. The header is fixed but I like the footer also to be fixed, thus scrolling the list between the header and footer. Cant get this to work below is my xml: http://schemas.android.com/apk/res/ android" android:orientation="vertical" a

[android-developers] Re: Android on the iPhone

2009-08-07 Thread Jeff Sharkey
If you're a developer interested in porting to various hardware configurations, you're probably looking for the android-porting list: http://groups.google.com/group/android-porting This group (android-developers) is primarily focused on app development questions when working with the Android SDK

[android-developers] Re: ProgressBar doesn't allow control of visibility in AppWidgetProvider App Widget?

2009-08-07 Thread Jeff Sharkey
Doh, good catch. The View.setVisibility() method is marked with the @android.view.RemotableViewMethod annotation, which is what allows it to be called through RemoteViews. In this case, ProgressBar actually overrides the default View implementation, but without adding that annotation. (This is

[android-developers] Re: How to pass an object to an Activity via Intent.putExtra()

2009-08-07 Thread Roman
Check out the Android FAQ http://developer.android.com/guide/appendix/faq/framework.html#3 -- Roman Baumgaertner Sr. SW Engineer-OSDC ·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

[android-developers] Re: Do I have to sign my application for ADC II

2009-08-07 Thread Mark Murphy
-v- wrote: > Hi, > Do I have to sign my application before submitting it for ADC II? > Is yes, how do I do that? Do I have to buy some certificate? http://developer.android.com/guide/publishing/app-signing.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsgu

[android-developers] Do I have to sign my application for ADC II

2009-08-07 Thread -v-
Hi, Do I have to sign my application before submitting it for ADC II? Is yes, how do I do that? Do I have to buy some certificate? -v- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] Re: Widgets: Imageview doesn't support transparency/alpha

2009-08-07 Thread Xavier Ducrohet
When the layout editor shows something different from the device, always trust the device. While the layout editor runs a part of the Android framework, it uses java2D to do the final drawing instead of the Android drawing library (because a lot of it is in native). The porting of the Android dr

[android-developers] Re: Persistance of dynamic objects, your advice

2009-08-07 Thread Yusuf T. Mobile
There's lots of ways to store data: http://developer.android.com/guide/topics/data/data-storage.html SharedPreferences is the easiest, but you can do SQL if need be. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author sole

[android-developers] Widgets: Imageview doesn't support transparency/alpha

2009-08-07 Thread Tom Z
When applying an alpha value to an imageview, Eclipse displays the view accurately in layout mode. But when exporting to a target device (such as a phone), the alpha appears to be ignored. This impacts developers trying to create fade ins/outs of elements in a widget. Has anyone else come across t

[android-developers] Re: GLSufaceView rotation performance

2009-08-07 Thread Dianne Hackborn
Have you run the profiler on your app? Because this all runs in the main thread, there is all kinds of work (including your application code) that can happen between these. The only way to determine what is happening during that time is to profile. On Fri, Aug 7, 2009 at 3:38 PM, Stephen Lin wro

[android-developers] Android on the iPhone

2009-08-07 Thread MikeA
I wasn'ta fan of the G1 because it seemed so small. The myTouch seems much better but I've since gotten an iPhone. Is there anyway to run Android on the iPhone? I Googled it but a lot of the data I found was old. --~--~-~--~~~---~--~~ You received this message bec

[android-developers] Re: VerifyError while trying to run Unit tests

2009-08-07 Thread Alex G
Okay, just another thing in case anyone is interested, I got the source for the ADT and added some code to BaseBuilder so that when ApkBuilder scans for external jars to package up as part of the classes.dex file it omits jars which are already on the classpath of a referenced project which has th

[android-developers] ProgressBar doesn't allow control of visibility in AppWidgetProvider App Widget?

2009-08-07 Thread Craig
I was trying to set a progress bar to View.INVISIBLE or View.GONE, or View.VISIBLE inside an AppWidgetProvider. However, it doesn't seem to want to do it. Setting visibility works fine with TextView fields or ImageView fields or ImageButtons. However, ProgressBar doesn't seem to work. It doesn't m

[android-developers] GLSufaceView rotation performance

2009-08-07 Thread Stephen Lin
Hi, I have a problem with GLSufaceView rotation performance. After the screen is rotated, it sometimes takes a few seconds for the OpenGL view to be updated in new layout. I have Activity, which has a FrameLayout. The GLSurfaceView is one child of the FrameLayout. I found the problem is that

[android-developers] Re: HTC Touch Input

2009-08-07 Thread DG_18729
Read http://forum.xda-developers.com/showthread.php?t=516396 Install AppsInstaller or AppManager from the market place. Under settings/applications check "Unknown Sources". This lets you install apps outside the market place. Copy the apk to your sd card. Install from your phone. In Settings

[android-developers] Re: Flipping / Rotating TextView (or layout) upside-down

2009-08-07 Thread jhoffman
After all was said and done, that last issue appeared to be a matter of RelativeLayout and RotateAnimation not playing as nicely together as I thought. The 'visual' buttons were in a different place than the 'actual' buttons were. I switched to a LinearLayout setup, and things behaved a lot better

[android-developers] Persistance of dynamic objects, your advice

2009-08-07 Thread CG
Hi I am new to this android stuff and SQLlite etc. I am going to log some numbers at a certain interval, and will put them into a dynamic histogram, by dynamic i mean that there will be a maximum number of samples in the histogram, the histogram and age stuff should be persisted either in db or p

[android-developers] Re: Do I have to test my app on Dev Phone for ADC II

2009-08-07 Thread -v-
Thx for the reply. I am very new to this..can you point me to some appstores which does beta testing? ALSO, is it required that I need to sign my application before it can be deployed on a cell phone? If yes then how do I sign the app? Do I have to buy a certificate for that? Thanks again -v- On

[android-developers] Re: Multiple line Notification

2009-08-07 Thread Jeff Sharkey
Yes, look at using a custom layout through RemoteViews, which is how Music shows multiple lines in its notification: http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=blob;f=src/com/android/music/MediaPlaybackService.java;hb=cupcake#l985 j On Fri, Aug 7, 2009 at 2:56 PM, Peac

[android-developers] Re: In call dialpad/menu confusion - am I the only one?

2009-08-07 Thread Jeff Sharkey
Platform improvements are ongoing, and this specific issue is being addressed in an upcoming release. j On Fri, Aug 7, 2009 at 11:31 AM, sambuka wrote: > > When in a call, there is a confusion in the UI in selecting options. > DTMF is sent flicking up the 'dialpad', and speaker (and other > opti

[android-developers] Multiple line Notification

2009-08-07 Thread Peacemoon
I use NotificationManager to write a Notification. I want now a multiple-line text for my notification. Is it possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] Re: Moving a View Object in a Circle

2009-08-07 Thread Yusuf T. Mobile
Depending on what your View does, you can either implement View.onDraw () to draw it as you like, or View.MeasureSpec to contorl the layout. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capac

[android-developers] Re: PendingIntent Flag and AlarmManager behavior ?

2009-08-07 Thread Dianne Hackborn
On Fri, Aug 7, 2009 at 1:12 PM, SR wrote: > The only meaning I was equipped with was one given by the > documentation of PendingIntent. I think adding a little paragraph to > the top of that class's documentation talking about the role of > requestCode would help. This is actually just a gener

[android-developers] Re: take screenshot programmatically

2009-08-07 Thread Yusuf T. Mobile
You cannot programmatically take a screenshot unless the phone is "rooted", meaning the applications are running as root. Phones are not sold "rooted", but some rapscallions hack them anyway. The other way to take a screenshot is with the DDMS, but that is not programmatic. Yusuf Saib Android

[android-developers] Re: Android Lap top connection

2009-08-07 Thread Yusuf T. Mobile
Tethering is not officially supported by the Android platform. Yusuf Saib Android ·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 7,

[android-developers] Re: XML Parser

2009-08-07 Thread Yusuf T. Mobile
GIYF http://www.ibm.com/developerworks/xml/library/x-android/ Yusuf Saib Android ·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 7, 3

[android-developers] Re: Broadcasting reboot intent

2009-08-07 Thread Dianne Hackborn
Not only is it not in the API docs, but because as you say you need to be signed with the platform cert, you can only use this if you are running on a device whose system software you have built yourself. On Fri, Aug 7, 2009 at 1:55 PM, markwhitney wrote: > > Got it to work. For reference to an

[android-developers] ZooShaker is fun for all ages

2009-08-07 Thread Hunter Peress
ZooShaker is a fun app for kids and adults. Select an animal by hilarious pictures, and shake the phone. http://zooshaker.codejanitor.us --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] Re: Broadcasting reboot intent

2009-08-07 Thread markwhitney
Got it to work. For reference to anyone else, in addition to signing with the platform key, the ACTION_REBOOT intent has to have a few extras defined. Without any extras, it looks like the Watchdog thread will basically ignore it. This code would do an immediate reboot: Intent i = new Intent(

[android-developers] Re: ImageView setImageResource

2009-08-07 Thread ZoobTheSimian
Wow - fantastic. Thanks very much, Mark - that sounds spot on. I'm pretty new to Android (and Java, for that matter), so I'm still learning and I've just been banging my head against the wall on this one! I'll give it a try and update once it's resolved. Thanks again. On Aug 7, 8:54 pm, Mark M

[android-developers] Sharing Industry Stats: Android Reeling in iPhone?

2009-08-07 Thread Peter Farago
Hi everyone, Flurry Analytics uses the data collected from now over 200 million montly tracked user sessions to spot trends in the industry. Sharing the latest from our July Smartphone Industry Pulse, which we hope you'll find helpful. http://blog.flurry.com/bid/24465/Smartphone-Industry-Pulse-

[android-developers] How to pass an object to an Activity via Intent.putExtra()

2009-08-07 Thread fhucho
Hi, I am developing an app that connects to a server. For that connection I created a class Client that maintains info about the connection . My app consists of several Activities and each of that Activity needs access to the Client object to communicate to the server. 1) Can I put somewhere the

[android-developers] Re: PendingIntent Flag and AlarmManager behavior ?

2009-08-07 Thread Dianne Hackborn
On Fri, Aug 7, 2009 at 12:53 PM, SR wrote: > Ok, then the documentation should not imply that AlarmManager.set(...) > uses filterEquals(...) to compare the intents. It should say instead > that (action, type, Uri, categories, component) are used for > comparison of intents. It does use filterE

[android-developers] Re: PendingIntent Flag and AlarmManager behavior ?

2009-08-07 Thread SR
Dianne, Thank you for your explanations and time. I think the issue is clear now, and just a little bit more discussion remains on how to clarify it to others. > It does use filterEquals(). Agreed, but filterEquals() of the Intent class proper. Maybe making Intent.filterEquals() *final* would

[android-developers] Potential problem when judging ADC2 applications

2009-08-07 Thread Sebastian
>From what I've read, users will be able to download a special app that will let them judge the applications submitted to the Android Development Contest. It has also been said that, once submitted, you won't be able to update your applications. And as you've probably read, you can submit your a

[android-developers] Re: ImageView setImageResource

2009-08-07 Thread Mark Murphy
ZoobTheSimian wrote: > > I've moved all the logic about whether the card should stay face-up or > flip over again into a separate function, called in a new thread. > Brilliant. Almost works great (the card shows its face), but it > doesn't quite. For some reason, it's failing on the line > > ((I

[android-developers] Re: PendingIntent Flag and AlarmManager behavior ?

2009-08-07 Thread SR
Ok, then the documentation should not imply that AlarmManager.set(...) uses filterEquals(...) to compare the intents. It should say instead that (action, type, Uri, categories, component) are used for comparison of intents. Also, the documentation for PendingIntent currently explicitly says that

[android-developers] Re: ImageView setImageResource

2009-08-07 Thread ZoobTheSimian
Hi. I've been having the same problem - working on a card game, and I need to do some actions when the player picks a card. The card may be left face up, or may be turned back over. The problem I was having, as above, was that if I handled all the logic in the onClick(), it didn't display the fac

[android-developers] Re: PendingIntent Flag and AlarmManager behavior ?

2009-08-07 Thread Dianne Hackborn
Thanks. I closed the bug with a description of why this is so. Having data (action, type, Uri, categories, component) that is unique within the intent is the way to do this. You can also use the request code to disambiguate them. On Fri, Aug 7, 2009 at 12:16 PM, SR wrote: > > Ultimately, the

[android-developers] Re: HTC Touch Input

2009-08-07 Thread Dianne Hackborn
I am pretty sure that is proprietary to HTC. On Fri, Aug 7, 2009 at 12:08 PM, alkar wrote: > > Is the Touch Input IME provided by HTC on Magic open source? If so, > under which licence and where would I find the source? Can't really > find any info about it online and I'm looking into developing

[android-developers] Re: PendingIntent Flag and AlarmManager behavior ?

2009-08-07 Thread SR
Ultimately, the only way I could get different intents to be scheduled with AlarmManager is to set different data URIs in the Intents that I was wrapping in PendingIntents and scheduling with AlarmManager.set(). I filed an issue about this here: http://code.google.com/p/android/issues/detail?id=3

[android-developers] HTC Touch Input

2009-08-07 Thread alkar
Is the Touch Input IME provided by HTC on Magic open source? If so, under which licence and where would I find the source? Can't really find any info about it online and I'm looking into developing an IME based on it, rather than LatinIME. Thanks, alkar --~--~-~--~~~-

[android-developers] In call dialpad/menu confusion - am I the only one?

2009-08-07 Thread sambuka
When in a call, there is a confusion in the UI in selecting options. DTMF is sent flicking up the 'dialpad', and speaker (and other options) is found in the 'menu'. I think that this is confusing. All should be put in the menu or dialpad, but not both, or maybe put a frequent option SPEAKER on the

[android-developers] Re: Do I have to test my app on Dev Phone for ADC II

2009-08-07 Thread Disconnect
Sorry, hit send too soon. Several of the appstores have set up betatest groups, and you can generally ask for help with testing on the various android-* lists and get volunteers. On Fri, Aug 7, 2009 at 2:54 PM, Disconnect wrote: > Its not safe to assume that. Its getting better, but its not ide

[android-developers] Re: Do I have to test my app on Dev Phone for ADC II

2009-08-07 Thread Disconnect
Its not safe to assume that. Its getting better, but its not identical (and thats even discounting things like timing problems.) On Fri, Aug 7, 2009 at 1:55 PM, -v- wrote: > > Hi, > I plan to submit an app for the ADC II. I wanted to know if it is > required that I test my app on the Andoird Dev

[android-developers] Re: Mock up developing / creation tool for android

2009-08-07 Thread Stefan
This is the best tool that I have used until now. I have test it a little bit, but the MapView is missing for example?!? But nevertheless a useful tool. Thanks, Stefan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

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

2009-08-07 Thread Marco Nelissen
The hardware doesn't support it. The closest you can get is by playing it over the speaker at full volume, so the microphone will pick it up. On Fri, Aug 7, 2009 at 9:26 AM, jsdf wrote: > > Hi everyone, > > Is it possible to play audio over an active phone call, so the other > end can hear it? >

[android-developers] Re: Capturing Hard key events on WidgetApp

2009-08-07 Thread Dianne Hackborn
Sorry, you can't do this. On Fri, Aug 7, 2009 at 6:34 AM, Abhi wrote: > > I am developing a widget for that i need to control some mmi using > Hardware key...please let me know how can i > capture hardware key events on widgetApp as it is controlled by > Widgetprovider. If any body have any solut

[android-developers] Re: AsyncTask reuse

2009-08-07 Thread Dianne Hackborn
If you don't like it, use your own Thread or the slightly higher-level HandlerThread and implement the semantics you want. On Fri, Aug 7, 2009 at 10:50 AM, Jason Proctor < jason.android.li...@gmail.com> wrote: > > i'm fine with the single running instance model. not so much the > totally unreusab

[android-developers] Do I have to test my app on Dev Phone for ADC II

2009-08-07 Thread -v-
Hi, I plan to submit an app for the ADC II. I wanted to know if it is required that I test my app on the Andoird Dev Phone? If it runs on the emulator is it safe to assume that it runs on an actual phone? The phone is pretty costly and will be useless for me after the contest. Is there a place I c

[android-developers] AsyncTask reuse

2009-08-07 Thread Jason Proctor
i'm fine with the single running instance model. not so much the totally unreusable model, which is the one followed by AsyncTask. java.util.Timer is the same way, but that's no excuse for imitation ;-) > there is a difference in "can be used only once" and "single >running instance is allo

[android-developers] Re: Can I add a data column to the Contacts db?

2009-08-07 Thread Mark Murphy
Zak Zak wrote: > I was worried about having two asynchronous events, > (get data from Contacts db, and get data from my new db). Neither of those operations are intrinsically asynchronous. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Develop

[android-developers] Nokia has given the N95 8GB a sexy new

2009-08-07 Thread Jackson
Nokia has given the N95 8GB a sexy new semi-gloss black color scheme that adds a touch of class to the look. Cosmetic changes extend to other places as well, with the menu and multimedia keys being significantly thinner than on the original, though not so much as to make them hard to press. The up

[android-developers] Re: Can I add a data column to the Contacts db?

2009-08-07 Thread Zak Zak
I'm actually changing the stock Contacts app, to add more data to each contact list item. I was worried about having two asynchronous events, (get data from Contacts db, and get data from my new db). But perhaps it is better to do that. Any tips on best practices for dealing with multiple asynch

[android-developers] A better splash screen

2009-08-07 Thread Carl Whalley
I have an app with a View which fills the display at 320x480. I made a splash image which is smaller, 200x200, and the logic to display this is ok. It doesn't have the effect I'd like though, which is to show the splash first, centered, and without clearing the background which at present it is do

[android-developers] Re: Switching carriers

2009-08-07 Thread Roman
Hi Andrzej, I am not aware that the Android telephony package supports this functionality on SDK level. I also doubt that this functionality is implemented on framework level (please correct me if I am wrong). In general when you look at current existing TAPI API implementations there are APIs li

[android-developers] Re: karim.ahsa...@gmail.com shared a link from UploadAndSend with you

2009-08-07 Thread Ahsan
Hi Mark, I am a great fan of you. I was so enthusiastic about your works and android development that i broke the copyright law. I assure you that this will never happen from my side I am extremely sorry. Hope you understand. regards. -Ahsanul Karim On Aug 7, 5:41 pm, Mark Murphy wrote: >

[android-developers] SensorManager Query

2009-08-07 Thread mscwd01
Hi, I would like to get the orientation of the phone i.e. its compass bearing (azimuth), pitch (around X axis) and roll (around Y axis). I have found the method 'getOrientation(float[] R, float[] values)' which seems to serve this purpose, however I am unsure what I need to pass to it as a param

[android-developers] Re: Capture EndCall key

2009-08-07 Thread Roman
Michelle, You cannot act on the ENDCALL event on application level. There are multiple threads about this already http://groups.google.com/group/android-platform/browse_thread/thread/c6e2de4b0cdbecd7/21b7cf4ee06a7005?lnk=raot&fwc=1 http://groups.google.com/group/android-framework/browse_threa

[android-developers] Re: How to use telnet

2009-08-07 Thread brian
Be careful, though. You'll be talking to a telnet server, which expects you to use the telnet protocol (RF854). You may see some *extra* data that appears to be garbage characters. A quick read through rfc854 should explain what you're seeing. http://tools.ietf.org/html/rfc854 Brian Pence htt

[android-developers] opencore packet video error in android -"Video track fell behind"

2009-08-07 Thread Harishkumar V
Hi, When i play an mp4 file, it reports "Video track fell behind". it is not the same for all mp4 videos, some play and some do not, reporting above error. is this video quality issue handled by android or opencore issue in handling. is there anyway we can fix this. Thanks and Regards, HarishKu

[android-developers] Re: Will a notification still work if the device once shut down.

2009-08-07 Thread Pradeep Kaushik
Hi, You can use the AlarmManager for such tasks. Sample Code: == AlarmManager am = (AlarmManager)getSystemService(Context.ALARM_SERVICE); PendingIntent pi = PendingIntent.*getBroadcast*(getApplicationContext(), REQUEST_CODE, intent, PendingIntent.FLAG_CANCEL_CURRENT); am.set(AlarmMa

[android-developers] Re: Developing on a regular consumer HTC Magic device

2009-08-07 Thread Andri
Care to share? I also have a HTC Magic I'd like to develop on... On Aug 5, 8:07 pm, Dollars Admin wrote: > No worries - I figured it out myself. HTC Magic already runs Android OS 1.5 > and from the IDE - I was able to enable debugging. > > On Wed, Aug 5, 2009 at 11:20 PM, Dollars Admin wrote: >

[android-developers] Capturing Hard key events on WidgetApp

2009-08-07 Thread Abhi
I am developing a widget for that i need to control some mmi using Hardware key...please let me know how can i capture hardware key events on widgetApp as it is controlled by Widgetprovider. If any body have any solution please let me know thanks Abhi --~--~-~--~~~---

[android-developers] Re: How to share datas between tabs in a TabActivity

2009-08-07 Thread Tinuz
What i did is the following: You have tab1 and tab2 which reside in a tab activity. In tab1 runs activity1 and in tab2 runs activity2. When you finish your operation in tab1, you retreive the parent activity which is the tab activity. In this tab activity you have a Bundle property. You put the d

[android-developers] Android Lap top connection

2009-08-07 Thread The Kid
Hello Folks, I was wondering if it was possible to connect the lap top with the T.M G1 phone to get internet connection. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this grou

[android-developers] Setting a listener for drag animations in MapView

2009-08-07 Thread Cachapa
Hi, I have a class which extends MapView and manages markers inside the view. The trouble is I have a *lot* of markers to show (~12,000), and loading them all at once doesn't really work, so I'm retrieving the markers on demand so that at any time there will be only ~20 markers on the map (at lo

[android-developers] Inserting Images in Text Field along with the Text

2009-08-07 Thread androidguy
Hi all, Hi i am new to Android, I want to add Image to Text field, at the same time i want to write text under that image( want to describe about the image ) in the same text field. And the image should be provided with ZOOOM_IN and ZOOM_OUT options, for the user to view. Please can anyone h

[android-developers] Moving a View Object in a Circle

2009-08-07 Thread Raman
Hi All, I have a very simple requirement. I have a View object, lets say an ImageView object. I want to move this ImageView object in a circle. More specifically, I want to move it along an arc, which is not a complete circle. I found in Android Documentation that comes with SDK that we can crea

[android-developers] XML Parser

2009-08-07 Thread SASIKUMAR
If any body know how to do xml parsing. inform to me... --~--~-~--~~~---~--~~ 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

[android-developers] Switching carriers

2009-08-07 Thread Andrzej Dobrucki
Does anyone know if there's a way to manually switch from one carrier to another in code? I could get actual operator data with serviceState.getOperatorAlphaLong (); etc, but wasn't able to find a solution to actually switch from one to another. Does one need to use AT commands or similar? Thank

[android-developers] Re: Mock up developing / creation tool for android

2009-08-07 Thread Mohamed Hamdouni
I know about DroidDraw that is an Online tool to make User Interface for Android apps Don't know if its what you are looking for -- Visit us at www.touch-market.com THE website dedicated to YOU Android developers THE sweet plac

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

2009-08-07 Thread jsdf
Hi everyone, Is it possible to play audio over an active phone call, so the other end can hear it? For example: A and B are talking on the phone. A presses a button that pulls audio from a resource and plays it over the phone call to B. If so, what libraries should I look into? If not, is this

[android-developers] question about KeyListener

2009-08-07 Thread chandlersong
I need to listen to user's input of a edittext. I first use KeyListener to listen.it can work,but it also eating other input.So I changed to the OnKeyListener, and it work well then I read Api about KeyListener, I find the sentence below I can't understand Calling this method will repl

[android-developers] Re: Limit the size of a ScrollView

2009-08-07 Thread JMichel
Thanks for the tip I didn't realize the order was important. On Aug 7, 11:43 am, Mark Murphy wrote: > JMichel wrote: > > > I have tried a Relative layout containing 3 Linear layouts. I'd like > > to get a thin top layout, a thin bottom layout and a middle layout > > that takes the available spa

[android-developers] Re: Limit the size of a ScrollView

2009-08-07 Thread Mark Murphy
JMichel wrote: > > I have tried a Relative layout containing 3 Linear layouts. I'd like > to get a thin top layout, a thin bottom layout and a middle layout > that takes the available space in between. Here is the XML of my > layout: > > http://schemas.android.com/apk/res/ > android" > and

[android-developers] Re: Limit the size of a ScrollView

2009-08-07 Thread JMichel
I have tried a Relative layout containing 3 Linear layouts. I'd like to get a thin top layout, a thin bottom layout and a middle layout that takes the available space in between. Here is the XML of my layout: http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent"

[android-developers] Re: OpenGL leaking garbage

2009-08-07 Thread Dmitry.Skiba
OK, you've made it absolutely clear that non-direct buffers are definately a no-no :) Anyway, I will stick to VBOs (which, as Jack explained, do not need direct buffers at all). I hope this thread will be helpful to others as much as it was for me. Dmitry On 7 авг, 01:07, fadden wrote: > On Au

[android-developers] Re: Sharing data between activities

2009-08-07 Thread elpix1
Another way to share data between activities in the same process is to use the Application class: http://developer.android.com/reference/android/app/Application.html You have to specify the name of your Application class in the manifest and the framework will create only an instance of this clas

[android-developers] Can't get rid of SQLiteCursor IllegalStateExceptions in finalize method

2009-08-07 Thread Paul Drummond
When I run my app in debug mode I constantly get the debugger breaking out due to a IllegalStateException: 08-07 14:40:00.261: INFO/dalvikvm(808): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.sqlitecur...@437a2d80 on null that has not been deactivated or closed 08-0

[android-developers] No ticks when using AlertDialog.setMultiChoiceItems with cursor

2009-08-07 Thread Paul Drummond
I am trying to display a dialog containing checkbox items using the version of setMultiChoiceItems that takes a cursor. Everything works fine except when I press the checkbox it doesn't change visually (I don't see the tick). If I close the dialog box and re-open it the tick is there and the tabl

[android-developers] Remounting SDCARD in the emulator

2009-08-07 Thread elpix1
Hi, If, in the emulator, we unmount the SDCARD, is there a way to remount it, without restarting the emulator ? Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

[android-developers] Tracking Pointer Events in Android Browser

2009-08-07 Thread Jason Van Anden
I am developing an application that should work on a mobile phone and a browser. I thought, why not use Canvas and have everything occur in the browser. Thing is, mouse events get intercepted by the browser app to do things like move the screen. Has anyone out there encountered this and found a

[android-developers] Re: how to stop service?

2009-08-07 Thread Marco Nelissen
The fact that the process is still there doesn't mean that the service is running. Android keeps processes around for perfmance reasons, so they can be reused when the app is launched again. Your process shouldn't actually be doing anything anymore after you stop the service (and if it is, it's a

[android-developers] Re: Intent.ACTION_VIEW for png not working ...

2009-08-07 Thread Donn Felker
Update: I got this to work finally. Here's how: Intent i = new Intent(android.content.Intent.ACTION_VIEW); i.setDataAndType(Uri.parse("file:///sdcard/path/to/myfile.png"), "image/png"); startActivity(i); Why does this work? I have no idea. But, it does. The docs are not that clear (IMO) and I gl

[android-developers] Re: how to stop service?

2009-08-07 Thread Desu Vinod Kumar
HI Have u seen this thing to start and stop the service example http://mylifewithandroid.blogspot.com/2008/02/double-life-of-service.html On Fri, Aug 7, 2009 at 10:08 AM, Archana wrote: > > If We open DDMS.We can See that process is still running eventhough we > exit from app and because of t

[android-developers] Re: Sharing data between activities

2009-08-07 Thread Mark Murphy
sylvestercaro...@gmail.com wrote: > I have a similar question. Basically I have an app with several > activities, each needs to read different data from a common local > SQLite db. This data doesn't have to be accessed outside of the > application itself - hence I decided against using a content p

[android-developers] Re: Force Portrait Screen

2009-08-07 Thread Mark Murphy
condor wrote: > Hello I developed an application and when I flip the phone in > landscape mode the application went in landscape too. > > How can I make the application stay in portrait mode no matter the > phone orientation. http://androidguys.com/?p=2891 "To block Android from rotating your

[android-developers] Re: listview (text+icon) inside a class Atcivity and not ListActivity

2009-08-07 Thread Mark Murphy
Dany BREARD wrote: > I want to know if its possible to make a listview (text+icon) on a > class extends Activity and not on a class extends ListActivity. Yes. You will need to call findViewById() to get your ListView, rather than call getListView(). Similarly, there will be minor changes if you w

[android-developers] take screenshot programmatically

2009-08-07 Thread mudit
hello... i have a requirement to place 2 overlapping image view inside a web view.the upper image view can be moved using trackball and the lower image view is static.now i want to capture the whole screen programmatically and save it as an image. i have referred this link but unable to get the

  1   2   >