[android-developers] How to receive events on MapView using Overlay

2009-07-03 Thread mak
Overlay Code: public class MyLocationOverlay extends com.google.android.maps.Overlay { @Override public boolean onKeyDown(int keyCode,KeyEvent event, MapView view){ System.out.println(==INSIDE onKeyDown ==); if(keyCode == KeyEvent.KEYCODE_BACK) {

[android-developers] Google docs on HTC Magic (poss all gphones)

2009-07-03 Thread chris.compo
Hi All I am using a Htc Magic, I can access my docs ok but when I tried to edit a shared spreadsheet from the phone I could not do it, it viewed perfectly. Is it possible to edit from phone? should it be ? could it be as would really help me loads...

[android-developers] java.lang.ClassCastException when casting from ParcelableArray

2009-07-03 Thread ade
Hello Android Developers, Why do I get java.lang.ClassCastException when I tried to cast back an array of custom object that implements Parcelable? Here is the custom class: public class Placemark implements Parcelable { public Double latitude; public Double longitude;

[android-developers] Re: java.lang.ClassCastException when casting from ParcelableArray

2009-07-03 Thread Romain Guy
It is illegal in Java to cast an array of a supertype into an array of a subtype. On Thu, Jul 2, 2009 at 11:42 PM, adea.wirayu...@gmail.com wrote: Hello Android Developers, Why do I  get java.lang.ClassCastException when I tried to cast back an array of custom object that implements

[android-developers] Unknown response Format coming from the server when i am using nusoap webservices

2009-07-03 Thread android.vinny
Hi i am getting unknown format response form the server any help me what type of response it is how to parse that response 07-01 15:14:35.575: VERBOSE/Isizzle(879): getRatingResponse { return=ContestInfo{item=anyType{name=Ankitha; totalimages=2; rating=2.5; };

[android-developers] Re: Detecting when the file system runs out of space

2009-07-03 Thread gjs
Hi, See android.os.StatFs The camera source code has an example of use http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=blob;f=src/com/android/camera/MenuHelper.java;h=a88f020e4c1bacdac50c4aa58bcbb7c68875772f;hb=HEAD eg: public static int calculatePicturesRemaining() {

[android-developers] **never ever** use Toasts with Activity context

2009-07-03 Thread skink
hi, take NotifyWithText api demo as example. add in the begging of onCreate System.gc() and some logs with getInstanceCount() and try to show any Toast, then exit NotifyWithText demo. run it again - you will see getInstanceCount() increases leaking Activities. repeat running demo couple of

[android-developers] Re: How to receive events on MapView using Overlay

2009-07-03 Thread mak
Team, Below code is working as I need to select first View by pressing left arrow key which maked MapView as Current view and then pressing back button. It is getting called. Thanks for your patience. Regards, _-_Mayank Rana_-_ On Jul 3, 11:04 am, mak mayank.rana...@gmail.com wrote: Overlay

[android-developers] Rotating map view

2009-07-03 Thread Sujay Krishna Suresh
Hi all, i'm tryin to give a better experience to the user by rotating the map, similar to maps shown by games. the user always stays at the center of the screen n the road that he's moving on is always perpendicular to the screen top. i'm using canvas.save(matrixflag);

[android-developers] Re: Where to put local file on the phone

2009-07-03 Thread qLabs
no because ive tons of images, and i need to build the path from parsing a string and then get the right image. With ressources im obliged to use a giant switch case and to precise for each of the case. Regards, On Jul 2, 4:28 pm, Nightwolf mikh...@gmail.com wrote: If you only need to assign

[android-developers] flash(flv) related API available?

2009-07-03 Thread tainy
recent news say that flash porting is finished for android and HTC Hero has support for flash. Can I use MediaPlayer API to play flv media file? Is there such documents? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Activity Lifecycle

2009-07-03 Thread Daniel
Hi, I did an activity that reads a lot of preferences stuff in its onCreate and configures the app accordingly. Since there is also some multithreading going on in this activity reconfigureing after some preferences change during runtime would be a complicated and error prone task. So I decided

[android-developers] Re: Find all active alarms

2009-07-03 Thread Dianne Hackborn
adb shell dumpsys alarm will have some debug information. This is only for debugging, not for applications. On Thu, Jul 2, 2009 at 10:16 PM, Veroland marius.ven...@gmail.com wrote: Hi Is there a way to find all the alarms which is currently active set to go off? Thanks -- Dianne

[android-developers] Re: how to modify value in AttributeSet?

2009-07-03 Thread Dianne Hackborn
Correct, this is not designed to allow you to modify it. There are a lot of serious optimizations (including calls into native code) that preclude it. On Thu, Jul 2, 2009 at 7:22 PM, Yuchih liuyuc...@gmail.com wrote: Hi Dianne. Thanks for your answer. I have traced some source codes. I think

[android-developers] Re: JIS conversion is ignored!

2009-07-03 Thread Hiro
Hi, Dan-san which will construct a string by interpreting the bytes in the default encoding. The default encoding on Android is UTF-8, so this is probably not what you want. I do understand the reason that a part of the input string is corrupsed. Thanks, Hiroyuki

[android-developers] Re: import org.apache.commons.httpclient.HttpClient library error

2009-07-03 Thread Markuz05
Nithu: are you using sdk 1.5 or 1.1? Android Development: you can use only libraries compatible with android sdk. For performance reasons Dalvik VirtualMachine is not the standard Java VirtualMachine so Android uses its API that are little different from Java standard API. This means that you

[android-developers] How to get a java object property from javascript on Android?

2009-07-03 Thread eartied1
Hello, I have an object public class SMSMessage { public String id; public String body; public Boolean store; public int folder; public Boolean read; public String recipient; //Methods public String getProperty(String propertyName) {} }

[android-developers] Re: import org.apache.commons.httpclient.HttpClient library error

2009-07-03 Thread Nithu
I am using sdk 1.5 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Help- Video Recording - Camcorder

2009-07-03 Thread loril...@gmail.com
Can anyone please let me know where can I get source code for camcorder? Also, it would be of much help to me if anyone could post a simple example for video recording, please. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Rotating map view

2009-07-03 Thread Sujay Krishna Suresh
Hi all, i'm tryin to provide a better experience to the user by rotating the map, as in some games. i want the user to always be in the center of the screen the road he's travelling to be perpendicular to the screen top. plz help with suggestions n sample codes. thanks in advance.

[android-developers] How to release resources when application ends?

2009-07-03 Thread Niko Gamulin
Hi, I created an application which is displaying camera preview. When the application terminates I noticed that some processes are still running. Also if I try to run the original camera application it displays an error (obviously due to the active process which belongs to the custom

[android-developers] Re: ListView with different types of View's

2009-07-03 Thread Pratap
Hi You can do the same by extending BaseAdapter and simply override the methods like getCount, getItem , getView etc,, The getView method gets called for each List item.You only need to create and return the list item from here. Hope this helps Cheers On Jul 2, 6:45 pm, ayanir

[android-developers] Re: Activity Lifecycle

2009-07-03 Thread hmmm
What if you make your activity singleTop and then use onNewIntent() in the same activity such as onCreate { configure(); } onNewIntent { configure() } -Original Message- From: Daniel daniel.himmel...@googlemail.com To: Android Developers android-developers@googlegroups.com Date: Fri,

[android-developers] Re: **never ever** use Toasts with Activity context

2009-07-03 Thread hmmm
Really? It will be interesting to hear Google engineers comment on this. -Original Message- From: skink psk...@gmail.com To: Android Developers android-developers@googlegroups.com Date: Thu, 2 Jul 2009 23:57:41 -0700 (PDT) Subject: [android-developers] **never ever** use Toasts with

[android-developers] Access drawable resources from ItemizedOverlay

2009-07-03 Thread Lex
Hi, I have a method in my ItemizedOverlay class which takes an object as a parameter and depending on it's certain values returns an appropriate icon. What's the best way to access the drawable resource from within ItemizedOverlay as you can't access it directly like in an activity? The only

[android-developers] Re: Access drawable resources from ItemizedOverlay

2009-07-03 Thread Sujay Krishna Suresh
if u jus need resources, have a static Context instance in ur launcher activity to which u assign the getApplicationContext() in the onCreate method. Now u hv access to ur app Context from any where in ur application. m not sure if this is the best method. But this is wat i could think of.. On

[android-developers] Re: import org.apache.commons.httpclient.HttpClient library error

2009-07-03 Thread Android Development
Thanks for the reply Markuz05. My API is a wrapper over the Apache HTTP Client API..which is a well tested and proven API: http://hc.apache.org/httpclient-3.x/apidocs/ http://hc.apache.org/httpclient-3.x/apidocs/As you said, that the libraries being used in an Android application need to be

[android-developers] Re: Gallery View using images from file (Dynamic vs. Static images)

2009-07-03 Thread And-Rider
may be this can help you out http://learningandroid.org/tutorial/2009/02/gallery-tutorial-file-location On Jul 2, 2:06 am, Logik yaros...@gmail.com wrote: The api demo for gallery uses resource id's to access the drawables in the gallery. I have tried multiple ways to use images from file.

[android-developers] Re: **never ever** use Toasts with Activity context

2009-07-03 Thread skink
On Jul 3, 11:20 am, hmmm akul...@mail.ru wrote: Really? It will be interesting to hear Google engineers comment on this. well, its nothing wrong with Toasts per se, they are working as api docs describe, but when using wrong context they could give some problems...

[android-developers] any example of the video intent?

2009-07-03 Thread zeeshan
Hi Experts, i am interested in video recording, can anybody share the code please? --~--~-~--~~~---~--~~ 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] A question regarding Activities and Tasks.

2009-07-03 Thread Android Development
I had a question regarding this concept. Suppose i have an application that defines a task. This task has some activities that belong to another Android application. The Dev guide says, that to maintain a uniform user experience, Android will maintain such 'distributed' activities as part of the

[android-developers] Re: **never ever** use Toasts with Activity context

2009-07-03 Thread hmmm
Is the following true: it is preferrable to always pass Applicatioon Context to any Toasts within the application? -Original Message- From: skink psk...@gmail.com To: Android Developers android-developers@googlegroups.com Date: Fri, 3 Jul 2009 03:06:36 -0700 (PDT) Subject:

[android-developers] Re: Memory leak in AudioTrack?

2009-07-03 Thread blindfold
Yes, I'm facing the exact same problem. It looks like a bug in AudioTrack. For me the GREF count seems to increase by 2 for every creation and use of AudioTrack, and it never goes down. I do not see this problem when instead creating and using MediaPlayer (and writing synthesized sound to flash

[android-developers] Item click on LiveFolder

2009-07-03 Thread glory
Hi , How to open the Activity on click of the Item in the Live Folder I am able open the browser Instance but not able to start the Activity . Is there any way I can handle the click event in the LiveFolder Please Help me out Thanks in advance Regards Glory

[android-developers] Re: Access drawable resources from ItemizedOverlay

2009-07-03 Thread Lex
Thanks Sujay, that worked fine! On Jul 3, 11:34 am, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: if u jus need resources, have a static Context instance in ur launcher activity to which u assign the getApplicationContext() in the onCreate method. Now u hv access to ur app Context from

[android-developers] Re: import org.apache.commons.httpclient.HttpClient library error

2009-07-03 Thread Markuz05
All libraries documented in the reference http://developer.android.com/reference/packages.html For example if you want to use an HttpClient you have to check if an Android implementation exists. And, as you can see, there is an implementation of the abstract class HttpClient called

[android-developers] Re: **never ever** use Toasts with Activity context

2009-07-03 Thread skink
On Jul 3, 12:23 pm, hmmm akul...@mail.ru wrote: Is the following true: it is preferrable to always pass Applicatioon Context to any Toasts within the application? based on my latest test i made: yes, app context is only one so android 'leaks' only Application, but in fact its not leak

[android-developers] Re: SlidingDrawer issue #1?

2009-07-03 Thread brian.schimmel
The same with me. Just filed a bug report at http://code.google.com/p/android/issues/detail?id=3162 You can go there and star the issue to get notified on changes. wbr, Brian On 19 Mai, 14:47, brindy bri...@brindy.org.uk wrote: Yep, exactly the same here. =) Cheers, Brindy On May 7, 11:27 

[android-developers] Re: Canvas.drawText failing to draw on a second call

2009-07-03 Thread MrChaz
you're calling canvas.restore() which clears out all changes since the last call of canvas.save() I'd try taking out that line. On Jul 2, 8:57 pm, Casper vijay...@gmail.com wrote: public class TCheckBox extends CheckBox{ public void onDraw(Canvas canvas){                Paint tTextPaint =

[android-developers] Re: How to release resources when application ends?

2009-07-03 Thread MrChaz
We can't really help without seeing the code in question really. Don't forget that when you press home or whatever to move away from your application it isn't necessarily closed so much as minimized. On Jul 3, 10:13 am, Niko Gamulin niko.gamu...@gmail.com wrote: Hi, I created an application

[android-developers] how to know if we have a 2G or 3G sim card

2009-07-03 Thread GAYET Thierry
Hi, i am looking for the information that can tell me if the sim/usim card inserted accept/support 2G and/or 3G ? I need this information in order to adapt some call to the sim card. If the sim card support only 2G network, an APDU will be call, then if the usim card is 3G another APDU will be

[android-developers] where is the source code for the smart pointer implementation

2009-07-03 Thread som
As i was trying to get an idea of the SP and WP in android, i was wondering where is the source code for these two classes. Can anybody tell me where i can find out the implementation of WP and SP within the android source code? thanks in advance Som

[android-developers] Re: What is the best way to implement dynamic textures in OpenGL ES?

2009-07-03 Thread MrChaz
As I understand it glBindTexture() sets the active texture by it's Id and glTexImage2D() fills whatever the active texture is with the contents of the buffer so recalling that ought to change the texture On Jul 2, 6:52 am, Bruce Rees baree...@gmail.com wrote: Hi All, I have a texture-mapped

[android-developers] Re: A question regarding Activities and Tasks.

2009-07-03 Thread Peli
I think three under the current activity should be four under the same task. Both is correct: It is a semantic problem of the word under: * four under the same task: There are four activities *within* this task * three under the current activity: There are three activities *below* the current

[android-developers] Re: How drawing cache in View works

2009-07-03 Thread ioRek
nothing but blank Bitmap, can't find why On 4 mai, 23:22, Romain Guy romain...@google.com wrote: getDrawingCache() will call buildDrawingCache() if thedrawingcache is enabled. If you want to get the darwingcachewithout enabling it, just call buildDrawingCache() before calling

[android-developers] ScrollView changs the behavior of the layout even when it's not active.

2009-07-03 Thread 7Droid
Hi, My problem is that I would like a button (e.g. Next) to be at the bottom of the screen, unless the content is larger than the screen, in which case it should be scrolled. I can achieve having a layout at the bottom (either trough RelativeView layout_alightToParentBottom=yes, LinearLayout

[android-developers] Camera preview and sensor orientation values

2009-07-03 Thread lufo
Hi all, I'm trying to use Camera preview in combination with Orientation sensor. I got a serious problem with the sensor when using the preview: values returned by the sensor are as (1.6893509E-9, -4.0, 0.0) instead of being in degrees (especially the former). I tested that not creating the

[android-developers] Re: What is the best way to implement dynamic textures in OpenGL ES?

2009-07-03 Thread Tom Gibara
Also you can use glTexSubImage2D() if only a portion of your bitmap is changing. For these sorts of operations android.opengl.GLUtils will be *much* more efficient (and simpler) than your current approach of populating a ByteBuffer since the native helper methods can access the Bitmap pixel data

[android-developers] Re: onTouchListener problem: trying to move a view

2009-07-03 Thread ioRek
did you try to add setFocusable, setClickable etc ? On 29 juin, 15:03, Carl carl...@gmail.com wrote: I'm trying to move two views (more later on) around the screen by touching and dragging them. Unfortunately only one of them moves when I touch the screen. Have any ideas? The Ball class is

[android-developers] Re: How to release resources when application ends?

2009-07-03 Thread Niko Gamulin
The code is quite complex. To simplify the question I would like to know if there is any function that terminates all the processes which were running inside the application. If I make a method obButtonExit() and bind it to a custom button, which existing methods should be called inside the

[android-developers] How can we Print Soap Object response in web services

2009-07-03 Thread android.vinny
Hi How can we print the SoapObject response without converting into toString() format . i need to print the soap envelope Object reposne directly in the XML form How can i get it? or that Soap Object should write in a File ? thanks in advance

[android-developers] How to let soft keyboard cover on the activity view without pan resize?

2009-07-03 Thread Oceanedge
Hi, I have an activity that shows an AlertDialog. The AlertDialog contains a EditText. So when the soft keyboard is shown for the EditText in the dialog. The background activity content view don't have to be resized or paned. I wonder how to implement this behavior? Because I found, the

[android-developers] Re: How can I stop the Location Manager service

2009-07-03 Thread JP
Well as long as you request the removal of listeners, you are fine. Are you aware you need to do this yourself in onPause(), onStop() or onDestroy()? On Jul 2, 9:48 pm, tstanly tsai.sta...@gmail.com wrote: if really have close,it should be stop immediatly(status symbol is disappear) so how

[android-developers] Re: Google docs on HTC Magic (poss all gphones)

2009-07-03 Thread Cédric Berger
On Fri, Jul 3, 2009 at 08:38, chris.compochris.co...@googlemail.com wrote: Hi All I am using a Htc Magic, I can access my docs ok but when I tried to edit a shared spreadsheet from the phone I could not do it, it viewed perfectly. Is it possible to edit from phone? should it be ? could

[android-developers] Multiple points on a map

2009-07-03 Thread alexdonnini
Hello, I need advice/pointers on how to display on a map multiple points that change somewhat infrequently based on the device's location. Currently, my application already displays in real-time the device's changing location on a map. I can also easily display the location of one of the other

[android-developers] Re: Home Screen Sample

2009-07-03 Thread Anthony Xu
I got the same issue, and found there is no file named favorites.xml in /system/etc/ This sample is designed to add the favorite applications into a bar bottom the screen, but I don't what are the favorite applications in android, and don't know how to favorite the application any way. Any body,

[android-developers] Re: **never ever** use Toasts with Activity context

2009-07-03 Thread skink
On Jul 3, 12:43 pm, skink psk...@gmail.com wrote: On Jul 3, 12:23 pm, hmmm akul...@mail.ru wrote: Is the following true: it is preferrable to always pass Applicatioon Context to any Toasts within the application? based on my latest test i made: yes, app context is only one so android

[android-developers] Re: Multiple points on a map

2009-07-03 Thread MrChaz
You can have multiple overlays at the same time. In my application I have one for traffic incidents and one for roadworks. On Jul 3, 3:08 pm, alexdonnini alexdonn...@ieee.org wrote: Hello, I need advice/pointers on how to display on a map multiple points that change somewhat infrequently

[android-developers] Re: Google docs on HTC Magic (poss all gphones)

2009-07-03 Thread Cédric Berger
2009/7/3 Cédric Berger cedric.berge...@gmail.com: I could not edit text document though ! Only spreadsheets... Note thats was with language set as English-US, but to be sure I have also just tested with French, and I could edit too. --~--~-~--~~~---~--~~ You

[android-developers] Re: create new home screen

2009-07-03 Thread Anthony Xu
Hi Romain Guy, There are some other threads about 'sampe home', i.e. http://groups.google.com/group/android-developers/browse_thread/thread/d589e8e14179c0cd/f22d10100909060a?lnk=gstq=sample+home#f22d10100909060a My new question is how to use widget in user home? Could you give some idea? Thanks.

[android-developers] Re: Google docs on HTC Magic (poss all gphones)

2009-07-03 Thread Cédric Berger
2009/7/3 Cédric Berger cedric.berge...@gmail.com: 2009/7/3 Cédric Berger cedric.berge...@gmail.com: I could not edit text document though ! Only spreadsheets... Is there any help documentation about these google docs features from android browser ? I can only edit values (text, numbers),

[android-developers] adding support for new containers/protocols to mediaplayer ?

2009-07-03 Thread sbw.android
hi, is it possible, using sdk or ndk, to add support for new multimedia containers (avi, mpeg, ...) or for new transport protocols to the mediaplayer? thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: adding support for new containers/protocols to mediaplayer ?

2009-07-03 Thread Marco Nelissen
On Fri, Jul 3, 2009 at 7:54 AM, sbw.androidsbw.andr...@gmail.com wrote: hi, is it possible, using sdk or ndk, to add support for new multimedia containers (avi, mpeg, ...) or for new transport protocols to the mediaplayer? No. --~--~-~--~~~---~--~~ You

[android-developers] Re: Custom ViewGroup with animated View inside

2009-07-03 Thread ioRek
interesting question :D On 17 juin, 21:15, Deren adam.d0...@gmail.com wrote: I want to have a ViewGroup with anotherViewin it. The user should be able tomovethe otherViewaround the ViewGroup, and fling it away. However, the innerViewshouldnt onlymove, it should also scale and so on (so we

[android-developers] Re: How do i compile platform/packages/apps applications ?

2009-07-03 Thread Erik Ellis
Yeah, iwe read all about it, and i do not intend on putting it up on Market. But i would like to learn more about the internals of Android, and I thought playing around with some of the built in apps would be a good start. IF i go about putting it on Market, I would make sure to port or

[android-developers] Re: ScrollView changs the behavior of the layout even when it's not active.

2009-07-03 Thread jcpalmer
You might try setFillViewport(true), although I never got it to do anything. As an alternative, I would suggest always having the buttons at the bottom, and only scrolling the rest of the view. It is not exactly what you want, but at least you only need one of them. Something like: public

[android-developers] Re: how to know if we have a 2G or 3G sim card

2009-07-03 Thread Disconnect
AFAIK its the same sim. (At least, I have a sim from before 3g was even a pipe dream but it still works fine, even catching the 3g testing they're doing in my area now :) ..) There is an api method to detect what network you are on at the moment, but I don't have that info off the top of my

[android-developers] Re: adding support for new containers/protocols to mediaplayer ?

2009-07-03 Thread sbw.android
On 3 juil, 17:09, Marco Nelissen marc...@android.com wrote: On Fri, Jul 3, 2009 at 7:54 AM, sbw.androidsbw.andr...@gmail.com wrote: hi, is it possible, using sdk or ndk, to add support for new multimedia containers (avi, mpeg, ...) or for new transport protocols to the mediaplayer?

[android-developers] Re: ScrollView changs the behavior of the layout even when it's not active.

2009-07-03 Thread 7Droid
Hi jcpalmer, Thanks for the quick suggestion. android:fillViewport=true (in XML, as you suggested in code) did the trick. Thanks! Nir. On Jul 3, 6:38 pm, jcpalmer jcpal...@rochester.rr.com wrote: You might try setFillViewport(true), although I never got it to do anything. As an

[android-developers] Re: Memory leak in AudioTrack?

2009-07-03 Thread blindfold
I should add that I only see the GREF count increasing with the emulator, not when I run my app on the ADP (connected via USB). On the ADP I did even after over 300 AudioTrack creations not get the message that GREF count went above 101 or whatever. I use SDK 1.5 r2 and my ADP has Cupcake.

[android-developers] Re: How to release resources when application ends?

2009-07-03 Thread MrChaz
calling finish() will close down the activity, if I remember correctly though if you've created your own Threads you'll have to stop them manually. You can do that in onStop() of course. On Jul 3, 2:19 pm, Niko Gamulin niko.gamu...@gmail.com wrote: The code is quite complex. To simplify the

[android-developers] Re: A question regarding Activities and Tasks.

2009-07-03 Thread Android Development
Ok ! I get it now. 'Under' in the context of the stack where they are maintained. The example you present is perfect for the rest of my queries. Thanks. On Fri, Jul 3, 2009 at 6:08 PM, Peli peli0...@googlemail.com wrote: I think three under the current activity should be four under the same

[android-developers] Re: How do i compile platform/packages/apps applications ?

2009-07-03 Thread Marco Nelissen
You could copy ArrayListCursor in to the application. On Thu, Jul 2, 2009 at 1:08 AM, Erik Elliserik.el...@gmail.com wrote: Hello, I'm interested in extending some of the basic applications that comes with Android. In my case platform/packages/apps/music.git. I first tried doing it with

[android-developers] Re: Failing to send attachments via email

2009-07-03 Thread Don Oleary
Looking closer at the error messages, it looks like Android was failing to get the correct Content Provider for opening a stream to http (maybe there is none available). My work around was to download the image to the file system and load from there. Code below. try{

[android-developers] Re: import org.apache.commons.httpclient.HttpClient library error

2009-07-03 Thread Dagvadorj Galbadrakh
Android doesn't use HttpClient 3 actually. If you are using Eclipse and actually initiated your project as Android application, you can easily get corrected. On Jul 3, 8:13 am, Nithu nithi...@gmail.com wrote: Thanks for the reply But these two libraries not found I just checked using

[android-developers] Getting a reference to the option menu.

2009-07-03 Thread Mathieu Plourde
Is there a way to get the reference to the option menu, from outside of onCreateOptionsMenu? I tried findViewById (for Menu and MenuItem), but it doesn't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Getting a reference to the option menu.

2009-07-03 Thread Peli
In onPrepareOptionsMenu(), you can use menu.findItem(..). Peli www.openintents.org On 3 Jul., 20:21, Mathieu Plourde mat.plou...@gmail.com wrote: Is there a way to get the reference to the option menu, from outside of onCreateOptionsMenu? I tried findViewById (for Menu and MenuItem), but it

[android-developers] Surface to Native

2009-07-03 Thread scs sek
Hi, I try to pass the surface which is created by Java Application to my native lib. While transferring at JNI layer When i use the GetIntField fundtion to get the surface object (GetISurface) function, the object passed by app is becoimg null. Any suggestion is welcome. Thanks Regards SCSSEK

[android-developers] Re: Getting a reference to the option menu.

2009-07-03 Thread Mathieu Plourde
Hm, I suppose I wasn't clear enough. I meant withouth using those events methods (onCreateOptionsMenu, onPrepareOptionsMenu, etc). Is there a way to get an instance of the options menu from an activity instance? Something like: activity.getOptionsMenu() On Jul 3, 3:05 pm, Peli

[android-developers] Re: Parsing SOAP request

2009-07-03 Thread feda al-shahwan
How if I want to parse soap request for adding two integers. And the value of the integers are provided by the client. On Tue, Jun 23, 2009 at 7:25 AM, sagar.indianic sagar.india...@gmail.comwrote: You dont need to parse manually... First get the ksoap2-j2se-full-2.1.2.jar.. Search you will

[android-developers] Re: Question about GENERATING key strokes and DYNAMIC selection of list items.

2009-07-03 Thread Mathieu Plourde
For the listview part, I found it. I used performItemClick. But for generating keystrokes, nothing seems to work. I tried using onKeyDown and onKeyUp, but it just doesn't do anything (and I need to generate the key strokes from the application). The only thing that seemed to have a result is

[android-developers] How to build a particular project on the repo (patch the android os)

2009-07-03 Thread Mark Fayngersh
i did repo sync platform/packages/apps/Contacts.git and i received the specific src files for that project now that i modified what i wanted, i want to ubild my changes and patch them to my current Android OS. I tried running make from working directory, but there is no makefile. How would i go

[android-developers] Re: How to build a particular project on the repo (patch the android os)

2009-07-03 Thread Mark Murphy
Mark Fayngersh wrote: i did repo sync platform/packages/apps/Contacts.git and i received the specific src files for that project now that i modified what i wanted, i want to ubild my changes and patch them to my current Android OS. I tried running make from working directory, but there is no

[android-developers] Re: IllegalStateException when calling Preference.setDependency()

2009-07-03 Thread ccdesignz
First of all, sorry for my bad english. I found the answer in the android sdk source code, the problem is the following: When your CheckBoxPreference or an other Preference class call the setDependency() method, this one will call the following method: PreferenceManager.findPreference() in the

[android-developers] Re: Multiple points on a map

2009-07-03 Thread alexdonnini
Hello, Thanks. It's as I hoped. Can you sketch for me the approach you used to implement multiple overlays? Alex Donnini On Jul 3, 10:24 am, MrChaz mrchazmob...@googlemail.com wrote: You can have multiple overlays at the same time. In my application I have one for traffic incidents and one

[android-developers] Re: Camera in portrait mode

2009-07-03 Thread indra
Hi, There is no way of getting the camera preview in portrait mode ( as you probably already know) and its very ( very) slow to rotate the preview image. The only option is to run the app in landscape mode and rotate the view that you want to overlay onto the preview by 90 degrees. To do this

[android-developers] nullPointerException in android.webkit.WebView.onTouchEvent

2009-07-03 Thread HeHe
I override dispatchTouchEvent() like this: public boolean dispatchTouchEvent(MotionEvent ev) { WebView v=findViewById(R.id.detail); return v.dispatchTouchEvent(ev); } I am getting intermittent NullPointerException like this: 07-03

[android-developers] Re: Multiple points on a map

2009-07-03 Thread alexdonnini
Hello, I have another quick question. Does your application still work with Android 1.5 (SDK and OS version)? Thanks. Alex Donnini On Jul 3, 4:38 pm, alexdonnini alexdonn...@ieee.org wrote: Hello, Thanks. It's as I hoped. Can you sketch for me the approach you used to implement multiple

[android-developers] Re: Register Receiver to Listen for Application Update

2009-07-03 Thread iPaul Pro
Is this even possible? I have apps that deal with alarms and notifications, both of which are canceled/removed when on updates the app. To combat this, I currently have my reboot receiver firing at every main-activity onCreate(). Suffice to say, this is undesirable. I'd like to implement a

[android-developers] AlarmManager nothing happening

2009-07-03 Thread dapaintballer331
I've been modifying things ALL DAY trying to get this to work, please help. I have a broadcast receiver that recieves a boot completed signal. the onReceive method works!... well at least it sends output to the log. THE PROBLEM is that that method is responsible for creating a AlarmService, to

[android-developers] Re: AlarmManager nothing happening

2009-07-03 Thread Mark Murphy
dapaintballer331 wrote: I've been modifying things ALL DAY trying to get this to work, please help. I have a broadcast receiver that recieves a boot completed signal. the onReceive method works!... well at least it sends output to the log. THE PROBLEM is that that method is responsible

[android-developers] Canvas Scaling issues

2009-07-03 Thread Tane Piper
Hey folks, A few weeks ago I posted a view I was working on and in that time I have improved the view a lot, but I've been asked to add a new features of zooming into the image. The view is a custom image viewer that allows large images (such as 640x1000) to be loaded, and the user to scroll

[android-developers] Re: What is the best way to implement dynamic textures in OpenGL ES?

2009-07-03 Thread gjs
Hi Tom, Thanks for the suggestion about GLUtils. I went back found that the TriangleRenderer.java example had been updated some time ago to use this method which is as you say is *much* more efficient (faster) simpler than using a ByteBuffer and doing the color conversions. ( It pays to

[android-developers] targeting broadcasts issue

2009-07-03 Thread Seer
Guys, I am trying to get the intent android.intent.action.BOOT_COMPLETED sent only to the receiver com.android.mms.transaction.MmsSystemEventReceiver as this triggers the sms notification to be updated and removed if there is no longer any unread sms's. The issue i have is i need to make sure

[android-developers] Re: How to know where a HorizontalScrollView is flinted?

2009-07-03 Thread HeHe
anyone there On Jul 2, 9:56 am, HeHe cnm...@gmail.com wrote: Hello folks, Could somebody teach me how to get current left x-position relative to a HorizontalScrollView view after a Flint event is processing by HorizontalScrollView's factory onFlint handler? There seems to me no such

[android-developers] Re: targeting broadcasts issue

2009-07-03 Thread Dianne Hackborn
Um, don't do this. Whatever you are doing this for, you can be sure it will break in the future. On Fri, Jul 3, 2009 at 8:55 PM, Seer gilligan.ch...@gmail.com wrote: Guys, I am trying to get the intent android.intent.action.BOOT_COMPLETED sent only to the receiver

[android-developers] Re: Getting a reference to the option menu.

2009-07-03 Thread Dianne Hackborn
Sorry, no, the options menu is only created when needed. Your create/prepare callback can however stash away the menu interface it receives for your code to use later. On Fri, Jul 3, 2009 at 12:33 PM, Mathieu Plourde mat.plou...@gmail.comwrote: Hm, I suppose I wasn't clear enough. I meant

[android-developers] Re: Question about GENERATING key strokes and DYNAMIC selection of list items.

2009-07-03 Thread Dianne Hackborn
Test code should use Instrumentation, which allows you to inject your code into the application and control it through the methods there. On Fri, Jul 3, 2009 at 12:59 PM, Mathieu Plourde mat.plou...@gmail.comwrote: For the listview part, I found it. I used performItemClick. But for

[android-developers] Re: Surface to Native

2009-07-03 Thread Dianne Hackborn
Sorry, there is currently no API in the NDK for working with surfaces. On Fri, Jul 3, 2009 at 12:08 PM, scs sek scs...@gmail.com wrote: Hi, I try to pass the surface which is created by Java Application to my native lib. While transferring at JNI layer When i use the GetIntField fundtion

[android-developers] Re: Register Receiver to Listen for Application Update

2009-07-03 Thread Dianne Hackborn
Use data android:scheme=package / On Fri, Jul 3, 2009 at 3:19 PM, iPaul Pro mr.paulbu...@gmail.com wrote: Is this even possible? I have apps that deal with alarms and notifications, both of which are canceled/removed when on updates the app. To combat this, I currently have my reboot

  1   2   >