[android-developers] Facebook public API

2009-09-24 Thread doubleslash
Hi all, I would like to create an app that uploads a pic to a person's wall on Facebook. Could some kind soul point me in the right direction? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group.

[android-developers] Re: why camera is rotated

2009-08-11 Thread doubleslash
Setting screenorientation does it for G1. On Aug 10, 11:43 pm, engin wrote: > Hi, I use google htc innovation and i am developing and apllication > which uses camera to take picture and capture video. in both cases  i > get rotated picture\video. > > On Aug 10, 9:42 pm, Dash125 wrote: > > > Hi,

[android-developers] Re: Accelerometer shake side-to-side detection issue

2009-08-02 Thread doubleslash
The shaking corresponds to a big jump in the 2nd derivative of the acceleration along the direction of interest. I don't know if onSensorChanged is called frequently enough to let you detect that blip though. On Jul 31, 12:44 pm, Alex Corbi wrote: > Hi everybody, > > I'm developing an app and i

[android-developers] Dialog cannot fill whole screen

2009-07-31 Thread doubleslash
My dialog shows a relativelayout, which is set to fill_parent in both width and height. However, it doesn't fill the whole screen. I tried settting the window flags to full screen but that didn't help either. Can someone tell me how to do this? --~--~-~--~~~---~--~~

[android-developers] Re: Relative Layout XML attributes have no obvious programmatic equivalent.

2009-07-30 Thread doubleslash
Have you tried addrule? On Jul 29, 4:47 pm, bpellow wrote: > Romain, > > Just like John and Pavel, I cannot figure out how to set some > RelativeLayout XML attributes programmatically in Java. > > For example, I cannot find a programmatic way to define > "layout_centerVertical=true" with only Ja

[android-developers] Re: How to Set Dialog Orientation

2009-07-29 Thread doubleslash
Come on guys. Help a fellow coder out. I've asked this question before and got no response. If it's impossible, just say so, so I don't waste time poring through endless documentation. Appreciate it. On Jul 28, 7:44 am, doubleslash wrote: > My underlying actitvity is set to la

[android-developers] How to Set Dialog Orientation

2009-07-28 Thread doubleslash
My underlying actitvity is set to landscape orientation, but when I show the dialog, I'd like it to be in portrait (vertical) orientation. I set the orientation in my layout to be vertical but that didn't help. The Dialog class doesn't have a method for such a thing. Can someone help? --~--~-

[android-developers] Save onDraw canvas

2009-07-24 Thread doubleslash
I want to to animation as follows. The first call of onDraw, I will draw the scene. Subsequent times, I want to translate the scene, by doing canvas.translate(dx, dy), but the canvas returned by onDraw is always blank. Thus, I have to redraw the whole scene again. public void onDraw(Canvas canvas

[android-developers] Re: How to Speed up Animation

2009-07-22 Thread doubleslash
ot necessarily > > represent those of T-Mobile USA, Inc. > > > On Jul 21, 9:57 pm, peeyush varshney > > wrote: > > > Hi, > > >       How to free the memory created by Animation. > > > > On Tue, Jul 21, 2009 at 10:25 PM, doubleslash > > wro

[android-developers] How to Speed up Animation

2009-07-21 Thread doubleslash
I have a static background image, and a foreground that needs to be animated. I tried a couple different approaches but the animation seemed choppy. One thing I did was having 2 different views, constantly calling invalidate() on the foreground view. Another was to have only 1 surfaceview, redraw

[android-developers] App doesn't run after update

2009-07-19 Thread doubleslash
I've been developing an app which uses the camera. It worked fine until I installed the laterst system update. I was running the app on my G1 when I saw an alert notifying of some system updates. I chose to install it, and then after that, my app doesn't run anymore. What is up? --~--~-~--

[android-developers] Re: Where to find native resources?

2009-07-11 Thread doubleslash
h. It'd be better if Google could show the images corresponding to the different annotations so we don't have to guess what they represent. Can someone please tell me how to access the shutter sound? R.raw is empty. Thanks On Jul 10, 10:34 pm, doubleslash wrote: > Hi, > Could someone pl

[android-developers] Where to find native resources?

2009-07-10 Thread doubleslash
Hi, Could someone please tell me how to access android's native resources? In particular, I would like to use the camera icon and shutter sound in my own app. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "And

[android-developers] Re: Dialog in wrong orientation

2009-06-30 Thread doubleslash
Bump..anyone? Is it possible to set a dialog's orientation? Thanks On Jun 28, 7:40 pm, doubleslash wrote: > I have analertdialogover an activity that is set in landscape mode. > Thus, thedialogis also displayed in landscape. How do I set it so > it's displayed in portrait

[android-developers] Dialog in wrong orientation

2009-06-28 Thread doubleslash
I have an alert dialog over an activity that is set in landscape mode. Thus, the dialog is also displayed in landscape. How do I set it so it's displayed in portrait instead? Note: the underlying activity has to be in landscape. Thanks --~--~-~--~~~---~--~~ You rece

[android-developers] Re: Permission denial after published

2009-06-15 Thread doubleslash
I changed my original package name to something more unique, and it worked. Check it out: 1Touch Ringer. It's simple but, hopefully useful. Thanks. On Jun 15, 3:42 pm, doubleslash wrote: > I have an app that sets the ringmode. Thus, I set the following in my > manifest: > >   &

[android-developers] Permission denial after published

2009-06-15 Thread doubleslash
I have an app that sets the ringmode. Thus, I set the following in my manifest: The app worked perfectly, so I published it. But after downloading from the market, it didn't work and LogCat showed a permission denial error. Did I ask for the wrong permission, or why wasn't it granted? Thanks

[android-developers] How to change Image of AppWidget button

2009-06-15 Thread doubleslash
I have a widget embedded in the home screen. To change the displayed image upon a click, I have tried the following to no avail: 1. mRemoteViews.setImageViewResource(R.id.button, R.drawable.sqyellow); 2. mRemoteViews.setInt(R.id.button, "setBackgroundResource",R.drawable.sqyellow); I also tried ch

[android-developers] graphics speciall effects

2009-06-11 Thread doubleslash
When you turn on the phone, after the G1 screen, there's a black screen with the word Android in blue, and a glossy shine running across it. Can you tell me how imitate that effect? Maybe point me in the right direction, like what classes to look at? Thanks --~--~-~--~~~---

[android-developers] Play native shutter sound

2009-06-09 Thread doubleslash
How do I play the native camera's shutter sound in my own app? --~--~-~--~~~---~--~~ 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: Accelerometer is cukoo???

2009-05-15 Thread doubleslash
This problem occurs only when activity is set explicitly to landscape in manifest. Anyway to make it work in landscape? Thanks On May 14, 10:16 pm, doubleslash wrote: > I see an acceleration of -9 in the y-direction ( due to gravity, of > course). Now, keeping the phone fixed, not rotati

[android-developers] Accelerometer is cukoo???

2009-05-14 Thread doubleslash
I see an acceleration of -9 in the y-direction ( due to gravity, of course). Now, keeping the phone fixed, not rotating the screen or anything, I interrupt the app my pressing the call button and then coming back, I see an acceleration of +9 in the x-direction. This switching of the coordinates ha

[android-developers] Screen/Activity orientation

2009-05-13 Thread doubleslash
Situation: I set my activity to be in landscape mode. In this activity, I move a box along the x direction, which is along the longer side of the phone due to being in landscape. When the activity is first started, everything works great--the x axis in my code corresponds to the expected x direct

[android-developers] Problem with SDK 1.5

2009-05-07 Thread doubleslash
I recently installed SDK 1.5 and updated the Eclipse adt to 0.9. I tried using the accelerometer sensor but kept getting an error when registerring the listener. My code is as follows: class myActivity extends Activity{ SensorManager sm = (SensorManager)getSystemService (Context.SENSOR_SERVICE)

[android-developers] How 2 improve Paint?

2009-04-17 Thread doubleslash
When I draw a tilted rectangle using Path, the lines seem grainy (broken, unintended). How can I make them look smooth like in a right- side up rectangle? I have something like this canvas.drawPath(rect, mypaint) //rect is a rotated rectangle I have set the anti-alias and stroke flags for mypaint.

[android-developers] Re: Repo Client init problem ubuntu 8.10

2009-03-11 Thread doubleslash
I have the same problem. I tried curl and verified indeed the whole python script was downloaded. I installed libreadline5-dev instead of lib32readline5.dev because my computer could not find the latter. I cannot initilize repo. Can someone help? On Jan 30, 5:15 am, Bernhard wrote: > Same Proble

[android-developers] Re: Renaming Pictures

2009-03-06 Thread doubleslash
I have tried to save an image using MediaStore just like you, but it causes a camera crash. I have to restart the phone to see the inserted image. If you can save a picture taken by the camera (inside onPictureCallback) , could you show me how? Thanks so much On Feb 12, 3:32 pm, ivan wrote: > I'