[android-developers] contextMenu for dialog

2009-06-19 Thread Mike Lanin
I've wrote, but have no answer. Is there any way to create context menu for items of dialog? --~--~-~--~~~---~--~~ 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] contextMenu and dialog

2009-06-19 Thread Mike Lanin
I've wrote, but have no answer. Is there any way to create context menu for items of dialog? --~--~-~--~~~---~--~~ 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] contextMenu for dialog

2009-06-18 Thread Mike Lanin
Hi! I use dialog with multipleChoiseItems. Is there any way to create context menu for list of the items? --~--~-~--~~~---~--~~ 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] make context menu dont disappear

2009-06-17 Thread Mike Lanin
When I click on item in context menu it immidiately disappears. How can I make context menu retain until I'll close it by back button? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: make context menu dont disappear

2009-06-17 Thread Mike Lanin
ok, I got it. just create dialog in onCreateContextMenu On 17 июн, 17:43, Mike Lanin mike.la...@gmail.com wrote: When I click on item in context menu it immidiately disappears. How can I make context menu retain until I'll close it by back button

[android-developers] how get the possition of View in ListView, that called onCreateContextMenu?

2009-06-17 Thread Mike Lanin
I have a ListView and to create context menu I need to know what view created the menu. The View parameter of onCreateContextMenu is always the same and equals the first view in ListView. Is there any way to get position or id of view that called onCreateContextMenu?

[android-developers] Re: ClassNotFoundException

2009-06-13 Thread Mike Lanin
Of course I included. No problems earlier. I've tried it on 1.0, 1.1 and 1.5 sdk and it never worked. On 12 июн, 08:47, iDeveloper ideveloper...@gmail.com wrote: Have you included the activity in your AndroidManifest file? On 11-Jun-09, at 10:01 PM, Mike Lanin wrote: I have a problem

[android-developers] ClassNotFoundException

2009-06-11 Thread Mike Lanin
I have a problem and cant realize a reason. I have ClassNotFoundException when starting Intent i = new Intent(EventInfo.this, AndricoMap.class); i.putExtra(address, address); startActivity(i); There are log and class below 06-11 22:07:32.556: ERROR/AndroidRuntime(413): Uncaught handler: thread

[android-developers] How to catch long keydown?

2009-06-10 Thread Mike Lanin
I've tried, but couldn't find anything. Is there any way to determine that the key is longpressed? --~--~-~--~~~---~--~~ 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] Re: How to get current time?

2009-06-09 Thread Mike Lanin
Thanks! I'll just use currentTimeMillis(). On 9 июн, 16:01, Mark Murphy mmur...@commonsware.com wrote: Jeff Sharkey wrote: So just a heads up that Android uses NITZ events provided by a carrier to properly set the system date and time.  Android also falls-back to network NTP automatically

[android-developers] Cant catch onItemClick when use checkBox in ListView

2009-06-09 Thread Mike Lanin
Hi, guys! I want to use ListView each Item of wich has checkBox. I want checkBox check and uncheck when I click it and some processes runing when I click on item, but not on the checkBox. I'm trying to use this layout as item: RelativeLayout xmlns:android=http://schemas.android.com/apk/res/

[android-developers] Strange behaviour of progress dialog

2009-06-09 Thread Mike Lanin
Hello, every one! My app gets some info from the internet and then puts it to database. While all these things work I show spining progress dialog. The problem is that when app works with db the dialog doesn't spin. It's not a great problem, but looks like app does nothing(in fact it works right

[android-developers] Re: how make the ListView be above the button

2009-06-01 Thread Mike Lanin
thanks, cool! On 1 июн, 01:26, Mark Murphy mmur...@commonsware.com wrote: Mike Lanin wrote: Can you give any example whele ListView and something else are shown on the screen together? ?xml version=1.0 encoding=utf-8? LinearLayout         xmlns:android=http://schemas.android.com/apk

[android-developers] problem with maps

2009-05-31 Thread Mike Lanin
Hi, guys! I want to use MapActivity in my app, but in the line mapView = (MapView) findViewById(R.id.mapView); the error cannot cast from View to mapView occurs. I also tried to copy Hello, mapView example, but it gives the same. Does anyone have the same problem?

[android-developers] Re: how convert bitmap to byte array?

2009-05-31 Thread Mike Lanin
thanks, it works On 29 май, 19:44, Romain Guy romain...@google.com wrote: Hi, Use Bitmap.compress() and store the bitmap in PNG. That's what the Home screen does. On Fri, May 29, 2009 at 5:08 AM, Mike Lanin mike.la...@gmail.com wrote: Hi, guys! I want to store pictures from

[android-developers] how make the ListView be above the button

2009-05-31 Thread Mike Lanin
I want to create layout like: __ | | |Here| | scrolls | | the | | ListView | | | | | |here is the | | button | | | But it shows me either only Button

[android-developers] Re: problem with maps

2009-05-31 Thread Mike Lanin
yes, I've added the uses-library android:name=com.google.android.maps/ line into manifest, but the error occurs in spite of it. On 31 май, 18:44, Mark Murphy mmur...@commonsware.com wrote: Mike Lanin wrote: Hi, guys! I want to use MapActivity in my app, but in the line mapView = (MapView

[android-developers] Re: problem with maps

2009-05-31 Thread Mike Lanin
=wrap_content android:layout_height=wrap_content android:layout_alignParentBottom=true android:layout_centerHorizontal=true/ /RelativeLayout On 31 май, 18:58, Mark Murphy mmur...@commonsware.com wrote: Mike Lanin wrote: yes, I've added the uses-library android:name

[android-developers] Re: problem with maps

2009-05-31 Thread Mike Lanin
I use 1.0 r2 sdk and Eclipse. On 31 май, 19:16, Mark Murphy mmur...@commonsware.com wrote: Mike Lanin wrote: I also can't even import com.google.android.maps.MapView. Layout: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android

[android-developers] Re: how make the ListView be above the button

2009-05-31 Thread Mike Lanin
It shows me only button on top and no ListView On 31 май, 19:00, Mark Murphy mmur...@commonsware.com wrote: Mike Lanin wrote: I want to create layout like: __ |                       | |        Here        | |       scrolls      | |         the         | |     ListView

[android-developers] Re: how make the ListView be above the button

2009-05-31 Thread Mike Lanin
/list, should help get it into place. Then in code, use a class which extends ListActivity, call setContentView(R.layout.my_layout), use findViewById to find the listView and set an adapter or something to populate it. On May 31, 3:48 pm, Mike Lanin mike.la...@gmail.com wrote: I want

[android-developers] how convert bitmap to byte array?

2009-05-29 Thread Mike Lanin
Hi, guys! I want to store pictures from the internet in my data base as byte arrays. I get the pictures as bitmaps, but can't find way to convert it to byte array. Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] help with onChildClickListener!!

2009-05-26 Thread Mike Lanin
Hi androids and people! I want to use ExpandedList in my app, and I need for catching clicks on child buttons. I'm trying use the code, written below, but it does nothing! Please, help me to slove this problem! this.list = (ExpandableListView) this.findViewById(android.R.id.list);

[android-developers] Change View in ListView if selected

2009-05-13 Thread Mike Lanin
Hi there! I'd like to create my ListView and make it's Views be changed while selected (or, clicked). How could I do it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this