[android-developers] Re: Android Market app suspended. What do I do?

2009-04-30 Thread Al Sutton
Have a look at "passing off" - http://en.wikipedia.org/wiki/Passing_off . It's part of UK law (it's in the UK Tradmarks Act 1994). I'm guessing Google did the "moron in a hurry" test which although has been shown to not be legally enforceable, it's Googles market and their T&Cs say they can basica

[android-developers] How to Disable GPS Provider from Application

2009-04-30 Thread mak
Hi All, In Android settings, Enable GPS Satellite menu is provided to enable / disable GPS. How to enable/disable GPS from Any android java application ? I understood that there is no api expose to do that. Any workaround or solution. --~--~-~--~~~---~--~~ You rec

[android-developers] Re: When is a good time to require 1.5?

2009-04-30 Thread JP
On Apr 30, 9:47 pm, EboMike wrote: > Actually... that's not a bad idea. Have the user install the 1.1-based > app from the market, and if the code detects the 1.5 API, it brings up > a dialog and offers an "Cupcake version preview" for download - that > will bring up a link to the dev's site wi

[android-developers] Re: Tabhost Disappearing List view

2009-04-30 Thread cre
Mark, I got to see the error condition with hierarchyviewer. The ListView is visible but the TextViews that contain the lines of text are missing from the diagram. That is why the list of items does not appear. I did a print screen to capture the diagrams of the error condition and the normal co

[android-developers] Re: SlidingDrawer issue #1?

2009-04-30 Thread Sheepz
anyone else found something here? On Apr 30, 5:43 pm, Sheepz wrote: > okay, that didnt work :( > android:layout_width="wrap_content" > android:layout_height="wrap_content" android:handle="@+id/ImageView01" > android:content="@+id/ImageView02"> > android:layout_width="wrap_content" > android:la

[android-developers] Re: Maps Intent in CupCake

2009-04-30 Thread JP
Xavier, Having exhausted all the below, I find that calling Street View is crashing. Both from the built-in Maps app (as well as my app that calls it). Am I alone with this? Also, map tiles are not displayed with a 1.5-based build of the app. The 1.1-based build using identical source code base

[android-developers] Re: When is a good time to require 1.5?

2009-04-30 Thread EboMike
Actually... that's not a bad idea. Have the user install the 1.1-based app from the market, and if the code detects the 1.5 API, it brings up a dialog and offers an "Cupcake version preview" for download - that will bring up a link to the dev's site with the .apk for download. Downsides, of cours

[android-developers] work around of Animator class

2009-04-30 Thread Honest
I am porting one open gl based applet application to android. In that there is use of Animator class of JOGL. which class i can use instead of it in open gl in android. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: When is a good time to require 1.5?

2009-04-30 Thread JP
Looks like there is no obvious good answer. Comes back to personal taste. Personally I prefer to offer only one edition/version of my app to avoid confusing the user. Keep in mind as devels we're into this, but the regular user may not be aware of all the complications. Having a phone floating ar

[android-developers] surprise, No process called surfaceflinger listed by ps

2009-04-30 Thread wen yi
After I did a 'ps' I am surprised not to be able to see "surfaceflinger" process listed even though I saw the binary /system/ bin/surfaceflinger. I didn't find any scripts that starts surfaceflinger and I couldn't figure it out from the code. Can someone explain how native services such as surfac

[android-developers] AudioFlinger - many "write blocked for" log WARN messages

2009-04-30 Thread Mark Carter
I'm using the MediaPlayer to play audio (mp3) files. I don't think I'm doing anything out of the ordinary, but, during playback, I get many (several per second) log messages like these: 05-01 09:46:20.685: WARN/AudioFlinger(554): write blocked for 47 msecs 05-01 09:46:20.785: WARN/AudioFlinger(55

[android-developers] Re: WebView get position within page

2009-04-30 Thread sagar.indianic
Wat type of position are you talking about?? If u want to get position of the text within the webview then you can use javascript for that. Give unique id inside the tag of which you want to get the position. Then use javascript function document.getElementById ('yourId').offsetTop(); On Apr 30

[android-developers] Installing App From Eclipse to AVD

2009-04-30 Thread Nmix
Just started testing my apps against the 1.5 SDK and got these console messages when I re-install an app to the AVD. Eclipse project is set to 1.1 and the AVD is 1.5: [2009-04-30 22:22:49 - ...] Starting activity com... on device [2009-04-30 22:22:57 - ...] ActivityManager: DDM dispatch reg wait

[android-developers] Re: SQLite Pre-populated Database

2009-04-30 Thread hivebrain
Mark, Do you know if after the resource has been moved to the SD card, whether it can be deleted from the package to free up main memory for the user? I am enjoying your book, by the way. --Mike On Apr 11, 6:40 am, Mark Murphy wrote: > fg1921 wrote: > > 1. Included the db as an asset > > 2. C

[android-developers] Re: When is a good time to require 1.5?

2009-04-30 Thread EboMike
Yeah, I did that, and I had to make minor changes to a TableLayout so it looked right in an 1.5 environment. The real thing is widget support - I really want to add that soon. I don't want to wait too long, at the same time I don't want to make the app inaccessible to users with 1.1. I considered

[android-developers] Re: When is a good time to require 1.5?

2009-04-30 Thread JP
My approach exactly. Plus I recommend you install your 1.1-based apk on the 1.5 emulator (or device) to see how it performs. Based on test results, I am preparing to release an 1.1-based update that disables access to a couple of features that I found crashing or hanging when running on 1.5 (BTW r

[android-developers] Re: Video play error

2009-04-30 Thread Nithin Varamballi
Thanks for reply... Can know why it is no available, May this feature is not available in android...? Thank You Nithin n v --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] When is a good time to require 1.5?

2009-04-30 Thread EboMike
I'd like to add widget support to my app, but I suppose that it'll take quite a while until 1.5 is globally rolled out. I assume that widget support means that I need to compile against 1.5 and set up the minSdkVersion to 3, so I'll effectively lock out anybody with 1.1. Other than adding a secon

[android-developers] Re: New to Android

2009-04-30 Thread JP
It's been a while since I've seen "majorminor-49er". Here's the usual cause: http://forums.sun.com/thread.jspa?threadID=736596 You see this is likely a problem with your Java installation. I suspect you have an old Java version, probably 1.4.2. The bytecode of the android tool has been compiled ag

[android-developers] Re: Searching maps

2009-04-30 Thread JP
To the best of my knowledge... has been discussed before: http://groups.google.com/group/android-developers/browse_thread/thread/bc1e6e1524dcca5a/0c4d20a769e666e5?lnk=gst&q=googlenav#0c4d20a769e666e5 On Apr 29, 11:23 am, "c.a.jeffer...@googlemail.com" wrote: > Hi, > I am writing an applic

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

2009-04-30 Thread John B. Hansen
Yes, I selected Android 1.1 platform API Level 2. I also made sure src and gen folders were included in the Build path. I also included res folder in Build path but it had no effect. FYI: I am able to build a new Hello World program that just works. But, I can't figure out why that one works and

[android-developers] Theme and Styles stores

2009-04-30 Thread Raja Nagendra Kumar
Hi, Any Theme and Style store available for preview and purchase. What is the good source to develop Themes and styles for andorid. Regards, Raja Nagendra Kumar, C.T.O www.tejasoft.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Video play error

2009-04-30 Thread Dave Sparks
Android does not support playing two video streams at the same time. On Apr 30, 1:48 am, N V wrote: > Hi to all > >      I am playing 2 videos(.mpg4) at time... Some times its works > fine, But some times give > error like "Cannot Play the Video" Can any One tell me Why its > Happens...? > > Tha

[android-developers] Re: SurfaceView on G1

2009-04-30 Thread jj
I dont see any log (seems that it hangs just inside setContentView, which is at the very beginning of the app. I know this because I am able to debug it, and put a breackpoint in this line) anyway, I can get this list of threads... I dont know if that's useful somehow... babel [Android Application

[android-developers] Re: widget views

2009-04-30 Thread shleeforandroid
Hi Jeff I'm happy your comment of possible to implement animation to use Dialog or Translucent theme. please let me knos some detail ways? Thanks shlee On 4월30일, 오전2시31분, Jeff Sharkey wrote: > > ive read the docu for home screen widgets but i couldn't find a > > possiblity to set the widgets

[android-developers] Re: SurfaceView on G1

2009-04-30 Thread Dave Sparks
Do you have a stack trace from the log? On Apr 30, 4:51 pm, petunio wrote: > Hi > > I am finally testing my application on a G1 and even though it works > fine on the emulator, it crashes on the G1 > > it crashes when it does: > setContentView(R.layout.mylayout); > > the xml is fairly simple: >

[android-developers] Re: Maps Intent in CupCake

2009-04-30 Thread Xavier Ducrohet
That is correct. A few more details for everyone. Maps is not bundled on the default Android 1.5 System Image bundled with the SDK. Because your app doesn't actually use the Maps API (ie doesn't have with maps), it will install on devices that do not have Google Maps. Therefore: - You should u

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

2009-04-30 Thread Xavier Ducrohet
Did you setup the Build target for your older project? Xav On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen wrote: > > I have the same problem i.e. after converting to Android 1.5 SDK, > my project files won't compile due to dozens of R.* files "cannot be > resolved". > > I've tried: >   1. Addi

[android-developers] Re: Quality of paid applications on the Market...

2009-04-30 Thread Josh Dobbs
I don't really think it's an issue at this point. Especially since you can get a refund up to 24 hours after purchase. On Thu, Apr 30, 2009 at 4:18 PM, Rob Franz wrote: > Nothing, but when he's charging $5 for an app with info that you could > google easily, you really kind of see what he's afte

[android-developers] SurfaceView on G1

2009-04-30 Thread petunio
Hi I am finally testing my application on a G1 and even though it works fine on the emulator, it crashes on the G1 it crashes when it does: setContentView(R.layout.mylayout); the xml is fairly simple: and the view is defined like this: public class myView ext

[android-developers] Re: Regarding AbsoluteLayout being deprecated in SDK 1.5

2009-04-30 Thread Nik Bhattacharya
That is a much better answer. I can certainly live with that. Nik On Apr 30, 6:32 pm, Romain Guy wrote: > Then write a custom Animation class, which should not be different > than what you are doing already. > > On Thu, Apr 30, 2009 at 4:31 PM, Nik Bhattacharya > > > > wrote: > > > So if I ha

[android-developers] Re: Regarding AbsoluteLayout being deprecated in SDK 1.5

2009-04-30 Thread Romain Guy
Then write a custom Animation class, which should not be different than what you are doing already. On Thu, Apr 30, 2009 at 4:31 PM, Nik Bhattacharya wrote: > > So if I have a fine grained animation that moves along a complex > curve, I will have to have potentially hundreds of translate > anima

[android-developers] Re: Regarding AbsoluteLayout being deprecated in SDK 1.5

2009-04-30 Thread Nik Bhattacharya
So if I have a fine grained animation that moves along a complex curve, I will have to have potentially hundreds of translate animations in my anim file? Just to implement the S movement, along a HVGA screen, I could see a lot of linear translate animations in the animation set. How long will th

[android-developers] Re: Quality of paid applications on the Market...

2009-04-30 Thread Rob Franz
Nothing, but when he's charging $5 for an app with info that you could google easily, you really kind of see what he's after. If you look at the feedback for his other apps, there's a recurring theme - he's almost a scam artist... Just saying. On Thu, Apr 30, 2009 at 6:49 PM, Marco Nelissen wrot

[android-developers] Re: out of memory exception on transferring large file to DataOutputStream

2009-04-30 Thread zeeshan
I used httpclient but i got 411 error code! i am desperately looking for any solution to avoid buffering for my audio streams. any help would be appreciated On Apr 29, 12:39 pm, zeeshan wrote: > Hi Mike, > > thanks for the reply. > > this link is very helpfull but my problem is still there, i

[android-developers] Re: paint individual button - please help!

2009-04-30 Thread nEx.Software
I would extend Button, then in the constructor do setBackgroundDrawable (null); then override onDraw and do your custom drawing there. If you want to draw once, create and draw a Bitmap and store it in a local variable for reuse. On Apr 30, 1:15 pm, guruk wrote: > hi, > i know i can set a drawab

[android-developers] Re: Quality of paid applications on the Market...

2009-04-30 Thread Marco Nelissen
On Thu, Apr 30, 2009 at 3:42 PM, Rob Franz wrote: > I was going to let this thread die but I saw this and had to add on to it > because I think it reinforces the need for better filtering options in the > Market. > > I posted this originally because I came across one particular developer (I > won

[android-developers] Re: How to Snap a picture of a Layouts contents?

2009-04-30 Thread Romain Guy
You can also use the View's drawing cache API. On Thu, Apr 30, 2009 at 3:38 PM, dan raaka wrote: > Bitmap b = Bitmap.create( ); > Canvas c = new Canvas(b); > your_view.draw(c); > use b to in setDrawable else where > > there are missing lines, but you should get the idea > Dan > > On Thu, Apr

[android-developers] Re: Regarding AbsoluteLayout being deprecated in SDK 1.5

2009-04-30 Thread Romain Guy
Just use an AnimationSet containing several TranslateAnimation. On Thu, Apr 30, 2009 at 3:37 PM, Nik Bhattacharya wrote: > > What if I want to animate a view (lets say a button) in an "S" shape > from the top right of the screen to the bottom left of the screen? > Use a FrameLayout and then have

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

2009-04-30 Thread John B. Hansen
I also checked and the 'gen' dir is in my java source build path. Its still not working. jh On Apr 30, 2:54 pm, "John B. Hansen" wrote: > I have the same problem i.e. after converting to Android 1.5 SDK, > my project files won't compile due to dozens of R.* files "cannot be > resolved". > > I'v

[android-developers] Re: Porting 1.0 to 1.5, map tiles stopped displaying

2009-04-30 Thread Ron
I had to generate a new Google maps key using the new keystore in my project before the tiles would show. On Apr 29, 8:44 pm, JP wrote: > I started porting a functioning 1.0 app to 1.5 last night. It uses > MapView and associated classes and everything checks out on 1.0. No > such luck after tak

[android-developers] Re: Quality of paid applications on the Market...

2009-04-30 Thread Josh Dobbs
Let the users filter them. Eventually those apps will fall to the bottom of the list (if they havent already). Apple has an approval process and they still have tasteless apps get thru. On Thu, Apr 30, 2009 at 3:42 PM, Rob Franz wrote: > I was going to let this thread die but I saw this and had

[android-developers] Re: Quality of paid applications on the Market...

2009-04-30 Thread Rob Franz
I was going to let this thread die but I saw this and had to add on to it because I think it reinforces the need for better filtering options in the Market. I posted this originally because I came across one particular developer (I won't mention the name, but you can find him easily) who's release

[android-developers] Re: How to Snap a picture of a Layouts contents?

2009-04-30 Thread dan raaka
Bitmap b = Bitmap.create( ); Canvas c = new Canvas(b); your_view.draw(c); use b to in setDrawable else where there are missing lines, but you should get the idea Dan On Thu, Apr 30, 2009 at 2:23 PM, Moto wrote: > > Hi, > > I need to somehow get a drawable of the contents of a Layout, once I

[android-developers] Re: Regarding AbsoluteLayout being deprecated in SDK 1.5

2009-04-30 Thread Nik Bhattacharya
What if I want to animate a view (lets say a button) in an "S" shape from the top right of the screen to the bottom left of the screen? Use a FrameLayout and then have a whole bunch of translate animations that I have to hand-code? With a handler and an AbsoluteLayout, I can do this easily wherei

[android-developers] Re: Eclipse + cupcake + other android projects in build path = VerifyError

2009-04-30 Thread Guillaume Perrot
Android lib projects would be a good feature. But why not having a dependency system between APKs like debian packages ? 2009/5/1 Xavier Ducrohet > > Hello, > > Editing the .classpath is a good solution. Let me explain why. > > ADT supports referenced projects so that you can have library projec

[android-developers] Re: Maps Intent in CupCake

2009-04-30 Thread agirardello
Create a new AVD with: android create avd -n my_androidMAPS -t 3 and then use it while running your app! ;) On Apr 30, 1:14 pm, agirardello wrote: > I have the same problem!!! > > Any help? > > On Apr 29, 6:55 pm, khose wrote: > > > Hello! > > > I'm migrating my app from 1.1 to 1.5. It w

[android-developers] Re: Eclipse + cupcake + other android projects in build path = VerifyError

2009-04-30 Thread Xavier Ducrohet
Hello, Editing the .classpath is a good solution. Let me explain why. ADT supports referenced projects so that you can have library projects reused by your main Application project. In the past, the build system provided by ADT just looked at the list of referenced projects, and added their out

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

2009-04-30 Thread John B. Hansen
I have the same problem i.e. after converting to Android 1.5 SDK, my project files won't compile due to dozens of R.* files "cannot be resolved". I've tried: 1. Adding the sdk 'tools' to my path 2. Reinstalling ADT 3. Cleaning my project Nothing is working. Anyone have any other suggest

[android-developers] Re: Updated to 1.5 and R.java is not regeneratated

2009-04-30 Thread Xavier Ducrohet
When updating an old project that doesn't have the gen source folder setup, it first detects if the gen folder already exists, and if so, generates this error. The idea was to not convert and pre-existing gen folder (or file) into an Eclipse source folder. Are you sure you didn't have the gen fol

[android-developers] Re: App widgets and remote views

2009-04-30 Thread shleeforandroid
Hi Tom Thanks for your reply . Is there any ways to apply animation effect to HomeScreen? I doubted and tested it by using AppWidget API, but it's failed. I can see some changes on RemoteViews' imageView. On May 1, 3:26 am, Tom Gibara wrote: > There's no way of applying an animation to the

[android-developers] Re: Updated to 1.5 and R.java is not regeneratated

2009-04-30 Thread Richard Schilling
O.K. I resolved this. The problem was related to the fact that Eclipse couldn't properly handle the gen directory that it created. This error is generated: [2009-04-30 14:14:15 - MyApp] /MyApp/gen already exists but is not a source folder. Convert to a source folder or rename it. So, here's how

[android-developers] Re: compiling application with full android source code

2009-04-30 Thread Mark Murphy
ravi wrote: > Hi All, >I want to compile my application with full android source code. Its > because If I compile it alone then I need different library with it > and so .apk size will increase. So please tell me in which make file > or configuration file should I do the change. I have placed

[android-developers] Re: Problem with extends TabActivity

2009-04-30 Thread Mark Murphy
rico_1 wrote: > Hello! > > I have problem with extends TabActivity. > > My code is: > import android.widget.TabHost; > import android.content.Intent; > import android.app.TabActivity; > import android.app.Activity; > import android.os.Bundle; > > public class MyProgram extends TabActivity { >

[android-developers] Re: SlidingDrawer issue #1?

2009-04-30 Thread Sheepz
okay, that didnt work :( still getting the same message in the ADT only now when launching the app, it simply stalls half drawn instead of giving an error message saying the application threw an exception... On Apr 30, 5:40 pm, Romain Guy wrote: > You must use different views, it doesn't ma

[android-developers] Re: SlidingDrawer issue #1?

2009-04-30 Thread Romain Guy
You must use different views, it doesn't make sense to have the same view, it's going to confuse SlidingDrawer :) On Thu, Apr 30, 2009 at 2:38 PM, Sheepz wrote: > > yeah, i figured that might be it, but even after this fix: > android:layout_width="wrap_content" > android:layout_height="wrap_con

[android-developers] Re: SlidingDrawer issue #1?

2009-04-30 Thread Sheepz
yeah, i figured that might be it, but even after this fix: i still get the same error - i'm gonna try using diffrent views for the content and the handle brb :) On Apr 30, 5:32 pm, Romain Guy wrote: > There is a bug indeed, the exception message says the "handle" is > missing, but the "conten

[android-developers] Re: OutOfMemoryError from BitmapFactory

2009-04-30 Thread Streets Of Boston
"I assume you mean any of my own bitmap caches..." Yep, if you have any. I don't have an issue when my app finishes. Memory seems to get released quite OK. So far, repeatedly re-starting my app does not seem to leak any (bitmap) memory. By any chance, do you have Drawables cached (i.e. reference

[android-developers] Re: OutOfMemoryError from BitmapFactory

2009-04-30 Thread fadden
On Apr 30, 1:39 pm, Ward Willats wrote: > It still seems like Voodo to me. If I have to manually call > setImageBitmap(null) it implies (to me) that the image view is not > being released in the first place, which means the view hierarchy is > not being released, even though I have called finish(

[android-developers] Re: Updated to 1.5 and R.java is not regeneratated

2009-04-30 Thread Richard Schilling
I also get this in the message window: [2009-04-30 14:14:15 - MyApp] /MyApp/gen already exists but is not a source folder. Convert to a source folder or rename it. Richard On Apr 30, 2:29 pm, Richard Schilling wrote: > I have a number of projects that were built and ran just fine under > th

[android-developers] Re: SlidingDrawer issue #1?

2009-04-30 Thread Romain Guy
There is a bug indeed, the exception message says the "handle" is missing, but the "content" is missing. Check out the javadoc. I'll fix the exception message. On Thu, Apr 30, 2009 at 2:26 PM, Sheepz wrote: > > okay, i might be missing something, the reason i think that this is a > bug is that i

[android-developers] Updated to 1.5 and R.java is not regeneratated

2009-04-30 Thread Richard Schilling
I have a number of projects that were built and ran just fine under the 1.1 version of the SDK. I'm updating all of my projects. Some projects update with no problem. But, some Eclipse projects don't regenerate R.java properly in the gen directory. I've set the Android platform to 1.1. I've cl

[android-developers] Re: Searching maps

2009-04-30 Thread c.a.jeffer...@googlemail.com
Hello? On Apr 29, 7:23 pm, "c.a.jeffer...@googlemail.com" wrote: > Hi, >     I am writing an application (on v1.0) that needs to search Google > maps for the nearest facility to my current location e.g. what are the > nearest bike shops. Can anyone give advice on how to do this? I looked > at g

[android-developers] camCorder not working well in emulator

2009-04-30 Thread Sheepz
hi all, just installed myself a new AVD and set the camera to true, however the camcorder is very unresponsive and seems like it's not working... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" gro

[android-developers] Re: SlidingDrawer issue #1?

2009-04-30 Thread Sheepz
okay, i might be missing something, the reason i think that this is a bug is that if you use the supplied tool, and cannot avoid getting an exception - it's a bug... i don't see any way around it - the way to create this widget is: a) create widget b) get exception c) fix error d) populate it with

[android-developers] Re: Date in sms

2009-04-30 Thread Yves Liu
Thanks. On Thu, Apr 30, 2009 at 1:28 AM, swarup wrote: > > try using android.text.format.DateUtils.formatDateTime(Context > context, long millis, int flags) > also look at /packages/apps/Mms/src/com/android/mms/ui/ > MessageUtils.java : formatTimeStampString() > > > On Apr 30, 1:03 pm, "yves...@

[android-developers] How to Snap a picture of a Layouts contents?

2009-04-30 Thread Moto
Hi, I need to somehow get a drawable of the contents of a Layout, once I get that "drawable" I want to set it as a background on an empty layout How can I go about doing this? Thanks! Moto! --~--~-~--~~~---~--~~ You received this message because you are subsc

[android-developers] Android Market app suspended. What do I do?

2009-04-30 Thread bryan
I received notice that my application was suspended yesterday around lunch. I've contacted support via email and the publisher support form with no answer as of yet. What can I do to resolve this issue? The violation was that after paid app support hit the UK, a UK company (non-software) with the

[android-developers] Re: SlidingDrawer issue #1?

2009-04-30 Thread Romain Guy
It *needs* a handle. It's not a bug, it's a requirement to make the widget work. On Thu, Apr 30, 2009 at 2:16 PM, Sheepz wrote: > > so you mean i have to put some content in it and only then it will be > visilble? even if this is true, it's still a bug - albeit with a much > lower severity... >

[android-developers] Re: SlidingDrawer issue #1?

2009-04-30 Thread Romain Guy
Do what the exception says: "java.lang.IllegalArgumentException: The handle attribute is required and must refer to a valid child." You need to define the widget to use as the handle of the drawer. On Thu, Apr 30, 2009 at 2:02 PM, Sheepz wrote: > > when adding a slidingDrawer object to my appl

[android-developers] Re: SlidingDrawer issue #1?

2009-04-30 Thread Sheepz
so you mean i have to put some content in it and only then it will be visilble? even if this is true, it's still a bug - albeit with a much lower severity... i'll check it out and report back in a few. On Apr 30, 5:10 pm, Romain Guy wrote: > Do what the exception says: > > "java.lang.IllegalArgu

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

2009-04-30 Thread Richard Schilling
I had the same problem but solved it. Perhaps this will help: Make sure the 'gen' directory is part of the java source build path. Right Click on project name (Package Explorer) -> Properties (Context Menu) -> Java Build Path (tree) -> Source (tab) -> Add Folder (Button) -> "gen" (directory nam

[android-developers] Re: SlidingDoor issue #1?

2009-04-30 Thread dan raaka
you will need to define the handle as well. Take a look at the launcher code for example. Dan On Thu, Apr 30, 2009 at 2:01 PM, Sheepz wrote: > > when adding a slidingDrawer object to my application, i got this error > when trying to display it on the main.xml layout view > i used that view to c

[android-developers] SlidingDrawer issue #1?

2009-04-30 Thread Sheepz
when adding a slidingDrawer object to my application, i got this error when trying to display it on the main.xml layout view i used that view to create it as the bottommost component, and immediatly got this message in the console window and the layout stopped showing. here is the exception: java.

[android-developers] SlidingDoor issue #1?

2009-04-30 Thread Sheepz
when adding a slidingDrawer object to my application, i got this error when trying to display it on the main.xml layout view i used that view to create it as the bottommost component, and immediatly got this message in the console window and the layout stopped showing. here is the exception: java.

[android-developers] OutOfMemoryError from BitmapFactory

2009-04-30 Thread Ward Willats
Thanks for these tips. At 1:14 PM -0700 4/30/09, Streets Of Boston wrote: >In my app, i've been dillegently 'unloading' bitmaps when i need >memory. >- clear any bitmap cache I assume you mean any of my own bitmap caches... >So far, this scheme has served me well. Before i got a lot of OOM- >er

[android-developers] Re: How to run android widget example in emulator

2009-04-30 Thread Jeff Sharkey
svn checkout the source code from Google Code, import as an Eclipse project, and launch. j On Thu, Apr 30, 2009 at 11:56 AM, Daniel Dreiberg wrote: > Hi, > Can you please tell me how can I deploy the widget example to my emulator? > > http://android-developers.blogspot.com/2009/04/introducing-

[android-developers] Re: Tap Outside Listener for Dialog

2009-04-30 Thread Jeff Sharkey
So Theme.Dialog Activities still receive onTouchEvent() calls, even outside of their floating window area. If you can grab the exact window size, you could do the math to figure out if touches are outside the window. j On Thu, Apr 30, 2009 at 11:46 AM, UBZack wrote: > > Hi all, > > I was wond

[android-developers] Re: create an image "on the fly" and assign it to a button

2009-04-30 Thread guruk
ok, lets forget about drawable. finaly can someone help with a small source: - create a small image / lets say two small dots with two colors. - set this image as background of a button. than i am quit happy :) thanks chris On Apr 3, 11:19 am, Peli wrote: > I guess what you are looking f

[android-developers] paint individual button - please help!

2009-04-30 Thread guruk
hi, i know i can set a drawable as background to a button. but HOW can i for example: create/paint a small image in the size of a button and set this as the backgroundimage of that button? please help. just some lines how to create an image *for example just two different dots* and how to set t

[android-developers] Re: OutOfMemoryError from BitmapFactory

2009-04-30 Thread Streets Of Boston
In my app, i've been dillegently 'unloading' bitmaps when i need memory. I clear out as much as I can. E.g. when a view becomes invisible (onPause) or just before you start loading a big bitmap: - do a setImageBitmap(null) (or similar methods, depending on which class of View you're actually usin

[android-developers] Re: NEW Gesture Recognition Application!

2009-04-30 Thread Michael Elsdörfer
> check out our blog and demonstration video and comment to let us know > what you think. I don't like having to click on a button (Call, SMS etc) after drawing the gesture. Instead, I'd like to see the app doing that by itself depending on where the gesture was defined. Apart from that, whe

[android-developers] Re: android 1.5: How do we use the AudioTrack class?

2009-04-30 Thread blindfold
Has anybody had any success with OnPlaybackPositionUpdateListener? I'm successfully playing one-second PCM sound clips with AudioTrack in MODE_STATIC mode (although the playback often appears truncated), but no matter what I do, onMarkerReached() is never called. I set setNotificationMarkerPositio

[android-developers] OutOfMemoryError from BitmapFactory

2009-04-30 Thread Ward Willats
At 11:23 AM -0700 4/30/09, fadden wrote: >It's possible that it didn't actually jump back down. The event log >shows results from all running processes, not just your app, so you >may be seeing output from other things mixed in. Ah, OK. Now I see a steady increase in my limit and allocs from 1.1

[android-developers] Re: Is there a way to define default attributes of a Widget as applicable the application in context

2009-04-30 Thread Jeff Sharkey
So with AppWidgets you can't rely on the android:theme, since it is applied to an entire window, and home screens typically use one theme for their entire window. One way of implementing different styles is to have multiple layouts, internally store the user's preference, and build each new Remot

[android-developers] Re: Cupcake's bug ? Caused by: android.content.res.Resources

2009-04-30 Thread Jeff Sharkey
So the root cause is back in your XML code: Caused by: android.content.res.Resources $NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x1010059 a=-1} Are you setting an android:background or android:src to something that isn't a @drawable? j On Thu, Apr 30, 2

[android-developers] Instrumentation for Dialog's and alike

2009-04-30 Thread Rick
I've seen a few posts with no answer. Consider this scenario: I use Android's InstrumentationTestCase to run functional testing through a complex application with many activities and services running. Most of it works well, but if I invoke a menu item through the instrumentation that creates a d

[android-developers] How to run android widget example in emulator

2009-04-30 Thread Daniel Dreiberg
Hi, Can you please tell me how can I deploy the widget example to my emulator? http://android-developers.blogspot.com/2009/04/introducing-home-screen-widgets-and.html Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[android-developers] Re: MediaPlayer State

2009-04-30 Thread Tom Gibara
> > Define 'meaningful'. > In this context: process state is "meaningful" to me if its exposed in a form that I can reason about competently. I would find it easier to reason about the state of the media player as exposed by the type of API I described above than that exposed by the API at present

[android-developers] Tap Outside Listener for Dialog

2009-04-30 Thread UBZack
Hi all, I was wondering if anyone knew of an event listener that receives "tap outside" events, that is, taps that happen outside the widget's physical boundaries, and could this listener be assigned to a dialog box (or for that matter, any visual window). Here's what the code MIGHT look like to

[android-developers] Re: Trouble migrating apps to 1.5

2009-04-30 Thread Teo
Hi, thanks for the response - fixed it in the meanwhile. Apparently it was something of this sort, i just tried adb kill-server and everything worked like a charm :) On Thu, Apr 30, 2009 at 9:26 PM, havexz wrote: > > One small question which platform you running on windows/linux? And by > any ch

[android-developers] Re: Trouble migrating apps to 1.5

2009-04-30 Thread havexz
One small question which platform you running on windows/linux? And by any chance there are two instances of the emulator running? One is visible and other is running in the background. That can also cause this issue. On Apr 30, 12:34 pm, Teo wrote: > Apparently the emulator can't attach itself

[android-developers] Re: App widgets and remote views

2009-04-30 Thread Tom Gibara
There's no way of applying an animation to the views within a remote view because you're constrained to what you can declare in the layout XML and the actions RemoteViews provides for. Neither of these provide for setting animations. > AppWidgetHostView, RemoteViews's apply() , reapply() > These

[android-developers] Re: MediaPlayer State

2009-04-30 Thread Marco Nelissen
On Thu, Apr 30, 2009 at 10:50 AM, Tom Gibara wrote: > That's only a cosmetic change though. Instead of calling, say, prepare() >> and it throwing an exception, you now have it return some token that tells >> you whether or not it succeeded. >> > > That's only a cosmetic change if you think that t

[android-developers] Re: OutOfMemoryError from BitmapFactory

2009-04-30 Thread fadden
On Apr 30, 8:23 am, Ward Willats wrote: > But lordy, how in the heck does that thing jump from 1 MB to 11 MB > and back down again?? I surely don't have anything anywhere near that > size that I am aware of! It's possible that it didn't actually jump back down. The event log shows results from

[android-developers] design Q: persisting activity state

2009-04-30 Thread Eric Hackborn EH
I have a simple app that has three windows, each with a corresponding activity. It's very common to switch back and forth between activities, but of course state gets wiped out of the top-most activity when the user has finished with it, and I want that state to persist. So I have two questions:

[android-developers] Re: Eclipse + cupcake + other android projects in build path = VerifyError

2009-04-30 Thread Guillaume Perrot
This sounds like a great workaround, so I'll try that next week. Thanks for the tip. 2009/4/30 JMoger > > I've got a working solution to this similar to your hint about J2SE > projects. Assuming your lib project is an android project, modify > the .project file to remove all Android builders an

[android-developers] Re: MediaPlayer State

2009-04-30 Thread Tom Gibara
> > That's only a cosmetic change though. Instead of calling, say, prepare() > and it throwing an exception, you now have it return some token that tells > you whether or not it succeeded. > That's only a cosmetic change if you think that throwing an exception is a first-class way of returning sta

[android-developers] Re: MediaPlayer State

2009-04-30 Thread westmeadboy
On Apr 30, 10:10 pm, Marco Nelissen wrote: > It might make it easier for you to retrieve an unreliable bit of > information, but you would still have to deal with all the same exceptions > and other errors that you can run in to now, precisely because the state > information is unreliable. Yes,

[android-developers] Re: Trouble migrating apps to 1.5

2009-04-30 Thread Teo
Apparently the emulator can't attach itself to the adb tool too... On Apr 30, 4:06 pm, Teo wrote: > Hi, > > is anyone else having trouble with the new app running 'system'? My > emulator just ignores them, can't launch any app. Changed the project > build target to 1.5 and made sure my AVD is 1.

  1   2   >