[android-developers] Re: ACTION_APPWIDGET_PICK , filtering the list

2009-12-09 Thread daniel.benedykt
Thank you Jeff

On Dec 8, 6:56 am, Jeff Sharkey jshar...@android.com wrote:
 The current API doesn't allow for filtering of that list, and that
 ACTION is the only method of binding.  A future API improvement might
 be to allow automatic binding of widgets if the certificates match
 between the requested provider and host.

 j

 On Thu, Nov 26, 2009 at 6:44 AM,daniel.benedykt





 daniel.bened...@gmail.com wrote:
  Hi

  I have my own widget container.
  I am running the intent 'ACTION_APPWIDGET_PICK'  but I want only to
  show some items in the list and not all items.
  Is there a way to filter the list?

  if not, is there any way to let the user just add one widget to my
  container, and not have to select form the list?

  Thanks

  Daniel

  --
  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

 --
 Jeff Sharkey
 jshar...@android.com

-- 
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] ACTION_APPWIDGET_PICK , filtering the list

2009-11-26 Thread daniel.benedykt
Hi

I have my own widget container.
I am running the intent 'ACTION_APPWIDGET_PICK'  but I want only to
show some items in the list and not all items.
Is there a way to filter the list?

if not, is there any way to let the user just add one widget to my
container, and not have to select form the list?

Thanks

Daniel

-- 
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: Read the GSM SIM Number on startup

2009-11-26 Thread daniel.benedykt
Hi

You need to use the class TelephonyManager

http://developer.android.com/reference/android/telephony/TelephonyManager.html

Depends on what exactly you want, you will need to call getSimOperator
() , getSimSerialNumber() , getLine1Number() or another method.

Hope that helps.

Daniel

On Nov 26, 12:11 pm, manoj manojkumar.m...@gmail.com wrote:
 Hi,
 I would like to know the GSM SIM number of the device once the mobile
 is switched on and write a call back once the sim number is got on
 startup. Can any one guide me on this.

 Thanks in Advance
 Manoj

-- 
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] ACTION_APPWIDGET_PICK intent. Where is the intent filter?

2009-11-26 Thread daniel.benedykt
Hi
I am looking in the android code (http://source.android.com/ )  when
I
run the intent ACTION_APPWIDGET_PICK , what code is executed.
Thanks
Daniel

-- 
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: How to release Drawable object from memory ?

2009-11-26 Thread daniel.benedykt
Hi

Probably you are having a memory leak

Read this article from google blog.

http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.html

Hope this helps,

Daniel

On Nov 26, 3:42 pm, Syl sylvain.guyoma...@altran.com wrote:
 In my application, user can click on a button and then he can select a
 picture from his gallery.
 This image is then displayed.

 However, when the user performs 3 or 4 times this operation, the
 following exception is thrown, due to memory allocation problem :

 11-26 18:31:34.119: ERROR/dalvikvm-heap(707): 6291456-byte external
 allocation too large for this process.
 11-26 18:31:34.119: ERROR/(707): VM won't let us allocate 6291456
 bytes
 11-26 18:31:34.119: DEBUG/skia(707): 
 allocPixelRef failed
 11-26 18:31:36.005: DEBUG/AndroidRuntime(707): Shutting down VM
 11-26 18:31:36.005: WARN/dalvikvm(707): threadid=3: thread exiting
 with uncaught exception (group=0x40013e28)
 11-26 18:31:36.005: ERROR/AndroidRuntime(707): Uncaught handler:
 thread main exiting due to uncaught exception
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):
 java.lang.OutOfMemoryError: bitmap size exceeds VM budget
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:304)
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 android.graphics.drawable.Drawable.createFromStream(Drawable.java:635)
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 com.altran.test.selectpicture.MainActivity.onActivityResult
 (MainActivity.java:74)
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 android.app.Activity.dispatchActivityResult(Activity.java:3415)
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 android.app.ActivityThread.deliverResults(ActivityThread.java:2835)
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 android.app.ActivityThread.handleSendResult(ActivityThread.java:2881)
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 android.app.ActivityThread.access$2300(ActivityThread.java:112)
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1608)
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 android.os.Handler.dispatchMessage(Handler.java:88)
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 android.os.Looper.loop(Looper.java:123)
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 android.app.ActivityThread.main(ActivityThread.java:3742)
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 java.lang.reflect.Method.invoke(Method.java:515)
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
 (ZygoteInit.java:739)
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
 11-26 18:31:36.099: ERROR/AndroidRuntime(707):     at
 dalvik.system.NativeStart.main(Native Method)

 Here a sample of my code where problem is focused :

 InputStream is = getContentResolver().openInputStream( currImageURI );
 Drawable drawable = Drawable.createFromStream( is, src );
 is.close();
 m_imageView.setBackgroundDrawable( drawable );

 Is it possible to force object (here the Drawable object) to be
 released from memory ?

 Thanks.

-- 
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: Android 1.6 SDK is here!

2009-09-18 Thread daniel.benedykt

yes, same question here.
where I can get the Image of 1.6 for the developer phone G1 ?

Thanks

Daniel

On Sep 17, 9:11 am, v1n roo...@gmail.com wrote:
 I can't seem to find the answer to the question below - Where is
 theADP1image?, assuming someone attended to it.

 Has anyone found the image and flashed it successfully to their
 developer phone?

 Thanks!

 On Sep 16, 6:35 am, Jason D. Clinton m...@jasonclinton.com wrote:



  On Sep 15, 5:22 pm, Xavier Ducrohet x...@android.com wrote:

  http://android-developers.blogspot.com/2009/09/android-16-sdk-is-here...

  Thank you. Where is theADP1image?
--~--~-~--~~~---~--~~
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] ViewTreeObserver addOnScrollChangedListener for HorizontalScrollView

2009-07-27 Thread daniel.benedykt

Hi

I am trying to detect the scrolling of a HorizontalScrollView.
So basically I do HorizontalScrollView..getViewTreeObserver
().addOnScrollChangedListener .

But when I scroll the event is not fired.

Does anyone know the anwser?

Thanks

Daniel


--~--~-~--~~~---~--~~
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] detect key event on HorizontalScrollView

2009-07-27 Thread daniel.benedykt

Hi

In my Activity I have a HorizontalScrollView.

I am trying to get the on key events for left and right from the
hardware.

So I put the following code:

horizontalScrollViewContainer.setOnKeyListener(new OnKeyListener() {

public boolean onKey(View v, int keyCode, KeyEvent 
event) {
Log.d(TAG, KEY= + keyCode);
return false;
}
});

This code is never executed.

Then I put the following code to try to catch the event for the
activity:

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
Log.d(TAG, onKeyDown);
return false;
}

BUT this event is only fired when the HorizontalScrollView  is at the
begining or at the end.
When the right key is pressed and the HorizontalScrollView  is moved
to the right, no event is fired.

Does anyone knows how to read the event?

Thanks

Daniel

--~--~-~--~~~---~--~~
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: ViewTreeObserver addOnScrollChangedListener for HorizontalScrollView

2009-07-27 Thread daniel.benedykt

Thanks Romain,

And any way to detect the Key down and Key up on a
HorizontalScrollview?
I tried with the following code but didnt work:


horizontalScrollViewContainer.setOnKeyListener(new OnKeyListener() {
public boolean onKey(View v, int keyCode,
KeyEvent event) {
Log.d(TAG, KEY= + keyCode);
return false;
}
});

Thanks

Daniel

On Jul 27, 8:17 pm, Romain Guy romain...@google.com wrote:
 That's not what the ViewTreeObserver is for. There is no listener on
 HorizontalScrollView to do what you want.

 On Mon, Jul 27, 2009 at 3:55 PM,





 daniel.benedyktdaniel.bened...@gmail.com wrote:

  Hi

  I am trying to detect the scrolling of a HorizontalScrollView.
  So basically I do HorizontalScrollView..getViewTreeObserver
  ().addOnScrollChangedListener .

  But when I scroll the event is not fired.

  Does anyone know the anwser?

  Thanks

  Daniel

 --
 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] java.lang.IllegalArgumentException at android.view.Surface.lockCanvasNative(Native Method)

2009-06-24 Thread daniel.benedykt

Hi

I am getting the following error on the app, and I dont see where I
can cause this on my code.
Anyone knows what it can be?
Thanks

Daniel


06-24 23:13:50.580: ERROR/AndroidRuntime(624): Uncaught handler:
thread main exiting due to uncaught exception
06-24 23:13:50.679: ERROR/AndroidRuntime(624):
java.lang.IllegalArgumentException
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
android.view.Surface.lockCanvasNative(Native Method)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
android.view.Surface.lockCanvas(Surface.java:196)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
android.view.ViewRoot.draw(ViewRoot.java:1175)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
android.view.ViewRoot.performTraversals(ViewRoot.java:1030)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1482)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
android.os.Handler.dispatchMessage(Handler.java:99)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
android.os.Looper.loop(Looper.java:123)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
android.app.ActivityThread.main(ActivityThread.java:3948)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
java.lang.reflect.Method.invokeNative(Native Method)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
java.lang.reflect.Method.invoke(Method.java:521)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
06-24 23:13:50.679: ERROR/AndroidRuntime(624): at
dalvik.system.NativeStart.main(Native Method)
06-24 23:13:50.718: INFO/Process(582): Sending signal. PID: 624 SIG: 3
06-24 23:13:50.718: INFO/dalvikvm(624): threadid=7: reacting to signal
3
06-24 23:13:50.740: ERROR/ActivityThread(582): Failed to find provider
info for android.server.checkin
06-24 23:13:50.740: ERROR/Checkin(582): Error reporting crash:
java.lang.IllegalArgumentException: Unknown URL 
content://android.server.checkin/crashes

--~--~-~--~~~---~--~~
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] animation for growing listview

2009-06-14 Thread daniel.benedykt

Hi

I want to do an animation so when a user presses a button a listview
changes its height (grows).
I know how to change the height of the listview to make it bigger, but
that its not 'animated'.

How can I make an animation that makes the listview grows?

Thanks

Daniel

--~--~-~--~~~---~--~~
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] background image for item on ListView

2009-06-09 Thread daniel.benedykt

Hi

I have a listview, and inside I have items.
Each item is a LinearLayout with many items inside. (texts , images,
etc)
So the LinearLayout has a background image so its looks very nice.
Also I set another image with list.setSelector() so the selection is
highlighted, and I set setDrawSelectorOnTop(false) so the selector is
on the back , and its not over the texts and images.

The problem is that the image from the LinearLayout is on top of the
selected image, so the item is never highlighted.

Where should I put the background so this doesn't happen?

Thanks

Daniel


--~--~-~--~~~---~--~~
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: PNG 24 with Gradient not showing correctly

2009-06-05 Thread daniel.benedykt

Thanks Romain, I will try this.
I watched your Google IO video. Its great. Lots of good tips :)

Thanks Again

Daniel

On Jun 5, 3:22 pm, Romain Guy romain...@google.com wrote:
 That's normal. Most phones have a 16 bits (or close) display. Your
 gradient is converted to the 565 format. To improve its appearance you
 can either turn on dithering on the Paint or pre-dither your image in
 Photoshop, etc.

 On Fri, Jun 5, 2009 at 11:14 AM,





 daniel.benedyktdaniel.bened...@gmail.com wrote:

  Hi

  I have a LinearLayout and I am setting a Background image.
  I am using a PNG24, and the image has a gradient in it.
  When I see the image on the computer the gradient is perfect, but when
  I see it on the emulator or on a real phone, some colors are lost and
  I see only like 10 colors, so I see lines and not a perfect gradient.
  Is the emulator 'compressing' the images?
  Should I make them in other format?

  Thanks

  Daniel

 --
 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] Toast without light up

2009-05-29 Thread daniel.benedykt

Hi

If I am running a service, and I want to sent a toast, the phone
lights up.
Is there a way to show the Toast without turning on the light?

Thanks

Daniel
--~--~-~--~~~---~--~~
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] blocking click and focus on layout and on all children

2009-05-26 Thread daniel.benedykt

Hi

I was wondering if its possible to block the onclick events on a
layout and all the children inside the layout.

for example, I have a LinearLayout and inside that I have buttons and
an editText.
At a certain point I don't want the user to click on the buttons or
edit the text.
Is there a way to block that?
Do I have to do it for each view? or I can do it for a Layout?
What is the best way to do this?

Thanks

Daniel
--~--~-~--~~~---~--~~
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: WebView in the 1.5 SDK

2009-05-11 Thread daniel.benedykt

I am having the same problem on 1.5
Does anyone have a solution for this?

Thanks

Daniel

On Apr 28, 2:29 pm, Kenn Min Chong kmch...@gomez.com wrote:
 Hi Richard!
    I'm getting this same issue too. Prior to1.5, theWebViewobject
 will display the page within the same view. Now with1.5, for some
 sites, the app will open up a new view and basically open the page
 there instead. Pressing the back button will move the view back to
 the main app view. Is there a way to have it display on the main app
 view/window everytime?

 Kenn.

 On Apr 22, 12:50 pm, jarkman jark...@gmail.com wrote:

  That's a relief - thanks!

  Do you know anything about changes inwebViewfor1.5which might
  explain the non-appearance of the content ?

  Thanks,

  Richard

  On Apr 22, 5:13 pm, Mike Hearn mh.in.engl...@gmail.com wrote:

   It's not deprecated, it's a bug in the droiddoc tool - deprecating a
   class marks all its subclasses as deprecated too, which doesn't make
   sense. I fixed this bug in the public tree some months ago, but it
   appears the fix did not propagate to Googles internal tree.

   Ignore it.WebViewis not deprecated.

   On Apr 22, 5:01 pm, jarkman jark...@gmail.com wrote:

We're porting our apps to the1.5preview SDK. That has mostly been
prettty painless, but we do have aWebViewwhich is not showing any
content, for reasons which are currently unknown.

Looking in the1.5SDK docs, I see thatWebViewis deprecated. The
recommendation there is to use a FrameLayout, RelativeLayout, or a
custom layout instead.

I don't understand that recommendation, since FrameLayout and
RelativeLayout don't do the thing thatWebViewdoes best - showing a
bunch of HTML content pulled down from our server at runtime.

So, what am I missing ? CanWebViewreally be simulated with a
FrameLayout ?

Thanks,

Richard


--~--~-~--~~~---~--~~
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] UTF 8 show chars on screen

2009-05-10 Thread daniel.benedykt

Hi

I have a string in UTF 8 and I want it to show it on the screen.
When I have 'special' chars like from Indian, Arabic, Hebrew ,etc.
chars I see squares on the screen and not the real characters.
Is there any way to show the characters?

Thanks

Daniel
--~--~-~--~~~---~--~~
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: Question about animation

2009-04-18 Thread daniel.benedykt

Hi Mike,

I am having the same issue here. I try a lot of things and nothing
worked.
Does anyone have the answer to this?

Thanks

Daniel

On Apr 16, 11:34 pm, Mike Baroukh m...@baroukh.com wrote:
 Hi.

 Hi have an absolute layout with pictures.
 Only 2 pictures are show simultaneously. Others are on the layout, but
 out of view.

 I wan't on user click to show others picture.
 For this, I do an animation to translate the layer.

 For translation from right to left, it works correctly : an other
 picture come from right progressively while another exit on left side.

 But, for translation from left to right, it don't work : the right
 picture exits correctly on right side, but left picture only appear on
 left side at the end of the animation.
 while translating, an empty space appear on left until the end of
 translation.

 For translating, I make my own animation (not taken from XML because it
 depends on image size) :

         scrollLeft = new TranslateAnimation(0, -(pictoWidth+hspace), 0, 0);
         scrollLeft.setDuration(300);
         scrollLeft.setAnimationListener(this);
         scrollRight = new TranslateAnimation(0, (pictoWidth+hspace), 0, 0);
         scrollRight.setDuration(300);
         scrollRight.setAnimationListener(this);

 then, for translating, I do :
     layout.startAnimation(scrollRight);

 (I join the widget source in case somebody is interesting on doing the
 same thing ...)

 Does somebody have any idea how tohave the same effect on left to right
 scroll than right to left ?

 Thanks in advance.

 Mike

 PS: I can't use filpper because I have to picture visible at the same
 time and only one disappear at a time.
 It ould be possible but more complicated I thing ...

  MbaFlipper.java
 3KViewDownload
--~--~-~--~~~---~--~~
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: Question about animation

2009-04-18 Thread daniel.benedykt

Hi Mike

Actually I just got the solution :)
I was having this problem for a couple of days but just solved it.

Here is the solution:


When you want to animate from left to write do this:

absoluteLayout.post(new SwapViewsDifferent());

then you have a inner class:

private final class SwapViewsDifferent implements Runnable {

public void run() {
//first it scrolls, so android see the screen.
absoluteLayout.scrollBy(screenWidth * -1, 0);
//then the animation a little different from
yours. compare the values
Animation animation = new 
TranslateAnimation(Animation.ABSOLUTE,
-screenWidth, Animation.ABSOLUTE, 0, 
Animation.ABSOLUTE, 0,
Animation.ABSOLUTE, 0);
animation.setDuration(500);
animation.setFillAfter(false);
absoluteLayout.startAnimation(animation);
}
};


Hope this helps...

Daniel


On Apr 18, 12:18 pm, daniel.benedykt daniel.bened...@gmail.com
wrote:
 Hi Mike,

 I am having the same issue here. I try a lot of things and nothing
 worked.
 Does anyone have the answer to this?

 Thanks

 Daniel

 On Apr 16, 11:34 pm, Mike Baroukh m...@baroukh.com wrote:

  Hi.

  Hi have an absolute layout with pictures.
  Only 2 pictures are show simultaneously. Others are on the layout, but
  out of view.

  I wan't on user click to show others picture.
  For this, I do an animation to translate the layer.

  For translation from right to left, it works correctly : an other
  picture come from right progressively while another exit on left side.

  But, for translation from left to right, it don't work : the right
  picture exits correctly on right side, but left picture only appear on
  left side at the end of the animation.
  while translating, an empty space appear on left until the end of
  translation.

  For translating, I make my own animation (not taken from XML because it
  depends on image size) :

          scrollLeft = new TranslateAnimation(0, -(pictoWidth+hspace), 0, 0);
          scrollLeft.setDuration(300);
          scrollLeft.setAnimationListener(this);
          scrollRight = new TranslateAnimation(0, (pictoWidth+hspace), 0, 0);
          scrollRight.setDuration(300);
          scrollRight.setAnimationListener(this);

  then, for translating, I do :
      layout.startAnimation(scrollRight);

  (I join the widget source in case somebody is interesting on doing the
  same thing ...)

  Does somebody have any idea how tohave the same effect on left to right
  scroll than right to left ?

  Thanks in advance.

  Mike

  PS: I can't use filpper because I have to picture visible at the same
  time and only one disappear at a time.
  It ould be possible but more complicated I thing ...

   MbaFlipper.java
  3KViewDownload


--~--~-~--~~~---~--~~
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] database backup

2009-04-06 Thread daniel.benedykt

Hi

Is there a way to backup the database in case of hard reset?

Does the user have access to the folder /data/data/appname/database ?

Thanks

Daniel
--~--~-~--~~~---~--~~
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: Books on Android development?

2009-04-06 Thread daniel.benedykt

Hi

I think the best one is Professional Android application development
(wrox).
Also there are new book coming at the end of April, but I dont know if
they are good or not because they haven't been published yet :)

Daniel


On Apr 6, 2:40 pm, jkk251 jkk...@gmail.com wrote:
 The documentation on Google's websites is great, but it would also be
 great to have a text to carry around.

 Are there any *good* books on progrmming in Android yet?

 Thanks,
 Jim
--~--~-~--~~~---~--~~
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] backup database

2009-03-23 Thread daniel.benedykt

Hi

Is there a standard way to backup the database of my app.
I know I can write data to a file from the DB and restore it at any
time with my code, but what happens if for some reason the user loose
all the data on the phone. Is there a way to make a backup to a
computer?

Thanks

Daniel
--~--~-~--~~~---~--~~
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: backup database

2009-03-23 Thread daniel.benedykt

Thanks Mark.
ok, transfer to some other place is a good idea.

Is there any way to Sync files or XML with Google SYNC from the phone?

Thanks

On Mar 23, 6:28 pm, Mark Murphy mmur...@commonsware.com wrote:
 daniel.benedyktwrote:
  Is there a standard way to backup the database of my app.

 Standard? No.

  I know I can write data to a file from the DB and restore it at any
  time with my code, but what happens if for some reason the user loose
  all the data on the phone. Is there a way to make a backup to a
  computer?

 You should have access to the database file, so you can transfer it via
 whatever mechanism you like (e.g., HTTP) to whatever destination you can
 reach via the Internet. I would make sure you do not have any active
 SQLiteDatabase objects referencing it, though.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Warescription: Three Android Books, Plus Updates, $35/Year
--~--~-~--~~~---~--~~
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] roadmap

2009-03-18 Thread daniel.benedykt

Hi

Is the roadmap at http://source.android.com/roadmap updated constantly
or now is kind of old?
Is there any place to see the future releases?

Thanks

Daniel
--~--~-~--~~~---~--~~
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] spinner or similar selection with no selection by default

2009-03-17 Thread daniel.benedykt

Hi

Is there a way to show a spinner or something similar with no selection
(empty or text saying (no selection)) but when the user clicks on the
spinner that item is not there anymore?

Basically yo start I wanted to be empty and I have a label that says
go to:  and a spinner with options: a, b,c
If I have an empty option, it will show on the spinner list, so its
not good.
If I remove that empty option, by default the spinner will be on
option a.

I tried to set the onclick event so I could remove the first item from
the list before showing it but it throws an exception.

Do I have to do a complete custom view for this or there is another
way around?

Thanks

Daniel
--~--~-~--~~~---~--~~
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: Re-register AlarmManager events on upgrades

2009-03-17 Thread daniel.benedykt

Hi

I have the same problem.
As far as I know the only way is to set a Service to start after the
installation is done. Maybe you can put a service that runs once (not
really a service hehe) that it will be initiated after the
installation is complete, set up the alarms and end the service.

Other thing you can do is to react to the
android.permission.RECEIVE_BOOT_COMPLETED so next time the user
reboots the phone you can re-register the alarms.

Hope it helps.

Daniel


On Mar 17, 7:27 pm, Michael Bollmann michael.bollm...@googlemail.com
wrote:
 I read that the AlarmManager looses all registered intents if case the
 application
 that registered those intents is upgraded.

 What is the correct approach to re-register those intents considering
 the user
 does NOT start the application after upgrading 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] new version of app - does it show on new content?

2009-03-12 Thread daniel.benedykt

Hi

I have an application on the market.
If I upload an update, does it show on the new content section?

If no, why I am seeing other apps with versions like 1.3.3 showing on
the new content with no rating?
Did the remove the app and put it back again?

Thanks

Daniel
--~--~-~--~~~---~--~~
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: 639,000 Android-based Phones Sold in 4th Quarter

2009-03-12 Thread daniel.benedykt

great info. Thanks.

Now we have to wait for 1st Quarter 2009.



On Mar 12, 4:17 pm, Steve Ingram steveing...@gmail.com wrote:
 Please pardon the off topic posting, but I think all developers will
 want to see this information.

 Many of us have been trying to figure out how many Android phones have
 been sold.  The following link breaks down some of the numbers for
 mobile phone sales in 2008 (source:Gartner).  It is estimated that T-
 Mobile sold 639,000 in 4th Quarter of 2008.

 http://blogs.eweek.com/applewatch/content/iphone/apple_smartphone_ran...
--~--~-~--~~~---~--~~
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] new version of app - is the user notified?

2009-03-12 Thread daniel.benedykt

Hi

If I upload a new version of the application.
Does the user knows that there is a new version of the app?

Thanks

Daniel
--~--~-~--~~~---~--~~
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] comments on market

2009-03-09 Thread daniel.benedykt

Hi

Is there a way to see all the comments I have received for an
application from the Market (without having to use the phone) ?

Thanks

Daniel

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---