[android-developers] Does Spinner support multiple view types for its rows?

2011-05-22 Thread Shri
I have my own sub-class of BaseAdapter. I use Spinner#setAdapter to set the adapter to my sub-class. However, #getViewTypeCount and #getItemViewType do not get called. I see that Spinner#DropDownAdapter delegate most calls to the injected adapter, except for #getViewTypeCount and #getItemViewType.

[android-developers] How to send Widget cfg activity's user value to widget

2011-05-22 Thread Perry168
Hi, I completed the Widget CFG activity and widget. But I don't know to send the value to widget. At the CFG activity, user can select 1, 2 or 3 value. The widget will following the value to running the different case. Thanks for help!. -- You received this message because you are subscribed to

Re: [android-developers] Socket on Android Mobile

2011-05-22 Thread Saurav
your mobile and your pc server should be connected to the same lan or wlan. if u have a global address, then u can connect to ur pc server using Internet. Regards, Saurav Mukherjee. On Sun, May 22, 2011 at 5:20 AM, ingy abbas ingy.abba...@gmail.com wrote: what if i want to connect my

Re: [android-developers] Re: Context LocationManager

2011-05-22 Thread Kostya Vasilyev
22.05.2011 8:38, cellurl пишет: I want to create a library that people link to. It tells them when the speedlimit changes. I have it all working, just not the library part. It would have methods like: SpeedlimitListener(); requestSpeedlimitChanges( speedlimitListener ); Maybe:

[android-developers] Alarm and onReceive in library?

2011-05-22 Thread Simon Platten
I have created an Android library which has a layout in it and several classes, one of which is an activity. In my main project I create an activity which is derived from the activity class in my project. When my base activity is done with it sets-up an alarm via the AlarmManager, this is all

Re: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Kumar Bibek
Does the Logcat say anything? Just log a few messages and it would be clear whats going wrong. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sun, May 22, 2011 at 2:15 PM, Simon Platten simonaplat...@googlemail.com wrote: I have created an Android library which has a

Re: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Simon Platten
Thanks for the response, I've just taken a look at the LogCat whilst running in debug, unfortunately they're is nothing being shown there at all. On Sun, May 22, 2011 at 9:48 AM, Kumar Bibek coomar@gmail.com wrote: Does the Logcat say anything? Just log a few messages and it would be clear

Re: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Simon Platten
Just a thought, could it be the receiver statement in the XML manifest? It currently reads: receiver android:process=:remote android:name=myReciever/ myReciever is actually a class in my library which is in a different package, I'm not sure I have to change anything to reflect this. On Sun,

Re: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Kumar Bibek
Have you declared the receiver in the manifest of your project? Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sun, May 22, 2011 at 2:28 PM, Simon Platten simonaplat...@googlemail.com wrote: Just a thought, could it be the receiver statement in the XML manifest? It

Re: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Nikolay Elenkov
On Sun, May 22, 2011 at 5:58 PM, Simon Platten simonaplat...@googlemail.com wrote: Just a thought, could it be the receiver statement in the XML manifest? It currently reads: receiver android:process=:remote android:name=myReciever/ myReciever is actually a class in my library which is in a

Re: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Simon Platten
This is how its declared in the project manifest: receiver android:process=:remote android:name=myReciever/ On Sun, May 22, 2011 at 10:02 AM, Kumar Bibek coomar@gmail.com wrote: Have you declared the receiver in the manifest of your project? Kumar Bibek http://techdroid.kbeanie.com

Re: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Simon Platten
I've also tried (In the project manifest): receiver android:process=:remote android:name=packageReference.myReciever/ Where the packageReference is the actual package library package name, but this hasn't solved it either. On Sun, May 22, 2011 at 10:34 AM, Nikolay Elenkov

[android-developers] Re: IllegalArgumentException: parameter must be a descendant of this view related issue

2011-05-22 Thread J. S. Allen
Not sure if this helps, but I had the issue under Donut as well and resolved it by removing the theme I'd chosen for the application. For some reason, Android was having a fit trying to hide the title bar and display a dialog at the same time... This was the offending code:

Re: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Mark Murphy
Step #1: Get rid of android:process=:remote. Step #2: Double-check your LogCat. If AlarmManager (or anything) tries to broadcast an Intent that cannot be resolved, a message is logged (at warning level, IIRC). If you see it, it may help you narrow down where you are going wrong. If you do not see

Re: [android-developers] How to send Widget cfg activity's user value to widget

2011-05-22 Thread Mark Murphy
Step #1: Persist the data (e.g., as a SharedPreference) Step #2: Update the app widget using AppWidgetManager and a RemoteViews object, the same as you do in the onUpdate() method of your AppWidgetProvider On Sun, May 22, 2011 at 3:18 AM, Perry168 perry...@netvigator.com wrote: Hi, I completed

Re: [android-developers] Alarm and onReceive in library?

2011-05-22 Thread Simon Platten
Mark, Thank you for the response. I think I got carried away with the idea of the fault being in the library, rather embarrassingly, the fault was in the class and was raising an exception I hadn't caught. I have fixed that and it now works. Thank you everyone for your suggestions. Regards,

[android-developers] Re: How to send Widget cfg activity's user value to widget

2011-05-22 Thread Perry168
Hi Mark, Thanks a again. Because I haven't using this command as before, so I had a problem. Does the sharedPreferences.getInt(INT,VALUE) use in the onUpdate too? On 5月22日, 下午6時57分, Mark Murphy mmur...@commonsware.com wrote: Step #1: Persist the data (e.g., as a SharedPreference) Step #2:

Re: [android-developers] Re: How to send Widget cfg activity's user value to widget

2011-05-22 Thread Mark Murphy
2011/5/22 Perry168 perry...@netvigator.com: Thanks a again. Because I haven't using this command as before, so I had a problem. Does the sharedPreferences.getInt(INT,VALUE) use in  the onUpdate too? If that is where you are storing the data, then presumably yes. -- Mark Murphy (a Commons

[android-developers] Re: P2P on NFC

2011-05-22 Thread JMC114
An android device establishes a P2P connection over the NPP (NDEF Push Protocol) by Google, which is an openly specified protocol: http://source.android.com/compatibility/ndef-push-protocol.pdf NPP is a protocol on top of LLCP, which is a protocol on top of NFCIP-1, so you'd need to have those

[android-developers] Re: Context LocationManager

2011-05-22 Thread cellurl
Context is a good idea too. Thanks -cellurl On May 22, 3:08 am, Kostya Vasilyev kmans...@gmail.com wrote: 22.05.2011 8:38, cellurl пишет: I want to create a library that people link to. It tells them when the speedlimit changes. I have it all working, just not the library part. It

[android-developers] Re: Context LocationManager

2011-05-22 Thread cellurl
How do I make speedlimitListener call back onSpeedLimitChanged() ? Thanks for helping! -cellurl -- SpeedlimitListener speedlimitListener; speedlimitListener = new SpeedlimitListener() { public void onSpeedLimitChanged(String speedlimit) {}

[android-developers] Accessory Development Kit

2011-05-22 Thread Ryan Loebs
Hey all, I was one of the lucky folks to get one of the ADK's at Google I/O but I am unable to use it on my HTC EVO for lack of an official Google update to 2.3.4. I've loaded the latest version of Cyanogenmod which is sporting 2.3.4 code but the AOSP version is missing the critical framework

[android-developers] Re: Stack overflow

2011-05-22 Thread DanH
This morning (Sunday) there were 100 new questions per hour appearing on Stack Overflow. The key to getting your question picked out of the masses and answered is a well-phrased title, a well-phrased question body with sufficient info to understand the issues, and a good choice of tags (though

Re: [android-developers] Re: Context LocationManager

2011-05-22 Thread Kostya Vasilyev
The callback method: 22.05.2011 17:58, cellurl ?: public void onSpeedLimitChanged(String speedlimit) {} Need to be moved up to the interface: public *interface *SpeedlimitListener { *public void onSpeedLimitChanged(String speedlimit) {}* } So it can be called from your manager

Re: [android-developers] Re: Context LocationManager

2011-05-22 Thread Kostya Vasilyev
Um, forgot to remove the method body. Like this: 22.05.2011 18:30, Kostya Vasilyev ?: public *interface *SpeedlimitListener { *public void onSpeedLimitChanged(String speedlimit); // no curly braces here* } -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this

[android-developers] Re: Context LocationManager

2011-05-22 Thread cellurl
worked great. Thanks TreKing y Kostya -cellurl -- 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] Re: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Gabriel Simões
Please, Any idea here would be of great help, thanks On May 21, 9:49 pm, Gabriel Simões gsim...@gmail.com wrote: Hello, I´ve been searching on the web and here for information but couldn´t find anything related to this problem so I hope you can help me. I´m retrieving information from 2

[android-developers] Re: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Gabriel Simões
Please, any idea/tip will be of great help! I´m stuck on this one. Tnx, Gabriel Simões On May 21, 9:49 pm, Gabriel Simões gsim...@gmail.com wrote: Hello, I´ve been searching on the web and here for information but couldn´t find anything related to this problem so I hope you can help me. I´m

Re: [android-developers] Re: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Kostya Vasilyev
You don't have to use Cursor with an expandable list view or any adapter view. Do your own filtering and create an in-memory array of just the albums you need, then change your adapter code to get data from this array, instead of a cursor. Perhaps there is a better way, but I can't think of

[android-developers] ERROR: Unable to open class file C:

2011-05-22 Thread J Handal
Hi After installing 3.1 and updated tools,clean is delating gen file . I tried changing gen-property-derivated uncheck. And clean don't delete gen file,so far OK. At launching time project error stops the show. I change the gen property back to derivated checked on only at launching time and

[android-developers] clean is deleting gen file.

2011-05-22 Thread J Handal
Hi After installing 3.1 and updated tools,clean is delating gen file . I tried changing gen-property-derivated uncheck. And clean don't delete gen file,so far OK. At launching time Error stops the show. I change the gen property back to derivated checked on only at launching time and repeat

[android-developers] Re: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Gabriel Simões
Thanks for the reply Kostya, I think that querying info from 2 different URIs, merging them programatically and then converting them to arrays before displaying the listview won't probably be pretty efficient. Maybe this is the only solution but I still think there should be a way of: - Querying

Re: [android-developers] Re: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Kostya Vasilyev
22.05.2011 20:30, Gabriel Simões пишет: - Querying the information with the relationships I need (query only albums with mp3 files inside) If you can do this with ContentResolver.query, that would be an great solution. I am just assuming you can't do this, hence the question. AFAIK, you

[android-developers] Fragments duplicated on config change

2011-05-22 Thread Dave Johnston
I'm encountering a peculiar issue with the user of FragmentActivity. In my test app, my FragmentActivity's onCreate method calls setContentView, which inflates a simple layout consisting of a single Fragment. However, I'm finding that when the device is rotated, this process causes additional

[android-developers] Re: Fragments duplicated on config change

2011-05-22 Thread Dave Johnston
As is typical, noticed the r2 release of the compatibility library right after I posted this! That has fixed the duplication issue, however I'm still wondering why each fragment instance inflated from setContentView gets calls to onStart(), onStop(), then onStart() again? Shouldn't there be only

[android-developers] Re: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Gabriel Simões
that´s the problem. This way I can´t retrieve only he albums with at least one .mp3 song. My second approach was to find a way to block the displaying of some entries creating a custom adapter but while I can change the information I couldn´t find a way to not display full entries. On May 22,

Re: [android-developers] Re: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Kostya Vasilyev
22.05.2011 21:13, Gabriel Simões пишет: that´s the problem. This way I can´t retrieve only he albums with at least one .mp3 song. My second approach was to find a way to block the displaying of some entries creating a custom adapter but while I can change the information I couldn´t find a way to

[android-developers] correction in API demos in SDK//OS//Morse Code

2011-05-22 Thread Spooky
Just FYIthere is an error in the Morse Code sample for the API demos in the sample code, at least in Android-7. U is listed as DIT DIT DAH. This is correct. V is also listed as DIT DIT DAH. This is not correct. V is DIT DIT DIT DAH. :-) Later, --jim -- 73 DE N5IAL/4 Web site:

Re: [android-developers] Re: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Kostya Vasilyev
22.05.2011 21:13, Gabriel Simões пишет: My second approach was to find a way to block the displaying of some entries creating a custom adapter but while I can change the information I couldn´t find a way to not display full entries. Ok, here is how you could do filtering on the fly. Assume

[android-developers] Re: ERROR: Unable to open class file C:

2011-05-22 Thread DanH
Probably the blank after C:. On May 22, 10:45 am, J Handal jhand...@gmail.com wrote: Hi After installing 3.1 and updated tools,clean is delating gen file . I tried changing gen-property-derivated uncheck. And clean don't delete gen file,so far OK. At launching time project error stops

[android-developers] Soft keyboard 'Done' button

2011-05-22 Thread Neilz
Hi all. I'm attempting to add the 'Done' button to the soft keyboard, when an EditText is activated. I use: android:imeOptions=actionDone (in the XML) and... input.setImeOptions(EditorInfo.IME_ACTION_DONE); (in the code) However, I am seeing no difference to the standard keyboard. I read

[android-developers] Re: Soft keyboard 'Done' button

2011-05-22 Thread Nicholas Johnson
Are you having problems with the implementation? Make sure to put an OnEditorActionListener in your EditText and screen for the IME_ACTION_GO action ID. Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] ActionBar forward compatibility

2011-05-22 Thread Brill Pappin
I working on an app were we want to use the ActionBar in devices that can support it. Best way I can think of to handle it at this time is to add a config resource tagged with v11 however I don't want to have to update the app every time the sdk version changes and add a duplicate resource

Re: [android-developers] ActionBar forward compatibility

2011-05-22 Thread Mark Murphy
On Sun, May 22, 2011 at 7:39 PM, Brill Pappin bpap...@sixgreen.com wrote: I working on an app were we want to use the ActionBar in devices that can support it. Best way I can think of to handle it at this time is to add a config resource tagged with v11 however I don't want to have to update

[android-developers] Connecting to https server from java

2011-05-22 Thread dashman
I'm trying to connect to a server via https and am getting invalid server certificate. how do i solve this. -- 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

[android-developers] Re: Connecting to https server from java

2011-05-22 Thread Nicholas Johnson
Contact a server with a valid certificate? So far, it's not sounding like a problem with your client (Android) app. Nick -- 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: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Gabriel Simões
Thanks once again Kostya, I came up with a cleaner solution that still has one thing left to work: Instead of using Media.Audio.Album I got to using only Media.Audio.Media. It works as expected but the lack of the _id column now is giving my a big headache when loading the Adapter. I tried to

[android-developers] Re: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Gabriel Simões
a little hack: added MediaStore.Audio.Media.ALBUM_KEY + as '_id' and now it seems to work On May 22, 9:54 pm, Gabriel Simões gsim...@gmail.com wrote: Thanks once again Kostya, I came up with a cleaner solution that still has one thing left to work: Instead of using Media.Audio.Album

[android-developers] Re: ActionBar forward compatibility

2011-05-22 Thread Zsolt Vasvari
This document is your friend. It explains in great detail what the various suffices (including -v) mean: http://developer.android.com/guide/topics/resources/providing-resources.html On May 23, 7:39 am, Brill Pappin bpap...@sixgreen.com wrote: I working on an app were we want to use the

[android-developers] Purchases stuck again in Google Checkout

2011-05-22 Thread Zsolt Vasvari
Seems to have started happening again. 3 of my purchases from yesterday are still not Completed and half of mine from today That means that Google is holding my money. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Debugging Killed Activity

2011-05-22 Thread Kevin
I have an activity that launches the built in camera activity to capture a picture. My activity is often killed while the camera is running, so I'm using onSaveInstanceState and onRestoreInstanceState to save field values. Anyway, it crashes while restoring the state, but when it's killed the

[android-developers] Re: Debugging Killed Activity

2011-05-22 Thread Zsolt Vasvari
Log.v() is your friend. I tend to use it more than the debugger since half the time I change any xml, my app crashes due to the Eclipse plug- in problem. Since it's so useful, I went back to the primitive way of debugging unless I really can't figure out what's going on. On May 23, 9:46 am,

[android-developers] Re: Filter specific data from cursor before ListView. How?

2011-05-22 Thread Zsolt Vasvari
I wouldn't call that a hack if you know that ALBUM_KEY will be unique. But I suspect it may not be, as why would they have both an ALBUM_ID and an ALBUM_KEY? The DISTINCT should never be needed if you were truly retrieving a unique key, as a key is distinct by definition. Something doesn't seem

[android-developers] choppy game

2011-05-22 Thread bob
I used a Java Timer object and a TimerTask like this for some game physics if (!timergoing) { PhysicsTask physicsTask = new PhysicsTask(); Timer tm = new Timer(); tm.scheduleAtFixedRate(physicsTask, 1000, (long)

[android-developers] Re: choppy game

2011-05-22 Thread Zsolt Vasvari
You telling me from the 2 lines of code you posted, that it's not obvious to you what's wrong? Even a blind could see the issue... On May 23, 10:06 am, bob b...@coolgroups.com wrote: I used a Java Timer object and a TimerTask like this for some game physics                 if (!timergoing)  

[android-developers] Re: Connecting to https server from java

2011-05-22 Thread DanH
Assuming the server is legitimate, you basically see this problem because the certificate presented by the HTTPS server doesn't have a certificate chain that can be verified against one of the root certificates on the phone. It may be possible to download and install a new (additional) root

[android-developers] Re: Fragment Support forward compatibility?

2011-05-22 Thread theSmith
Did the recent update to the ACL fix the issues with aminations? -theSmith On Apr 15, 4:50 am, alevapi alexis.vapil...@gmail.com wrote: in the current static library animations are broken. I have a fix that will be available in a later update When do you think the fixed version will be

[android-developers] Re: Save to SD

2011-05-22 Thread kypriakos
First, good to hear from you Mark - I hope all is well! Well I expected the two (instead of three) letter response - I ended up playing around with the code (which is nothing other than using the FileOutputStream to write out the jpeg. I found out that if I replace the println statements (I was

[android-developers] Input transport and input dispatcher error on 2.3

2011-05-22 Thread wang
Hi, I run into many applications in the Android 2.3, but when every time I perform to a certain program, the following error sometimes occurs: 05-20 16:43:57.714 E/InputTransport( 102): channel '40540858 com.android.test/com.abdroid.test.Test1 (server)' publisher ~ Error -1 pinning ashmem fd 0.

[android-developers] icons: getting conflicting information

2011-05-22 Thread Spooky
First, I've been advised (building an app for Android 1.5 and up) to stay away from res/drawables-?dpi and just use res/drawables ... then, I read that the right way IS to use res/drawables-?dpi.Which is right? Second, the SDK samples all use android.R.drawable.* ... and yet, the reference

[android-developers] Re: Input transport and input dispatcher error on 2.3

2011-05-22 Thread wang
this is the next Log 05-20 16:43:57.714 I/WindowManager( 102): WINDOW DIED Window{40540858 com.android.test/com.abdroid.test.Test1 paused=false} On May 23, 11:41 am, wang svnzk...@gmail.com wrote: Hi, I run into many applications in the Android 2.3, but when every time I perform to a

[android-developers] Re: Save to SD

2011-05-22 Thread Zsolt Vasvari
In my app, copying a 4MB file to the SD card takes maybe 5 seconds. I am using the Commons IO library. So you are doing something wrong if it takes more than a couple of seconds for a 1MB file. On May 23, 11:27 am, kypriakos demet...@ece.neu.edu wrote: First, good to hear from you Mark - I

[android-developers] Re: Mac source control

2011-05-22 Thread gjs
Hi, Eclispe has CVS support builtin, just need to setup CVS on your Mac. Regards On May 21, 11:24 am, Shawn Brown big.coffee.lo...@gmail.com wrote: Eclipse has an EGit plugin I like to use this to commit to my branch locally and then use gitxhttp://gitx.frim.nl/to push to github (which is

[android-developers] Re: Comments/Ratings not showing up on Market

2011-05-22 Thread Halsafar
So someone had suggested maybe the phones were not sending them properly. So I had these people go on their PC and check. When they log in and view my app they can indeed see just their comment/rating they had put via their phone. So the phone did send the data at least to their account.

[android-developers] Re: Comments/Ratings not showing up on Market

2011-05-22 Thread Zsolt Vasvari
But why on earth would comments visible be stored as part of a Google account? That sounds extremely ineffcient. But you are right, they must be. I wonder if the feedback count has increased for these users when they entered their own comment. On May 23, 12:27 pm, Halsafar

[android-developers] Re: icons: getting conflicting information

2011-05-22 Thread Zsolt Vasvari
First of all, I would think very seriously about not building a new app that supports 1.5 in the middle of 2011. 1.5 doesn't support screen densities, so all resources must be in drawable. So if you want to support 1.5+, keep your MDPI resources is drawable and then create an HDPI folder if you

Re: [android-developers] Re: Input transport and input dispatcher error on 2.3

2011-05-22 Thread Dianne Hackborn
Your process is going away. Either it had a Dalvik crash and is now being killed, some native code in it crashed, or it was in the background and the OOM killer is removing it to reclaim memory. On Sun, May 22, 2011 at 8:45 PM, wang svnzk...@gmail.com wrote: this is the next Log 05-20

Re: [android-developers] Re: Comments/Ratings not showing up on Market

2011-05-22 Thread Tom Gibara
Personally, it's exactly the sort of optimization I would anticipate in a server application that has been designed for scalability. The user making the comment will expect it to appear immediately and may become confused if it doesn't. On the other hand, users will not generally notice a delay

Re: [android-developers] clean is deleting gen file.

2011-05-22 Thread Md. Abdun Nur Tomal
Probably, you are using in the resource folders any file name is capital letter. On Sun, May 22, 2011 at 10:11 PM, J Handal jhand...@gmail.com wrote: Hi After installing 3.1 and updated tools,clean is delating gen file . I tried changing gen-property-derivated uncheck. And clean don't