[android-developers] Custom double-drawable button

2010-12-02 Thread Lukasz Mosdorf
Hi, Im working in a project, where very often I have to use a button containing two images and a text between them. The images and text are ment to be set only from xml. How to design my own component so that usage would look like this: MyOwnButton imageLeftSrc = @drawable/arow1 imageRightSrc =

[android-developers] Widget multiple sizes

2009-12-07 Thread Lukasz Mosdorf
I have noticed that when I install some widgets I can later choose from different widget sizes while adding widget. How can I implement that feature in my widget? regards Lukasz Mosdorf -- You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Multiple images using ACTION_VIEW

2009-11-13 Thread Lukasz Mosdorf
Hi, I have a folder on sd-card in which I keep photos edited in my application. Im trying to force deafult android image viewer to see all pictured in that folder. Unfortunately I am able to see only one picture. The next and previous arrows are disabled. The code i use to see only one picture:

[android-developers] Re: Launching share option in menu

2009-10-06 Thread Lukasz Mosdorf
)); but that still doesnt work :( Anyone can help? regards Lukasz Mosdorf On Oct 4, 2:21 am, Dianne Hackborn hack...@android.com wrote: Use Intent.setDataAndType(). Though the formal definition for this intent is that the data is in the stream extra: http://developer.android.com/reference/android

[android-developers] Re: Launching share option in menu

2009-10-03 Thread Lukasz Mosdorf
ask for its type. On Fri, Oct 2, 2009 at 4:06 PM, Lukasz Mosdorf lukasz.mosd...@gmail.comwrote: Hi I'm trying to make a 'share' option in menu, just like in the gallery application. I am using the following code:  MenuItem item2 = menu.add(0,0,0, Share);        item2

[android-developers] Re: Launching share option in menu

2009-10-03 Thread Lukasz Mosdorf
(intent,Share a picture or sth)); But it doesnt work with picasa application and for example twitdroid. Pictures shared from gallery works that way. What am i doing wrong? On 3 Paź, 11:03, Lukasz Mosdorf lukasz.mosd...@gmail.com wrote: ok, but, if I use intent.setType(image/*) it clears any data

[android-developers] Launching share option in menu

2009-10-02 Thread Lukasz Mosdorf
Hi I'm trying to make a 'share' option in menu, just like in the gallery application. I am using the following code: MenuItem item2 = menu.add(0,0,0, Share); item2.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { public boolean onMenuItemClick(MenuItem

[android-developers] Re: How to make translucent control just like 'zoom' in Pictures

2009-03-29 Thread Lukasz Mosdorf
Hi I guess that this would be sth like this: addContentView(_anotherLayer, new LayoutParams (LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); and _anotherLayer is for example an object which extends View. Then you need to draw transculent stuff on this layer.

[android-developers] android camera changing sensor orientation?

2009-03-12 Thread Lukasz Mosdorf
Hi all I am developing an application which uses a live camera preview. At the same activity I am using camera preview and sensors (accelerometers). After this activity is closed and entered again the sensors are flipped. It looks like the screen orientation changes(but it can’t be seen at