[android-developers] Re: AudioRecord can't get any notification when record/marker position updated

2009-04-27 Thread Dave Sparks
OK, so it sounds like audio is being produced by the kernel driver. I just looked at your code, and I think you need to call read() once to pass in your first input buffer. On Apr 24, 6:04 pm, Steven_T wrote: > hi Dave Sparks: > thank you for reply! > > I didn't disable audio input in avd > wha

[android-developers] Re: Android 1.5 SDK now available

2009-04-27 Thread havexz
Thanks Xav for the update. I have a suggestion regarding the online 1.5 sdk documentation. Is it possible to add the the sdk version (version with which the API is introduced) with the APIs in the reference section. Example (just a fake example): onLayout(boolean changed, int l, int t, int r, i

[android-developers] Re: Transparency on Views behaving differently in 1.5

2009-04-27 Thread Selmi
didn't worked for me. but helped if i set color to #0001 instead of #. it happened when i tried to run application built on 1.1 sdk on 1.5emulator. On 27. Apr, 20:03 h., cnordvik wrote: > This is a workaround for the 1.5 emulator if anyone is interested: > > ... > android:background=

[android-developers] Re: SDK1.5 AudioRecord sample rate problem

2009-04-27 Thread Dave Sparks
I believe this is a known limitation of the emulator. There is a feature request to allow for more sample rates, but no one is actively working on it. The source code is available if someone wants to take it on. On Apr 25, 2:36 pm, szabolcs wrote: > Dave, Yoni, > > Thank you for replying. > > >

[android-developers] Re: Capturing exceptions on user's phones?

2009-04-27 Thread Glen Humphrey
I made some changes to your exception handler so that the user will see the standard force close dialog on unhandled exceptions. What I am doing is getting the default android handler and passing it to the your default handler so that it can call the android handler after it is done. This is not

[android-developers] Re: Capturing exceptions on user's phones?

2009-04-27 Thread Glen Humphrey
Oops not finished. I made these changes in the Thread run method. // Get android default exceptions handler Thread.UncaughtExceptionHandler orgHandler = Thread.getDefaultUncaughtExceptionHandler(); // Register default exceptions handler Thre

[android-developers] Re: MediaPlayer sound problem

2009-04-27 Thread Dave Sparks
Use SoundPool. On Apr 26, 9:34 am, BlackLight wrote: > I have other problem now. Lets say I have 10 buttons (0-9), when user > press button program should play short (0.3-0.5 secs) sound. I added > them as wav resources. Now I see that each MediaPlayer creates its own > thread and takes resource

[android-developers] Re: Q. Stack trace gives Hex values not function names when core library crashes

2009-04-27 Thread fadden
On Apr 24, 3:10 pm, kemofish wrote: > I'm guessing the "stack" tool uses addr2line as described by Jorge > below but it goes through the logcat output, finds the crash log > entries, and does the addr2line conversion. > > Does "stack" exist or is it an Android myth??? vendor/google/tools/stack e

[android-developers] checking for Android home screen

2009-04-27 Thread durga mattam
Hi, Can some body suggest me how do I check if Android is in home screen? My requirement is I need to invoke an STK application, when I get the corresponding command from SIM and Android should be in home screen. How do I check if Android is in home screen? Thanks, Durga. --~--~-~--~---

[android-developers] Re: Android Market: Can you download apps without publishing them? Do you pay for your own apps? +signing problems

2009-04-27 Thread Justin (Google Employee)
Without being able to attempt this download and install myself there's not a lot more that I can do. Its also always possible there was some odd data corruption on this download. My recommendation is to uninstall any previous versions you have and any other apps that would have the same package na

[android-developers] Problem updating Eclipse Plugin to 0.9 ADT

2009-04-27 Thread Hayden
I am having trouble updating my Eclipse Plugin to 0.9 ADT. Whenever I try to install, I get the errors: An error occurred while collecting items to be installed No repository found containing: com.android.ide.eclipse.adt/ osgi.bundle/0.9.0.v200904221248-147402 No repository found containing:

[android-developers] Hiding media files from Music Player

2009-04-27 Thread clark
I'm torn between which group to post this too, but since it is for an application I am working on, I guess I'll stick it here. So here we go. I have an application which downloads data onto the sdcard to be used by the application. Some of these files are sound or music files and the music play

[android-developers] Re: Problem updating Eclipse Plugin to 0.9 ADT

2009-04-27 Thread Raphael
I get that too. Investigating. R/ On Mon, Apr 27, 2009 at 4:05 PM, Hayden wrote: > > I am having trouble updating my Eclipse Plugin to 0.9 ADT.  Whenever I > try to install, I get the errors: > > An error occurred while collecting items to be installed >  No repository found containing: com.andr

[android-developers] Re: Android Market: Can you download apps without publishing them? Do you pay for your own apps? +signing problems

2009-04-27 Thread Raphael
Try using adb install using your signed apk. Does that succeed? R/ On Mon, Apr 27, 2009 at 11:42 AM, Just Checking wrote: > > I already did have the app installed through Eclipse. Before uploading > the app, I exported the apk, then signed it with jarsigner. I also > tried adb uninstall before

[android-developers] Re: SDK 1.5 released - A Couple Questions

2009-04-27 Thread CraigsRace
I'm not sure the Sensor Manager is backwards compatible? When I run: SensorManager sensorMgr = (SensorManager)this.getContext ().getSystemService(Context.SENSOR_SERVICE); Under 1.1 it works fine. Under 1.5 it hangs. No errors, just sits there. If anyone else has had this problem, please let m

[android-developers] Re: Hiding media files from Music Player

2009-04-27 Thread Marco Nelissen
On Mon, Apr 27, 2009 at 4:36 PM, clark wrote: > > I'm torn between which group to post this too, but since it is for an > application I am working on, I guess I'll stick it here. > > So here we go. I have an application which downloads data onto the > sdcard to be used by the application. Some

[android-developers] Re: Android Device Management

2009-04-27 Thread Tupnorth
Both of those solutions are aimed at the networks. I've also looked various other solutions but they all suffer from the same issues. I'm now looking at what options we have to write something that could manage the devices. We need to remotely alter the settings of the device (via sms/WAP push to

[android-developers] Re: SDK 1.5 released - A Couple Questions

2009-04-27 Thread CraigsRace
OK. I give up. Calling: context.getSystemService(Context.SENSOR_SERVICE); in the emulator hangs under 1.5. It hangs in the native method: SensorManager.sensors_module_get_next_sensor(Sensor, int) Any ideas? I checked my AVD and it has Accelerometer turned on. Thanks. On Apr 28, 9:48 am,

[android-developers] audio codec

2009-04-27 Thread intbt
Is there a method to access the digital output of the audio codec without first storing it into a file, a streaming output? intbt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

[android-developers] Re: Detecting Physical Keyboard (not Cupcake software keyboard)

2009-04-27 Thread CraigsRace
Thanks Dianne. I misunderstood what: getResources().getConfiguration().keyboard == Configuration.KEYBOARD_QWERTY would do. I thought it was talking about the layout configuration of the keyboard QWERTY/AZERTY, not whether a keyboard was present or not. Cheers. On Apr 28, 3:12 am, Dianne Hack

[android-developers] Re: audio codec

2009-04-27 Thread benmccann
The 1.5 SDK includes "Raw audio recording and playback APIs". I think I'd take a look at http://developer.android.com/reference/android/media/AudioRecord.html I'm not real sure how AudioRecord and MediaRecorder work together, if at all. It looks like maybe AudioRecord is closer to the native ca

[android-developers] Re: Start after boot - autostart

2009-04-27 Thread iPaul Pro
Anybody have an example of calling the package manager API to enable or disable "autostart" receivers/activities (using shared prefences)? Thanks in advance, - Paul On Apr 8, 12:55 pm, Dianne Hackborn wrote: > It would be much better to call the package manager API to enable/disable > that comp

[android-developers] Re: Detecting Physical Keyboard (not Cupcake software keyboard)

2009-04-27 Thread Dianne Hackborn
You probably don't want to check for that, but rather that the value is not the constant for there being no keyboard. On Mon, Apr 27, 2009 at 5:55 PM, CraigsRace wrote: > > Thanks Dianne. I misunderstood what: > getResources().getConfiguration().keyboard == > Configuration.KEYBOARD_QWERTY > wo

[android-developers] Re: How to monitor my app trafic?

2009-04-27 Thread apostl...@gmail.com
Nobody can tell me an answer?? On Apr 26, 6:08 pm, "apostl...@gmail.com" wrote: > In my system, there has a WebView component, and i want to monitor all > trafics when WebView open some URL. I know how to monitor whole > phone'strafic, there has an example about how to monitor whole > phone'stra

[android-developers] Re: Problem updating Eclipse Plugin to 0.9 ADT

2009-04-27 Thread Mark
Just had the same issue. I removed the http://dl-ssl.google.com/android/eclipse/ site and then re-added it, then everything downloaded fine. I've had this issue before, and removing and re-adding the site always seems to take care of the problem. On Apr 27, 7:39 pm, Raphael wrote: > I get th

[android-developers] Handler for map panning

2009-04-27 Thread jgostylo
I have searched this group extensively and have not found the answer to my issue. I have a lot of server data being loaded into overlays and I want to create the overlays as the user pans. Ideally it would wait for the user to stop panning before it started loading the data. What is the best pr

[android-developers] Re: Activity finish() question ??

2009-04-27 Thread Neo
Application class public class MyApplication extends Application{ public static MyApplication getApplication(Activity activity) { // TODO should this be synchronized? if (app == null) { initialize(activity); } mActivity = activity;

[android-developers] Re: Why corsor need to call setNotificationUri when query from content provider?

2009-04-27 Thread 黃冠宇
Hi,I don't got what you mean. @Override public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sort) { SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); qb.setTables(TASKS_TABLE); String orderBy; if (T

[android-developers] Re: Detecting Physical Keyboard (not Cupcake software keyboard)

2009-04-27 Thread CraigsRace
True. keyboard != Configuration.KEYBOARD_NOKEYS. I guess KEYBOARD_12KEY (and any other future keyboard configs) are still a valid keyboards. Thanks again! On Apr 28, 11:16 am, Dianne Hackborn wrote: > You probably don't want to check for that, but rather that the value is not > the constant f

[android-developers] Re: URGENT!!!!! Can't update apps in android market!!!

2009-04-27 Thread aleung
I was using 1.1 SDK and failed to publish. I haven't tried 1.5 SDK yet. On Apr 27, 10:25 pm, jsdf wrote: > aleung, you are correct.  It seems the line " android:name="com.google.android.maps" />" is preventing the > AndroidManifest.xml from being parsed correctly. > Unfortunately, I have Maps i

[android-developers] Re: Activity finish() question ??

2009-04-27 Thread Dianne Hackborn
Okay, that confirms what I have been saying -- you set the value twice, once when A was created, and once when B was created. You finish B. You haven't changed the field. It still points to B. What else do you expect? Btw, I will say again, doing this kind of thing is dangerous unless you have

[android-developers] Re: Hiding media files from Music Player

2009-04-27 Thread clark
On Apr 27, 4:51 pm, Marco Nelissen wrote: > You could have just tried it, and you would have found that that does indeed > have the effect you're looking for. Could have, assuming I was at my development machine at the time. Either way, thanks for the info. ~clark --~--~-~--~~--

[android-developers] Multiple shapes on one Drawable

2009-04-27 Thread Jose de Paula Eufrasio Junior
Hello. I need to put 3 shapes (circles) on a drawable. I will create various drawables with different colors and use it on an Animation, the problem is I cant find a way to (programatically or XML) add various shapes to a single drawable.\ Any possible solution is welcome. -- José de Paula Euf

[android-developers] Re: Problem updating Eclipse Plugin to 0.9 ADT

2009-04-27 Thread Hayden
Thanks Mark, that seemed to do the trick! On Apr 27, 9:26 pm, Mark wrote: > Just had the same issue.  I removed > thehttp://dl-ssl.google.com/android/eclipse/ > site and then re-added it, then everything downloaded fine.  I've had > this issue before, and removing and re-adding the site always

[android-developers] Compiling against a *REAL* android.jar in eclipse???

2009-04-27 Thread Peter Carpenter
Hello everyone, I'd like to be able to extend classes like View and still have access to the protected member variables. Under the standard SDK's, android.jar is only a stub and so access to the protected member variables is not found. (And also all classes tagged as {hide} are hidden) Does

[android-developers] Re: Multiple shapes on one Drawable

2009-04-27 Thread nEx.Software
I'm not positive but I believe the way to do this in XML is to use a layer-list tag. I'll check it but in the meantime you want to look into that. In code I believe this equates to a layerdrawable? On Apr 27, 7:10 pm, Jose de Paula Eufrasio Junior wrote: > Hello. > > I need to put 3 shapes (circ

[android-developers] Re: Multiple shapes on one Drawable

2009-04-27 Thread Jose de Paula Eufrasio Junior
On Mon, Apr 27, 2009 at 11:30 PM, nEx.Software wrote: > > I'm not positive but I believe the way to do this in XML is to use a > layer-list tag. I'll check it but in the meantime you want to look > into that. In code I believe this equates to a layerdrawable? Tried a LayerDrawable without much l

Re: Please unsubscribe joesensp...@gmail.com Was: Fwd: [android-developers] Re: Android 1.5 SDK now available (Action Required)

2009-04-27 Thread Eric Chen
Thanks M. I just downloaded it:) Best Regards Eric Chen On Tue, Apr 28, 2009 at 3:40 AM, Mariano Kamp wrote: > Hey Mr. Moderator, > could you please unsubscribe the guy? This is the 6th challenge I get > from his address today and I won't carve ;-) If this boxbe service would at > least recog

[android-developers] Re: What uniquely identifies an application?

2009-04-27 Thread Alexey
still looking for answer on that . Any hints ? On Apr 3, 8:51 am, Alexey wrote: > I have kind of same problem to solve > I have same code base from which i have to build to different apps > using two different resources folders and may be some extensions in > terms of extra activities etc... > >

[android-developers] Re: What uniquely identifies an application?

2009-04-27 Thread Alexey
I was on the path to make imports in my activities as import com.acme.product.ui1.*; import com.acme.product.ui2.*; import com.acme.product.uin.*; When depending on which package i have in the manifest R will be generated in one of those and i'll have n-1 empty imports. Seems to work while buildin

[android-developers] runtime API level detection

2009-04-27 Thread jason...@spy.net
I'm trying to product a binary that is compatible with 1.1 and 1.5, but i'm having trouble with the ViewSwitcher class behaving different. I'd like to create a wrapper for it, but I need a way to programatically detect the api level at runtime. --~--~-~--~~~---~--~-

[android-developers] [Phyical keyboard behavior] how to add some key actions from physical keyboard to android

2009-04-27 Thread Morris
Hi All: Now I want to add some key actions from physical keyboard to android such as page down, page key, printscreen, pause and so on. May you provide some ideas to me? Thanks a lot Morris --~--~-~--~~~---~--~~ You received this message because you are subscribe

[android-developers] Re: Multiple shapes on one Drawable

2009-04-27 Thread Dianne Hackborn
How about just writing your own Drawable subclass? On Mon, Apr 27, 2009 at 7:32 PM, Jose de Paula Eufrasio Junior < jose.jun...@gmail.com> wrote: > > On Mon, Apr 27, 2009 at 11:30 PM, nEx.Software > wrote: > > > > I'm not positive but I believe the way to do this in XML is to use a > > layer-lis

[android-developers] Re: Compiling against a *REAL* android.jar in eclipse???

2009-04-27 Thread Dianne Hackborn
Don't do that. If you aren't writing an app but system code, use the platform build system. On Mon, Apr 27, 2009 at 7:29 PM, Peter Carpenter < peter.carpen...@skytechnologies.com> wrote: > Hello everyone, > > > > I’d like to be able to extend classes like View and still have access to > the pro

[android-developers] Re: [Phyical keyboard behavior] how to add some key actions from physical keyboard to android

2009-04-27 Thread Dianne Hackborn
The G1 keyboard doesn't have those keys. On Mon, Apr 27, 2009 at 8:01 PM, Morris wrote: > > Hi All: > > Now I want to add some key actions from physical keyboard to android > such as page down, page key, printscreen, pause and so on. > May you provide some ideas to me? > > Thanks a lot > > Morri

[android-developers] How to remove the on screen keyboard?

2009-04-27 Thread bradfull...@gmail.com
I can toggle it from the IMM but can't seem to detect the current state. In any event, there must be a cleaner way - after I get some text input from the user I want to restore the screen without making them press the back key. --~--~-~--~~~---~--~~ You received t

[android-developers] Dynamically adding views to ScrollView - LinearLayout

2009-04-27 Thread gskillz360
I am trying to create an activity that allows me to dynamically add an previously undetermined number of views to a layout in a vertical manner. I need this layout to scroll in the case where the views take up more space than the screen. I also need to be able to add buttons to the layout on an

[android-developers] Android DRM package

2009-04-27 Thread dpelleti
Hi, Can someone please tell me where I can find this package: android.drm.mobile1 I've seen references to it online but I can't find it anywhere in the SDK. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: [android-beginners] Android 1.5 SDK now available

2009-04-27 Thread Javi
I have problems with the new sdk (1.5), A dialog show with a error a and suggest me to exit the workbench. Other dialog appear with a "pingUsageServer failed": Android SDK Ping pingUsageServer failed The .log file says: !SESSION 2009-04-27 21:31:38.570 --

[android-developers] byte audio stream?

2009-04-27 Thread rookie1_1998
Is there any way to play audio from memory? I know in Java you can use ByteArrayInputStream or other similar classes to handle this but I haven't found any way to do this in Android. I tried to use SoundPool, but for me timing is an important issue so I can't use that one. The latest I found is

[android-developers] Re: ADP1 not listed in ubuntu by adb

2009-04-27 Thread pingwin
I'm having this same issue, were you able to resolve it? On Apr 9, 2:41 am, Shadakshari Hiremath wrote: > Hello Android, > > We have purchased a ADP1 phone and we want to flash cupcake image onto > it. We are using Ubuntu hardy 8.04.1 host. > > We referred the instructions provided > inhttp://g

[android-developers] Playing sound from memory

2009-04-27 Thread rookie1_1998
I need a way to play a short sound clip repeatedly very fast, with precise timing for musical purpose. I looked around, and it seems like MediaPlayer and SoundPool don't guarantee lag-free playing. Is there anyway I could load the sound to memory myself and play from memory (edit the stream)? I

[android-developers] Accessing Market from Cupcake on Dev phone

2009-04-27 Thread Humanoid
Hello, I'm unable to access Android Market from the Cupcake build released by HTC for Dev1. Some rumors have it that this is an intentional block by Google to discourage users from upgrading to Cupcake. What is a developer to do in order to test Market applications on the new build? --~--~--

[android-developers] Re: "R cannot be resolved" after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-27 Thread Jay lee
I saw the same error. so I reinstalled ADT and recheck build target "Android1.1" then I can see R.java which is generated at "gen" folder. try this. On Apr 27, 10:46 pm, hc wrote: > Hi, > > I just tried that. But it does not work. After removing the file, I > still get the same error when I try

[android-developers] Re: MediaPlayer.start() doesnot work fine after calling MediaPlayer.seekTo(0)

2009-04-27 Thread niko20
Sorry you are right, I meant you have to pause. Worth a try anyway.. On Apr 27, 4:19 pm, Dave Sparks wrote: > Try this: > > mp.prepare(); > mp.seekTo(0); > mp.start(); > > And get rid of your onPreparedListener. It is unnecessary since you > are calling prepare(). > > On Apr 27, 1:20 am, Sudha

[android-developers] Re: Screen Orientation.

2009-04-27 Thread jrgraf...@googlemail.com
I cant seem to get current orientation via either: getResources().getConfiguration().orientation or (WindowManager) getSystemService(WINDOW_SERVICE).getDefaultDisplay ().getOrientation(); after setting up a preferred orientation via: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDS

[android-developers] android.drm.mobile1

2009-04-27 Thread dpelleti
Can anyone tell me where I can find this package? I just downloaded the latest version of the SDK (1.5) and I cannot find any drm package. I've seen several references to it on the web. Also, are there any code samples that show how to forward lock a file on the device? Thanks! --~--~-~

[android-developers] Re: Multiple shapes on one Drawable

2009-04-27 Thread Jose de Paula Eufrasio Junior
On Tue, Apr 28, 2009 at 12:01 AM, Dianne Hackborn wrote: > How about just writing your own Drawable subclass? Erm... What? :P Sorry I am kinda green on some java stuff. I will check out how I can do that. Thanks. -- José de Paula Eufrásio Júnior (coredump) MCSO, GRC Professional http://core.et

[android-developers] Re: why no Horizontal GridView/ListView ?

2009-04-27 Thread allstars
Dear Dianne thanks for the reply and thanks for the tip that HorizontalScrollView is just added in 1.5 i didnt notice that but i would like to ask more you said GridView -is- horizontal but i have checked the code in AbsListView.java and GridView.java most code for layout is only for vertical

[android-developers] Re: Accessing Market from Cupcake on Dev phone

2009-04-27 Thread Marc Lester Tan
I can access Market and download free apps from it using my ADP on cupcake. I'm from Philippines. -Marc On Tue, Apr 28, 2009 at 3:18 AM, Humanoid wrote: > > Hello, > > I'm unable to access Android Market from the Cupcake build released by > HTC for Dev1. > Some rumors have it that this is an i

[android-developers] Re: [Phyical keyboard behavior] how to add some key actions from physical keyboard to android

2009-04-27 Thread Morris
Hi Dianne: Thanks for your reply! I want to port android on the netbook, so I will implement these keys in the future. Thus I need some cue about how to add these key actions. Could you give me some informations? Thank you very much Morris On 4月28日, 上午11時02分, Dianne Hackborn wrote: > The G1

[android-developers] Re: Compiling against a *REAL* android.jar in eclipse???

2009-04-27 Thread Peter Carpenter
Hi Dianne, Thanks for replying. I want to create custom GUI components and access things like View.mScrollX which has no setFunction (to create a horizontally scrolling view), and mBGDrawable which does have a set function - but that does a whole heap of stuff I don't want it to do. Ess

[android-developers] Re: Compiling against a *REAL* android.jar in eclipse???

2009-04-27 Thread Dianne Hackborn
Correct. Don't do this. Your code will break in the future. That is why these fields are hidden. For scrolling, you can use the method to set the scroll position. For the background, if the normal background image doesn't do what you want, then implement your own background drawing. Clearing

[android-developers] Re: [Phyical keyboard behavior] how to add some key actions from physical keyboard to android

2009-04-27 Thread Dianne Hackborn
If there are missing key code definitions, I am sure we will accept a patch to add them. Otherwise I don't really know what you are asking for, and this is the wrong list to discuss platform changes -- you would probably be better on android-porting. 2009/4/27 Morris > > Hi Dianne: > > Thanks f

[android-developers] Re: why no Horizontal GridView/ListView ?

2009-04-27 Thread Dianne Hackborn
Please read my correction. On Mon, Apr 27, 2009 at 8:11 PM, allstars wrote: > > > Dear Dianne > thanks for the reply > > and thanks for the tip that HorizontalScrollView is just added in 1.5 > i didnt notice that > > > but i would like to ask more > > you said GridView -is- horizontal > but i ha

[android-developers] How can I see the compile line when building

2009-04-27 Thread Mani
When I build the rild folder , I dont get to see , the Compile line options, so i wont be able to see what options are being passed to compiler - For eg : when rild.c is being compiled , i can only see target thumb C: rild <= //ril/rild/rild.c How can i see the complete compile line ? Thanks

[android-developers] Re: Screen Orientation.

2009-04-27 Thread Dianne Hackborn
getResources().getConfiguration().orientation contains the current orientation, as defined by the constants described in the java docs (NOT the SCREEN_ORIENTATION_* contantgs). On Mon, Apr 27, 2009 at 4:05 PM, jrgraf...@googlemail.com < jrgraf...@googlemail.com> wrote: > > I cant seem to get curr

[android-developers] Re: How to remove the on screen keyboard?

2009-04-27 Thread Dianne Hackborn
There is a method on the input method manager to hide the IME. On Mon, Apr 27, 2009 at 6:40 PM, bradfull...@gmail.com < bradfull...@gmail.com> wrote: > > I can toggle it from the IMM but can't seem to detect the current > state. In any event, there must be a cleaner way - after I get some > text

[android-developers] Re: [Phyical keyboard behavior] how to add some key actions from physical keyboard to android

2009-04-27 Thread Morris
Hi Dianne: All right! thanks a lot Morris On 4月28日, 上午11時31分, Dianne Hackborn wrote: > If there are missing key code definitions, I am sure we will accept a patch > to add them. Otherwise I don't really know what you are asking for, and > this is the wrong list to discuss platform changes --

[android-developers] Re: G1 detected as 'offline' by Eclipse plugin

2009-04-27 Thread Hypercreature
Actually this was the solution. Thanks a lot Cian. I really appreciate it. On Mar 5, 10:57 am, Cian Masterson wrote: > I had the exact same problem on my Ubuntu laptop and after swearing at > it for 2 hours I discovered the problem was caused by a USB hub.  When > I connected the G1 directly to

[android-developers] Re: Possible IMF issue for existing applications

2009-04-27 Thread Tom Gibara
I just tried this in the 1.5 r1 release and it remains non-functional, so I'm assuming it's a bug: http://code.google.com/p/android/issues/detail?id=2525 Tom. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android D

[android-developers] Re: Why corsor need to call setNotificationUri when query from content provider?

2009-04-27 Thread Eric Chen
How about Update , it is need followed by setNotificationUrl? Best Regards Eric Chen On Tue, Apr 28, 2009 at 9:35 AM, 黃冠宇 wrote: > Hi,I don't got what you mean. > > @Override > public Cursor query(Uri uri, String[] projection, String selection, > String[] selectionArgs, >

[android-developers] Re: Compiling against a *REAL* android.jar in eclipse???

2009-04-27 Thread Peter Carpenter
Thanks Dianne, makes sense. With the scrolling - I wanted to essentially copy the code used for vertical scrolling and implement it for horizontal (like others have done) However this won't compile due to inability to access the protected member variables. There was no function that would se

[android-developers] Re: why no Horizontal GridView/ListView ?

2009-04-27 Thread allstars
dear Dianne thanks i read your reply on the web and it seems your second post(the correction) comes first to the group so i thought the actual first post was the correction ha now i get it thanks anyway On Apr 28, 11:32 am, Dianne Hackborn wrote: > Please read my correction. > > > > On Mon

[android-developers] Re: Why corsor need to call setNotificationUri when query from content provider?

2009-04-27 Thread Marco Nelissen
On Mon, Apr 27, 2009 at 6:35 PM, 黃冠宇 wrote: > Hi,I don't got what you mean. > > @Override > public Cursor query(Uri uri, String[] projection, String selection, > String[] selectionArgs, > String sort) { > SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); > qb.

[android-developers] Re: " How to Import Android Package Default Projects to Eclipse "

2009-04-27 Thread rk
Thanks chih for your quick response. Now I can able to open it in the Eclipse. But I am geting erros inside the ptoject. Like Vibrator() constructor not visible. This kind of errors am getting. I am using projects which were available in the Android Version 1.1 source code. and am sing the Andro

[android-developers] Updated to Android SDK 1.5 r1 - adb connectivity problems

2009-04-27 Thread Rob Franz
Hi, I keep seeing: [2009-04-28 00:44:32 - DeviceMonitor]Failed to start monitoring [2009-04-28 00:44:33 - DeviceMonitor]Failed to start monitoring [2009-04-28 00:44:36 - DeviceMonitor]Failed to start monitoring [2009-04-28 00:44:37 - ddms]ADB rejected shell command (getprop): Basically adb lo

[android-developers] Re: "R cannot be resolved" after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-27 Thread hc
Do you have to uninstall before you reinstall it? I just updated my ADT to 0.9 (the non-pre ADT), and update to 1.5_R1 SDK, but I still get the same error if I try to compile for Android1.1 On Apr 28, 9:29 am, Jay lee wrote: > I saw the same error. > so I reinstalled ADT and recheck build target

[android-developers] Re: Layout question - how to replicate what the iPhone does...

2009-04-27 Thread Jon Colverson
On Apr 27, 10:01 pm, Anna PS wrote: > How would I even start to create a home screen that looks like this in > Android? Essentially I need clickable areas with text and icons. > Buttons can't have images attached, nor can they be greyed out. Yes, they can have images: use the drawableLeft etc. a

[android-developers] TabHost launching Intent multiple times

2009-04-27 Thread Brian
I'm seeing a strange behavior with a TabHost that creates a tab as a new Intent. Is this just the way it is, and I'll have to work with it? The tab intent is created twice, instead of once. I'm on the emulator, sdk 1.1. The behavior to get this is: Launch tab host app, and note the state (call

[android-developers] Re: SDK1.5 AudioRecord sample rate problem

2009-04-27 Thread Yoni
> Since the current android > emulator is like a G1 type phone, and phone systems are usually > 8000hz, the hardware probably only supports that frequency. Nope. My actual G1 seems to record just fine at 11025 or 22050 hz (running The Dude's 0.8 cupcake build from xda-developers). But those sampl

[android-developers] Re: Hiding media files from Music Player

2009-04-27 Thread clark
Just tried it and the sounds are showing up in the music player. So much for that idea. Anyone else have experience with this? I guess I can try changing the extension since I pass it the Uri, and hopefully MediaPlayer and SoundPool don't choke. I just have quite a few files and would hate to

[android-developers] Application Not Responding (ANR) dialog

2009-04-27 Thread Meryl Silverburgh
In the follow blog, it talks about Application Not Responding (ANR) dialog http://developer.android.com/guide/practices/design/responsiveness.html Can you please tell me where in the code which pop up this Application Not Responding (ANR) dialog? Or how can I adjust the timer for this dialog so

[android-developers] Application Not Responding (ANR) dialog

2009-04-27 Thread Meryl Silverburgh
In the follow blog, it talks about Application Not Responding (ANR) dialog http://developer.android.com/guide/practices/design/responsiveness.html Can you please tell me where in the code which pop up this Application Not Responding (ANR) dialog? Or how can I adjust the timer for this dialog so

[android-developers] Re: SDK 1.5 released - A Couple Questions

2009-04-27 Thread jlapenna
I can duplicate this too. What information can we provide that would be of use. Segments from logcat that might be of interest: D/qemud ( 560): fdhandler_accept_event: accepting on fd 10 D/qemud ( 560): created client 0x1bea8 listening on fd 15 D/qemud ( 560): client_fd_receive: attempt

[android-developers] Re: "R cannot be resolved" after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-27 Thread André Charles Legendre
I got similar problems with SDK on Linux. I solved it by adding tools directory in PATH. Regards Andre --~--~-~--~~~---~--~~ 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] Re: Error playing YouTube video in my application

2009-04-27 Thread awwa
Thanks for your replying. The issue is certainly in the emulator. (I have no device of 1.5 android yet.) I will try this in the real device after getting it. On 4月28日, 午前6:26, Dave Sparks wrote: > I assume this in the emulator. I believe the issue is that the > emulator does not forward the UDP

[android-developers] Android Market - Status "Saved Draft"

2009-04-27 Thread Pascal Merle
Yesterday I uploaded two apps to the market, "Ambient Light Sensor" and later "Sipdroid". While editing they already showed in the list as "Saved Draft" but after clicking "Publish - Save" they still remain with that status, and they don't show up in the market itself. I can't browse or download

[android-developers] Re: Hiding media files from Music Player

2009-04-27 Thread nEx.Software
A quick look shows at the source indicates the MediaScanner omits files that begin like "._" or are like "Folder.jpg", "AlbumArtSmall.jpg", "AlbumArt_{...}_Large.jpg" or "AlbumArt_{...} _Small.jpg". But it all seems to be based on filename. Of course there's a native method in there "processDirect

[android-developers] Control F11 doesn't revert the orientation on emulator on SDK 1.5 Target

2009-04-27 Thread Chander Pechetty
I have an activity defined in the manifest with the attribute android:configChanges="orientation|keyboardHidden When I run the app on SDK 1.5, pressing Ctrl + F11 and change the orientation to landscape and then again press Ctrl+F11, the orientation of the emulator changes, but not the screen ori

[android-developers] Re: Control F11 doesn't revert the orientation on emulator on SDK 1.5 Target

2009-04-27 Thread Chander Pechetty
This was on the Preview release. will update when I get my hands on the just released SDK 1.5 release 1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to

<    1   2   3