[android-developers] Launch camera app with an intent?

2010-10-07 Thread Ozymandias
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

[android-developers] Eclipse XML building super slow?

2010-10-06 Thread Ozymandias
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.

[android-developers] getAlpha for ImageView

2010-08-03 Thread Ozymandias
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.c

[android-developers] Prevent scaling of :button on checkbox?

2010-04-30 Thread Ozymandias
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

[android-developers] Custom CheckBox ignoring scaleType?

2010-04-27 Thread Ozymandias
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 look

[android-developers] Re: skinning ImageButton and states?

2010-04-08 Thread Ozymandias
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: > &

[android-developers] skinning ImageButton and states?

2010-04-08 Thread Ozymandias
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? --

[android-developers] @id/myid namespace issues?

2010-04-07 Thread Ozymandias
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 @c

[android-developers] Tiled bitmap gets distorted?

2010-04-07 Thread Ozymandias
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 crea

[android-developers] Re: Can't get animations working.

2010-04-06 Thread Ozymandias
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"; > andro

[android-developers] Can't get animations working.

2010-04-05 Thread Ozymandias
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 whi

[android-developers] Re: what's the best 2d engine and what's the tools I need to create a game?

2010-03-30 Thread Ozymandias
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 t

[android-developers] Re: SMS

2010-03-24 Thread Ozymandias
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 tex

[android-developers] Re: Create replacement lock screen.

2010-03-19 Thread Ozymandias
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: > > Doe

[android-developers] Create replacement lock screen.

2010-03-19 Thread Ozymandias
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 t

[android-developers] Synchronize the UI thread with a GLSurfaceView's drawing?

2010-03-09 Thread Ozymandias
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

[android-developers] Hide a View in a HorizontalScrollView and not leave empty space?

2010-03-05 Thread Ozymandias
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. T

[android-developers] Write bitmap to data folder?

2010-03-05 Thread Ozymandias
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);

[android-developers] Re: RelativeLayout added using LayoutInflater and addView doesn't obey fill_parent?

2010-03-04 Thread Ozymandias
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 insi

[android-developers] RelativeLayout added using LayoutInflater and addView doesn't obey fill_parent?

2010-03-03 Thread Ozymandias
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_paren

[android-developers] Re: Display a View over a GLSurfaceView wihout stealing focus?

2010-03-03 Thread Ozymandias
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 > > s

[android-developers] Re: Display a View over a GLSurfaceView wihout stealing focus?

2010-03-02 Thread Ozymandias
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? > > >

[android-developers] Re: really easy question... but not for me =P

2010-03-02 Thread Ozymandias
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-developers] Display a View over a GLSurfaceView wihout stealing focus?

2010-03-02 Thread Ozymandias
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