[android-developers] how to set the SeekBar more narrow?

2010-11-30 Thread 袁堂夫
how to set the SeekBar more narrow and the thumb is still that big? -- 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 and

[android-developers] How to user my layout

2010-11-30 Thread Raju
Hi all How to use my custom layout properties in my activity , but i dont want it to appear in my screen, i just need to use findViewById to find each property , since all the properties are null , if am not going to use the setContentView(), method, but if i use this method all the attributes

[android-developers] ZIpFile Extraction Problem

2010-11-30 Thread Hassan Imtiaz
Hi All, I am trying to unzip a file using java.util.zip. For this, I follow the following steps:- 1. Download the zip file. 2. Extract the zip file. The problem is very unusual; the downloaded file is sometimes extracted successfully but the same file gives “End of Central Directory Signature”

[android-developers] starting local service class not found

2010-11-30 Thread Hendrik Greving
I have package com.myapps.myapp; public class MyWidgetProvider extends AppWidgetProvider { [..] public MyService extends Service { [..] @Override public int onStartCommand(Intent intent, int flags, int startId) { [..]

[android-developers] Re: Market expanding to technically non-compliant devices?

2010-11-30 Thread Spiral123
ah I see what you mean now. Interesting. The situation you are referring to is already upon us: GoogleTV it comes with its own controller that works well and I can also get a separate Logitech app that runs on my Phone that works as a remote controller, effectively replacing the GoogleTV controll

[android-developers] convert JPEG sketch of my apartment to google map

2010-11-30 Thread suhail ahmed
Hi, Is there any mechanisms to convert JPEG or PDF sketch of my apartment to Google Maps so that i can do location markings on that Map using Google map API's exposed by android . Basically my intention is to mark the specific locations on JPEG image of my apartment in android phone Thanks in ad

[android-developers] Listview with section headers shows same data under each of the them.

2010-11-30 Thread umakantpatil
I have been facing the problem. I tried posting on stackoverflow too. Below is the link. http://stackoverflow.com/questions/4321329/listview-with-section-headers-shows-same-data-under-each-of-the-them I have listview with headers. But it shows same list under each header. Dont know why. On the li

[android-developers] Re: setOnTouchListener

2010-11-30 Thread dmodroid
My question may not be clear. In Flash, I can create an object, then say myObject.addEventListener (some_event, mycallback). So from my map activity, I want to say myOverlay.addEventListener(onTouch, myCallback). Or again, can I just capture the onTouch in the map activity, and get the latitude,

[android-developers] Very simple query

2010-11-30 Thread Abhishek Talwar
Hi guys I have two queries which should be really simple for you to handle :- 1. All the applications are stored in workspace. I want to call one application from another applications button on click listener. Is this possible using intents? 2. How can i pass data from one activity to another. I

Re: [android-developers] how to review the app inside the app ; need not to go android market to rate app

2010-11-30 Thread Kumar Bibek
I don't think it's possible, if you are thinking that the in-app review should reflect the reviews on the Android market as well. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Wed, Dec 1, 2010 at 10:03 AM, Shalini wrote: > Hi > > I have created an android app and i want t

Re: [android-developers] Array Adapter

2010-11-30 Thread TreKing
On Mon, Nov 29, 2010 at 12:48 PM, kiros88 wrote: > Im assuming the array adapter or adapterView parent > is like a basic array that creates an array of textviews if thats what > you want to create with your listviews. > That's the gist of it. > I'm just checking if thats right becuase my main

Re: [android-developers] Detect OSK shown / hidden events

2010-11-30 Thread Dianne Hackborn
There would be no purpose in showing an animation when your size doesn't change, because what is happening is the IME is opening in full-screen mode and completely covering your app. On Tue, Nov 30, 2010 at 6:41 AM, Juhani wrote: > Hi all! > > We're trying to trigger an animation whenever the on

[android-developers] how to review the app inside the app ; need not to go android market to rate app

2010-11-30 Thread Shalini
Hi I have created an android app and i want to add review option inside the app. user need not to go to market ti rate the app. Can anyone please tell me how to do that. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

[android-developers] Re: After extracting code to lib widget is no longer working

2010-11-30 Thread droidin.net
Anyone? This is really makes my life miserable where's my Google knight in shiny armor? On Nov 29, 11:57 am, "droidin.net" wrote: > I had a perfectly working widget as part of my project. Then I decided > to extract common code (including the widget) into the library > project. After doing this e

[android-developers] How to capture unlock event in activity.

2010-11-30 Thread Milind Bhusari
Hi, While mediaplayer playing rtsp stream if user press lock button and then he press menu(unlock) mediaplayer shows blank screen. I want to know how to capture this unlock event inside activity so that i can resume mediaplayer. -- You received this message because you are subscribed to the G

[android-developers] I'm using onSensorChanged(). What should I specify in ?

2010-11-30 Thread Kakyoin
Hi. I've checked the doc here: http://developer.android.com/guide/topics/manifest/uses-feature-element.html and found 2 most relevant features: 1) android.hardware.sensor.accelerometer 2) android.hardware.sensor.compass Which one do I need to specify in my manifest? Or both? Yes, I'm sure I

[android-developers] Re: Alarms - SDK design problem or am I doing something wrong?

2010-11-30 Thread Zsolt Vasvari
Never mind, I got it to work. Thanks everybody for their help. On Dec 1, 6:47 am, Zsolt Vasvari wrote: > Thanks! > > I see there is a EXTRA_DONT_KILL_APP flag. > > The doc says "EXTRA_DONT_KILL_APP containing boolean field to override > the default action of restarting the application" > > Does

[android-developers] Re: InetAddress.getByname vs ping

2010-11-30 Thread aad
Sure, will post there too. But. I guess, DNS is not the problem as ping works? On Nov 30, 5:39 pm, Kostya Vasilyev wrote: > Not sure what "invoked by default" is. > > It sure seems like at the time your code runs, DNS is not properly set > up yet. > > Since you are customizing the platform, this

[android-developers] Re: Not able to retrieve list of Documents from Google Docs using HTTP GET

2010-11-30 Thread GJTorikian
I suggest you investigate the code of MyTracks: http://code.google.com/p/mytracks/ They have a pretty well documented set of Java files that rely on accessing the Google Documents API. On Nov 26, 10:31 am, myst wrote: > Hi all, > > I am trying to connect to Google Docs from an Android applicati

Re: [android-developers] Internal vs external storage speed

2010-11-30 Thread Dianne Hackborn
It varies so widely between different SD cards and different devices, that nothing definitive can be said. Whatever you profile on your own device may have speed relationships that are completely different than another device. On Tue, Nov 30, 2010 at 3:28 PM, TreKing wrote: > On Sat, Nov 27, 20

Re: [android-developers] Re: Geocoder throwing exception

2010-11-30 Thread Kumar Bibek
That's not under your control On 01-Dec-2010 8:16 AM, "kiran" wrote: Can we start Geocoding server through application On Dec 1, 3:23 am, TreKing wrote: > On Tue, Nov 30, 2010 at 3:04 PM, ip332 wrote: > > As we know Google map is s... > TreKing

[android-developers] Re: images not scaled to screen size

2010-11-30 Thread Vinay
Thank you Kumar. I will corss check that property of Scaletype. Actually I dont have problem with the emulator. Things work very fine with the different type of emulator (small, medium, large). I have ported android to fsl-imx51 board which inturn is connected to a 17" monitor. It is, with this m

[android-developers] Re: Geocoder throwing exception

2010-11-30 Thread kiran
Can we start Geocoding server through application On Dec 1, 3:23 am, TreKing wrote: > On Tue, Nov 30, 2010 at 3:04 PM, ip332 wrote: > > As we know Google map is stored on the web therefore you must have 3G, Edge > > or WiFi channels enabled in order to use Geocoding. > > Also, even if you have a

[android-developers] Re: Geocoder throwing exception

2010-11-30 Thread kiran
. In the same device i run some apk which is showing google maps. I don't know what code they were using in the apk. You mean to say that should i test with wifi instead of GPS On Dec 1, 2:04 am, ip332 wrote: > "Geocoding" has nothing in common with GPS but it requires complete > map DB (to searc

Re: [android-developers] how to get the SoftInputView is shown with another process?

2010-11-30 Thread fykc...@gmail.com
Curious too. 2010/12/1 tang ke > hi guys. > > how to get the SoftInputView is shown? I get the answer is: > > (InputMethodManager) m = > (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); > Log.v(TAG, "softkey view is active:" + String.valueOf(m.isActive()); > > but it' only ret

[android-developers] how to get the SoftInputView is shown with another process?

2010-11-30 Thread tang ke
hi guys. how to get the SoftInputView is shown? I get the answer is: (InputMethodManager) m = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); Log.v(TAG, "softkey view is active:" + String.valueOf(m.isActive()); but it' only return false. so I see the framework/base/core/java

[android-developers] Re: Market expanding to technically non-compliant devices?

2010-11-30 Thread gjs
Hi, 'What' I mean is, *assuming* I can pack my integrated phone and tv app into a single apk, which needs touchscreen for the phone, would the app be excluded by the market for tv devices because they don't have touchscreens ? Yes until the tv sdk is released I won't know. I am hoping to avoid t

[android-developers] Submitting patches to API documentation

2010-11-30 Thread GJTorikian
Is it possible to submit a doc fix through gerrit? I have git set up and the source tree(s) on my machine. However I can't find the location of any of the API documentation. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this g

[android-developers] Re: How to teach a bunch of newbie kids.

2010-11-30 Thread Hal
I would use a realistic approach that they can relate to and understand. I would use the Lego analogy The following would be the basic elements: Components - Building block (black boxes to do something). For instance a component that add numbers. Messaging - A way of communication between compone

Re: [android-developers] Can only see 8 of 13 apps in market console still

2010-11-30 Thread cicikaka2009
The same thing here. Missed a lot of my apps... On Wed, Dec 1, 2010 at 7:12 AM, Robert Green wrote: > Has anyone had this issue resolved yet? My company has a total of 13 > published apps but I can only see 8 still with no pagination links or > any of that. The age ratings showed up today but

Re: [android-developers] Re: Market has the "All" option disabled :)

2010-11-30 Thread Brad Gies
My apps all use GPS... so I would guess that it's a check the Market Team put in... Good to see they haven't totally forgotten about upgrading the Market... :) Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://bgies.co

[android-developers] Re: LocationListener sometimes not receiving updates from "network" provider

2010-11-30 Thread Funksta
Ok, I turned on my wifi connection, and now it got the location. I then turned off my wifi connection and it still works. So I suspect that by enabling wifi, it somehow allowed the network location to get cached. Why doesn't it get set when I'm on 3G (or other cell based) network connections? -Geo

[android-developers] System Font Files

2010-11-30 Thread burton miller
Anybody know how to get to the system font files programatically? I am building an app that needs the files to render it's own bitmaps, and I want access to whatever is installed on the device by default (in addition to some fonts that i will package with it). I know I get the ones from the SDK,

[android-developers] Re: LocationListener sometimes not receiving updates from "network" provider

2010-11-30 Thread Funksta
I have also noticed this same problem. When I register just the NETWORK_PROVIDER for updates, I never see them come in. When I try to use getLastKnownLocation(NETWORK), I get a null location. It seems like the network provider just isn't working on my phone. I have checked my settings and stopped/s

[android-developers] Re: Displaying unicode in a TextView?

2010-11-30 Thread Peter Webb
It is not anything specifically to do with Microsoft:. http://en.wikipedia.org/wiki/Mojibake Double quote marks and apostrophes are frequent offenders. This is because ASCII contains only a single character for each, but different characters are used for the start and end quote marks. Short and l

Re: [android-developers] location problem

2010-11-30 Thread TreKing
On Sat, Nov 27, 2010 at 6:04 AM, fb apptest wrote: > first im trying to show all available location providers and its not > working > What does "its not working" mean? > and 2nd when ever i run the it i don't get any location information from > the best available provider (i have my wifi and

Re: [android-developers] ScrollView question

2010-11-30 Thread TreKing
On Sat, Nov 27, 2010 at 5:42 PM, Daniel wrote: > Why does this happen? Not using any layout parameters for the scroll view and using FILL_PARENT for the height of the footer might be a factor. Why don't you just do this in XML? -

Re: [android-developers] launching picasa from my app

2010-11-30 Thread TreKing
On Sat, Nov 27, 2010 at 3:03 AM, Manju Nath wrote: > i need to launch the whole stand alone application picasa from my > application using some intents and/or some API's > If you installed the app on the emulator, you probably know the package name, which you can probably use to explicitly launc

Re: [android-developers] Internal vs external storage speed

2010-11-30 Thread TreKing
On Sat, Nov 27, 2010 at 12:17 AM, Xavier wrote: > I thought there could be a small speed improvement doing the L2 caching on > the internal memory but certainly can't feel any difference. > Profile both methods. You're not going to be able to "feel" a difference for anything but the most sluggis

Re: [android-developers] Can't achieve focus under cascading framelayouts!

2010-11-30 Thread TreKing
On Fri, Nov 26, 2010 at 1:11 PM, gssi wrote: > Does anyone know how I can overcome this apparent addressability problem? > You haven't provided much of any information to help you. A stack trace of this force close problem might be a good start. -

Re: [android-developers] Not able to retrieve list of Documents from Google Docs using HTTP GET

2010-11-30 Thread TreKing
On Fri, Nov 26, 2010 at 12:31 PM, myst wrote: > I am trying to connect to Google Docs from an Android application using the > Google Document List Data API (v 2.0) Protocol Guide. > Seems a like a question better suited for a forum dedicated to that API.

[android-developers] Can only see 8 of 13 apps in market console still

2010-11-30 Thread Robert Green
Has anyone had this issue resolved yet? My company has a total of 13 published apps but I can only see 8 still with no pagination links or any of that. The age ratings showed up today but I still have to punch in package names in URLs to edit apps. Thanks -- You received this message because y

[android-developers] Re: LocationListener sometimes not receiving updates from "network" provider

2010-11-30 Thread ip332
IMHO getProvider(LocationManager.NETWORK_PROVIDER) should return null only in two cases: 1. AIRPLANE mode. 2. In case of GSM phone when SIM card is missing and WiFI is disabled However I tested both cases on Milestone phone (Android 2.1-update1) and always got some not-null result :( The only poss

[android-developers] Re: Alarms - SDK design problem or am I doing something wrong?

2010-11-30 Thread Zsolt Vasvari
Thanks! I see there is a EXTRA_DONT_KILL_APP flag. The doc says "EXTRA_DONT_KILL_APP containing boolean field to override the default action of restarting the application" Does anybody know what this means? Is the system telling me something or am I telling the system something? Thanks. On N

[android-developers] Re: Unit Testing - Activity shutdown

2010-11-30 Thread A. Elk
I'm not sure that the discouragement of "exit" is in any written guidelines. I just know that exiting applications is both discouraged and unnecessary. I did not say that *finish()* is disallowed. You certainly can use it to close an Activity that is done with its work. It's not normally used for

[android-developers] Re: Detect OSK shown / hidden events

2010-11-30 Thread Juhani
Thank you for the tip. Unfortunately it doesn't seem to work. Whatever I try I cannot get the onConfigurationChanged events. Neither in Application or in Activity. I have tried different combinations in manifefest file's configChanges but nothing I put there seems to make any difference. Only even

Re: [android-developers] Android Grid problem

2010-11-30 Thread TreKing
On Thu, Nov 25, 2010 at 10:38 PM, chamith weerasinghe wrote: > I need to get some Image urls from a xml file on the web and load those > images to a grid view. > please explain me, how to do this. > How to do what? Your one sentence covers at least four major tasks.

Re: [android-developers] Threads

2010-11-30 Thread TreKing
On Tue, Nov 30, 2010 at 4:47 AM, Robert wrote: > Why is that the case, I am getting really desperate, can anybody help > please!?!? > Log each time the variable is assigned to - maybe you're resetting it to false somewhere. ---

[android-developers] Re: Strategies for large apps

2010-11-30 Thread Phil Endecott
On Nov 29, 11:15 pm, Phil Endecott wrote: > Dear All, > > I have just discovered that the Android Market limits apps to a > maximum size of 25 MB. Is that really true? > - Download the data when the app first runs. Well I've now found the example code here: http://code.google.com/p/apps-for-and

[android-developers] Re: Market has the "All" option disabled :)

2010-11-30 Thread Ken H
On Nov 30, 1:51 pm, "Maps.Huge.Info (Maps API Guru)" wrote: > If you use location services, you're minimum is pre-teen. That was > explained in the e-mail I believe. Actually it was in the detailed page link included in the email...guess I should start reading that stuff. Ken -- You received t

Re: [android-developers] Re: Geocoder throwing exception

2010-11-30 Thread TreKing
On Tue, Nov 30, 2010 at 3:04 PM, ip332 wrote: > As we know Google map is stored on the web therefore you must have 3G, Edge > or WiFi channels enabled in order to use Geocoding. > Also, even if you have a perfect connection, the actual geo-coding server has to actually be running. -

Re: [android-developers] Re: listen for GPS updates for definite time

2010-11-30 Thread Rustam Kovhaev
understood, thanks 2010/12/1 ip332 > Rustam > > Location listener doesn't have timing constraint. > Therefore you need to enable listener as usual and create an > asynchronous thread or a timer or something else to check GPS status > after a certain time. > Below is a simple code which does chec

[android-developers] Re: LocationListener sometimes not receiving updates from "network" provider

2010-11-30 Thread michael
Hi again Igor, Thanks for your excellent suggestions, I will work on it over the next couple of days. As another curiosity, I am experiencing a very small number of cases where LocationManager.getProvider(LocationManager.NETWORK_PROVIDER) returns null. Apparently some phones do not have this capa

[android-developers] Re: Market has the "All" option disabled :)

2010-11-30 Thread Maps.Huge.Info (Maps API Guru)
If you use location services, you're minimum is pre-teen. That was explained in the e-mail I believe. -John Coryat -- 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

[android-developers] Re: listen for GPS updates for definite time

2010-11-30 Thread ip332
Rustam Location listener doesn't have timing constraint. Therefore you need to enable listener as usual and create an asynchronous thread or a timer or something else to check GPS status after a certain time. Below is a simple code which does checks GPS fix after 60 seconds. Best Igor // code fr

[android-developers] Is the Archos 5 a viable development platform?

2010-11-30 Thread A Curious Developer
Has anyone used this for testing their applications? (I know it isn't a phone, but my application does not need phone features.) Over the past few months I have been hoping to find *any* reasonably- priced platform to test on - this is one of the few affordable ones I have seen. -- You received

[android-developers] Re: Can you detect a touch to the screen when the screen is off? (Wake up screen with a touch)

2010-11-30 Thread Ken H
> anyone out there got any ideas? Use your other sensors like the accelerometer...shake it awake. Ken -- 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

[android-developers] listen for GPS updates for definite time

2010-11-30 Thread Rustam Kovhaev
How do I listen for GPS location changes for lets say 5 minutes? and if It don't get a single gps fix it removes listener(removeUpdates()) -- Regards, Rustam Kovhaev http://libertadtech.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group.

[android-developers] Re: Market has the "All" option disabled :)

2010-11-30 Thread Ken H
Yeah, what's up with that? It's enabled on some of my apps, but disabled on others. Ken -- 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

[android-developers] Re: Geocoder throwing exception

2010-11-30 Thread ip332
"Geocoding" has nothing in common with GPS but it requires complete map DB (to search cities and streets) As we know Google map is stored on the web therefore you must have 3G, Edge or WiFi channels enabled in order to use Geocoding. On Nov 30, 1:13 am, saikiran n wrote: > Hi, > I am doing some

[android-developers] Re: Retrieve Version of another app

2010-11-30 Thread Nathan
Thanks to both. The PackageInfo was what I needed. I was looking at ApplicationInfo by mistake. The discus information, though, wasn't what I was looking for. ;) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

Re: [android-developers] Android: BackupManagerService

2010-11-30 Thread Dianne Hackborn
On Tue, Nov 30, 2010 at 9:57 AM, TreKing wrote: > On Thu, Nov 25, 2010 at 10:15 PM, Mahendra Liya > wrote: > >> I am trying to implement a functionality in one of my application >> which allows the user to change the screen brightness. I implemented >> it by using the Settings.System class (putI

Re: [android-developers] Question about services

2010-11-30 Thread Dianne Hackborn
If you don't know why a remote service would be useful to you, don't use it. You'll know when you need one, because your local service won't work. (Basically if you get into a situation where another process needs to bind to your service.) On Tue, Nov 30, 2010 at 10:01 AM, Isaac Wagner wrote: >

[android-developers] Re: LocationListener sometimes not receiving updates from "network" provider

2010-11-30 Thread ip332
One more thing: check how and when do you remove listener. On Nov 30, 11:52 am, ip332 wrote: > Michael > > Here are some suggestions: > 1. Additional logging: mCoarseLocationListener details, WiFi status, > cell signal status (may be in those 5% cases users don't have any > signal?) > 2. Get deta

[android-developers] Re: LocationListener sometimes not receiving updates from "network" provider

2010-11-30 Thread ip332
Michael Here are some suggestions: 1. Additional logging: mCoarseLocationListener details, WiFi status, cell signal status (may be in those 5% cases users don't have any signal?) 2. Get details from users about phone models, running applications and Android versions. Recently I found interesting "

[android-developers] Re: App freezes when the power key is pressed

2010-11-30 Thread Eyvind Almqvist
The only object I create in onCreate() is the view. I do this with mView = (MView) findViewById(R.id.mid); I found one thing with the drawing loop and the setRunning() method that maybe causes the problem. I can't test on my Samsung device, since I can't reproduce the problem there, but I will

RE: [android-developers] Change Relative layout background dynamically Issues

2010-11-30 Thread Tommy
Ah, I see where my problem is. The layout im calling is actually inside a viewflipper so it wasn't being seen. I fixed it. Thanks you! -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Kostya Vasilyev Sent: Tuesday, Nov

Re: [android-developers] Retrieve Version of another app

2010-11-30 Thread Kevin Anthony
discus is just a fancy way of saying disc i wonder about discden Kevin On Tue, Nov 30, 2010 at 2:01 PM, Nathan wrote: > This is probably obvious to the rest of you, but I'm getting a bit > lost. > > I've been using the PackageManager to check whether another app is > installed. > > Can I use i

Re: [android-developers] Retrieve Version of another app

2010-11-30 Thread Kostya Vasilyev
This works for my own package, you can try for others: try { packageInfo = packageManager.getPackageInfo(packageName, PackageManager.GET_META_DATA); int versionCode = *packageInfo.versionCode*; } catch (NameNotFoundE

Re: [android-developers] Retrieve Version of another app

2010-11-30 Thread TreKing
On Tue, Nov 30, 2010 at 1:01 PM, Nathan wrote: > Can I use it to check the version number of that other app? http://developer.android.com/reference/android/content/pm/PackageInfo.html - TreKing

[android-developers] Retrieve Version of another app

2010-11-30 Thread Nathan
This is probably obvious to the rest of you, but I'm getting a bit lost. I've been using the PackageManager to check whether another app is installed. Can I use it to check the version number of that other app? Thanks for any tips. Nathan -- You received this message because you are subscribe

Re: [android-developers] Where to find the source code of UI widget

2010-11-30 Thread TreKing
On Tue, Nov 30, 2010 at 12:52 PM, cindy wrote: > Where could I find the source code of UI component of Android, such as > button, spinner, progressbar, etc? > http://source.android.com/ - TreKing

[android-developers] Where to find the source code of UI widget

2010-11-30 Thread cindy
Where could I find the source code of UI component of Android, such as button, spinner, progressbar, etc? Thanks! Cindy -- 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.c

Re: [android-developers] Change Relative layout background dynamically Issues

2010-11-30 Thread Kostya Vasilyev
Post your logcat output and the part of your layout xml file where you declare the RelativeLayout. I would guess that you either didn't assign an android:id to the relative layout, or using the wrong id with findViewById. Because of this, the value of "background" is null. -- Kostya 30.11.2

RE: [android-developers] Question about services

2010-11-30 Thread Tommy
I think a local service would work fine. Basically create another class in your android project, extend Service, do your stuff, then send a broadcast from your service. In your activity you will want to register a broadcast receiver that listens for that broadcast from the service. In the onReceive

Re: [android-developers] SVG support in Android

2010-11-30 Thread TreKing
On Fri, Nov 26, 2010 at 8:33 AM, sysrix wrote: > Does Android support SVG ? Well that was easy :-) - TreKing - Chica

Re: [android-developers] Handling Camera

2010-11-30 Thread TreKing
On Fri, Nov 26, 2010 at 1:24 AM, Android wrote: > am using the following code to get the preview for my camera , but my app > getting force closed, dont know y, can anyone help me on this. > A stack trace would help. --

Re: [android-developers] hardware update wizard doesn't start when I plug in the phone with the USB cable

2010-11-30 Thread TreKing
On Thu, Nov 25, 2010 at 2:37 PM, David Karr wrote: > How do I install the Android USB driver if the "Hardware Update Wizard" > doesn't start? > When you have something connected via USB, it shows up in the notification area of the task bar. Click that to bring up a "Safely Remove Hardware" window

[android-developers] Question about services

2010-11-30 Thread Isaac Wagner
I've been reading Mark Murphy's books about Android programming and I am having trouble understanding some things about services. As I understand it there are "local" and "remote" services that I can create. However, what I don't understand are the use cases for when you would use one over the ot

Re: [android-developers] Android: BackupManagerService

2010-11-30 Thread TreKing
On Thu, Nov 25, 2010 at 10:15 PM, Mahendra Liya wrote: > I am trying to implement a functionality in one of my application > which allows the user to change the screen brightness. I implemented > it by using the Settings.System class (putInt / getInt methods). > http://tinyurl.com/3486vs3 Howev

[android-developers] Change Relative layout background dynamically Issues

2010-11-30 Thread Tommy
Hi everyone. I have a relative layout that I want to change the background according to a set of features. For some reason when I try to change the background image I get a null pointer exception. Currently in the onStart method I call a function the handles valedating then determins what backgrou

Re: [android-developers] Camera application

2010-11-30 Thread TreKing
On Fri, Nov 26, 2010 at 2:25 AM, kunwar handa wrote: > Here are all the classes i made along with manifest I think you'll find that most people do not have the time or patience to parse through foreign, unformatted code. Someone please help me out.. > If you want help, please narrow the scope

[android-developers] Problem with not being the root of the layout

2010-11-30 Thread warunsl
Hello everyone I see it documented that for tab widget the layout for the tabs should have the as the root. But i have seen many applications (eg Facebook app) where tabs are below a edit text widget. I am not sure how to achieve that. If i do something like below, i just see the EditText widget

[android-developers] ShellCommandUnresponsiveException

2010-11-30 Thread Kelo
Hi, I'm just starting on Android and trying to launch Hello Android, this error comes up: !ENTRY com.android.ide.eclipse.adt 4 0 2010-11-30 13:05:15.914 !MESSAGE No command output when running: 'am start -n com.example.helloandroid/com.example.helloandroid.HelloAndroid -a android.intent.action.M

[android-developers] Re: Do Androids dream of rule engines?

2010-11-30 Thread Dirk
Hi, I think Androids should dream of rule engines ! I am working on global event distribution and event processing at the network's edge (e.g. a mobile phone) and I recently ported several existing middlewares to Android. One of these is "Esper", a complex event processing runtime. I do not know t

[android-developers] Re: App freezes when the power key is pressed

2010-11-30 Thread Yahel
Ok that's weird. If you have nothing in your onStart and your onResume sets the loop as running for your drawing loop, then that is where you should have a look. My guess would be that the restarting of your looping via setRunning doesn't do what you think and that it is just not restarting at all

Re: [android-developers] Making an Flash Application or Browser Based Application non exitable on Android Tablet PC

2010-11-30 Thread Frank Weiss
> > I want my application to not having the option of exiting or switching > to other application Is it possible in web application. If yes > how?? > The Android SDK is speciifaclly designed to NOT allow such behavior. I think the only way to do that is by changing the device's firmware. -- Y

Re: [android-developers] Passing objects to new intents

2010-11-30 Thread John C. Bland II
Ok...I'll look into it. Thx dude! --- John C. Bland II Blog: http://www.johncblandii.com Company: http://www.katapultmedia.com Twitter: @johncblandii On Mon, Nov 29, 2010 at 9:42 PM, TreKing wrote: > On Mon, Nov 29, 2010 at 9:29 PM, John C. Bland II > wrote: > >> So you return a Bundle and re

[android-developers] Re: Twitter Integration with Android app

2010-11-30 Thread Mathias Lin
I agree with Kumar, try Twitter4J. And you can check this blog post for a sample reg. OAuth authentication: http://consultingblogs.emc.com/nileeshabojjawar/archive/2010/03/18/twitter4j-oauth-generating-the-access-token.aspx On Nov 30, 11:48 pm, Kumar Bibek wrote: > Try Twiiter4J library. > > Ku

[android-developers] Re: Why my apps can't be searched out by some phone model?

2010-11-30 Thread Kumar Bibek
1. Have you taken care of "Adding multiple screen size support"? 2. Do you use Copy protection?' 3. Do you filter your apps by country? (Least possible) On Nov 28, 6:20 pm, john h wrote: > Some Italy users reported that some of my applications can't be > searched out in Android Market. It's ver

[android-developers] Multiple clickable elements within a listview row? Good or bad idea?

2010-11-30 Thread Mark Wyszomierski
Hi, I've got a pretty standard list control, it's got about 4 lines of text. Some of the text in each row might start a new activity when clicked, like: Row 1 John Doe [clickable, starts activity] 1234 Main Street [clickable, starts activity] Last Read: The Great Gatsby [clickable, starts

[android-developers] Re: What's the best way to have your app 'sleep' for N milliseconds?

2010-11-30 Thread Kumar Bibek
Whatever the case is, you cannor prevent the user to press the Home key to display the Homescreen, right? If you don't care about the Home button, then I guess, an Activity or a dialog should be fine. On Nov 30, 8:50 pm, Emanuel Moecklin <1gravity...@gmail.com> wrote: > The Thread.sleep(1000) is p

[android-developers] Market has the "All" option disabled :)

2010-11-30 Thread Brad Gies
The content rating is finally showing in my console and the "All" option is disabled... Pre-Teen is selected by default :). -- Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://bgies.comhttp://nocrappy

Re: [android-developers] Re: Passing objects to new intents

2010-11-30 Thread TreKing
On Tue, Nov 30, 2010 at 1:11 AM, Doug wrote: > > Parcelable is not such a headache once you get the boilerplate code out of > the way. > It's not only the repetitive "CREATOR" stuff. I found that if I send a custom parcelable to a Service which was to start after my main Activity had gone away, l

[android-developers] Re: Detect OSK shown / hidden events

2010-11-30 Thread StevePotell
Take a look at the onConfigurationChanged(). If you add in the manifest that you want to handle the event, you can check the configuration object for keyboard displayed and run your code. http://developer.android.com/guide/topics/resources/runtime-changes.html On Nov 30, 9:41 am, Juhani wrote: >

[android-developers] Re: What's the best way to have your app 'sleep' for N milliseconds?

2010-11-30 Thread Emanuel Moecklin
The Thread.sleep(1000) is probably not the best idea on Android because responsiveness is an issue if you care about user ratings ;-). With Thread.sleep() the app just sit's there and waits and won't respond to user input. I would recommend using something like: private static final int W

Re: [android-developers] Twitter Integration with Android app

2010-11-30 Thread Kumar Bibek
Try Twiiter4J library. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Tue, Nov 30, 2010 at 6:05 PM, Ajmer Singh wrote: > Hi All > > I need to integrate the Twitter in my application,Could any body please let > me know what are the best way to achieve this. > > I only need

[android-developers] Re: Detect touch event on a OpenGL object

2010-11-30 Thread Paolo
Yes you are right. is white, sorry I was confused. :) So, I have tried to implement the color-picking solution, without fortune, because I always get from glReadPixels... and I don't understand why... Maybe I can't read from the frame buffer? I'm using Android 2.2 and 2.1. :( This is my

Re: [android-developers] Re: Doubt Layout

2010-11-30 Thread Diego N.
Thank you Kumar, worked the way you expected. On Tue, Nov 30, 2010 at 9:24 AM, Kumar Bibek wrote: > Use Linear layout with fill_parent(width). Add 2 buttons with > layout_weight as 1. > > > > On Nov 30, 3:51 pm, "Diego N." wrote: > > Hello, > > > > I would put two buttons on one line, so that t

[android-developers] Re: Please help with an ideea

2010-11-30 Thread Alex Munteanu
Not so fast my friend, I'm talking here about something totaly different than modifing the screen brigtness from API... This program apply somesort or filter to further reduce the brightness bellow the minimum value ..very useful on AMOLED screens like GalaxyS, where some people find the lowest val

  1   2   >