[android-developers] Create replacement lock screen.
Does anyone know where to get started if I wanted to change the lock screen? I can't find any information about what intent to hijack or anything like that. -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
[android-developers] Re: Create replacement lock screen.
That's unfortunate. So I'm guessing that Flyscreen and others do something hackish, like have a service which launches their activity when the screen turns on? Is there a way to unlock the screen using code? On Mar 19, 12:06 pm, Mark Murphy wrote: > Ozymandias wrote: > > Does anyone know where to get started if I wanted to change the lock > > screen? I can't find any information about what intent to hijack or > > anything like that. > > There is no supported means to replace the lock screen in today's SDK -- > sorry. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _The Busy Coder's Guide to *Advanced* Android Development_ > Version 1.3 Available! -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
[android-developers] Re: SMS
SMS_RECEIVED might point you in the right direction. On Mar 24, 1:23 am, irfan wrote: > Hello all > I am trying to make an application in android that can intercept an > incomming sms. I then want to parse it and then trigger certain events > according to certail header present in that sms or text message. Can > any one help me regarding this as i am a very beginner in android > development. -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
[android-developers] Re: what's the best 2d engine and what's the tools I need to create a game?
http://rokonandroid.com/ is the only 2d engine as far as I know. On Mar 30, 12:24 am, jProg wrote: > Hi, I'm a newbie to android and I want to develop my first 2d game..:) > I read about engines ..but what do you advice me to go with<--for 2d > game > and what is the best tools I need to create the sprites or characters > in addition to the map or the background? > Thank you in advance..:) -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
[android-developers] Can't get animations working.
I am trying to create a menu that slides in when it is drawn. I created an animation in res/anim called map_toolbar_in.xml: http://schemas.android.com/apk/res/android"; android:fromYDelta="100%" android:toYDelta="0%" android:duration="150"/> Then I have a linearLayout which I attempt to use it in: http://schemas.android.com/apk/res/ android" android:id="@+id/zoom_buttons" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:layout_marginTop="20dp" android:layout_marginRight="20dp" android:layoutAnimation="@anim/map_toolbar_in" > When I run the program I get a bunch of errors, starting with: 04-05 18:17:05.287: ERROR/AndroidRuntime(4258): Caused by: java.lang.RuntimeException: Unknown layout animation name: translate 04-05 18:17:05.287: ERROR/AndroidRuntime(4258): at android.view.animation.AnimationUtils.createLayoutAnimationFromXml(AnimationUtils.java: 178) 04-05 18:17:05.287: ERROR/AndroidRuntime(4258): at android.view.animation.AnimationUtils.createLayoutAnimationFromXml(AnimationUtils.java: 153) 04-05 18:17:05.287: ERROR/AndroidRuntime(4258): at android.view.animation.AnimationUtils.loadLayoutAnimation(AnimationUtils.java: 134) 04-05 18:17:05.287: ERROR/AndroidRuntime(4258): at android.view.ViewGroup.initFromAttributes(ViewGroup.java:343) 04-05 18:17:05.287: ERROR/AndroidRuntime(4258): at android.view.ViewGroup.(ViewGroup.java:286) Does anyone have any ideas? -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.
[android-developers] Re: Can't get animations working.
And how do you apply it? Mine works applied using code, but if I try to apply it using android:layoutAnimation I get that error. On Apr 6, 1:51 am, Yahel wrote: > Hi, > > the content of my res/anim/slide_in_from_bottom.xml that works : > > > > http://schemas.android.com/apk/res/android"; > android:interpolator="@android:anim/accelerate_interpolator" > fillEnabled="true" android:fillBefore="true" android:fillAfter="true" > > android:toYDelta="0" > android:duration="750" /> > > > Yahel -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.
[android-developers] Tiled bitmap gets distorted?
I created a bitmap to fill in some empty area on my toolbar. I want it to tile as it expands. http://schemas.android.com/apk/res/android"; android:src="@drawable/map_toolbar_background" android:gravity="top" android:tileMode="repeat" /> My problem is, that placed next to buttons created with the same background, of the same height, it looks wrong. It gets distorted and stretched some vertically and is blurrier than the buttons which are not tiled. If I use the same bitmap just as a android:background, it looks perfect. Any ideas what android's doing to my bitmap? -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.
[android-developers] @id/myid namespace issues?
When I create an XML layout using a custom layout class I have problems using @ids between it and other layouts. They all work fine between standard android views, but my custom ones won't work. Based off this: http://dlee0113.blogspot.com/2009/05/differences-between-idfoo-and.html I tried this @com.mynamespace:id/myid but that doesn't work either. Suggestions? -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] skinning ImageButton and states?
Using this as the android:src I get no change on press except to the background which turns orange as usual: http://schemas.android.com/apk/res/android";> Using it for the android:background I get no change at all when I press the button. Am I doing something wrong? -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.
[android-developers] Re: skinning ImageButton and states?
Apparently the problem is the list of items function as a switch, so having the default state first made it ignore the rest. My bad. On Apr 8, 6:27 pm, Ozymandias wrote: > Using this as the android:src I get no change on press except to the > background which turns orange as usual: > > > http://schemas.android.com/apk/res/android";> > > android:drawable="@drawable/map_toolbar_details_selected" /> > android:drawable="@drawable/map_toolbar_details_selected" /> > android:drawable="@drawable/map_toolbar_details_selected" /> > > > Using it for the android:background I get no change at all when I > press the button. > > Am I doing something wrong? -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.
[android-developers] Display a View over a GLSurfaceView wihout stealing focus?
Is it possible to do this? There are Toasts, which are great for short information popups. They can't seem to receive touch events as well as requiring hacks to keep showing permanently. There are Dialogs, which are great for...dialogs. They can receive touch events, but steal focus from the view beneath them. I want a way to display UI elements over my game's GLSurfaceView which are created in XML like a normal view. I need them to receive touch input if it's on them, without blocking touch input that's not on them. Does anyone have any ideas? -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: really easy question... but not for me =P
So are you talking about like a Setup activity, where you choose those things, and then when you're done it launches the game? If that's what you're talking about, you would create the second activity and pass the config options to it at creation. http://developer.android.com/intl/zh-CN/reference/android/app/Activity.html On Mar 2, 2:21 pm, Kofa wrote: > I'm trying to read a variable from one activity to another... i > explain better: I'm making a video game, so the user will have to > chose like a team, color, and other options from one activity and then > should read this variables from another activity. > so the question is... how can i declare integer, string, etc values > from one activity and then read it from another activity? thx a lot -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Display a View over a GLSurfaceView wihout stealing focus?
You are a life saver. I got this working. I had to use java to build the core layout because I couldn't get it to work in XML, but after that I can load up any XML views I want. On Mar 2, 2:53 pm, Mark Murphy wrote: > Ozymandias wrote: > > Is it possible to do this? > > > There are Toasts, which are great for short information popups. They > > can't seem to receive touch events as well as requiring hacks to keep > > showing permanently. > > > There are Dialogs, which are great for...dialogs. They can receive > > touch events, but steal focus from the view beneath them. > > > I want a way to display UI elements over my game's GLSurfaceView which > > are created in XML like a normal view. I need them to receive touch > > input if it's on them, without blocking touch input that's not on > > them. > > > Does anyone have any ideas? > > Step #1: Put the GLSurfaceView as the first child of a RelativeLayout > > Step #2: Put the other widgets you want as later children of the same > RelativeLayout > > Step #3: There is no step #3 > > The widgets should appear to float over the SurfaceView. They are part > of your UI and will behave no different than widgets anywhere else > (e.g., they'll receive click events). If you don't want them to steal > focus, make them non-focusable (I think there's an attribute or setter > for that). > > Note that I have used this technique with a regular SurfaceView, and I > am assuming it also works with GLSurfaceView. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _Beginning Android_ from Apress Now Available! -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Display a View over a GLSurfaceView wihout stealing focus?
Hmm. Would you know how to avoid issues with threading and this error: 03-03 01:01:11.247: ERROR/AndroidRuntime(20853): android.view.ViewRoot $CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. I get this problem when trying to modify the views I add. On Mar 2, 2:53 pm, Mark Murphy wrote: > Ozymandias wrote: > > Is it possible to do this? > > > There are Toasts, which are great for short information popups. They > > can't seem to receive touch events as well as requiring hacks to keep > > showing permanently. > > > There are Dialogs, which are great for...dialogs. They can receive > > touch events, but steal focus from the view beneath them. > > > I want a way to display UI elements over my game's GLSurfaceView which > > are created in XML like a normal view. I need them to receive touch > > input if it's on them, without blocking touch input that's not on > > them. > > > Does anyone have any ideas? > > Step #1: Put the GLSurfaceView as the first child of a RelativeLayout > > Step #2: Put the other widgets you want as later children of the same > RelativeLayout > > Step #3: There is no step #3 > > The widgets should appear to float over the SurfaceView. They are part > of your UI and will behave no different than widgets anywhere else > (e.g., they'll receive click events). If you don't want them to steal > focus, make them non-focusable (I think there's an attribute or setter > for that). > > Note that I have used this technique with a regular SurfaceView, and I > am assuming it also works with GLSurfaceView. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _Beginning Android_ from Apress Now Available! -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] RelativeLayout added using LayoutInflater and addView doesn't obey fill_parent?
I have a RelativeLayout as my content view. If I place this inside of it: http://schemas.android.com/apk/res/ android" android:id="@+id/root" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="10dp" android:background="#DAAA" > It fills the parent as expected. If I use a layout inflater and addView to put it in the same place, it will always just wrap_content. I've tried calling requestLayout on the parent and child to no effect. Does anyone have any ideas? -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: RelativeLayout added using LayoutInflater and addView doesn't obey fill_parent?
Thank you! You're a life saver. I totally misunderstood what the root parameter was for. On Mar 4, 8:12 am, Romain Guy wrote: > Make sure you call inflate() by passing a parent. > > inflate(R.layout.myLayout, myRelativeLayout, true); > > Specifying true at the end will automatically do the addView() as > well. If you don't pass a parent, the layout params are not generated > and we default to wrap_content. > > > > > > On Wed, Mar 3, 2010 at 7:06 PM, Ozymandias wrote: > > I have a RelativeLayout as my content view. If I place this inside of > > it: > > > > > http://schemas.android.com/apk/res/ > > android" > > android:id="@+id/root" > > android:orientation="vertical" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > android:padding="10dp" > > android:background="#DAAA" > > > > > > > > It fills the parent as expected. If I use a layout inflater and > > addView to put it in the same place, it will always just wrap_content. > > I've tried calling requestLayout on the parent and child to no effect. > > Does anyone have any ideas? > > > -- > > 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 > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Romain Guy > Android framework engineer > romain...@android.com > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Write bitmap to data folder?
I can't figure out how to do this. Looking around online got me this: try { FileOutputStream fos = myActivity.openFileOutput("test.png", Activity.MODE_PRIVATE); bitmap.compress(CompressFormat.PNG, 100, fos); fos.flush(); fos.close(); } catch (Exception e) { e.printStackTrace(); } I get no errors, but I also get nothing written to my SD card. Any ideas? -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Hide a View in a HorizontalScrollView and not leave empty space?
When I had a view that's in my HorizontalScrollView it leaves a blank area because it's still being considered for layout purposes. Is there a way to have it not occupy space when I hide it? -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Synchronize the UI thread with a GLSurfaceView's drawing?
I'm using the Rokon engine for my game. I'm exploring the possibility of using normal XML views for UI instead of building them out of sprites. This works great for static interface elements. Right now I'm attempting to get the same to work with UI elements which are meant to move with objects in the game world. Updating the View position every game loop still leaves it out of sync by a frame or two. Does anyone have any ideas for how this might be achieved? To get 100% smoothness I would need to have the UI thread update the view positions the same frame that Rokon updated sprite positions. -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] getAlpha for ImageView
How do you get the alpha of an ImageView? You can setAlpha, but I can find no way to retrieve it afterwords. Anyone know? -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Eclipse XML building super slow?
I'm finding that when editing XML files for layouts, it often takes 5-10 seconds to finish building the workspace after every change before I can compile the application. Is this normal? Is there any way to speed this up? My computer is very fast so I feel like something strange must be going on. -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Launch camera app with an intent?
I can't find any intent which opens the camera. The closest I've found is ACTION_CAMERA_BUTTON but that breaks if the phone has no hardware button for the camera. Anyone know? -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Custom CheckBox ignoring scaleType?
I have a checkbox that I made, and I have replaced the android:button graphic with my own. It works fine except it stretches the image even though it's sized exactly the same as the checkbox. scaleType seems to be totally ignored as well. If I set the same graphic as the android:background, it looks fine. Any ideas? -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Prevent scaling of :button on checkbox?
I have a custom checkbox which I assign a custom resource to using the android:button attribute. My problem is that it scales it too large and seems to ignore android:scaleType. Does anyone know what's going on? -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en