[android-developers] Re: Abort SMS broadcast

2008-09-03 Thread squeakypants
I'm working on a Twitter app that works though SMS. Twitter has a normal API, but I don't plan on getting an internet plan (and I doubt I'm the only one), and I'd still like to receive them on my phone. However, having to look at Tweets as normal text messages wouldn't be as comfortable as in a de

[android-developers] Re: Search Invoke sample

2008-09-03 Thread android_dev
Thanks. Will try this. On Sep 3, 4:23 pm, "Andrew Stadler" <[EMAIL PROTECTED]> wrote: > That's a bug in the Sample. > > On the emulator, you can use F5 to bring up Search (in the sample's > "automatic" mode).  For comparison, if you select "Disabled", F5 no > longer works - simulating an activity

[android-developers] Re: Search Invoke sample

2008-09-03 Thread Andrew Stadler
That's a bug in the Sample. On the emulator, you can use F5 to bring up Search (in the sample's "automatic" mode). For comparison, if you select "Disabled", F5 no longer works - simulating an activity where you do not want to support any search capabilities. For comparison, you can see this in

[android-developers] Search Invoke sample

2008-09-03 Thread android_dev
Question on the API demo - Search Invoke I launched this sample and have selected "Automatic" in the spinner. I also see a menu option "Automatic". When this menu option is selected, it pops an alert that says "To invoke search try menu+S" However, menu+S doesn't bring the search dialog. Any is

[android-developers] Re: Orientation changes simulation

2008-09-03 Thread hackbod
It sounds like you will generally be in good shape, but again I will say -- you should always always run your app on at least one piece of real hardware before releasing it. This app will be running in a completely different environment (interpreted dalvik code), and the general user experience o

[android-developers] Re: Android Music Player

2008-09-03 Thread Ran Trifon
Very nice idea :) On Wed, Sep 3, 2008 at 11:03 PM, Leszek Broniarczyk <[EMAIL PROTECTED]>wrote: > Hi > I would like to introduce project Pocket Android Player in 4 page comics > > -- > Regards > Leszek Broniarczyk > > > > -- Ran Trifon --~--~-~--~~~---~--~~ Yo

[android-developers] Re: Easter eggs

2008-09-03 Thread David Given
Mark Murphy wrote: [...] > Aw, c'mon! "At the moment, the island matching the listed value is, um, > lost" wasn't a big enough clue? Personally, *I* just want to know who the karaoke singer in the MediaPlayer 'Play Audio From Resources' demo sound is. -- ┌─── dg@cowlark.com ─ http://www.cow

[android-developers] Hide Emulator Keyboard

2008-09-03 Thread Felix Geller
Hi all, is it possible to hide the emulator's keyboard? cheers, felix --~--~-~--~~~---~--~~ 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@googlegrou

[android-developers] Re: Orientation changes simulation

2008-09-03 Thread hackbod
Btw, looking back, you are talking about making a talking compass that uses information from the sensor hardware... this is the exact kind of thing you need to run on real hardware to see how it actually works. On Sep 3, 3:40 pm, hackbod <[EMAIL PROTECTED]> wrote: > It sounds like you will gener

[android-developers] Re: Orientation changes simulation

2008-09-03 Thread blindfold
Good points, hackbod. My app is mostly a port from an existing J2ME app that runs on many physical Nokia phones, so I guess I have a fair idea of the performance that I may expect because my CPU intensive parts are actually identical on J2ME and Android. If I may believe the rumors that the first

[android-developers] Re: ListView and custom rows containing EditText

2008-09-03 Thread Romain Guy
When you want to know how a screen is built, you can just run the hierarchyviewer tool from the sdk. It will show you all the views and their properties. On Sep 3, 2008 2:42 PM, "istv" <[EMAIL PROTECTED]> wrote: Oookay.. Realizing "New contact" is not a ListView resolves all my problems here

[android-developers] Re: ListView and custom rows containing EditText

2008-09-03 Thread istv
Oookay.. Realizing "New contact" is not a ListView resolves all my problems here (yes, Mark, that's were I was wrong). I'm gonna try out ScrollView tomorrow, but that should not be so hard. Thank you! > My gosh! A fan! Yeah, I appreciate your fancy ListViews.. :-) Cheers, István --~--~

[android-developers] Re: Hide Emulator Keyboard

2008-09-03 Thread sacoskun
Hello Felix, You can easily change the default skin of the emulator to a skin which does not have a keyboard at all. This link will help you for this; http://sacoskun.blogspot.com/2008/09/android-emulator-skin-without-keyboard.html Regards, sacoskun On Sep 3, 10:05 am, Felix Geller <[EMAIL PRO

[android-developers] Re: getScale replacement for BaseAdapter in 0.9 beta?

2008-09-03 Thread Chris Cicc
Any suggestions anyone? On Sep 2, 10:22 pm, Chris Cicc <[EMAIL PROTECTED]> wrote: > Hey, > I appreciate the prompt reply. Unfortunately I'm having trouble making > complete sense of your instructions. I admit I'm new to Java and > Android (though I'm very experienced in C#.NET so I'm picking it u

[android-developers] Re: Replacement for MapView's OnLongPressListener

2008-09-03 Thread Megha Joshi
2008/9/3 Megha Joshi <[EMAIL PROTECTED]> > > > 2008/9/1 plusminus <[EMAIL PROTECTED]> > >> >> What is the common replacement for MapView's OnLongPressListener >> (since its gone in 0.9) ? > > > Since MapView's setOnLongPressListener() method is now removed...if you > need the same functionality...

[android-developers] Re: Web search

2008-09-03 Thread Megha Joshi
2008/9/3 android_dev <[EMAIL PROTECTED]> > > How to get web search results in an application (without launching the > browser)? > > Can the getFromLocationName(...) be used for getting web search > results given a search term? > It can be used for location search. > > example: getFromLocationNam

[android-developers] Re: Bug in Bitmap.compress when used on JPEGs?

2008-09-03 Thread Bertl
I have another problem refered to Bitmaps, I save png pictures of CameraPReview, but when I show them a little smaller were reset, I have proved with Log.i(...) and Iit exists and with a normal value my Bitmap but when I write pic.width() pich.height() I get always null. Why? --~--~-~--~-

[android-developers] Re: Port JSON client to SDK 0.9

2008-09-03 Thread Francisco
FOrgot to mention this is a .NET Webservice running on my local environment. On Sep 2, 4:31 pm, Francisco <[EMAIL PROTECTED]> wrote: > Hi everybody! > > I finally was able to call the web service i wanted from my > application, i have a problem now. > > The String i get from the response method

[android-developers] How to use the mic for audio-input in android

2008-09-03 Thread HTP
Hi! I'm trying to make an app that records audio from the microphone. In the new the SDK i think the emulator supports audio capturing. But I don't understand how to get the emulator to use my computers microphone. The emulator pages says that I have to start the emulator this way: emulator -aud

[android-developers] Re: How to use the mic for audio-input in android

2008-09-03 Thread Megha Joshi
If you connect mic to your PC, the emulator should be able to detect it without any additional launch flags. 2008/9/3 HTP <[EMAIL PROTECTED]> > > Hi! > > I'm trying to make an app that records audio from the microphone. In > the new the SDK i think the emulator supports audio capturing. But I > d

[android-developers] Re: ListView and custom rows containing EditText

2008-09-03 Thread Mark Murphy
istv wrote: > So, are there any solutions around that I did not see yet? I had a > look at Mark Murphy's blog, and also some of the tutorials on > anddev.org.. My gosh! A fan! ;-) > I had problems today concerning ListView/ListAdapter... I'd like to > get an activity that is very similar to

[android-developers] Re: ListView and custom rows containing EditText

2008-09-03 Thread Jeff Hamilton
ListView isn't really meant to handle that type of UI with editable entries, as it manages the selection state of the items directly. It's designed to handle long lists of items that don't take focus themselves. The contact editing screen is using a vertical LinearLayout wrapped in a ScrollView, c

[android-developers] Web search

2008-09-03 Thread android_dev
How to get web search results in an application (without launching the browser)? Can the getFromLocationName(...) be used for getting web search results given a search term? example: getFromLocationName("pizza San Jose, CA", 5) Will this return the pizza places around San Jose, CA? --~--~---

[android-developers] Re: Replacement for MapView's OnLongPressListener

2008-09-03 Thread Megha Joshi
2008/9/1 plusminus <[EMAIL PROTECTED]> > > What is the common replacement for MapView's OnLongPressListener > (since its gone in 0.9) ? Since MapView's setOnLongPressListener() method is now removed...if you need the same functionality...you could try handling the OnTouchEvent() and passing it o

[android-developers] Re: Bug in Bitmap.compress when used on JPEGs?

2008-09-03 Thread reed
Can some of these problem images be attached here? That would facility debugging the issue. On Sep 3, 7:32 am, Bertl <[EMAIL PROTECTED]> wrote: > I have another problem refered to Bitmaps, I save png pictures of > CameraPReview, but when I show them a little smaller were reset, I > have proved wi

[android-developers] Re: REST + JSON Web Service Client

2008-09-03 Thread Francisco
Hi everybody! I finally was able to call the web service i wanted from my application, i have a problem now. The String i get from the response method is removing my xml tags. I get Strings like the following: http://tempuri.org/";> Instead of: http:/

[android-developers] ListView and custom rows containing EditText

2008-09-03 Thread istv
Hello everyone, I had problems today concerning ListView/ListAdapter... I'd like to get an activity that is very similar to the "New contact" one in v0.9. Basically a ListView, that is expandable by custom rows containing EditText, RateBars, etc.. I tried by extending BaseAdapter's onView (the si

[android-developers] Re: allocation in loop each 1s

2008-09-03 Thread barbapapaz
For framerate I'm talking about number of request by time unit. Each request I get messages and display it on map. I launch request only if map move Thanks for your advices! On 3 sep, 21:39, hackbod <[EMAIL PROTECTED]> wrote: > I'm not sure what you mean by framerate...  we are talking about htt

[android-developers] Re: Orientation changes simulation

2008-09-03 Thread hackbod
On Aug 31, 3:58 am, blindfold <[EMAIL PROTECTED]> wrote: > That's right. My own app includes a talking compass, but I cannot > really test it and I may first have to wait for user reports with > the T-Mobile G1. Nobody should publish their app without first running it on actual hardware. Once ph

[android-developers] Re: allocation in loop each 1s

2008-09-03 Thread barbapapaz
Hello it's for a map application you can see a video here http://www.youtube.com/watch?v=3cHyRdLi1D8 What are rational framerate for this type of application? For example when you use google map or google earth what is methodology? Thanks for your interest On 3 sep, 18:34, hackbod <[EMAIL PROTE

[android-developers] Re: allocation in loop each 1s

2008-09-03 Thread hackbod
I'm not sure what you mean by framerate... we are talking about http requests, right? They shouldn't be tied to a frame rate. You really need to think about the repercussions of running on a mobile device: - When on a EDGE network, it can easily take more than a second just to set up a network

[android-developers] Re: allocation in loop each 1s

2008-09-03 Thread hackbod
You are making an http request every second? Though I don't know what you are doing, that seems way too frequent to me. This will be very hard on the battery, effectively causing the device to keep its radio turned on in a high power state for the entire time you are running. On Sep 3, 2:20 am,

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-09-03 Thread Rajesh
Hi James, I downloaded the apache common jars and added them to my build path, but still I get "org.apache.http.entity.mime" cant be resolved. Don't know if I'm doing something wrong. I just followed the steps you had explained. Kindly let me know if there is anything extra I should do with eclips

[android-developers] Re: Orientation changes simulation

2008-09-03 Thread hackbod
Testing across multiple devices may be needed, though our goal is certainly to have much more consistency across devices than J2ME does. Testing on at least -one- device, however, should be a basic expectation. If you are running on the emulator, you have no idea how your app will behave on actu

[android-developers] Re: Setting highlight text color (textColorHighlight doesn't do it)

2008-09-03 Thread Megha Joshi
If you want the textcolor to change to white when you select it...you should use ColorStateList. Say, you have a ColorStateList drawable named textcolor: http://schemas.android.com/apk/res/android";> you can set your textview's attributes to: android:textColorHighlight="#00f" androi

[android-developers] Re: Orientation changes simulation

2008-09-03 Thread blindfold
> Nobody should publish their app without first running it on actual > hardware. I don't know what your assumptions on resource constraints are, but while developing for J2ME, I've had to deal with a wide variety of firmware issues making that no single phone is representative either any more tha

[android-developers] Does getLocationFromName work in 0.9?

2008-09-03 Thread [EMAIL PROTECTED]
Does anyone know if getLocationFromName (with a bounding box) works in 0.9? I can use the simpler version just fine: public List getFromLocationName(String locationName, int maxResults) When I use the version that accepts a bounding box, I always get a null result: public List getFromLocationNam

[android-developers] Re: Mock Location Provider [SOLVED+IMPROVED]

2008-09-03 Thread Stefan Handschuh
Small correction: http://pastebin.com/m684e7561 On Sep 3, 6:56 pm, Stefan Handschuh <[EMAIL PROTECTED]> wrote: > I somehow improved Justins code. > > Seehttp://pastebin.com/m1f06415f > > It has now a New-York based journey (longer than before) and the > time-interval between each points can be

[android-developers] Re: Mock Location Provider [SOLVED+IMPROVED]

2008-09-03 Thread Stefan Handschuh
I somehow improved Justins code. See http://pastebin.com/m1f06415f It has now a New-York based journey (longer than before) and the time-interval between each points can be set so that the update inveral (set to 500ms) can be arbitraryly small (see line 177) @Justin: if you like it, please i

[android-developers] Creating pop-up menu

2008-09-03 Thread jalandar
Hi I am junior andriod developer. In my application of active note .I want to create menu-item list of main menu e.g. Options-->1.New note-->a.send ,b.delete,c.exit 2.help 3.exit (Here Options is main menu ) when i click on Options there should be pop -up list

[android-developers] Re: Will android provide Mail API??

2008-09-03 Thread hackbod
Where did you get these classes from? These are not part of the SDK, nor internal implementation of the platform, as far as I know. Given that, you shouldn't be having classes in the com.android namespace, since that is reserved for android. On Sep 3, 12:55 am, elvisw <[EMAIL PROTECTED]> wrote:

[android-developers] Re: Adding "standard" "Moreicon to More submenu

2008-09-03 Thread Joa
Sorry hit the "submit" button by accident On Sep 2, 9:53 pm, Joa <[EMAIL PROTECTED]> wrote: > Polishing my app, I am trying to add the "standard" > > http://code.google.com/android/reference/android/R.styleable.html#Ico... --~--~-~--~~~---~--~~ You received this me

[android-developers] Httpunit and Android

2008-09-03 Thread acet
Hello all, has anyone had any experience with using httpunit in an android project? I have been unable to build my eclipse project once i have imported the required files for httpunit. When I import the httpuint jar files: activation-1.1.jar js-1.6R5.jar jtidy-4aug2000r7-dev.jar junit-3.8.1.jar

[android-developers] Re: How to transfer Image bytes from MediaStore.Image ContentProvider to byte [] array

2008-09-03 Thread alexa
Bitmap bitmap = Media.getBitmap(getContentResolver(), imageUri); ByteArrayOutputStream bytes = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.JPEG, 90, bytes); ByteArrayInputStream stream = new ByteArrayInputStream(bytes.toByteArray()); --~--~-~--~~~--

[android-developers] Re: Some help with webservices?!

2008-09-03 Thread kennyg
Did you set the android.permission.INTERNET permission in the Android.Manifest.xml? Not providing this leads to unexpected errors when connecting. Kenny. Cezar Augustus Signori wrote: > Hi all! > > i still try to send/receive data from/to webservices...well, i tried > the kSoap2 (as almost of u

[android-developers] Can Android be installed on a Palm TX?

2008-09-03 Thread leeand00
I was just wondering if it would be possible to install Android on a Palm TX? Thank you, Andrew J. Leer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send emai

[android-developers] Re: Bug in Bitmap.compress when used on JPEGs?

2008-09-03 Thread kp
Maybe some of the requests are getting blocked. Try adding connect and read timeouts by replacing url.openStream() with openConnection().getInputStream(): ... URL url = uri.toURL(); URLConnection con = url.openConnection(); con.setConnectTimeout(3000); con.setReadTimeout(3000); Bitmap bmp = Bitma

[android-developers] Re: Creating pop-up menu

2008-09-03 Thread Mark Murphy
jalandar wrote: > Hi > I am junior andriod developer. > In my application of active note .I want to create menu-item list of > main menu > e.g. > Options-->1.New note-->a.send ,b.delete,c.exit > 2.help > 3.exit > (Here Options is main menu ) > > when i click o

[android-developers] Some help with webservices?!

2008-09-03 Thread Cezar Augustus Signori
Hi all! i still try to send/receive data from/to webservices...well, i tried the kSoap2 (as almost of us), but all that i get is an "unknown error" message. After some tries, i've decided to simple send XML to the webservice through a connection and receive the response as String to later handle

[android-developers] Re: Activity inside TabActivity: never bound to my Service.

2008-09-03 Thread marielisacr
Hi, I have the same problem, for some reason you can't bind a service in an activity inside tabs. Check this post http://groups.google.com/group/android-developers/browse_thread/thread/b58e2487ec03c200/8c2035b4149951ee#8c2035b4149951ee --~--~-~--~~~---~--~~ You r

[android-developers] Re: Bug in Bitmap.compress when used on JPEGs?

2008-09-03 Thread snowcrash
Hi there, I think I was able to track it down. It seems to be based on how the JPEG was saved. If it was saved using Photoshop in 'normal' mode, it doesn't work. If it's saved using 'Save for Web & Devices...', it works. The same applies for saving it with GIMP, it then works flawlessly, too. I d

[android-developers] Re: Using the ItemizedOverlay and OverlayItem

2008-09-03 Thread Peter Stevenson
Chris Chiappone wrote: > Marcel, > > Thanks for that seems to work as you described. The only thing that > doesn't seem right is the way the map draws the markers shadow. Any > idea on how to correct that. > > Thanks. > > On Mon, Sep 1, 2008 at 2:03 PM, marcel-182 <[EMAIL PROTECTED]> wrote: >

[android-developers] Background image disapearing

2008-09-03 Thread etooler
Hi All, I have been tinkering with the Notepad V1 tutorial to try out a few things. One thing that I did was put a background image in the linear layout using the android:background attribute in the notepage_list.xml layout file. This works as expected. When I run the application, if I click the

[android-developers] Re: MediaPlayer and LocalSocket problem

2008-09-03 Thread Denis Rybakov
2008/9/3 3,14 <[EMAIL PROTECTED]>: > > I want to set LocalSocket FileDescriptor as a data source for the > MediaPlayer. Here is my code: Блять, опять русские --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android De

[android-developers] allocation in loop each 1s

2008-09-03 Thread barbapapaz
Hello I have question about efficiency in loop. In my app I have loop called with sceduler each second. In this loop I launch request with httpclient, I must cronstruct an entity with MultipartEntity. this procedure explain here (http://groups.google.com/group/android- developers/browse_thread/t

[android-developers] How to transfer Image bytes from MediaStore.Image ContentProvider to byte [] array

2008-09-03 Thread Graeme
Hi I am puzzled how best to copy a JPEG image data bytes held by the MediaStore.Images ContentProvider to a byte [] within an Activity. I am not certain about how the java.io Classses fit into my scenario... So a sketch of the code might look something like ... import android.provider.MediaSto

[android-developers] Re: Will android provide Mail API??

2008-09-03 Thread elvisw
I am now using some classes under the packages com.android.email.mail as my Mail API, and now I can receive mail from GMail. but have some problems to send mail using SMTP. I dont know to use the API to create MimeMessage actually. Anyone know about this??? my code to send mail with one text par

[android-developers] Re: getScale replacement for BaseAdapter in 0.9 beta?

2008-09-03 Thread Chris Cicc
Hey, I appreciate the prompt reply. Unfortunately I'm having trouble making complete sense of your instructions. I admit I'm new to Java and Android (though I'm very experienced in C#.NET so I'm picking it up pretty quickly). Right now I have the following code in an activity: Gallery gal = new

[android-developers] Re: Bug in Bitmap.compress when used on JPEGs?

2008-09-03 Thread Kim Pedersen
Maybe some of the requests are getting blocked. Try adding connect and read timeouts by rewriting the url.openStream() to openConnection().getInputStream(): ... URL url = uri.toURL(); URLConnection con = url.openConnection(); con.setConnectTimeout(3000); con.setReadTimeout(3000); Bitmap bmp = Bit

[android-developers] Re: Bug in Bitmap.compress when used on JPEGs?

2008-09-03 Thread kp
Maybe some of the requests are getting blocked. Try adding connect and read timeouts by rewriting the url.openStream() to openConnection().getInputStream(): URL url = uri.toURL(); URLConnection con = url.openConnection(); con.setConnectTimeout(3000); con.setReadTimeout(3000); Bitmap bmp = BitmapF

[android-developers] Re: Orientation changes simulation

2008-09-03 Thread Andrew Stadler
Just to clarify things a bit, two different forms of orientation are being discussed here. The orientation changes that are triggered by emulator keys are "gross" orientation of the device itself - primarily, is the screen in portrait or landscape mode. Because the screen will be laid out differ

[android-developers] MediaPlayer and LocalSocket problem

2008-09-03 Thread 3,14
I want to set LocalSocket FileDescriptor as a data source for the MediaPlayer. Here is my code: public class sipActivity extends Activity { public static final String S_ADDR = "test.server"; public class Server implements Runnable { public LocalSocket receiver = null; pu