[android-developers] Android Debug Bridge (ADB) license

2009-03-13 Thread andycarr
Hi, do you know which license the Android Debug Bridge (ADB) is licensed under? I am unable to find any reference to the ADB license in the SDK documentation. The file NOTICE.TXT, in the tools directory, provides license information for some tools but not ADB. It seems that most tools are licens

[android-developers] Re: how android connects to a specific AP?

2009-03-13 Thread jappit
Would love to know if this is possible, and how :) Anyone more informed on this topic? Thanks, Pit On Jan 21, 3:20 am, zcj0429 wrote: > no reply? Anyone knows how to connect to a specificaccesspoint? --~--~-~--~~~---~--~~ You received this message because you a

[android-developers] Re: service start and ui hanging

2009-03-13 Thread andrew
Thanks for your quick response. It doesn't access any other views. It does access the context object so as to work with the sqlite dbs. On Mar 13, 10:32 am, Streets Of Boston wrote: > Hi Bob, > > Your code snippet is not enough to give you some more info. > E.g. how does backgroundRefresh2 look

[android-developers] regarding popup

2009-03-13 Thread kamcad
how to implement popup after selecting a text? is there any selectListener or something?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develo

[android-developers] hi

2009-03-13 Thread Nithin
HI... I want to resize the image dynamically before i set the background of the Image button... If there is any method .? Thanks in advance Nithin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] changing system wallpaper

2009-03-13 Thread Bam
hello guys, i have a problem. when i select an image from an image switcher , i want to set this selected image as the background of my application when i click on a button .. how can i do this.. here is a sample of my codes. thanxs in Advance. --

[android-developers] assinging ring tone from a application in android

2009-03-13 Thread ragu
Hi all i am getting errors in the lines of code given below : public class RecordController extends Activity implements MusicUtils.Defs { final int STATE_START = 2; final int STATE_STOP = 1; final int STATE_IDLE = 0; public IMediaPlaybackService mService = null; The error me

[android-developers] can I move imageView?

2009-03-13 Thread wecan....@gmail.com
I don't see that View and it's subclasses have attributes of x and y. Can I move imageView for on position to another? thanks:) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] Does the Android support USB devices?

2009-03-13 Thread Will
Question for anyone who thinks they know: Can Android interface with USB devices, like Phidgets? I looked, but I found nothing indicating it is possible or impossible. Has anyone done any work in this area? My goal here is to plug a Phidget Encoder into the Android to stream data to an app I'm w

[android-developers] saving and restoring scrollbar position

2009-03-13 Thread Stefan
Hi, I have an ExpandableListView with lots of elements in it. I need to remember how much the list is scrolled, save it and later on restore the list scrolled at the same position. Because of that I have two problems: First: how to get the scrolled coordinates? I tried with getScrollX() and getSc

[android-developers] Regarding LBS - MASF client

2009-03-13 Thread Kumar
Hi , I tried searching on net but could not find any information on MASF client or LocationMasfclient.java, Network Location provider makes use of Masf service in networkLocationProvider.java, Would Some one who had worked on networklocationprovider.java know about Masf client? and what is its ro

[android-developers] hava u finished STK?

2009-03-13 Thread jlh_hust
hello,I'd like to know if you have finished STK(SIM ToolKit), Can it work? For I am working for it. Thanks a lot! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

[android-developers] Re: service start and ui hanging

2009-03-13 Thread Bob
Thanks, I'll look more at the logs for crash issue. But regardless of the crash, am I correct in thinking that if I call a service it should do its processing in the background and the main UI thread should immediately update? For this does it matter whether I start the service from a background

[android-developers] Re: RemoteCallbackList.getBroadcastItem(int) sometimes returns null

2009-03-13 Thread Dianne Hackborn
If your callbacks are oneway, the easiest thing to do is put it all in a big synchronized() block. Be aware though that if the callback is into the local process, it will still be synchronous, so holding a lock while doing this can be a problem. Usually the safest thing is to have a handler that

[android-developers] Re: Landscape Modus

2009-03-13 Thread deepdr...@googlemail.com
You can use android:screenOrientation="portrait" in the activity tag of your manifest. Then this activity will not change to landscape mode. You'd still need to save the state of your activity as it can be obscured by other activities or even removed by the system at any time. -- http://www.deepd

[android-developers] Re: Two applications in one Manifest file ?

2009-03-13 Thread deepdr...@googlemail.com
What you can do is to have multiple launcher activities in one application, with As far as I know you'd get multiple entries then in the launcher. -- http://www.deepdroid.com On Mar 12, 5:49 pm, sandy8531 wrote: > Is it possible to

[android-developers] How to capture some/all of the log file from an application?

2009-03-13 Thread Mike Collins
I know how to use adb's logcat to capture the log information. I know how to use logcat inside an adb shell to display the log information. Is it possible to do this from my application on the phone? I'm trying to get a bit more context than just the call stack captured when/if my app crashes.

[android-developers] Re: Android Debug Bridge (ADB) license

2009-03-13 Thread Jean-Baptiste Queru
I'm looking into this. JBQ On Fri, Mar 13, 2009 at 8:34 AM, andycarr wrote: > > Hi, do you know which license the Android Debug Bridge (ADB) is > licensed under? > > I am unable to find any reference to the ADB license in the SDK > documentation. > > The file NOTICE.TXT, in the tools directory,

[android-developers] Re: service start and ui hanging

2009-03-13 Thread Dianne Hackborn
Um... it sounds like you are just doing a lot of work in the main thread, and getting an ANR dialog. Don't do that. :) If you have lots of work to do, do it in a background thread. All Service callbacks happen on the main thread. On Fri, Mar 13, 2009 at 11:16 AM, Bob wrote: > > Thanks, I'll

[android-developers] Re: PackageManager. get size of an installed package?

2009-03-13 Thread Dianne Hackborn
Sorry there is not currently a public API to do this. On Fri, Mar 13, 2009 at 1:29 AM, IceskYsl wrote: > > i got the same problem,code like: > > PackageStats ps = new PackageStats(_packageName); > > and (cacheSize, codeSize, dataSize) returns always "0" > > and is this a bug??? > > On 2月13日, 下午1

[android-developers] Re: Android Debug Bridge (ADB) license

2009-03-13 Thread Jean-Baptiste Queru
The relevant information is here: http://android.git.kernel.org/?p=platform/system/core.git;a=blob;f=adb/adb.c;h=fa5269f5037c652a32954596aa90ab7ce9c73d9b;hb=HEAD I've made a note to make that more clear in the future. JBQ On Fri, Mar 13, 2009 at 11:52 AM, Jean-Baptiste Queru wrote: > I'm look

[android-developers] Re: Slow Scrolling

2009-03-13 Thread Mariano Kamp
Then I don't know - But what sounds strange to me is that you get lots of input (new objects, some of them possible get discarded very quickly during transformations? growing the heap?) and still only have a garbage collection every 90 seconds? On Fri, Mar 13, 2009 at 7:01 PM, AlCapwn wrote: > >

[android-developers] Re: service start and ui hanging

2009-03-13 Thread Bob
>> If you have lots of work to do, do it in a background thread. Thanks, I thought I running on a different thread by calling the service from a background thread. Have I done this incorrectly or should I not be using the context object? public void openInitialThread() { Thread upda

[android-developers] Re: Does the Android support USB devices?

2009-03-13 Thread dar
Not yet. You'll need the ability for android to be a usb host, marked as an enhancement here: http://code.google.com/p/android/issues/detail?id=738 On Mar 13, 3:33 am, Will wrote: > Question for anyone who thinks they know: > > Can Android interface with USB devices, like Phidgets? I looked, b

[android-developers] Re: service start and ui hanging

2009-03-13 Thread Mark Murphy
Bob wrote: > Thanks, I thought I running on a different thread by calling the > service from a background thread. Personally, I prefer the pattern of starting the service on the UI thread but then having the service immediately start up a background thread to do its work. That way, the service en

[android-developers] Re: RemoteCallbackList.getBroadcastItem(int) sometimes returns null

2009-03-13 Thread Streets Of Boston
Alas, this one is not a one-way interface. It expects a boolean back: False = cancel upload of image, True = continue uploading image. It allows the (remote) client to cancel uploads forcefully. Luckily, the client receiving the call-back can return this answer really fast. The client is not the

[android-developers] Re: How to port AbsoluteLayout to FrameLayout?

2009-03-13 Thread mathiastck
Ouch. I like AbsoluteLayout for small layouts, contained within larger more flexible layouts. Without it I think I'd have to abuse padding, and use lots of clear drawables with well defined size as spacers. On Mar 12, 5:03 pm, Romain Guy wrote: > AbsoluteLayout is deprecated in Cupcake. > > On

[android-developers] Re: Does the Android support USB devices?

2009-03-13 Thread Will
thanks for the reply - you are my hero for today. On Mar 13, 12:24 pm, dar wrote: > Not yet.  You'll need the ability for android to be a usb host, marked > as an enhancement here:http://code.google.com/p/android/issues/detail?id=738 > > On Mar 13, 3:33 am, Will wrote: > > > Question for anyone

[android-developers] Using external packages

2009-03-13 Thread Faber Fedor
Before I start banging my head against a wall, is there any reason I won't be able to use an external package like iCal4jin my Android app? I want to d/l an iCalendar file, parse it, and store it in my Android app. -- Faber Fedor L

[android-developers] Re: Using external packages

2009-03-13 Thread Mark Murphy
Faber Fedor wrote: > Before I start banging my head against a wall, is there any reason I > won't be able to use an external package like iCal4j > in my > Android app? I want to d/l an iCalendar file, parse it, and store it in > my

[android-developers] Re: service start and ui hanging

2009-03-13 Thread Dianne Hackborn
startService() tells the system to start the service. The Service callbacks are still made on the main thread, as always. On Fri, Mar 13, 2009 at 12:22 PM, Bob wrote: > > >> If you have lots of work to do, do it in a background thread. > > Thanks, I thought I running on a different thread by ca

[android-developers] Re: Android 1.1_r1 SDK released and developer.android.com launched

2009-03-13 Thread Jean-Baptiste Queru
There isn't any. 1.1 isn't explicitly available in the open-source tree. All the features developed for 1.1 were merged into the cupcake tree, which is available. JBQ On Thu, Mar 12, 2009 at 5:42 PM, Michael Burton wrote: > > Don't see a clear response to this, has anyone found the tag for the

[android-developers] Getting android.intent.action.MEDIA_SCANNER_FINISHED

2009-03-13 Thread Ilan
Hi. I'm trying to grab the android.intent.action.MEDIA_SCANNER_FINISHED (Correct me if I'm wrong but this event will be pushed after the media scanner scanned directory or a file) using an intent filter with no luck. My manifest looks like this: But no joy, what am I doing

[android-developers] Re: manipulating markets popularity! - why should i develop app for android

2009-03-13 Thread strazzere
It appears google does monitor and can/will disable accounts. For example - mine has been disabled. Why? No idea but I've gotten it confirmed by google support. They said it was disabled due to "high volume and suspicious traffic" - with not email notification or anything. Just turned off - and

[android-developers] Re: manipulating markets popularity! - why should i develop app for android

2009-03-13 Thread Stoyan Damov
:O:O:O On Sat, Mar 14, 2009 at 12:48 AM, strazzere wrote: > > It appears google does monitor and can/will disable accounts. > > For example - mine has been disabled. Why? No idea but I've gotten it > confirmed by google support. > > They said it was disabled due to "high volume and suspicious tr

[android-developers] Getting Raw Data from AMR-NB 3GP file

2009-03-13 Thread benmccann
Any ideas on the easiest way to get the raw data from a file recorded by the MediaRecorder class? I am going to have to pull up the RFC and parse the file myself or is there some existing Java/Android class I can use that recognizes the file format and will give me access to the raw decoded data?

[android-developers] Re: List of private / hidden / system APIs?

2009-03-13 Thread mark . kahrl
On Android, All apps are created equal but some are equal than others... You can replicate most of the functionality of the built in apps by using internal classes, that do not ship as part of the SDK. The only exception I've found is that some classes require you to have the same process id a

[android-developers] Re: manipulating markets popularity! - why should i develop app for android

2009-03-13 Thread Dan Morrill
The user account you indicated was indeed disabled due to suspicious high-volume activity, indicative of an attempted denial-of-service attack or similar inappropriate activity. We do not provide any more detail than that in such cases. Presumably this was related to this work, although we have n

[android-developers] Re: Porting from J2ME to Android

2009-03-13 Thread Dana Li
Hi, I am the developer of J2ME MIDP Runner, Thanks for taking a look at our product. First, our product evoloved SIGNIFICANTLY since our initial release in October last year. Now the latest version (upcoming 1.6) it almost support ALL j2me applicaitons in the market. We supported all SDKs form 0.9

[android-developers] Re: manipulating markets popularity! - why should i develop app for android

2009-03-13 Thread Tim
How would one go about getting the account reinstated? I replied to Alan who originally sent that the account has been disabled but have been unable to get a reply. I'm sorry if traffic was suspicious but if it was from this - then it should have stopped approximately two or three weeks ago. So I

[android-developers] Re: List of private / hidden / system APIs?

2009-03-13 Thread Dianne Hackborn
Don't use private APIs. Seriously. Your app will break at some point when your users get a new version of the OS. In the vast majority of the cases where the built-in apps are using a private API, there is in fact a public API they can use to do the same thing. In the few cases where there isn'

[android-developers] Re: service start and ui hanging

2009-03-13 Thread Bob
I'm sorry, I don't understand what this means. I have no callbacks. The service inserts some data into the filesystem and then exists. How do I this so the UI won't hang while the processing is going on? On Mar 13, 2:51 pm, Dianne Hackborn wrote: > startService() tells the system to start the s

[android-developers] Re: manipulating markets popularity! - why should i develop app for android

2009-03-13 Thread Dan Morrill
As I said, I can't provide any additional details in such cases. Regarding reinstatement, I'm unfamiliar with Google's policies on reinstating accounts in such circumstances, but the folks who handle the support forum are. They can let you know what your options are. - Dan On Fri, Mar 13, 2009 a

[android-developers] Re: service start and ui hanging

2009-03-13 Thread Dianne Hackborn
All of the callback methods on Service, such as onStart(), happen in the main UI thread. If you have a long job to do, use the Thread class to do it in another thread. Semantically this is the same as the Activity callbacks. On Fri, Mar 13, 2009 at 4:48 PM, Bob wrote: > > I'm sorry, I don't un

[android-developers] Re: manipulating markets popularity! - why should i develop app for android

2009-03-13 Thread Tim
Dan, Sorry to bother you again - but under what support board should this be posted on? Are there any direct emails I can use for this that you know of? On Mar 13, 2009 7:57 PM, "Dan Morrill" wrote: As I said, I can't provide any additional details in such cases. Regarding reinstatement, I'm un

[android-developers] Re: Getting Raw Data from AMR-NB 3GP file

2009-03-13 Thread Dave Sparks
There are no public classes for decoding AMR to raw PCM. 3GPP is just a thin wrapper around the raw AMR stream. On Mar 13, 4:01 pm, benmccann wrote: > Any ideas on the easiest way to get the raw data from a file recorded > by the MediaRecorder class? I am going to have to pull up the RFC and >

[android-developers] Re: Current Percentage of Refunds on Android Market?

2009-03-13 Thread Jon Colverson
On Feb 23, 2:13 am, Jon Colverson wrote: > On Feb 23, 1:04 am, Shane Isbell wrote: > > > What kind of current percentage of refunds are developers typically seeing > > on the market? More than a 5%? > > For my $0.99 game (which does not have a free demo version available > yet), the current refu

[android-developers] Re: Getting Raw Data from AMR-NB 3GP file

2009-03-13 Thread warwickhunter
Ben, I found some Java code that can parse an mp4 or 3gp file. I am using it to extract an AMR audio stream from the file. https://contributions.coremedia.com/isobox4j/wiki/IsoParser Look at IsoFile.getTrack to get the raw AMR samples and then stick an AMR header on the front of the data. 3gp

[android-developers] Re: MediaRecorder Sound Quality?

2009-03-13 Thread warwickhunter
I have been experimenting with an HTC Dream running the 1.1 firmware. The only form of AMR that I can get from it is AMR NB at 5.6kbps. Warwick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" gro

[android-developers] Dialog containing a ListView with ContextMenuListener

2009-03-13 Thread Tim H.
Setting the activity content view directly to a ListView, the code below works as expected. However, if you change the code (by uncommenting the dialog lines, and commenting the setContentView line), the context menu no longer works. public class AndroidTest extends Activity { protected s

[android-developers] Re: How to capture some/all of the log file from an application?

2009-03-13 Thread Carter
You must request the android.permission.READ_LOGS in your Android Manifest. Then you can run the logcat from the command line on the phone, and just get a dump of the output. I recommend filtering the output for both AndroidRuntime with the error level only (to gather exceptions that crashed you

[android-developers] Android File Upload (PHP)

2009-03-13 Thread Bobbie
I have looked literally everywhere I could find and cannot find a file upload script (that will allow me to upload pictures, audio files and video files) that works. Could someone post a *current* and *working* example for both the Android and PHP code? Every example I have found on the web are

[android-developers] Re: Getting Raw Data from AMR-NB 3GP file

2009-03-13 Thread benmccann
Thanks Warwick. That's basically what I got from Wikipedia, though I'm still not sure the advantage a media container provides. It enables streaming or has some other advantage? I checked out and built the IsoParser, but can't figure out what to pass to getTrack(long trackId). I'm not familiar

<    1   2