[android-developers] Layout Problem

2010-05-15 Thread Anthoni
Hello, I am trying to design a layout where the top half of the screen contains a ListView and then aligned at the bottom is an EditText and a Button at the side. Now I've got that currently laid out as I want, however when the ListView contains more items it displays itself over the EditText. I

[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 am,

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 wrote: > Just wanted to share my solution. I got this idea from a flash > script. > > I have a slider that adjust th

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) {

[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, there'

[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

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] 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 ot

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 wrote: > now i want to set the android:layout_gravity from code ... Step 1: Try searching the documentation for "layout gravity". - TreKing - Chicago tra

[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 bu

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 yo

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" написал: 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 ca

[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 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, Eclipse, an

[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)); ibMap.

[android-developers] Re: Drawable resource XML "alias"

2010-05-15 Thread String
On May 15, 7:07 am, skink 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. Unless someon

[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] 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 stream

[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)); ibMap.

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 i

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] 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 n

[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 whene

[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 Ver

[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 would

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 > AT&T 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

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 mos

[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 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 new? Can I u

[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: 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 wrote: > I have a broadcast reciever the looks at SMS's, when it recieves an > SMS that is destined for my application it needs to sen

[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 appl

[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 StartActivity

[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' [2

[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 the

Re: [android-developers] Development Phone

2010-05-15 Thread Carlos Silva
On Sat, May 15, 2010 at 15:15, John Gaby 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 for developmen

[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 optio

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 y

[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 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 download progress and r

[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 wrote: > Join : >   Did you receive the res

[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 wrote: > It migh

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

2010-05-15 Thread Scott
On May 15, 8:45 pm, Simone 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 because you are subscri

[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 am

[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 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 the point of copy p

[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 th

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 wrote: > 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 issue referred to as (1

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.

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 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 laughter in the > back

[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 wrote: > My friend's address was wrong, the phone was returned by Fedex, Google

[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: 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 yo

[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)" wrote: > String, thanks. > > I'm looking f