[android-developers] Re: Drawable resource XML alias

2010-05-15 Thread skink
On May 15, 2:59 am, String sterling.ud...@googlemail.com wrote: On May 14, 6:12 pm, Mark Murphy mmur...@commonsware.com wrote: http://idunnolol.com/android/drawables.html Thanks for this link. Hadn't seen that one before. Your syntax may work just as is. Unfortunately, it doesn't. I

[android-developers] Re: Is there a way to invert a Bitmap when using Canvas.DrawBitmap

2010-05-15 Thread skink
On May 14, 10:48 pm, kevin0228ca kevin022...@gmail.com wrote: Hi everyone. I am starting to develop a game. Right now I got a sprite animation going when a player moves across using sprite sheet. In my sprite sheet the character is always facing the same way, left. Now if I want the

Re: [android-developers] Re: Set multiple form parameters

2010-05-15 Thread pawan nimje
I tried using it but was unsuccessful. Can u give the code snippet for the same or suggest some other method. On Fri, May 14, 2010 at 7:20 PM, inbrain inbr...@gmail.com wrote: Doesn't setParams(HttpParams params) method suit you? It is declared in HttpMessage which is one of interfaces

[android-developers] Re: Creation of Activities from Tabhost

2010-05-15 Thread skink
On May 14, 5:36 pm, Patrick patrick.manges...@gmail.com wrote: Hallo! I have a TabActivity. Within this activity (in the onCreate method) I create a TabHost and a TabSpec and do a tabSpectSearch.setContent(intenSearch); The Indent is created using intentSearch = new Intent().setClass(this,

[android-developers] Re: Participate in app promotion experiment

2010-05-15 Thread Maps.Huge.Info (Maps API Guru)
String, thanks. I'm looking for more than one app, several would be good, but not more than 20 for the run of the experiment. A couple of other points I didn't mention. Radar Now! is a US only app so your app should be useful in the US and be English language compatible. -John Coryat On May

[android-developers] Re: How to set and get thread priority from Java and native layers

2010-05-15 Thread KK
Ok, finally I seem to have found out some more of what is happening. I am able to set any priority 0. But if I try priorities = 0 it throws an exception. For all my practical purposes, positive priorities are enough. But anyone has any idea what application is not allowed to use any priorities =

[android-developers] Re: Participate in app promotion experiment

2010-05-15 Thread ko5tik
Unfortunately (or fortunately :)) My applications do not qualify anymore, but nevertheless it will be interesting to see how it works. Judging from my admob CTRs of 7 to 10 percent, it could work. On May 15, 8:38 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: String, thanks.

[android-developers] Re: App losing downloads/active installs data

2010-05-15 Thread mot12
Alberto, I am sure the newbie comment was meant for me. I asked if Google could weigh in on this and I can hear the laughter in the background... Anyhow, my stats just went up 1000 in one day even though I had only 150 sales. Must have been some glitch... -- You received this message because

[android-developers] Getting RGB data from Android bitmap

2010-05-15 Thread Naveen
Hi! I need help on couple of issues Basically I want to capture webpage from webview and get raster data of the bitmap. To do so what I did is WebView m_browser; Picture picture = m_browser.capturePicture(); Bitmap b = Bitmap.createBitmap( picture.getWidth(),

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-05-15 Thread Join
It might take some time for google to respond. I asked them about delayed delivery and they dealt with it in a week. Now I've got my phone. They do forget things and they do fix their fault. On May 13, 1:05 am, bera bera...@gmail.com wrote: My friend's address was wrong, the phone was returned

Re: [android-developers] Re: App losing downloads/active installs data

2010-05-15 Thread Alberto Portela
Yes my stats are also back to normal. I did loose a few ratings and they are no back, no big deal though... On Sat, May 15, 2010 at 9:39 AM, mot12 martin.hu...@gmail.com wrote: Alberto, I am sure the newbie comment was meant for me. I asked if Google could weigh in on this and I can hear the

Re: [android-developers] Re: 1.5 Not finding image resource!

2010-05-15 Thread Kostya Vasilyev
Jeffrey, Use -v4 suffix with alternate drawable folders to make them invisible to Android 1.5. So you'd have: res/drawable res/drawable-ldpi-v4 res/drawable-hdpi-v4 V4 means only use if API version is equal to or above 4, which is Android 1.6 with proper hdpi/ldpi handling. Android 1.5

Re: [android-developers] Layout Issue: Status Bar Space Remains Empty || Status Bar Animation

2010-05-15 Thread Mariano Kamp
Meanwhile I've also seen this layout issue in the emulator. On Wed, May 12, 2010 at 6:58 PM, Mariano Kamp mariano.k...@gmail.comwrote: Ok, I see. That also means that I can't sync my animation to the default hide animation from the status bar, right? Any idea what to do about the layout

[android-developers] Sending scores to the internet

2010-05-15 Thread Simone
Is it possible for me to add this feature in my game? I just need a little storage space somewhere on the internet to put the names and scores of the best players. Anyone? Simone -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: To copy protect or not to copy protect!? That is the question!

2010-05-15 Thread Ventrix Kostis P.
On May 13, 9:03 pm, Moto medicalsou...@gmail.com wrote: I'm getting many complaints that users can't find our paid app in the Android Market.  I know exactly why... Our app is Copy-Protected. So the questions is, if our paid app is already available all over the internet for FREE!! What's

[android-developers] Changing LandScape to Potrait mode

2010-05-15 Thread Karteek N
Hi, I have a an application which is having some UI items like Buttons Radio Buttons etc. I want to change through code from landscape to portrait mode. I did by calling the method setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); But my UI items totally disturbed some of the i

[android-developers] Re: Sending scores to the internet

2010-05-15 Thread Scott
On May 15, 8:45 pm, Simone simone.russ...@gmail.com wrote: Is it possible for me to add this feature in my game? I just need a little storage space somewhere on the internet to put the names and scores of the best players. Anyone? http://appengine.google.com/ -- You received this message

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-05-15 Thread bera
Join : Did you receive the response this week? I have sent two mails but no answer. I don't think there still got someone to manage android-market-seed...@google.com anymore. Besides, my friend neither receive any reply nor get his two mobile phones. On 5月15日, 下午5时36分, Join

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-05-15 Thread Moto
I already got my phone and got a free 30 contract with unlimited minutes and data, thanks Google! But now it's been more than 30 days and the plan is still working... I hope I don't magically get a huge bill soon :P Moto! On May 15, 8:12 am, bera bera...@gmail.com wrote: Join :   Did you

[android-developers] Re: Internet data request done via ContentProvider?

2010-05-15 Thread Moto
Mark Murfy if you get a chance... You seem to be an expert in this area... Thanks! -Moto On May 13, 4:00 pm, Moto medicalsou...@gmail.com wrote: How could I create a ContentProvider where the data is fetch from the internet.  As the data is parsed maybe allow the requesting client know the

Re: [android-developers] Re: Internet data request done via ContentProvider?

2010-05-15 Thread Mark Murphy
Moto wrote: Mark Murfy if you get a chance... You seem to be an expert in this area... If you're going to ask somebody for help, you could spell their name right... :-) How could I create a ContentProvider where the data is fetch from the internet. That might be a bit dangerous if you

[android-developers] Development Phone

2010-05-15 Thread John Gaby
I am about to reach the point in my development where I need to work with a real phone, and am trying to figure out what to get. If I were to get a droid or droid incredible phone from Verizon will I be able to use that phone for development. What about Google's Nexus One? What are my other

Re: [android-developers] Development Phone

2010-05-15 Thread Carlos Silva
On Sat, May 15, 2010 at 15:15, John Gaby jg...@gabysoft.com wrote: I am about to reach the point in my development where I need to work with a real phone, and am trying to figure out what to get. If I were to get a droid or droid incredible phone from Verizon will I be able to use that phone

[android-developers] Re: Development Phone

2010-05-15 Thread Maps.Huge.Info (Maps API Guru)
If you're budget conscious, get a Droid. You can buy on on eBay for $250-300. More Android users have Droids than any other device. Only a handful of N1's were sold. If you're not a Verizon customer and want to use the thing as a phone, you can get a Milestone (Droid with GSM) instead for about

[android-developers] why launch is cancelled

2010-05-15 Thread Muhammad Shair Ali
Hello, Can some one tell me ,why launch is cancelled [2010-05-15 07:56:22 - Helloandroid] Device API version is 7 (Android 2.1) [2010-05-15 07:56:22 - Helloandroid] HOME is up on device 'emulator-5554' [2010-05-15 07:56:22 - Helloandroid] Uploading Helloandroid.apk onto device 'emulator-5554'

[android-developers] Send Data to a running app

2010-05-15 Thread Ne0
I have a broadcast reciever the looks at SMS's, when it recieves an SMS that is destined for my application it needs to send some data to an activity or start the avitivty if it isnot running. How do i find out if the activity is running and send data to it if it is? I know i can use

[android-developers] Noiz2 Android Port Source Code Available

2010-05-15 Thread Alistair.
Since this languishing at the bottom of the Arcade and Action section in the marketplace I figured I may as well make the source available. It's maybe not everyone's cup of tea for sure judging from the somewhat polarised comments on it but I learnt a lot from converting it from the original

[android-developers] Re: Send Data to a running app

2010-05-15 Thread Mike dg
You can set single instance for an activity to ensure more than one won't exist. And in the activity's onNewIntent handle the new intent. On May 15, 11:50 am, Ne0 liamjamesalf...@googlemail.com wrote: I have a broadcast reciever the looks at SMS's, when it recieves an SMS that is destined for

[android-developers] Re: Development Phone

2010-05-15 Thread John Gaby
Thanks for the replies. So I won't need a so called 'rooted' phone for development? I am using Eclipse and my program has an NDK component. Pardon my ignorance, but exactly how does the communication with the phone take place (USB?). Will I be able to debug my application on the actual phone?

[android-developers] Re: content://sms/

2010-05-15 Thread Mike dg
It may also not work with third part SMS apps. On May 14, 6:18 am, Mark Murphy mmur...@commonsware.com wrote: Ralph Bergmann wrote: Hi, I have a question about the content://sms/ provider. I use it in my app but can't find any official documentation about it :-( Is it to old? Or to

Re: [android-developers] Re: Development Phone

2010-05-15 Thread Mark Murphy
John Gaby wrote: So I won't need a so called 'rooted' phone for development? No. Pardon my ignorance, but exactly how does the communication with the phone take place (USB?). Yes. Some stuff, like app installs, you can do over WiFi if you want (e.g., download off your Web site), but mostly

Re: [android-developers] Re: Development Phone

2010-05-15 Thread Mark Murphy
Mark Murphy wrote: If you get an unlocked GSM phone and have a friend with a T-Mobile or ATT account, hopefully you can borrow their SIM if needed to get your phone set up. To clarify: you borrowed SIM will need to be for an account with a data plan. After that, you can get by with just

[android-developers] RadioGroup over two columns or rows?

2010-05-15 Thread Julian Bunn
I create a set of RadioButtons in a RadioGroup on the fly (no XML), and would like to arrange them in either two columns or two rows - right now they are in a single column. I could of course create two sets of RadioButtons, and place each in a different RadioGroup view, but presumably then I

[android-developers] Re: Development Phone

2010-05-15 Thread John Gaby
Thanks again. So if I don't need to use it as a phone and my application does not use any phone features, I should be able do do without connecting it to a phone network? How compatible are these phones. If I get a, say, Nexus One, and get my app working on that, can I expect it to work on a

[android-developers] AutoCompleteTextView and setText()

2010-05-15 Thread Matthew LeMieux
I found a thread with this subject from about 6 months ago with no resolution, so I'll start it up again. This is an excerpt from the TextView API: public void addTextChangedListener (TextWatcher watcher) Since: API Level 1 Adds a TextWatcher to the list of those whose methods are called

Re: [android-developers] Re: Development Phone

2010-05-15 Thread Mark Murphy
John Gaby wrote: Thanks again. So if I don't need to use it as a phone and my application does not use any phone features, I should be able do do without connecting it to a phone network? You may need it on the phone network for the initial setup, hence the loaner SIM. After that, it does not

Re: [android-developers] Suggestions for how to deal with IMEs ignoring flags?

2010-05-15 Thread Steve Gores-Todd
Hi This was bugging me the last few days so I went ahead and ran a few tests. Neither System.getProperties() nor System.getenv() provide any useful information to determine what platform you on during run-time. If anyone out there has any other ideas I'd be interested in hearing them. Here is the

Re: [android-developers] Suggestions for how to deal with IMEs ignoring flags?

2010-05-15 Thread Mark Murphy
Steve Gores-Todd wrote: This was bugging me the last few days so I went ahead and ran a few tests. Neither System.getProperties() nor System.getenv() provide any useful information to determine what platform you on during run-time. If anyone out there has any other ideas I'd be interested in

[android-developers] Set android:layout_gravity from code ??

2010-05-15 Thread pawan nimje
Hi All once again, In xml we have android:layout_gravity ... how can i set this for any view [say image button] ... from code ... plz help ...any kind if suggestion will do .. code: ibMap = new ImageButton(getApplicationContext()); ibMap.setLayoutParams(new LayoutParams(width,height));

[android-developers] HttpsURLConnection returns -1 code on second request

2010-05-15 Thread Arkaitz Jimenez
Hi all, I think I'm experiencing the same as http://groups.google.com/group/android-developers/msg/9d37d64aad0ee357 This is Android 1.5 SDK. I happen to call several times below code(which is in a method) with the same url and it fails intermitently. When it fails, there is no exception, the

[android-developers] I can't find my own application in the market

2010-05-15 Thread Simone
I just bought an Acer Liquid today, and of course the first application I looked for in the market was my own. I couldn't find it. What gives? Thanks, Simone -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: Drawable resource XML alias

2010-05-15 Thread String
On May 15, 7:07 am, skink psk...@gmail.com wrote: BitmapDrawable bd = (BitmapDrawable) res.getDrawable(R.drawable.name2) and then: bd.getBitmap() IIRC Ha, that did the trick. Apparently Resources.getDrawable() works with an XML drawable proxy, but BitmapFactory.decodeResource() does not.

[android-developers] Set android:layout_gravity from code ??

2010-05-15 Thread pawan nimje
Hi All once again, In xml we have android:layout_gravity ... how can i set this for any view [say image button] ... from code ... plz help ...any kind if suggestion will do .. code: ibMap = new ImageButton(getApplicationContext()); ibMap.setLayoutParams(new LayoutParams(width,height));

[android-developers] DDMS not showing all active processes for my Nexus One

2010-05-15 Thread Biosopher
This problem came up recently but everything seemed to work fine before. I am using the application flag: android:debuggable=true For some reason though, DDMS is not showing my application's active processes on my Nexus One. Anyone with recommendations? I've already rebooted both my laptop,

Re: [android-developers] HttpsURLConnection returns -1 code on second request

2010-05-15 Thread Kostya Vasilyev
Hi, Can you try setting http connection keep-alive to off, see if that helps? 15 мая, 2010 10:21 PM пользователь Arkaitz Jimenez arkai...@gmail.com написал: Hi all, I think I'm experiencing the same as http://groups.google.com/group/android-developers/msg/9d37d64aad0ee357 This is Android 1.5

Re: [android-developers] Google Map View limited to region?

2010-05-15 Thread Frank Weiss
It's not clear if your question is really about regions or about the differences between Google Maps in a web browser and the Android Google maps MapActivity/MapView. AFAIK, Android MapActivity does not do everything the Google Maps web apps does, but it allows you to run the MapAcitivity inside

[android-developers] Registering OnClick listener on AppWidget button

2010-05-15 Thread Isaac Wagner
I'm creating my first widget and ran into a snag. I have several buttons on this widget and need a way to register an onClick action for each of the buttons. So far I've only found examples where they start a configuration activity from a widget button. Does someone have example code on using

Re: [android-developers] Set android:layout_gravity from code ??

2010-05-15 Thread TreKing
On Sat, May 15, 2010 at 1:22 PM, pawan nimje pawanni...@gmail.com wrote: now i want to set the android:layout_gravity from code ... Step 1: Try searching the documentation for layout gravity. -

[android-developers] how to draw a simple shape according to compass data

2010-05-15 Thread Yasin YILDIRIM
Hello to everyone; I am trying to develop an application based on compass and camera surface. In the application there will be a camera preview and I want to draw a rectangle and text on this preview. When user turns the device aroun him, there will be rectangles showing the main directions. In

Re: [android-developers] Registering OnClick listener on AppWidget button

2010-05-15 Thread Mark Murphy
Isaac Wagner wrote: I'm creating my first widget and ran into a snag. I have several buttons on this widget and need a way to register an onClick action for each of the buttons. So far I've only found examples where they start a configuration activity from a widget button. Does someone

[android-developers] Re: 1.5 Not finding image resource!

2010-05-15 Thread Jeffrey
Thank you, though its wierd, when setting a 9 patch image as a button background with setBackgroundResource(R.drawable.Filename) it's like 1.5 doesn't want to 9patch it or something, the image goes huge and make the button bigger, where as 1.6 and higher leave the button size along. Oh well, I got

[android-developers] Google Devel Phone 2 (Google Ion) sane as HTC Dream?

2010-05-15 Thread BobG
I downloaded the HTC Dream source code... trying to find out if the mic preamp has a lo pass filter thats adjustable. I can grab mic samples of some whshing noise wchich I assume goes on up past 16khz at least, using audiotrack, but when I plot the output of a bp filter from say 8-16khz,

Re: [android-developers] Registering OnClick listener on AppWidget button

2010-05-15 Thread Isaac Wagner
Thanks. I bought a subscription to your books and have actually been going through this code trying to figure it out. If I understand correctly this is the snippet of code that handles the refresh button: public void onReceive(Context ctxt, Intent intent) { if (intent.getAction()==null) {

Re: [android-developers] Re: Change Hue on Image

2010-05-15 Thread nayana urs
hi thanks for your solution can u please tell me what implementation should be there in cleanvalue(float,float)method with regards Nayana On Sat, May 15, 2010 at 2:39 AM, pkc poisonkimc...@gmail.com wrote: Just wanted to share my solution. I got this idea from a flash script. I have a

[android-developers] Re: Change Hue on Image

2010-05-15 Thread pkc
Here you go. BTW, I have to give credit to where it's due. This is a port of ColorMatrix by Grant Skinner. protected float cleanValue(float p_val, float p_limit) { return Math.min(p_limit,Math.max(-p_limit,p_val)); } On May 16, 12:16