[android-developers] Re: how to color key 2d sprite backgound?

2009-04-20 Thread Arjen van Haren
Hi Diana, At the time I started coding I was unsure if opengl would be hardware enabled on all upcoming devices. And starting plain 2d on a new device seemed more easy to start with. As for my animations, I create those with an animation package where most of the times I only need to have 1 color

[android-developers] Re: android-task in tab from TabHost widget

2009-04-20 Thread benjamin.lehej...@googlemail.com
hi, oh sorry but i know the api-demo and for one activity firing up an intent worked well but i really mean a android-task! So a few activities where sequential launched and i would like to see all the content views from these activities in the tab. On 21 Apr., 07:54, Android Users wrote: > Yo

[android-developers] Re: Building different versions of an app -- best practice?

2009-04-20 Thread Edward Falk
On Apr 20, 6:58 am, jarkman wrote: > We actually maintain two separate codebases for our pro and light > products ... Yuck. I was afraid that would be the answer. I don't know what Sun was thinking when they decided to have no pre-processor for Java. I'll try the "if (FREE_VERSION)..." appro

[android-developers] Re: Building different versions of an app -- best practice?

2009-04-20 Thread Edward Falk
Yes, I'll probably do it that way if I can't find another way. Problem is that I also want to remove a lot of code from a case() statement, remove a lot of functions that won't be called, and remove a lot of resources. Are we sure that the Java compiler will actually remove the dead code? I cou

[android-developers] Re: android-task in tab from TabHost widget

2009-04-20 Thread Android Users
You mean running an activity within a tab If so, yes you can. Ex: tabHost.addTab(tabHost.newTabSpec("Tab 1") .setIndicator("Tab 1") .setContent(new Intent(this, Tab1Data.class) .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))); .addFlags(Intent.FL

[android-developers] Re: Which components does CALL_STATE_RINGING block?

2009-04-20 Thread John Doe
Let me be more specific. I am trying to record voice when somebody calls. ( When the phone is ringing! ) When I call to somebody it records. But when somebody calls me it doesnt :( How can I record voice when somebody calls me? On Apr 20, 8:30 pm, John Doe wrote: > Hi everybody. > > I am writing

[android-developers] android-task in tab from TabHost widget

2009-04-20 Thread Benny
Hi everybody, is it possible to load a whole android-task in a single tab from the TabHost widget? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andro

[android-developers] task in tab from TabHost

2009-04-20 Thread Benny
Hi everybody, is it possible to load a hole android-task in a single tab from the TabHost widget? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to androi

[android-developers] Re: Geocoder not returning results in 1.5 preview

2009-04-20 Thread z
+1 On Apr 20, 5:25 pm, Olivier wrote: > Same problem except I seem to have an exception as if I had passed 0,0 > as lat,lng which I didn't. > Any info/help on this would be appreciated. > > Thanks > > On Apr 16, 9:22 am, Huebi wrote: > > > I do not get any results from the Geocoder in the 1.5 p

[android-developers] Re: Screen/Pattern Lock application invocation

2009-04-20 Thread dilit
Can you tell me what classes would allow me to disable the lock from within the program? Is it KeyguardManager, KeyguardLock? Thanks On Apr 20, 7:48 pm, Mark Murphy wrote: > dilit wrote: > > Thank you very much for the prompt reply! > > The only thing that can salvage our idea is if we can open

[android-developers] Re: How Delete SMS from inbox programmatically OR discard it before received in inbox

2009-04-20 Thread Adam K
You can delete by message id, see here: http://code.google.com/p/android-smspopup/source/browse/tags/SMSPopup%20v0.9.93/src/net/everythingandroid/smspopup/SMSPopupUtils.java#290 Cheers, Adam K www.everythingandroid.net On Mon, Apr 20, 2009 at 11:38 AM, avrono wrote: > > Gulfram, > > As far as

[android-developers] Re: Access the remote Image

2009-04-20 Thread Nithin Varamballi
Its web server And its JPEG images Thank You Nithin N V --~--~-~--~~~---~--~~ 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 uns

[android-developers] Re: Rings Extended obsoleted by new builds?

2009-04-20 Thread Rob Franz
Sorry that first sentence should read:Has something changed with that app to where the option to let the android system or rings extended handle the ringtone operations no longer appears? Thanks Rob On Mon, Apr 20, 2009 at 11:15 PM, Rob Franz wrote: > Hi Dianne,Has something changed with that a

[android-developers] Which components does CALL_STATE_RINGING block?

2009-04-20 Thread John Doe
Hi everybody. I am writing a service which listens an incoming call. I have a function but it behaves differently under these cases when i call the function in case case TelephonyManager.CALL_STATE_OFFHOOK: it works! when I call the same function in case case TelephonyManager.CALL_STATE_RIN

[android-developers] Re: Rings Extended obsoleted by new builds?

2009-04-20 Thread Rob Franz
Hi Dianne,Has something changed with that app to where the option to let the android system or rings extended handle the ringtone operations? This user sent me a video of him picking the ringtone and when doing so he launched the Rings Extended menu... for the life of me, though, I don't ever get

[android-developers] a such strange problem when packaging some files under assets folder

2009-04-20 Thread Jungle.Qiao
I put some files under assets folder. those files' name started with "_"(underline).such as:"_base.js" and so on. the android can't package those files to *.apk file. the file doesn't start with underline can package into *.apk right. anybody knows why??? tks --~--~-~--

[android-developers] Re: Picture supported in Android

2009-04-20 Thread guishenl...@gmail.com
Thank you for the help! On Apr 21, 10:34 am, Anonymous Anonymous wrote: > http://developer.android.com/guide/appendix/media-formats.html > > On Tue, Apr 21, 2009 at 8:02 AM, guishenl...@gmail.com < > > > > guishenl...@gmail.com> wrote: > > > Hi all, > >    I'm doing an application of showing pic

[android-developers] Re: Picture supported in Android

2009-04-20 Thread Anonymous Anonymous
http://developer.android.com/guide/appendix/media-formats.html On Tue, Apr 21, 2009 at 8:02 AM, guishenl...@gmail.com < guishenl...@gmail.com> wrote: > > Hi all, >I'm doing an application of showing picture with ImageView.I want > to know how many kinds of picture are supported in Android, an

[android-developers] Picture supported in Android

2009-04-20 Thread guishenl...@gmail.com
Hi all, I'm doing an application of showing picture with ImageView.I want to know how many kinds of picture are supported in Android, and what are they.Could anyone give a list of these files?Thank you in advance! --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-04-20 Thread Dianne Hackborn
They aren't magic numbers, they are enumerations. Just often implemented as static constants, because that is way way more efficient than a Java enumeration. True, having an additional API to get all kinds of information about the current network is a good idea and would be nice. A patch would p

[android-developers] Re: how to color key 2d sprite backgound?

2009-04-20 Thread Dianne Hackborn
If you are doing a high performance game, just use OpenGL. That will give you hardware accelerated blitting of your sprites. If you don't care about performance... well what is wrong with having a bitmap with an alpha channel? All of the graphics system is optimized to draw such bitmaps, and yo

[android-developers] Re: For Bluetooth File Transfer What I can do?

2009-04-20 Thread tainy
hi, do you have any solutions for bluetooth OBEX? Is there a way that we can do it by ourself? thanks ! On 4月1日, 下午5时04分, Kelly Mao wrote: > Android 1.0 can't support file transfer.If I want to do by myself what > I can do? > It seems don't haveOBEXprotocol. > who knows? Please give me reply. >

[android-developers] Re: How to access "shared data/settings" across multiple application? ContentProvider or SharedPreferences?

2009-04-20 Thread Dianne Hackborn
If you are correctly writing your instrumentation to be against the app package, then targetContext() returns the context for that package giving you access to all that stuff. That is one of the big points of all that, to allow the instrumentation to run inside of the app, as part of the app, with

[android-developers] Re: Could title bar of activity listen to click event?

2009-04-20 Thread Dianne Hackborn
As I said, the title bar is short to save space on the screen, and with it right up against the status bar and being short like that it is just a really crummy hit target. This isn't really worthwhile to do on a touch display, in my opinion. 2009/4/20 milton > > Hi Joe, Dianne > > Appreciate al

[android-developers] Re: How to use two different icon in two different themes

2009-04-20 Thread havexz
I have a small question though ..when we use all the attributes the Layout Editor becomes completely useless as then you cant even see the icons or the final look n feel of the widget/control/view in the editor. The only way to see the final output is by running the program. This sometimes hur

[android-developers] What is the permission required to toggle the phone GPS setting?

2009-04-20 Thread Agus
What is the permission required to toggle the phone GPS setting? --~--~-~--~~~---~--~~ 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 u

[android-developers] is video recording supported on 1.5pre?

2009-04-20 Thread Jason Proctor
i have here an ADP1 with a Haykuro ROM in it. mostly it seems to work fine. however, on calling setVideoEncoder(MediaRecorder.VideoEncoder.H264) however, i get app death with the following stack trace - 04-20 18:17:48.979: ERROR/AndroidRuntime(671): java.lang.RuntimeException: setVideoEncoder

[android-developers] Re: Screen/Pattern Lock application invocation

2009-04-20 Thread Mark Murphy
dilit wrote: > Thank you very much for the prompt reply! > The only thing that can salvage our idea is if we can open > the screen lock programmatically. Is that possible? With the proper permissions, you can disable the screen lock. > Can we know within the program, if screen lock is on? andr

[android-developers] Re: Screen/Pattern Lock application invocation

2009-04-20 Thread dilit
Thank you very much for the prompt reply! The only thing that can salvage our idea is if we can open the screen lock programmatically. Is that possible? Can we know within the program, if screen lock is on? What user events can we capture from behind the screen lock? Could you stir us in the ri

[android-developers] Re: Problem installation Android Development Tools

2009-04-20 Thread Rowan
I am using Avast and did two things to get it to work. I moved the directory to a location with no spaces and disabled my antivirus. Thanks to everyone who posted their workarounds! On Apr 19, 11:58 pm, "william.stryker.08" wrote: > That is unbelievable.  I struggled with that issue all day ye

[android-developers] Re: Could title bar of activity listen to click event?

2009-04-20 Thread milton
Hi Joe, Dianne Appreciate all your suggestions. I had tried to put a textview and add an onclicklistener to it. It works fine, but I still think it's better that I could use the title bar. To trigger the action from menu is ok too, but user have to do two actions to achieve one result. menu->act

[android-developers] Re: Geocoder not returning results in 1.5 preview

2009-04-20 Thread Olivier
Same problem except I seem to have an exception as if I had passed 0,0 as lat,lng which I didn't. Any info/help on this would be appreciated. Thanks On Apr 16, 9:22 am, Huebi wrote: > I do not get any results from the Geocoder in the 1.5 preview release. > Any information on this? In the maps a

[android-developers] Re: u-law PCM audio compression supported in 1.5?

2009-04-20 Thread Dave Sparks
No, it only supports raw PCM. On Apr 20, 2:36 pm, j wrote: > I can see from documentation that AudioRecord supports > > PCM 16 bit per sample > and > PCM 8 bit per sample > > Does it support things like u-law and a-law like the Java Media > Framework? > > Thanks! --~--~-~--~~

[android-developers] Re: Recording audio with 1.5 SDK

2009-04-20 Thread Dave Sparks
I think we're still working on sample code for the SDK. On Apr 20, 11:05 am, j wrote: > Thank you Dave.  Is there any sample code utilizing AudioRecord that I > can refer to? > > My goal is to write the audio to a RTP network stream. > > On Apr 16, 1:21 pm, Dave Sparks wrote: > > > See theAudio

[android-developers] Re: How to access "shared data/settings" across multiple application? ContentProvider or SharedPreferences?

2009-04-20 Thread Richard Cook
Suppose I have an application that runs functional testing and needs to access the shared preferences. The function test extends InstrumentationTestCase, but getting the shared prefs through the Context() and targetContext() getters provided by the instrumentation doesn't seem to let me be over wri

[android-developers] Re: Bus error when running 1.5 emulator

2009-04-20 Thread Peter
Ok, my problem has returned, so the above fix wasn't it. Here's my crash report. Any ideas? Process: emulator [321] Path:/usr/local/dev/android/android-sdk-mac_x86-1.5_pre/ tools/emulator Identifier: emulator Version: ??? (???) Code Type: X86 (Native) Parent

[android-developers] Re: How to config G1 to make both browser and MMS work?

2009-04-20 Thread Anonymous Anonymous
for the mms apn make the apntype to "mms", it shud work On Fri, Apr 17, 2009 at 11:44 PM, kilroy238 wrote: > > Which one of the 3 China mobile SIMS do you have? > > On Mar 18, 3:38 pm, FayGU wrote: > > I have a G1 phone and use it in mainland China. > > But I can't config it to work with browse

[android-developers] Re: AppWidget issues

2009-04-20 Thread Jeff Sharkey
> In onActivityResult(), the cancellation is checked for request > code REQUEST_PICK_APPWIDGET whereas it should be checking > for REQUEST_CREATE_APPWIDGET. Oops, you're right, thanks for catching that. For the example widgets I've been writing that use configuration steps, I've been keeping an

[android-developers] Re: Views, ListViews and Adapters

2009-04-20 Thread Alan Jones
Hi Romain, On Apr 21, 12:37 am, Romain Guy wrote: > Use notifyDatasetChanged(), ListVIew *needs* it. It's also optimized > for cases in which the current set of Views hasn't changed. Just > remember to reuse the convertView in the getView() method and you'll > be fine. Market does that. Thanks

[android-developers] Re: EditText & Tabhost problem

2009-04-20 Thread Peter Carpenter
The editText calls requestLayout every time the text is modified, and this request flows all of the way up the hierarchy. I would have to assume that the onMeasure/onLayout functions for the tab are doing something like clearing the focus, or removing & re-adding your editText. Now how to fix thi

[android-developers] Emulator (SDK 1.1_r1 for widndows XP) crash using emulator -data

2009-04-20 Thread Alan
Hello devs, I need to run several emulator instances to test my application. When i try to run instances using emulator -data option, the emulator crashes. I got a MS Visual Studio window informing that emulator throws a "unhandled win32 exception". The exception message in the debugger (MS Visu

[android-developers] Re: New application - testing help wanted

2009-04-20 Thread camurphy
It seems 1 in 50 people or so seem to have a problem with this application still. Is anyone is willing to install the application (Toggle Data) from the market, test whether it works or not and if it doesn't, send me the output from logcat? That would be an excellent help. In case the application

[android-developers] Re: Map view not displaying tiles in 1.5 but it's fine in 1.1

2009-04-20 Thread Xavier Ducrohet
On Mon, Apr 20, 2009 at 4:29 PM, Xavier Ducrohet wrote: > 1.5: old: C:\Users\\.android\ Ignore "old" (I blame copy-paste...) Xav --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post t

[android-developers] Re: Map view not displaying tiles in 1.5 but it's fine in 1.1

2009-04-20 Thread Xavier Ducrohet
Hello, Are you recompiling your application with the 1.5 SDK? And are you running windows? To solve some issue between the java based tools and the emulator, we changed the location of the android files. They used to be in the local settings, but they are now directly under /.android/ So compil

[android-developers] Re: Grayscaling

2009-04-20 Thread Marco Nelissen
You can do this more efficiently by using a Paint and a ColorFilter. On Mon, Apr 20, 2009 at 3:59 PM, sm12 wrote: > > Solved. The problem was in the parameters of Color.rgb. > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

[android-developers] Re: Grayscaling

2009-04-20 Thread clark
> for(int y = 0; y < imgH; y++) > for(int x = 0; x < imgW; x++) >         { >                 int color = bitmap.getPixel(x, y); > >                 int r = (color >> 16) & 0xff; >                 int g = (color >> 8) & 0xff; >                 int b = color & 0xff; > >                 color = Colo

[android-developers] Re: AppWidget issues

2009-04-20 Thread Tom Gibara
Sadly, supplying the widget id on the intent doesn't fix the problem - the cancellation of widget creation is never broadcast back to the provider. It's actually a pretty obvious bug in Launcher (when you're looking for it that is): In onActivityResult(), the cancellation is checked for request cod

[android-developers] Re: Grayscaling

2009-04-20 Thread sm12
Solved. The problem was in the parameters of Color.rgb. --~--~-~--~~~---~--~~ 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 unsubscri

[android-developers] Re: As application developers are we allowed to access system properties like ro.config.sync?

2009-04-20 Thread Dianne Hackborn
On Mon, Apr 20, 2009 at 1:07 PM, Hans wrote: > On Apr 20, 1:02 pm, Dianne Hackborn wrote: > > The data roaming thing is fixed in Cupcake. > Fixed? It's not broken as far as I can tell. It's a System setting. > Seriously, why on earth would you change it? I'm sure that no > developer has reque

[android-developers] Re: ReStarting An Activity From A Service

2009-04-20 Thread Dianne Hackborn
Did you try setting android:launchMode="singleTop" in your manifest? On Mon, Apr 20, 2009 at 3:11 PM, Mohamed Amir wrote: > > :-) > Well, it's just a typo here but it is correct in the code I have > tried. > > Thank you after all. > > > On Apr 20, 10:14 pm, Marco Nelissen wrote: > > On Mon, Apr

[android-developers] Map view not displaying tiles in 1.5 but it's fine in 1.1

2009-04-20 Thread wayne mcfadden- Red Droid
I'm debugging an application in 1.5 and my map view is not showing the tiles. My overlays show up fine. The tiles show correctly if I run the appication in 1.1. (so the key that i'm using there is fine in the xml) So this looks like it may be a map key problem. I'm trying to use the same key

[android-developers] Re: How to make a video of the emulator ?

2009-04-20 Thread Diego Torres Milano
I've recorded several videos for my blog (http:// dtmilano.blogspot.com) using xvidcap, which probably is in your distribution's repositories too (I'm using ubuntu). xvidcap supports all of these output formats: X11 Window Dump (.xwd) Portable Graymap File

[android-developers] Re: ReStarting An Activity From A Service

2009-04-20 Thread Mohamed Amir
:-) Well, it's just a typo here but it is correct in the code I have tried. Thank you after all. On Apr 20, 10:14 pm, Marco Nelissen wrote: > On Mon, Apr 20, 2009 at 12:15 PM, Mohamed Amir wrote: > > > > > OK Mark. > > > I am trying to make an application that show the caller-ID when there > >

[android-developers] Re: AppWidget issues

2009-04-20 Thread Tom Gibara
Re-use of the RemoteViews is clear to me now. I wasn't passing back the widget id when configuration is cancelled (the widget example in the SDK doesn't do this either when the back button is pressed). The APPWIDGET_UPDATE broadcast before configuration doesn't surprise me, but having to pass the

[android-developers] Re: AppWidget issues

2009-04-20 Thread Jeff Sharkey
> I'm still confused by how the > widget service decides which views to recycle and in what way. It recycles entire layouts. If you send a RemoteViews with the same layout, it just applies the new set of actions over the top of the existing layout, including any current state. So to be safe you

[android-developers] Re: Grayscaling

2009-04-20 Thread sm12
The problem is my Bitmap was immutable. I made it mutable. I also used pixels array. Initially by bitmap is taken from source. Then Im setting it to mutable as follows: mutable = immutable.copy(Config.RGB_565, true); But now, my image is coming "blue-scaled". Why? --~--~-~--

[android-developers] u-law PCM audio compression supported in 1.5?

2009-04-20 Thread j
I can see from documentation that AudioRecord supports PCM 16 bit per sample and PCM 8 bit per sample Does it support things like u-law and a-law like the Java Media Framework? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: how to color key 2d sprite backgound?

2009-04-20 Thread Gazy
hey setTransparancy() didnt seem to do anything for me, first pixel is black so I expected black to go transparent but it hasnt - only testing on emulator right now - any ideas? On Apr 20, 2:27 pm, Gazy wrote: > Perfectly what I needed, thanks a million!! > > On Mar 21, 6:23 am, Tazzer wrote: >

[android-developers] Re: AppWidget issues

2009-04-20 Thread Tom Gibara
Thanks for the clarification on the extras. WRT the ImageView, I tested it with setting null followed by setting the URI, and that fails with an NPE somewhere during marshalling the RemoteViews into a Parcel. It doesn't like the null URI. Setting the image resource id to zero first is just as good

[android-developers] Re: how to color key 2d sprite backgound?

2009-04-20 Thread Gazy
Perfectly what I needed, thanks a million!! On Mar 21, 6:23 am, Tazzer wrote: > For who it concerns.. > > As is seems it is not possible within the android api to do color > keying directly,  so I created a function to set all pixels manual. It > is based on the color located on pixel 0,0. If yo

[android-developers] Listview row layout dependent on remote data

2009-04-20 Thread AusR
Hi, Does anyone have any pointers on developing a listview where the layout of the rows of a listview are dependent on some to-be- downloaded data. For example. the rows will detail a time table, so the downloaded items for each row will be a days worth of classes. But then the row will have mult

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-04-20 Thread Moto
I believe GPRS is 3G --~--~-~--~~~---~--~~ 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 an

[android-developers] selectively manipulate parts of an image

2009-04-20 Thread Gaurav
How can we manipulate parts of an image selectively. For example, I have a canvas based on bitmap of image I am working on. I would like to change the brightness of a path on this canvas while the rest of the image remains the same. -Gaurav --~--~-~--~~~---~--~~

[android-developers] Re: memory problems

2009-04-20 Thread JP
On Apr 20, 11:08 am, fadden wrote: > On Apr 18, 11:31 am, JP wrote: > > > You may get this resolved by calling the garbage collector right > > there; system.gc() after you dereference the byte array with > > buff=null; > > The garbage collector will produce the same result whether it's called

[android-developers] Re: ReStarting An Activity From A Service

2009-04-20 Thread Marco Nelissen
On Mon, Apr 20, 2009 at 12:15 PM, Mohamed Amir wrote: > > OK Mark. > > I am trying to make an application that show the caller-ID when there > is an incoming call. > And where there is another call, I wanna update the caller-ID shown. > > I have tried OnNewIntent but this callback wasn't called.

[android-developers] Re: Playing .wav files on Android G1

2009-04-20 Thread Yusuf T. Mobile
Hi A.J., the formats supported are here: http://developer.android.com/guide/appendix/media-formats.html Someone who appears to have had a similar problem to yours posted here: http://androidforums.com/t-mobile-g1/1606-wav-files-one-type-plays-one-does-not.html There are many ways to format a WA

[android-developers] Re: How do i save a (large) edited JPEG with full 24bit colordepth without getting OutOfMemoryErrors?

2009-04-20 Thread Yusuf T. Mobile
It depends of course on what you are trying to do, but if you can initially store the large file as a set of tiles, then you may be able to avert the memory issue, although it would make your code more complex. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements i

[android-developers] Re: As application developers are we allowed to access system properties like ro.config.sync?

2009-04-20 Thread Hans
On Apr 20, 1:02 pm, Dianne Hackborn wrote: > The data roaming thing is fixed in Cupcake. Fixed? It's not broken as far as I can tell. It's a System setting. Seriously, why on earth would you change it? I'm sure that no developer has requested this as a change, so why is it changing? > If you

[android-developers] Convert accelerometer readings to degrees

2009-04-20 Thread djr
Does anyone know how to convert the accelerometer readings from g's to degrees? For example, if I want to use the x-axis readings and measure the tilt of the phone, flat would be 0g = 0 degrees and a 90 degree tilt to the right would be 1g (9.80665 m/sec^2). I can't come up with a formula for say

[android-developers] Re: AppWidget issues

2009-04-20 Thread Jeff Sharkey
> There's one definite bug: AppWidgetProvider fails to > handle ACTION_APPWIDGET_DELETED actions properly. Good point, the backend service is sending the wrong extras--fixing that now. Another simple way to fix would be to override onReceive to handle this special-case early before passing to Ap

[android-developers] Re: As application developers are we allowed to access system properties like ro.config.sync?

2009-04-20 Thread Hans
On Apr 20, 12:06 pm, "Mark Murphy" wrote: > > On Apr 20, 11:03 am, Jean-Baptiste Queru wrote: > >> The proper way would be to start the relevant activity. I don't know > >> whether the specific Intent to start that activity is documented as > >> part of the public API, though. > > >> JBQ > > > D

[android-developers] Re: ReStarting An Activity From A Service

2009-04-20 Thread Mohamed Amir
Hi Jonas, Thank you for your reply. The activity is created properly when an incoming call takes place. The problem is when another call takes place and the first activity is still shown. I think it's not a permission problem. On Apr 20, 9:30 pm, "Jonas Petersson" wrote: > Hi Mohamed, > > Moh

[android-developers] Re: interaction between notification and service

2009-04-20 Thread Dianne Hackborn
Make a PendingIntent that starts your service. You will receive the intent in Service.onStart(). On Sat, Apr 18, 2009 at 3:38 PM, panda wrote: > > When my service starts it shows a notification. I want to report to my > service when notification is clicked. How can I do this? > > > > -- Dian

[android-developers] Re: Screen lock turns of the accelerometer.

2009-04-20 Thread Jordan Frank
Fixed in cupcake! Described further: http://groups.google.com/group/android-developers/msg/a616773b12c2d9e5 Jordan On Apr 20, 12:01 pm, dilit wrote: > Have you implemented the accel. listener as a Service (vs Activity)? > Service should run in the background without the need to be in > focus..

[android-developers] Re: PackageManager.installPackage(Uri packageURI) error on Androdi 1.5 SDK

2009-04-20 Thread Dianne Hackborn
That brings up the system UI, allowing the user to confirm the install. On Sat, Apr 18, 2009 at 7:13 AM, Peter wrote: > > Ok...how does this relate to what you said about installing apps being > prohibited? > > On Apr 17, 1:10 pm, Dianne Hackborn wrote: > > Yes it can. > > > > > > > > On Thu, A

[android-developers] Re: Sensors don't work on partial wake lock

2009-04-20 Thread Jordan Frank
Fixed in cupcake! http://groups.google.com/group/android-developers/msg/a616773b12c2d9e5 Cheers, Jordan On Mar 28, 1:01 pm, Jordan Frank wrote: > I'm having the same problem, and have asked a few times on the mailing > lists for more information, but have never seen any response from > anyone

[android-developers] Re: Screen/Pattern Lock application invocation

2009-04-20 Thread Dianne Hackborn
You can't do this with the SDK, sorry. On Mon, Apr 20, 2009 at 8:54 AM, dilit wrote: > > Hello, > > We are writing our own application to substitute G1 standard screen > lock (where you have to draw a pattern between the dots on the > screen). Unfortunately, I have been unable to find document

[android-developers] Re: ReStarting An Activity From A Service

2009-04-20 Thread Jonas Petersson
Hi Mohamed, Mohamed Amir wrote: > I am trying to make an application that show the caller-ID when there > is an incoming call. > And where there is another call, I wanna update the caller-ID shown. Sounds familiar - I do similar stuff in "Zap's Hitta" (see Market). > I have tried OnNewIntent bu

[android-developers] Re: ReStarting An Activity From A Service

2009-04-20 Thread Mohamed Amir
OK Mark. I am trying to make an application that show the caller-ID when there is an incoming call. And where there is another call, I wanna update the caller-ID shown. I have tried OnNewIntent but this callback wasn't called. The service code is something like that @Override p

[android-developers] Re: Accelerometer power tied to display backlight power

2009-04-20 Thread Jordan Frank
Good news! I upgraded my device to cupcake, and it appears that I can now receive onSensorChanged events when the screen is off, provided that I hold a Partial Wake Lock. However, the sampling frequency seems to be far more sporadic. I think that it has to do with the fact that cupcake now flips

[android-developers] Re: Bus error when running 1.5 emulator

2009-04-20 Thread Peter
My problem was that I had a SIMBL plugin installed (Safari Stand) via Input Managers. These can cause conflicts in OS X. On Apr 17, 7:59 pm, Mateo Aeon Ortega wrote: > I just had a similar problem. To make a long story short, my hostname > was not resolving via DNS. Fixed that with some scutil &

[android-developers] Re: Early Look Android 1.5 SDK

2009-04-20 Thread Jeff Sharkey
>> 1. Home -> Menu -> Add -> Widgets ->Search ... then there will be 2 >> google search bar. > > I don't think anything restricts putting only 1 instance of a particular > widget. Yes, working as intended. -- Jeff Sharkey jshar...@android.com --~--~-~--~~~---~--~-

[android-developers] Re: WebView and Button in layout, only one of them can be clicked.

2009-04-20 Thread kevin
Thanks. However the problem in the layout is WebView is not clickable. Kevin --~--~-~--~~~---~--~~ 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@googleg

[android-developers] Re: Early Look Android 1.5 SDK

2009-04-20 Thread Xavier Ducrohet
On Sat, Apr 18, 2009 at 4:06 PM, Andy wrote: > > Hi, Xav > > It is very cool! thanks for keeping polishing ... > > Some bugs I found > 1. Home -> Menu -> Add -> Widgets ->Search ... then there will be 2 > google search bar. I don't think anything restricts putting only 1 instance of a particular

[android-developers] list latency

2009-04-20 Thread Jason Proctor
anyone seeing list latencies of a day or so...? -- jason.software.particle --~--~-~--~~~---~--~~ 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@googlegr

[android-developers] Re: memory problems

2009-04-20 Thread fadden
On Apr 18, 11:31 am, JP wrote: > You may get this resolved by calling the garbage collector right > there; system.gc() after you dereference the byte array with > buff=null; The garbage collector will produce the same result whether it's called explicitly or the VM decides it's time to clean up.

[android-developers] Re: memory problems

2009-04-20 Thread fadden
On Apr 17, 2:01 pm, petunio wrote: > static void test(int k) > { >         byte [] buff = new byte[k]; > >         //do some stuff with  buff[] > >         buff=null; > > } You shouldn't need to set "buff" to null. When the function returns the locals go out of scope and won't be in the root se

[android-developers] Re: Recording audio with 1.5 SDK

2009-04-20 Thread j
Thank you Dave. Is there any sample code utilizing AudioRecord that I can refer to? My goal is to write the audio to a RTP network stream. On Apr 16, 1:21 pm, Dave Sparks wrote: > See theAudioRecordclass. > > On Apr 16, 11:33 am, j wrote: > > > One known limitation of SDK 1.1 was that audio c

[android-developers] Re: Rings Extended obsoleted by new builds?

2009-04-20 Thread Rob Franz
Interesting. Thanks Dianne. On Mon, Apr 20, 2009 at 1:08 PM, Dianne Hackborn wrote: > No, Rings Extended is not obsolete (though the music picker activity it had > is now part of the platform), and it doesn't so anything different than the > built-in ringtone picker -- it just returns the URI to

[android-developers] Re: How do i save a (large) edited JPEG with full 24bit colordepth without getting OutOfMemoryErrors?

2009-04-20 Thread Michael MacDonald
I don't think there is much to help you do this kind of processing on a whole large image at once within the phone on the current SDK. I think you might have to read a part of the image, process it, and write it out filter style, implementing all the image compression/decompression yourself. Or y

[android-developers] "Where is the default ringtones present in sdk 1.5"

2009-04-20 Thread ratha
Dear All, Can anyone tell me where is the default ringtones present in android sdk 1.5? in android sdk 1.1 it was present in /system/media/audio/ ringtone. But i cannot find any such path in sdk 1.5. I need to access the default ringtones in my test cases. Please help me out to find that. Rega

[android-developers] build android emulator under mingw(winxp)

2009-04-20 Thread Edward
Hi, I try to build android emulator under mingw (winxp) with "build- emulator.sh", but failed, log as below: .. checking build system type... i686-pc-mingw32 checking host system type... i686-pc-mingw32 checking for gcc... gcc checking for C compiler default output file name... configure: erro

[android-developers] Is there some package to send SMS on CDMA ?

2009-04-20 Thread woongs01
Hi~ I heard that Android provides CDMA but I can`t find the fact on SDK Documents. Android provides GSM telephony package but CDMA telephony package is nothing. What can I use package to send SMS? plz let me know. thanks. ^^ --~--~-~--~~~---~--~~ You received

[android-developers] Re: Problem installation Android Development Tools

2009-04-20 Thread william.stryker.08
That is unbelievable. I struggled with that issue all day yesterday and sure enough, McAfee was to blame. I also am running the Vista 64 bit and Ganymede. Definitely not a coincidence. Thanks for the post. On Apr 19, 4:02 pm, tweitzel wrote: > Had the same problem a couple of hours ago: Fail

[android-developers] Re: SDK 1.5, Unable to load XML wizard

2009-04-20 Thread iceberg
I dont know why my previous post didnt appear. I have the same build as Raphael, but wizards dont work for me. Maybe good possibility is to release bundled Eclipse+ADT version. What do you think about this ? On Apr 15, 10:48 am, "stefan.jau...@googlemail.com" wrote: > I have it also > > On 14 A

[android-developers] Screen/Pattern Lock application invocation

2009-04-20 Thread dilit
Hello, We are writing our own application to substitute G1 standard screen lock (where you have to draw a pattern between the dots on the screen). Unfortunately, I have been unable to find documents on how to hook our application in, so that it would be called instead of the standard G1 screen

[android-developers] Video and photo sharing Intents

2009-04-20 Thread chaiesubz
The android 1.5 SDK release notes say that there are intents for video and photo sharing. Where are these intents? I am not able to find them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" grou

[android-developers] Re: How Delete SMS from inbox programmatically OR discard it before received in inbox

2009-04-20 Thread avrono
Gulfram, As far as I can see you can only delete and sms by thread_id using the content "content://sms/conversations/" Regards Avron On Feb 20, 9:45 am, Gulfam Hassan wrote: > Hi, > > I want to Delete SMS how i can delete it programmatically? > I am receiving sms in my application in this form

[android-developers] Re: Problem installation Android Development Tools

2009-04-20 Thread ericdel...@gmail.com
I had this same problem but the problem wasn't my anti-virus software. I had a space in the file path name. I installed eclipse in a location where there were no spaces and it works. However, I do get 22 error messages stating that the path is longer than the system can handle (160 characters).

[android-developers] Grayscaling

2009-04-20 Thread sm12
Hi, I am trying to grayscale bitmap as follows, But it is crashing as soon as I run this method. The problem is in last line. How can I assign "int" to "Color"? Or are there any better ways? Thx for(int y = 0; y < imgH; y++) for(int x = 0; x < imgW; x++) { int color = bit

  1   2   3   >