[android-developers] SSLProtocolException on Droid RAZR MAXX HD using Android 4.0.4
I have a customer that is getting an SSLProtocolException in our app. There are thousands of other phones working just fine with this version of our code and server. ( 3416): javax.net.ssl.SSLProtocolException: Read error: ssl=0x10201e8: Failure in SSL library, usually a protocol error ( 3416): at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_read(Native Method) ( 3416): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl$SSLInputStream.read(OpenSSLSocketImpl.java:679) ( 3416): at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:103) ( 3416): at org.apache.http.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:134) ( 3416): at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:174) ( 3416): at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:188) ( 3416): at org.apache.http.entity.BasicHttpEntity.writeTo(BasicHttpEntity.java:129) ( 3416): at org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:101) ( 3416): at org.apache.http.conn.BasicManagedEntity.writeTo(BasicManagedEntity.java:126) This is called from an HttpResponse, method writeTo( OutputStream). The only reports of a similar error I've found were from android 2.3.3, and supposedly that was fixed. Any ideas? -- 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: OS X 10.8 (Mountain Lion) on MacBook Pro: adb devices and adb wait-for-device not working??
Did you ever find a solution? I'm currently seeing the same problem. -- 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] OS/X ADB can't find Android devices?
I'm working on a new MacBook Pro running the latest OS/X 10.8.2. When I plug my Android phone (Pantech) into the USB port - nothing happens. (Well, the phone charges) ADB shows no devices. What step am I missing? -- 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: OS/X ADB can't find Android devices?
Turns out that MacBookPro's have crappy USB ports. I had to use a powered USB hub to connect the phone, then it all worked. On Wednesday, October 24, 2012 9:28:08 AM UTC-7, John Lussmyer wrote: I'm working on a new MacBook Pro running the latest OS/X 10.8.2. When I plug my Android phone (Pantech) into the USB port - nothing happens. (Well, the phone charges) ADB shows no devices. What step am I missing? -- 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] Layouts and Animation
I need to setup an Activity that when a certain button is pressed, a widget will be animated (slide in from bottom) onto the screen. I haven't been able to find an example of how you setup a layout to have the widget off-screen before the animation, and stay on-screen after the animation. Anyone know of an example? -- CasaDelGato Sensible Email package: https://sourceforge.net/projects/sensibleemail/ -- 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
Re: [android-developers] OEM USB Driver for Pantech
On another thread, someone pointed me to the Pantech PC Suite, which also installs the USB drivers. That worked for me. On Sun, Feb 26, 2012 at 10:16 AM, moon do seo travel2m...@gmail.com wrote: what is the your device model #? i might start with IM- thx On Sun, Feb 26, 2012 at 11:35 AM, John Lussmyer johnlussm...@gmail.com wrote: Did you ever figure this out? I'm having the same problem. On Fri, Oct 21, 2011 at 7:26 PM, John Ransom joh...@ncc1701d.net wrote: Hi all, I am trying to put my android game onto my hardware for testing. It is a Pantech. The problem is I need to get the OEM USB Driver to do this but the link the android developers site sends me to is a foreign language site. I can't even get Google to translate it for me. This is the link http://www.isky.co.kr/cs/software/software.sky?fromUrl=index . I have also tried Google search to find one with no success. Could someone who knows whatever asian language it is possibly download and send me a copy? I would really appreciate it. Thank you. -- 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 -- = Moon Do Seo 224 433 0603 -- 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 -- -- CasaDelGato Sensible Email package: https://sourceforge.net/projects/sensibleemail/ -- 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] Debugging on a Pantech Pocket?
Is it possible to debug on a Pantech Pocket phone? The web page for drivers is useless. (it's in korean, and is untranslateable.) -- -- CasaDelGato Sensible Email package: https://sourceforge.net/projects/sensibleemail/ -- 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
Re: [android-developers] Debugging on a Pantech Pocket?
Thanks, those aren't the links provided on the OEM USB Drivers page. That one is all Korean. And the PantechUSA page you provided has a bad link for the download. I had to get back to the specific model phone support page to get a good link. http://www.pantechusa.com/support/pocket 2012/2/27 Kostya Vasilyev kmans...@gmail.com This: http://www.pantechusa.com/support/download/3NOS_kY1bCHDAseCRcCbfelrK_CZNWT4xkcTnbz3mvxehigVV5lpz0EgIcqbxKI- seems to be in English, not Korean ... This does too: http://androidforums.com/pocket-all-things-root/476448-pantech-pocket-rooted.html ... see the bottom message. 28.02.2012 3:36 пользователь John Lussmyer johnlussm...@gmail.com написал: Is it possible to debug on a Pantech Pocket phone? The web page for drivers is useless. (it's in korean, and is untranslateable.) -- -- CasaDelGato Sensible Email package: https://sourceforge.net/projects/sensibleemail/ -- 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 -- 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 -- -- CasaDelGato Sensible Email package: https://sourceforge.net/projects/sensibleemail/ -- 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
Re: [android-developers] OEM USB Driver for Pantech
Did you ever figure this out? I'm having the same problem. On Fri, Oct 21, 2011 at 7:26 PM, John Ransom joh...@ncc1701d.net wrote: Hi all, I am trying to put my android game onto my hardware for testing. It is a Pantech. The problem is I need to get the OEM USB Driver to do this but the link the android developers site sends me to is a foreign language site. I can't even get Google to translate it for me. This is the link http://www.isky.co.kr/cs/software/software.sky?fromUrl=index . I have also tried Google search to find one with no success. Could someone who knows whatever asian language it is possibly download and send me a copy? I would really appreciate it. Thank you. -- 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] Installation unsuccesfull messages
I've have a few people report that that my app won't install on their phones, and they are just getting an Installation unsuccesful message. That isn't very helpful. I do have ACRA installed, and haven't received any reports from that. Any suggestions on where to look? -- 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] Bluetooth getting Not able to register SDP record - why?
All of a sudden my little Bluetooth app is getting an IOException: Not able to register SDP record for name name is the name I passed to: tmp = mAdapter.listenUsingRfcommWithServiceRecord(NAME, MY_UUID); This code has been working fine for several days. Now it gets that exception EVERY time. It doesn't matter if the bluetooth device is on or off. No code changes. After rebooting my phone, it started working again. So, it seems that I must not be calling a close() (or somesuch). Does that exception somehow indicate what I'm doing wrong? -- 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] TextView - how to make appended text visible?
I have a TextView that frequently has text appended from a service. I can append the text just fine, but how do I make the TextView scroll so the newly appended text is visible? Once the view fills, the new text is below the bottom edge. -- 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
Re: [android-developers] TextView - how to make appended text visible?
I wrapped the TextView in a ScrollView (even though TextView is documented as handling it's own scrolling and doesn't need a ScrollView). This let me call the fullScroll( View.FOCUS_DOWN) method in the ScrollView to make the newest text visible. On Fri, Jan 28, 2011 at 11:35 AM, Tobiah t...@tobiah.org wrote: On 01/28/2011 09:50 AM, John Lussmyer wrote: I have a TextView that frequently has text appended from a service. I can append the text just fine, but how do I make the TextView scroll so the newly appended text is visible? Once the view fills, the new text is below the bottom edge. I haven't used it for Android, but usually there is a Scrollable container that lets you put things into it that are larger than the screen. There must be such a widget... check the methods. I imagine that you can set the scroll position programmatically. -- 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
Re: [android-developers] DDMS Screen Capture won't work for WVGA854?
And with more testing, I've found that it only works intermittently. Also, if there is any animation happening, it often grabs the screen during a refresh, so 1/2 the screen is from the previous frame. Looks pretty crappy. On Sun, Jan 23, 2011 at 2:02 PM, John Lussmyer johnlussm...@gmail.comwrote: Yes. And on the 3rd try, it finally worked. 2011/1/23 Kostya Vasilyev kmans...@gmail.com Did you select the emulator in the list before clicking the capture button? -- -- 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] Package Installation Error from store
I just posted a new app to the store, and I've already received 2 reports that users couldn't download it. One said they got a Package Installation Error, and the other just said it wouldn't download. I've just tried re-downloading again with my phone, and it worked just fine. (CasaDelGato Life - if you want to see if it downloads for you.) Any suggestions on why this might be happening? -- 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
Re: [android-developers] Package Installation Error from store
I've been chatting with one user with the problem. Droid running 2.2. Uninstalling and Clearing the cache hasn't helped. Still won't successfully download and install. On Sun, Jan 23, 2011 at 7:52 AM, Kostya Vasilyev kmans...@gmail.com wrote: Yes, this happens sometimes. If you can contact the users, ask them to remove data caches for Download Manager and Market: http://kmansoft.wordpress.com/2010/11/06/android-market-install-failures/ -- 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] DDMS Screen Capture won't work for WVGA854?
I just build a AVD with the WVGA854 spec. My app runs in it nicely, but DDMS Device Screen Capture just says Screen not available. Is there any way to get this to work? -- 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
Re: [android-developers] DDMS Screen Capture won't work for WVGA854?
Yes. And on the 3rd try, it finally worked. 2011/1/23 Kostya Vasilyev kmans...@gmail.com Did you select the emulator in the list before clicking the capture button? -- -- 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
Re: [android-developers] Package Installation Error from store
Interesting. It's been working fine on Android 2.1 devices. (Several friends, and I, have downloaded it on 2.1 devices with no problem.) This must be a new restriction for 2.2 devices. I'll try changing it. 2011/1/23 Kostya Vasilyev kmans...@gmail.com A follow up - the logcat says: Manifest specifies bad sharedUserId: casadelgato, must have at least one . separator. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 24.01.2011 0:41 пользователь Kostya Vasilyev kmans...@gmail.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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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] Examples of subclassing DialogPreference?
Are there any examples of how to create my own DialogPreference subclass? I have a dialog color chooser, and I'd like to be able to have it set from a Preference menu. -- 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] CheckBox spacing
I have a need to put a row (or column) of 9 checkboxes in a dialog. Each checkbox will only have a 1 character description (0-9) The problem is that the default CheckBox leaves HUGE amounts of space around it, which makes it impossible to fit 9 in the dialog. Is there any way to reduce the space a Checkbox uses? Or do I have to write a custom widget to do this simple task? -- 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] Changing Tabs doesn't always update screen
I'm trying to use a relatively simple Tab view. All the tabs are declared in the XML, none using alternate Activities. They appear just fine on screen. When I click on Tab2, it shows up and Tab1 content is hidden. Then when I click back on Tab1, it's displayed overlayed with Tab2. Click back on Tab2, and it's just Tab2 text displaying again. Both tabs just have a simple ListView of Strings. I'm obviously doing something wrong here... ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:padding=5dp TabWidget android:id=@android:id/tabs android:layout_width=fill_parent android:layout_height=wrap_content / FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=fill_parent android:padding=5dp RelativeLayout android:id=@+id/Messages android:layout_width=fill_parent android:layout_height=fill_parent / ListView android:layout_width=fill_parent android:layout_height=fill_parent android:choiceMode=singleChoice android:id=@+id/MessageList / RelativeLayout android:id=@+id/Groups android:layout_width=fill_parent android:layout_height=fill_parent ListView android:layout_width=fill_parent android:layout_height=fill_parent android:choiceMode=singleChoice android:id=@+id/GroupList / /RelativeLayout /FrameLayout /LinearLayout /TabHost -- 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
Re: [android-developers] Re: writing an Authenticator to use with AccountManager
Back to this question again. As I said in my original message, I'm working from the SampleSyncAdapter example program. Currently, it mostly works, but I don't understand the flow of control, OR how to do certain operations. Currently, if I start my app on a clean emulator, it prompts me for the userid/password and connects to my server. That works. Now, I want to be able to Logoff, so that the next time the app tries to access the server, the user will be prompted for Userid/Password again. That doesn't work. It seems to go into an infinite loop in my code calling AccountManager.getAuthToken(), which invokes my run( AccountManagerFuture) method, but since the token is null (actually, so it account name and type), it gets the Account using getAccountsByType(), and calls AccountManager.getAuthToken() again So, I'm definitely doing something wrong, and it would be helpful if I could find a good description of how the Account system actually works. On Mon, Jan 10, 2011 at 1:24 PM, Kumar Bibek coomar@gmail.com wrote: Which example are you following, and what are your exact problems? On Jan 7, 11:05 pm, John Lussmyer johnlussm...@gmail.com wrote: Is there a tutorial on how to write an Account Authenticator? I'm working from the one example I've found, SampleSyncAdapter, and having a lot of trouble understanding what the actual flow of control should be. For one thing, I actually have a separate Authorization Token - which is NOT the password. I'm having real problems figuring out how it's passed around, retrieved, updated, etc... -- 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
Re: [android-developers] WallpaperManager.sendWallpaperCommand() doesn't work?
Thanks for the clarification. So the statement Finally, applications can send arbitrary commands to the live wallpaper. is just plain wrong in the documentation at: http://developer.android.com/resources/articles/live-wallpapers.html On Fri, Jan 14, 2011 at 5:38 AM, String sterling.ud...@googlemail.comwrote: I think you're misunderstanding Dianne's posts. When most people (including you, I think) talk about the wallpaper, they mean the one on the home screen. The app that's running that wallpaper is the Launcher, and so the Launcher is the only app which can send commands to the wallpaper as defined above. Separate from this, it's also possible - though rare - for other apps to use wallpapers as their own background. If your app is doing this, then it can send commands to THAT wallpaper. In no circumstance, AFAIK, can an app which isn't the Launcher (or a replacement) send commands to the wallpaper running on the device's home screen. The documentation is not at all clear on this, but I've been down this road in the past. If you want to ping your own wallpaper (running on the home screen) from your app, one method which does work is to fire off a custom intent, and listen for that intent in your WallpaperService. -- 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
Re: [android-developers] WallpaperManager.sendWallpaperCommand() doesn't work?
Thanks. Another point where the documentation could use some updating. On Fri, Jan 14, 2011 at 9:36 AM, Dianne Hackborn hack...@android.comwrote: No, that is not true. Launcher does not own the wallpaper. It uses Theme.Wallpaper to have itself displayed on top of the wallpaper -- that is, its own window has translucency so you can see the wallpaper surface (owned by the current wallpaper) behind it. During this time, it is allowed to interact with the wallpaper (change its offset, send commands, etc) only because it is currently the app on top of the wallpaper. If your own app is running on top of the wallpaper in the same way, then you too can interact with it. If not, you can't. If this wasn't the cause, no launcher replacements would be able to interact with the wallpaper either. -- 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
Re: [android-developers] Re: Live Wallpaper Icon
So, anyone have any ideas why my icon doesn't show up in the list of Live Wallpapers (just the generic icon shows), but DOES show up in the Wallpaper menu, Configure entry after installing the wallpaper? On Thu, Jan 6, 2011 at 1:18 PM, John Lussmyer johnlussm...@gmail.comwrote: Okay, I didn't have the icon specified there. I've added it. Uninstalled from the emulator, and re-installed. The icon still doesn't show up in the Live Wallpapers menu, and no errors are displayed in logcat. (Sure wish my ATT 2.1 phone supported Live Wallpapers!) On Thu, Jan 6, 2011 at 12:26 PM, Josh josh.olek...@gmail.com wrote: You generally have a file like /res/xml/MyWallpaper.xml with a wallpaper tag as the root. This is where you define the settings activity and thumbnail icon, which is generally the same as your app icon, but can be different. See http://developer.android.com/resources/samples/CubeLiveWallpaper/res/xml/cube2.html -- 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] WallpaperManager.sendWallpaperCommand() doesn't work?
I just noticed this method, and since I have a Live Wallpaper I've written, I decided it might be fun to use this. So in one of my apps, it checks to see if my Live Wallpaper is the current wallpaper, and sends a command if it is. I get no errors in the log, but the wallpaper never receives the command. (There are logging statements in the onCommand() handler.) Is there some permission or other settings I have to enable to get this to work? -- 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
Re: [android-developers] Re: Sharing data between apps
Limiting ourselves to actual real-world scenarios (nobody is going to use an Android phone for a Safety Critical control system like your cars brakes.), none of those data variations have anything to do with how the data is delivered. On Wed, Jan 12, 2011 at 10:47 PM, Bob Kerns r...@acm.org wrote: Oh, easy question! 10 bytes of data when it's describing your current brake pedal pressure is very different than 10 bytes describing the high score to ultimately post on a web site somewhere when it gets around to updating. It makes a real difference how quickly and reliably the data is delivered. 10 bytes of data when it is describing a selected record in a large database is very different from 10 bytes of data which describe geographic coordinates on the earth's surface. In the latter case, there's a frame of reference that even a space alien can understand without a device. In the former, you need not only the database, but the particular process of selection, which may in turn involve information known only within the same process. Those 10 bytes may be meaningless by themselves, taken out of the context in which they have meaning. 10 bytes is 10 bytes -- so long as you don't care about what those bytes mean or why they exist. That is, if they're worthless. If they're valuable, on the other hand, it's a whole other story. On Jan 12, 6:29 pm, John Lussmyer johnlussm...@gmail.com wrote: On Wed, Jan 12, 2011 at 6:18 PM, Mark Murphy mmur...@commonsware.com wrote: On Wed, Jan 12, 2011 at 8:35 PM, John Lussmyer johnlussm...@gmail.com wrote: 10 bytes of data is 10 bytes of data. Not really, but you are certainly welcome to your opinion. Now this has me curious. What definitions of data would make a difference? -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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: Getting phone to work with debugger
I eventually got it to work - mostly. I had to download the HTC Sync app from HTC and install it. (don't try to run the Sync program, it just locks up using most of the system CPU.) After that, DDMS would usually find the phone. On Tue, Jan 11, 2011 at 7:12 PM, John Lussmyer johnlussm...@gmail.comwrote: I've just gotten an HTC Aria. I've been unable to get ADB to recognize that the phone is attached. ADB finds my Motorola Backflip just fine. The Aria does have the USB Debugging enabled. I've tried following the instructions at http://developer.android.com/guide/developing/device.html and http://developer.android.com/sdk/win-usb.html , but of course, neither one resembles what you actually see in the SDK Manager tool, or the Win 7 control panel. SDKManager has downloaded the Google Usb Driver package, revision 4 - to some place, but I have no idea where. Pointing Device Manager at the root of the android SDK dir, it couldn't find a USB driver. suggestions? -- 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
Re: [android-developers] WallpaperManager.sendWallpaperCommand() doesn't work?
My app is the one the user is working with, and the command is sent during the onOptionsItemSelected() processing. On Thu, Jan 13, 2011 at 12:26 PM, Dianne Hackborn hack...@android.comwrote: You must be the current foreground activity sitting on top of the wallpaper to use the command. -- 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
Re: [android-developers] WallpaperManager.sendWallpaperCommand() doesn't work?
Hmm, question on that. By sitting on top of the wallpaper, do you mean an app that leaves the wallpaper partially visible? (like the desktop) On Thu, Jan 13, 2011 at 2:10 PM, John Lussmyer johnlussm...@gmail.comwrote: My app is the one the user is working with, and the command is sent during the onOptionsItemSelected() processing. On Thu, Jan 13, 2011 at 12:26 PM, Dianne Hackborn hack...@android.comwrote: You must be the current foreground activity sitting on top of the wallpaper to use the command. -- 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
Re: [android-developers] WallpaperManager.sendWallpaperCommand() doesn't work?
It is showing. It's the active wallpaper. I then launch my app, and select the menu item that sends the wallpaper command. (Note that this checks to see that the active wallpaper IS the one it's expecting.) The log shows my app sending the command, but the wallpaper never receives it. On Thu, Jan 13, 2011 at 4:55 PM, Dianne Hackborn hack...@android.comwrote: Yes you must be showing the wallpaper, such as by settings your theme to Theme.Wallpaper. On Thu, Jan 13, 2011 at 4:39 PM, John Lussmyer johnlussm...@gmail.comwrote: Hmm, question on that. By sitting on top of the wallpaper, do you mean an app that leaves the wallpaper partially visible? (like the desktop) On Thu, Jan 13, 2011 at 2:10 PM, John Lussmyer johnlussm...@gmail.comwrote: My app is the one the user is working with, and the command is sent during the onOptionsItemSelected() processing. On Thu, Jan 13, 2011 at 12:26 PM, Dianne Hackborn hack...@android.comwrote: You must be the current foreground activity sitting on top of the wallpaper to use the command. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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
Re: [android-developers] Re: Changing price in the Market
Were you trying to lower it below $0.99? That seems to be the lowest price allowed. (Which is kind of annoying. It's slightly above the whim level for purchases.) On Thu, Jan 13, 2011 at 5:34 PM, Russell DuRoss r2s...@gmail.com wrote: I have tried lowering the price of an app and it wouldn't let me. I have not tried raising the price. -- 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] Making a file world writeable
I have an app that is writing a file that I would like other apps to be able to access. Looking at it in DDMS, I see that it's permissions only let the one user see it. The docs at http://developer.android.com/reference/java/io/File.html#setWritable%28boolean,%20boolean%29 show that the File object should have a setWriteable() method. That method doesn't seem to exist. At least Eclipse won't let me use it without flagging it as a syntax error, and it doesn't appear in the popup list of methods on a File object. So, is there some other way to make the file world writeable? I can't use OpenFileOutput() since that doesn't allow path separator characters. -- 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
Re: [android-developers] Re: Making a file world writeable
So, all the documentation about making things World Writeable is a flat out lie? On Thu, Jan 13, 2011 at 6:37 PM, metal mikey coref...@gmail.com wrote: I have an app that is writing a file that I would like other apps to be able to access. You can't achieve that. For good reason too.. -- 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
Re: [android-developers] Re: Sharing data between apps
And that is a very nice philosophical discussion of data in general. Still doesn't help any with my original question, and the only implication I can take from it is that you are assuming I'm a total neophyte programmer who has no idea what his data is going to be used for, or what it is. How nice. Now, if you actually assume that I'm not an idiot, and actually know what my own data is, that it is 10 bytes, and I'm asking for ways to transfer it - then your discussion of data meanings makes even less sense. I wasn't asking about how to decode my data, how to use it, how to make it work with another system. I was asking for ways of sharing a block of generic data between apps. ALL data is generic. Higher meanings can be applied at either end of it's travels, which may also have implications about requirements for it's travel. It's still data. On Thu, Jan 13, 2011 at 8:36 PM, Bob Kerns r...@acm.org wrote: You weren't paying attention. I was using illustrative examples, chosen mostly for 10-byte -- but these issues show up all the time in all kinds of programming, from enterprise to consumer utilities, to games. And you didn't say that 10 bytes is just 10 bytes for Android, but not for safety systems like cars, airplanes, and medical. But that fits nicely with my last point about valuable data vs worthless data. The first pair illustrates that it matters both how quickly and how reliably data is delivered. To take an example from an entirely different domain -- this is why there is UDP vs TCP. Or consider the implications for delays or unreliable delivery if you're downloading a program, vs watching a video. The second pair illustrates that the actual byte values to be delivered may need to be mapped as part of the delivery. Earth surface coordinates, sure, those transfer fine. But often this is not the case; often to be useful on the other end, you will have to externalize those bytes in some manner. To offer another example -- raw sensor data may need to be calibrated, referenced, or normalized to be useful when transferred from one device to another. This may only be possible on the source device. Two different ways that the byte MEANING matters -- both DIRECTLY related to how data is delivered. But to quote Mark: ...but you are certainly welcome to your opinion. On Jan 13, 8:18 am, John Lussmyer johnlussm...@gmail.com wrote: Limiting ourselves to actual real-world scenarios (nobody is going to use an Android phone for a Safety Critical control system like your cars brakes.), none of those data variations have anything to do with how the data is delivered. On Wed, Jan 12, 2011 at 10:47 PM, Bob Kerns r...@acm.org wrote: Oh, easy question! 10 bytes of data when it's describing your current brake pedal pressure is very different than 10 bytes describing the high score to ultimately post on a web site somewhere when it gets around to updating. It makes a real difference how quickly and reliably the data is delivered. 10 bytes of data when it is describing a selected record in a large database is very different from 10 bytes of data which describe geographic coordinates on the earth's surface. In the latter case, there's a frame of reference that even a space alien can understand without a device. In the former, you need not only the database, but the particular process of selection, which may in turn involve information known only within the same process. Those 10 bytes may be meaningless by themselves, taken out of the context in which they have meaning. 10 bytes is 10 bytes -- so long as you don't care about what those bytes mean or why they exist. That is, if they're worthless. If they're valuable, on the other hand, it's a whole other story. On Jan 12, 6:29 pm, John Lussmyer johnlussm...@gmail.com wrote: On Wed, Jan 12, 2011 at 6:18 PM, Mark Murphy mmur...@commonsware.com wrote: On Wed, Jan 12, 2011 at 8:35 PM, John Lussmyer johnlussm...@gmail.com wrote: 10 bytes of data is 10 bytes of data. Not really, but you are certainly welcome to your opinion. Now this has me curious. What definitions of data would make a difference? -- 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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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
[android-developers] Sharing preferences between apps?
I have an app that needs to be able to pass a set of settings to my Live Wallpaper. The Live Wallpaper already saves these in a Shared Preferences file. I did a bunch of searches, and found a possible way for the app to access the wallpapers Shared prefs was: (I've also set both apps to have the same uid in their manifest files.) Context context = this.createPackageContext(com.casadelgato.lifewallpaper, 0); SharedPreferences wPrefs = context.getSharedPreferences(Constants.LW_SHARED_PREFS, 0); Editor editor = wPrefs.edit(); editor.putBoolean(Constants.PREF_RANDCOLORS, engine.isRandColors()); etc... When I try, I get: 01-12 10:37:20.728: WARN/ApplicationContext(293): Attempt to read preferences file /data/data/com.casadelgato.lifewallpaper/shared_prefs/lifewallpapersettings.xml without permission 01-12 10:37:20.757: ERROR/ApplicationContext(293): Couldn't rename file /data/data/com.casadelgato.lifewallpaper/shared_prefs/lifewallpapersettings.xml to backup file /data/data/com.casadelgato.lifewallpaper/shared_prefs/lifewallpapersettings.xml.bak Am I missing something? Or is this just the wrong way to do 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] Confusing IllegalArgumentException from openFileOutput
I'm trying to create a new file in my data area, and I'm getting this exception: 01-12 13:59:41.202: ERROR/AndroidRuntime(1437): java.lang.IllegalArgumentException: File /data/data/com.casadelgato.lifewallpaper/files/LifeSettings.ini contains a path separator As far as I can tell, that's a valid file spec. -- 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: Confusing IllegalArgumentException from openFileOutput
Figured it out. Apparently, even though you are allowed to getFilesDir(), you aren't allowed to actually specify that directory in a path. The file name you pass to openFileOutput() must be a relative path to that directory, and may not specify that directory. Intuitively obvious that isn't. On Wed, Jan 12, 2011 at 2:04 PM, John Lussmyer johnlussm...@gmail.comwrote: I'm trying to create a new file in my data area, and I'm getting this exception: 01-12 13:59:41.202: ERROR/AndroidRuntime(1437): java.lang.IllegalArgumentException: File /data/data/com.casadelgato.lifewallpaper/files/LifeSettings.ini contains a path separator As far as I can tell, that's a valid file spec. -- 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] Can't find Activity error
I'm trying to use an Intent() to send a little data to another app. So far, I've been unable to get the startActivity() to succeed. It always fails with a ActivityNotFound exception. I just haven't been able to figure out WHY my activity isn't being found. invoking code is: Intent intent = new Intent(com.casadelgato.lifewallpaper.UPDATEPREFS); intent.setPackage(com.casadelgato.lifewallpaper); intent.putExtra(PrefUpdate, true); startActivity(intent); Manifest of target app is: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.casadelgato.lifewallpaper android:versionName=1.0.3 android:versionCode=4 android:sharedUserId=@string/SharedUserID uses-sdk android:minSdkVersion=7 / uses-feature android:name=android.software.live_wallpaper android:required=true / application android:icon=@drawable/icon android:label=@string/app_name android:process=@string/SharedUserID service android:label=@string/servicelabel android:permission=android.permission.BIND_WALLPAPER android:name=LifeWallpaper android:enabled=true intent-filter action android:name=android.service.wallpaper.WallpaperService / /intent-filter meta-data android:name=android.service.wallpaper android:resource=@xml/settingsconfig / /service activity android:label=Life Wallpaper Settings android:theme=@android:style/Theme.Light.WallpaperSettings android:exported=true android:enabled=true android:name=LifeSettings intent-filter action android:name=com.casadelgato.lifewallpaper.UPDATEPREFS / /intent-filter /activity /application /manifest -- 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] Sharing data between apps
I've been looking to see if there is a relatively simple way for 2 apps to share a tiny bit of data. So far, I haven't found any. 1) SharedPreferences - aren't shared. 2) MemoryFile in Shared Memory - there appears to be no way to share these between apps. 3) Internal Storage - separate apps can't write to each others area, even if they have the same userid. 4) External storage - may not exist. So, in order to send 10 bytes of data to another app, it seems that I'll have to create a new Activity and have it respond to an Intent(). Is that really the only way to do 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 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
Re: [android-developers] Can't find Activity error
So, I modified the manifest to have: intent-filter action android:name=com.casadelgato.lifewallpaper.UPDATEPREFS / category android:name=android.intent.category.CATEGORY_DEFAULT / /intent-filter Made no difference. 2011/1/12 Kostya Vasilyev kmans...@gmail.com You need category_default in the intent filter of your activity for launch by action string to work. -- -- 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
Re: [android-developers] Can't find Activity error
Didn't help. On Wed, Jan 12, 2011 at 4:59 PM, Mark Murphy mmur...@commonsware.comwrote: I'd get rid of the setPackage() call. -- 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
Re: [android-developers] Sharing data between apps
On Wed, Jan 12, 2011 at 4:53 PM, Mark Murphy mmur...@commonsware.comwrote: On Wed, Jan 12, 2011 at 5:58 PM, John Lussmyer johnlussm...@gmail.com wrote: 3) Internal Storage - separate apps can't write to each others area, even if they have the same userid. AFAIK, they can. What proof do you have to the contrary? Not that this is particularly a good strategy for SDK apps, mind you. You can't specify a path in the call to openFileOutput(). (Fails if there are any path separators) Hard to specify another apps directory if you can't use path separators. So, in order to send 10 bytes of data to another app, it seems that I'll have to create a new Activity and have it respond to an Intent(). That is not the proper use of an Activity. Is that really the only way to do this? -- Create a service, exposing an API through AIDL, consumed via bindService() -- Create a service, exposing an API through an Intent (sent via startService()) and returning results via a Messenger, or createPendingResult()'s PendingIntent, etc. -- Create a content provider There may be other options depending on what the 10 bytes of data actually is, but those should get you started. 10 bytes of data is 10 bytes of data. 10 binary bytes. Not text. Only needs to be transferred occasionally, but does need to be transferred. So, what you are saying is there is NO easy way to transfer a tiny bit of data. App X just needs to send it to App Y when the user does certain actions. sigh. (In this case there are 2 apps, either of which can be used independently, but if both are on the phone, they can work together.) A SharedPreference would have been perfect - but the Shared prefix seems to have a different meaning than what you would think. -- 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
Re: [android-developers] Can't find Activity error
Should they? And which ones are you talking about? On Wed, Jan 12, 2011 at 5:22 PM, Stephen Jungels sjung...@gmail.com wrote: Unless your android:name elements are fully qualified, they should begin with a period, should they not? -- 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
Re: [android-developers] Sharing data between apps
On Wed, Jan 12, 2011 at 6:18 PM, Mark Murphy mmur...@commonsware.comwrote: On Wed, Jan 12, 2011 at 8:35 PM, John Lussmyer johnlussm...@gmail.com wrote: 10 bytes of data is 10 bytes of data. Not really, but you are certainly welcome to your opinion. Now this has me curious. What definitions of data would make a difference? -- 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] Getting phone to work with debugger
I've just gotten an HTC Aria. I've been unable to get ADB to recognize that the phone is attached. ADB finds my Motorola Backflip just fine. The Aria does have the USB Debugging enabled. I've tried following the instructions at http://developer.android.com/guide/developing/device.html and http://developer.android.com/sdk/win-usb.html , but of course, neither one resembles what you actually see in the SDK Manager tool, or the Win 7 control panel. SDKManager has downloaded the Google Usb Driver package, revision 4 - to some place, but I have no idea where. Pointing Device Manager at the root of the android SDK dir, it couldn't find a USB driver. suggestions? -- 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] Making 2 buttons the same size
I have an OK and a Cancel button in a dialog, at the bottom in opposite corners. I'd like to make the the same width. Is there any way to do that via settings in the XML? (without making them both 1/2 screen width! :-) -- 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
Re: [android-developers] Making 2 buttons the same size
Is there any way to do this in a RelativeLayout? Or I could probably add a LinearLayout that contains the row the buttons are in... On Mon, Jan 10, 2011 at 5:21 PM, TreKing treking...@gmail.com wrote: On Mon, Jan 10, 2011 at 7:01 PM, John Lussmyer johnlussm...@gmail.comwrote: Is there any way to do that via settings in the XML? Give them both the same weight. -- 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] Current state of PUSH notifications for apps?
I'm looking at an app where I will really need to support PUSH notifications. After a bunch of Google searches - I'm generally confused as to the state of PUSH support on Android. IS there a standard way of doing it yet? Preferably on 2.1? -- 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] writing an Authenticator to use with AccountManager
Is there a tutorial on how to write an Account Authenticator? I'm working from the one example I've found, SampleSyncAdapter, and having a lot of trouble understanding what the actual flow of control should be. For one thing, I actually have a separate Authorization Token - which is NOT the password. I'm having real problems figuring out how it's passed around, retrieved, updated, etc... -- 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] HTTP parameter question
Does one of the HTTP support classes handle building a parameterized URL? i.e one of the sort http://a.com/stuff?a=bc=de=f Yes, I know writing one would be easy, but if there is already one out there... -- 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
Re: [android-developers] HTTP parameter question
I don't think you understood my question. Given a list of key-value pairs, is there a utility class to build the ?key=valuekey=valuekey=value string. On Fri, Jan 7, 2011 at 3:00 PM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jan 7, 2011 at 5:40 PM, John Lussmyer johnlussm...@gmail.com wrote: Does one of the HTTP support classes handle building a parameterized URL? i.e one of the sort http://a.com/stuff?a=bc=de=f Yes, I know writing one would be easy, but if there is already one out there... http://developer.android.com/reference/java/net/URLEncoder.html -- 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
Re: [android-developers] HTTP parameter question
Except that you can't setEntity() on an HttpGet - which is what I need to use. On Fri, Jan 7, 2011 at 5:27 PM, Brad Gies rbg...@gmail.com wrote: I'm not 100% sure I understand the question either but just in case...this does it for a Post... and switching to a Get will do the same thing. HttpPost httpPost = new HttpPost(urlString); ListNameValuePair nvps = new ArrayListNameValuePair(); nvps.add(new BasicNameValuePair(akey, avalue)); httpPost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8)); If you check the Request on your server after you send it.. you will see the normal ?key=value strings. -- 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
Re: [android-developers] HTTP parameter question
Quite possibly, but if there is a standard one that comes with the system, i'd rather use. Since it appears that there isn't one, I'll write one. On Fri, Jan 7, 2011 at 7:42 PM, TreKing treking...@gmail.com wrote: On Fri, Jan 7, 2011 at 4:40 PM, John Lussmyer johnlussm...@gmail.comwrote: Yes, I know writing one would be easy, but if there is already one out there... Not only is it easy - you could have written it by now. Hell you could have written it faster than your original email =P -- 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] odd IOException from MediaPlayer.create()
I had MediaPlayer.creat(resource id) throw an IOException recently. Note that it's signature doesn't say that it's even possible for it to throw an IOException... 01-06 07:14:05.191: DEBUG/MediaPlayer(183): java.io.IOException: Prepare failed.: status=0x1 01-06 07:14:05.191: DEBUG/MediaPlayer(183): at android.media.MediaPlayer.prepare(Native Method) 01-06 07:14:05.191: DEBUG/MediaPlayer(183): at android.media.MediaPlayer.create(MediaPlayer.java:644) 01-06 07:14:05.191: DEBUG/MediaPlayer(183): at com.casadelgato.metronome.MainScreen.onCreate(MainScreen.java:413) I've been unable to find out what status=0x1 means. The prepare failed - buy why? I was running in the Emulator, and the only reason I noticed this is because the sound didn't resume playing after rotating the device. The exception was logged in logcat. -- 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] Related applications
When you view an app in the Market, there is a section Related which supposedly lists related applications. How is this determined? My Free Demo version of my app doesn't list the Paid full version as related. What do I need to do to have it listed? -- 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
Re: [android-developers] Related applications
Guess I'll just have to wait and see. The app descriptions ARE identical, except for 1 added sentence on the Demo version. On Thu, Jan 6, 2011 at 8:02 AM, TreKing treking...@gmail.com wrote: On Thu, Jan 6, 2011 at 9:57 AM, John Lussmyer johnlussm...@gmail.comwrote: How is this determined? What do I need to do to have it listed? Only people at Google and Jesus know the answer to that and neither one is going to give you a definitive answer. A lot of people have reported that their free / paid apps are not related according to the Market, despite near-identical descriptions. It's probably yet-another-bug in the Market regarding this feature. Update your app along with the description(s) might help. Or just waiting it out. Who knows. -- 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] Live Wallpaper Icon
I've made a Live Wallpaper, and included a full set of icons for it. The icon isn't used in the Live Wallpaper menu, but is used for the Configure action in the menu after you've added the Live Wallpaper. What do I need to do to get icon to be used for my Live Wallpaper in the selection menu for Live Wallpaper? -- 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
Re: [android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?
I gave up and wrote my own that seems to work well. XML Configurable, doesn't create gobs of temp objects. http://casadelgato.com/content/numberpicker On Thu, Jan 6, 2011 at 10:40 AM, Kumar Bibek coomar@gmail.com wrote: Dig in the source code. What do you mean by public here? http://www.google.com/codesearch/p?hl=en#uX1GffpyOZk/core/java/android/widget/NumberPicker.javaq=NumberPicker%20android%20javasa=Ncd=1ct=rc Use Google code search. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Jan 6, 2011 at 1:53 PM, MerlinBG merli...@gbg.bg wrote: I see this thread is more than an year old. Any chance to have the NumberPicker public by now? -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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
Re: [android-developers] Re: Comments lost in the developer console and market app
And I've found that I can't add YouTube video links today. You just get An unexpected error occurred. Please try again later. On Thu, Jan 6, 2011 at 12:22 PM, Gerald gerald.b.n...@gmail.com wrote: Same issue for me for my application OnTrack Diabetes. On Jan 6, 9:37 am, TreKing treking...@gmail.com wrote: On Thu, Jan 6, 2011 at 8:35 AM, Alex Xin xinxi...@gmail.com wrote: I don't know why, but some of my app comments lost in the developer console. I cannot find themAll comments after 2010/12/20 is lost. But it seems that comments total number is right. -- 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
Re: [android-developers] Re: Making a video of your app running
Thanks, that seems to work pretty well. On Wed, Jan 5, 2011 at 3:44 PM, jtoolsdev brianjto...@gmail.com wrote: If you have a fast enough PC then you can use CamStudio program to capture a demo on an emulator. Worked great and much better than a previous demo I did pointing a camera at a phone. Then using my editing program I zoomed in and out so the user could understand that the MENU button is for menus in apps too (believe me I've had a lot of customers new to these phones who didn't know that). http://camstudio.org/ -- 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
Re: [android-developers] Re: Live Wallpaper Icon
Okay, I didn't have the icon specified there. I've added it. Uninstalled from the emulator, and re-installed. The icon still doesn't show up in the Live Wallpapers menu, and no errors are displayed in logcat. (Sure wish my ATT 2.1 phone supported Live Wallpapers!) On Thu, Jan 6, 2011 at 12:26 PM, Josh josh.olek...@gmail.com wrote: You generally have a file like /res/xml/MyWallpaper.xml with a wallpaper tag as the root. This is where you define the settings activity and thumbnail icon, which is generally the same as your app icon, but can be different. See http://developer.android.com/resources/samples/CubeLiveWallpaper/res/xml/cube2.html -- 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
Re: [android-developers] java/locationlistener
The old one will stay around, and continue being called. You should remove the old listener. On Thu, Jan 6, 2011 at 6:13 PM, fourhend...@gmail.com fourhend...@gmail.com wrote: Quick question, kind of java related I think, too. If you have a locationlistener mListener, and install it with * requestLocationUpdates. *Lets say you assign a new LocationListener to mListener and install it again, is the previous one going to go away (garbage collected)? In C I would just delete one and allocate a new one. What's the best way in java+android? -- 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
Re: [android-developers] Re: How do you Debug a Live Wallpaper
Thanks! That is USEFUL to know. On Tue, Jan 4, 2011 at 10:27 PM, Peter Webb r.peter.w...@gmail.com wrote: Stick the following in your code: android.os.Debug.waitForDebugger(); Not the easiest thing to find ... -- 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
Re: [android-developers] Problem with application launch on emulator
I noticed this happening for me when I had added the icon after testing the app a few times. I had to uninstall the app from the phone/emulator - then the next time I launched it the icon was correct. On Wed, Jan 5, 2011 at 3:15 AM, Ajay Prabandham parth...@gmail.com wrote: Dear All, I am developing a GUI based app for Android API 9 SDK on my windows PC (Using Eclipse SDK and ADT plugin). I have successfully compiled the sources, and when i run the command to launch the emulator, the .apk file is successfully installed on the phone. But the icon i have chosen to display on the applications menu screen is not displayed. Here's my manifest file: (the image file is picture.jpg) I have intentionally hidden the actual resource names. -- 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] Preference data types
Is there any way to have a Preference be an Integer? I'm using an EditTextPreference, with android:inputType=number, and as far as I can tell, it's still saving the preference value as a String. -- 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] Making a video of your app running
Is there some supported way of making a Video of your app running? Seems kind of silly (and low quality) to have to point your camera at the phone... -- 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] Testing Live Wallpaper
I've been testing a live Wall Paper on my Emulator set for 2.1. Since my phone runs 2.1 I decided to test it there. The system (adb) is perfectly happy to load it onto my phone - but my phone has no way to select it! Apparently ATT Decided that their customers shouldn't have Live Wallpaper... -- 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
Re: [android-developers] Testing Live Wallpaper
I can't even use a Live Wallpaper if it DOES come from the market. On Wed, Jan 5, 2011 at 4:12 PM, TreKing treking...@gmail.com wrote: On Wed, Jan 5, 2011 at 5:16 PM, John Lussmyer johnlussm...@gmail.comwrote: Apparently ATT Decided that their customers shouldn't have Live Wallpaper... They decided their customers shouldn't have apps of any kind that don't come from the Market. -- 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
Re: [android-developers] App name
Uninstall it before re-installing it? On Wed, Jan 5, 2011 at 5:05 PM, Hendrik Greving fourhend...@gmail.comwrote: I have an app and changed its name everywhere, Manifest etc. The icon names etc. are correct now, also the widget name from the widget manager and the name which appear when you add to the home screen. BUT, if I go to the application manager (Settings - Applications), the old name is still there. How can I get rid of 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
Re: [android-developers] Re: Getting a test version of an .apk to a end user
My phone, Motorola Backflip running 2.1, doesn't HAVE an Unknown Sources option in the Applications menu. When I try to install an app from email, I get a Security Warning: This application comes from an unknown source, and for your security only applications from trusted sources can be installed. On Mon, Jan 3, 2011 at 5:50 PM, metal mikey coref...@gmail.com wrote: Your tester will need to uninstall the current from-market instance of your App then go to MENU SETTINGS APPLICATIONS and check 'Unkown sources' to allow the not-from-market install. Then upon opening (aka clicking on) the .apk file attached to the email you sent, Android will install the 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 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
Re: [android-developers] Re: Getting a test version of an .apk to a end user
Yeah, ATT is the only one with signal where I live. (and it's marginal at that. The phone often shows 5 bars and 3G - then drops to no signal suddenly.) On Tue, Jan 4, 2011 at 7:53 AM, Nikolay Elenkov nikolay.elen...@gmail.comwrote: On Wed, Jan 5, 2011 at 12:47 AM, John Lussmyer johnlussm...@gmail.com wrote: My phone, Motorola Backflip running 2.1, doesn't HAVE an Unknown Sources option in the Applications menu. When I try to install an app from email, I get a Security Warning: This application comes from an unknown source, and for your security only applications from trusted sources can be installed. You can thank your carrier for that. ATT? -- 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
Re: [android-developers] Re: Getting a test version of an .apk to a end user
Nah, It's too hard to find 20 acres of forest where I can own Cougars. On Tue, Jan 4, 2011 at 8:06 AM, TreKing treking...@gmail.com wrote: On Tue, Jan 4, 2011 at 10:00 AM, John Lussmyer johnlussm...@gmail.comwrote: Yeah, ATT is the only one with signal where I live. Goodness, I would move =P -- 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] How do you Debug a Live Wallpaper
I'm trying to write a Live Wallpaper, but have a problem. The debugger won't. Won't attach or debug when launching the wallpaper. I can see from the logcat when I restart the Emulator that my wallpaper is crashing. There is a msg showing it being installed, then uninstalling, then force removing, then a WIN DEATH. No Exception report. Any ideas on how I can find out what is dieing? -- 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] Live Wallpaper Preferences Activity launch problem
When I click on the Preferences button for my Live Wallpaper, I get this Exception: 01-04 17:54:23.021: ERROR/AndroidRuntime(534): Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.casadelgato.lifewallpaper/LifeSettings}; have you declared this activity in your AndroidManifest.xml? The Activity class is com.casadelgato.lifewallpaper.LifeSettings.java The Manifest file has: service android:label=@string/servicelabel android:permission=android.permission.BIND_WALLPAPER android:name=LifeWallpaper android:enabled=true intent-filter action android:name=android.service.wallpaper.WallpaperService / /intent-filter meta-data android:name=android.service.wallpaper android:resource=@xml/settingsconfig / /service activity android:label=Settings Label android:theme=@android:style/Theme.Light.WallpaperSettings android:exported=true android:enabled=true android:name=LifeSettings /activity the settingsconfig.xml file has: ?xml version=1.0 encoding=utf-8? wallpaper xmlns:android=http://schemas.android.com/apk/res/android; android:settingsActivity=LifeSettings / I can't seem to figure out what's wrong... -- 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: Live Wallpaper Preferences Activity launch problem
Okay, figured it out. The one in the settingsconfig.xml had to have the full path to the class. android:settingsActivity=com.casadelgato.lifewallpaper.LifeSettings On Tue, Jan 4, 2011 at 5:58 PM, John Lussmyer johnlussm...@gmail.comwrote: the settingsconfig.xml file has: ?xml version=1.0 encoding=utf-8? wallpaper xmlns:android=http://schemas.android.com/apk/res/android; android:settingsActivity=LifeSettings / I can't seem to figure out what's wrong... -- 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 do you Debug a Live Wallpaper
Well, I just went through my code several times, and found the 1 character typo that was causing my onchanged() method to be hung in an infinite loop. There doesn't seem to be any way to use the debugger to find this kind of problem, as it just won't connect. On Tue, Jan 4, 2011 at 3:12 PM, John Lussmyer johnlussm...@gmail.comwrote: I'm trying to write a Live Wallpaper, but have a problem. The debugger won't. Won't attach or debug when launching the wallpaper. I can see from the logcat when I restart the Emulator that my wallpaper is crashing. There is a msg showing it being installed, then uninstalling, then force removing, then a WIN DEATH. No Exception report. Any ideas on how I can find out what is dieing? -- 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] DROID sound playing problem
I have a customer with a DROID phone. It's showing a rather odd symptom. I have 2 sounds that play at regular (but different) intervals in my app. One of them plays every time. The other (more frequent) plays every other time. I've put tracing in the code, and I AM calling MediaPlayer.start() every time. No exceptions are being thrown. It just only plays the sound every other time. This also only happens for one specific sound file. (they are all very short .mp3's) This works just fine in both the emulator and my Backflip. Any ideas on what I should look for? -- 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] Getting a test version of an .apk to a end user
Is there any relatively easy way for me to send a test version of my app.apk file to a user? I may have fixed a problem he's seeing (that doesn't happen on my phone of course), and I'd like to have him test it BEFORE I deploy it to the store. -- 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
Re: [android-developers] Getting a test version of an .apk to a end user
You mean you put it out on the Android Marketplace? On Mon, Jan 3, 2011 at 2:56 PM, Wayne Wenthin wa...@fuligin.com wrote: I've taken to putting the latest version on the website and letting them download and install from there. On Mon, Jan 3, 2011 at 2:54 PM, John Lussmyer johnlussm...@gmail.comwrote: Is there any relatively easy way for me to send a test version of my app.apk file to a user? I may have fixed a problem he's seeing (that doesn't happen on my phone of course), and I'd like to have him test it BEFORE I deploy it to the store. -- 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
Re: [android-developers] Re: Getting a test version of an .apk to a end user
Okay, email is fine - but how does an average end-user get the file onto their Android Device? That's what I was asking. On Mon, Jan 3, 2011 at 4:55 PM, metal mikey coref...@gmail.com wrote: Is Email easy enough? Note: because you will have the tester install out-of-band from the Market, the tester will need to uninstall the App first. On Jan 4, 9:58 am, John Lussmyer johnlussm...@gmail.com wrote: You mean you put it out on the Android Marketplace? On Mon, Jan 3, 2011 at 2:56 PM, Wayne Wenthin wa...@fuligin.com wrote: I've taken to putting the latest version on the website and letting them download and install from there. On Mon, Jan 3, 2011 at 2:54 PM, John Lussmyer johnlussm...@gmail.com wrote: Is there any relatively easy way for me to send a test version of my app.apk file to a user? I may have fixed a problem he's seeing (that doesn't happen on my phone of course), and I'd like to have him test it BEFORE I deploy it to the store. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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
Re: [android-developers] Re: Eclipse ADT update ruins XML layout files development
Use the xml tab and edit the xml directly. MUCH easier. Also helps if you use ctrl-F to reformat the XML to be legible. (I also change the XML formatting preferences to put each attribute on a new line.) On Mon, Jan 3, 2011 at 5:38 PM, sisko adeod...@gmail.com wrote: Thanks for responding. If you mean we are supposed to drag elements into place, I got ta say ... It simply does not work. I have an existing project with a very complex layout in one of my views. Any attempt to reorganize the layout by dragging things around ends in disaster. Please help. Important projects are on hold until I can convinitenly do comple layouts again. -- 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] Making my app a library, resource problems
Okay, in order to make it easier (I hope) to have both a Licensed full version, and a Demo version of my app, I've converted my App project in Eclipse into an Android Library project. I created a new Library project, the copied all the source and resources over, set the manifest values, etc... I then created a new App project to be the licensed version. It uses the library project. What I'm seeing is that the App project builds a R.java for both the App and the Library. BUT it builds the one for the library incorrectly. It's leaving out several resources from my portrait layout. When the Library project is build, it's R.java has all the resources. Note: It's also interesting that the App project builds an R.java for the App, and an R.java for the Library project - and they are IDENTICAL. This also indicates that you have to be really careful about not having conflicting resource names between and App and a Library it uses. -- 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: Making my app a library, resource problems
And I figured it out! Eclipse had created a default main.xml in my App layout directory, and was using that for generated resource ID's instead of the main.xml in my Library project. You really do have to be careful about conflicting resource names between A library and your 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 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] Unable to run DDMS, failed to get adb version
I'd like to try and run DDMS so I can get some screen captures of my app. When I try to run ddms.bat, I get this error: C:\Projects\android-sdk-windows\toolsddms 05:38:13 E/adb: Failed to get the adb version: Cannot run program adb: CreateP rocess error=2, The system cannot find the file specified I'm running Win 7 x64, and have the latest Eclipse and SDK installed. Eclipse can launch the emulator and adb just fine. -- 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] Problem showing a simple Dialog
I'm trying to learn how to use a Dialog, but I seem to be missing something. (probably obvious to those who've used them before...) Whenever I click on my Menu Item that opens the dialog, I get this: 01-01 08:00:16.214: ERROR/ACRA(259): fatal error : Unable to add window -- token null is not for an application 01-01 08:00:16.214: ERROR/ACRA(259): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application 01-01 08:00:16.214: ERROR/ACRA(259): at android.view.ViewRoot.setView(ViewRoot.java:472) 01-01 08:00:16.214: ERROR/ACRA(259): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) 01-01 08:00:16.214: ERROR/ACRA(259): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 01-01 08:00:16.214: ERROR/ACRA(259): at android.app.Dialog.show(Dialog.java:239) My activity has an onCreateDialog() method, which does get called and returns successfully. protected Dialog onCreateDialog( int id) { // We only have one dialog, so we can ignore id... Dialog dialog = new AboutBox(getApplicationContext()); dialog.setOnDismissListener(new DialogInterface.OnDismissListener() { public void onDismiss( DialogInterface dialog) { removeDialog(1); } }); return dialog; } My custom dialog class is pretty trivial... public class AboutBox extends Dialog { public AboutBox( Context context) { super(context); } protected void onCreate( Bundle savedInstanceState) { setContentView(R.layout.about); setTitle( Testing); Button btn = (Button) findViewById(R.id.AboutClose); btn.setOnClickListener(new View.OnClickListener() { public void onClick( View v) { dismiss(); } }); } } As is it's layout: ?xml version=1.0 encoding=UTF-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=wrap_content android:layout_height=wrap_content android:id=@+id/AboutBox TextView android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentTop=true android:text=Just testing things android:gravity=center android:id=@+id/AboutTxt / Button android:layout_width=wrap_content android:layout_height=wrap_content android:layout_below=@id/AboutTxt android:layout_alignParentBottom=true android:text=Close android:gravity=center android:id=@+id/AboutClose / /RelativeLayout -- 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
Re: [android-developers] Problem showing a simple Dialog
That just causes the call to super(context) in my dialog constructor to throw a NullPointerException. I was working from the examples at http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog and they also use the getApplicationContext(). You need some context to pass to the Dialog() constructor. On Sat, Jan 1, 2011 at 8:46 AM, Kostya Vasilyev kmans...@gmail.com wrote: Get rid of getApplicationContext for a start, see if this helps. -- 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
Re: [android-developers] Problem showing a simple Dialog
Fixed it! Thanks! I keep forgetting that the Activity is a Context. (Seems like the example Dialog usage might want to show this as well, especially since using getApplicationContext() fails.) On Sat, Jan 1, 2011 at 9:46 AM, Kostya Vasilyev kmans...@gmail.com wrote: Use the Activity: Dialog dialog = new AboutBox(*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 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] AVD file repository?
Is there any place that has collected emulator definition files (AVD) that match various phones? -- 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
Re: [android-developers] Re: the new eclipse UI design - absolute frustration and waste of time
I've used the NetBeans and MyEclipse GUI editors extensively. They are very nice. The Android thing in Eclipse is pretty much a waste of time. Bizarre things happen when you try to drag controls or layouts in. Items end up in totally unexpected places, with attributes that you can't seem to control. The huge properties menu isn't very helpful either. After just a few minutes of attempting to use the GUI editor, I gave up and just edited the XML directly. Much easier, quicker, and with better control of what you get. I don't even bother previewing my layouts with the GUI editor, as it frequently leaves out controls entirely. On Thu, Dec 30, 2010 at 6:15 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Totally agree. If you use XML, you will actually understand what's going on instead of relying on a GUI editor to do the work for you. Personally, in over a year and a half of using Eclipse, I've yet to drag and drop a single control with the editor. -- 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] Licensing Verification Library and Demo versions
Is there a relatively easy/good way to have an app that uses LVL, also have a Demo version? It appears that I have to change the Package Name to do this - which changes the Resource file name - so nothing compiles unless I go change the import statement in all my files. Note that I am working from within Eclipse. Should I make my entire app an Android Library? and just have 2 nearly empty skeleton projects to build it? (Free and Paid versions) -- 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
Re: [android-developers] Re: Animation problem
jerks and jumps in the emulator, or one the phone? I've found that the emulator is VERY bad at running things at a consistent speed. The phone seems to do a much better job of it. On Wed, Dec 29, 2010 at 1:27 PM, iced pascal-h...@t-online.de wrote: Thank you for your answer. I tried all 2^6 combinations of the three flags (fillBefore, fillAfter, fillEnabled) but the animation still not works. I only want a pulsate. No matter what I do it is no liquid/smooth animation. It jerks and jumps. I can't find a solution. I would be grateful for help. -- 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
Re: [android-developers] How can I cause a RelativeLayout to re-layout it's children?
As I mentioned near the start of this thread, I had already tried that. It doesn't always work. The layout would only display the update after doing something else in the app (like clicking another button). On Tue, Dec 28, 2010 at 2:23 AM, Mark Murphy mmur...@commonsware.comwrote: Try calling invalidate() on the RelativeLayout. -- 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
Re: [android-developers] Re: Getting the Android Java source?
Installed and works just fine! It's been REALLY helpful, as I think it just let me find a bug in the Animation class. On Tue, Dec 28, 2010 at 7:54 AM, snpe snp...@gmail.com wrote: John, Could you please tell me if you are install Android sources plugin successfully ? I have tested them, but I'm not sure if somebody use 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
Re: [android-developers] Re: Timezone picker
Yeah, I just finished building a NumberPicker that actually works, is configurable via XML, and doesn't constantly create new temporary objects. On Tue, Dec 28, 2010 at 8:01 AM, Pent tas...@dinglisch.net wrote: Shame the one from Settings isn't usable programatically actually (like so many built-in things... NumberPicker springs to mind). At least it wasn't when I last tried. -- 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] Possible bug when trying to re-use an animation.
I just ran into a problem that I'm pretty sure is a bug in the Animation class. I have a simple Animation that doesn't repeat. I use view.setAnimation() to run it. When it's done, I use view.clearAnimation(); Sometime later, I want to run it again. So I use view.setAnimation() again. The view flickers and nothing happens. So I did some poking around to see what was happening. (One useful diagnostic was that I created an AnimationWrapper that just logs when every Animation method is called.) View calls Animation.reset(), then starts using the Animation. The problem is that Animation.reset() does NOT reset the animation start time. So when the animation starts, the time is long past the animation expiration, so it stops immediately. Workaround: call Animation.setStartTime( -1) before you call view.setAnimation(). Fix: Animation.reset() should set mStartTime = -1; -- 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
Re: [android-developers] Animation problem
You may want to set the setFillBefore and/or setFillAfter values. (one of them defaults to true, the other to false.) On Tue, Dec 28, 2010 at 3:21 PM, iced pascal-h...@t-online.de wrote: Hello, I'm new here and I don't know if this is the right place for my problem. Please excuse me if it's wrong. I want to create a scale animation where a view grows a bit from it's original size and then shrinks to it's old size. -- 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
Re: [android-developers] RelativeLayout problems
I fixed the id problem that was pointed out by the previous reply. It made no difference. On Sun, Dec 26, 2010 at 11:44 PM, Kostya Vasilyev kmans...@gmail.comwrote: John, Two suggestions: 1 - When your app suspends like this, it means it's crashing, but hasn't quite crashed all the way yet, which is why there is no logcat output at that point. Click 'resume execution' in Eclipse, and again if necessary. You only get logcat output (and the close dialog on the device) once the exception has propagated to the top-level exception handler. I tried clicking on resume. Twice. The app exited, the debugger disconnected from the Emulator, and still no logcat output. 2 - Logcat window in Eclipse is very nice (filtering, color highlighting), but just too small. Not on my screen. I re-arranged the tabs in Eclipse, and have a 24 1920x1200 monitor. -- 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
Re: [android-developers] Getting the Android Java source?
On Mon, Dec 27, 2010 at 3:46 AM, Mark Murphy mmur...@commonsware.comwrote: If you are getting this in Eclipse, then your problem is with Eclipse and the ADT plugin. BridgeXmlBlockParser is related to the layout preview/drag-and-drop stuff, near as I can tell via Google Code Search. If you have not done so already, restart Eclipse and see if that helps. Beyond that, particularly since I am not an Eclipse user, I have no particular advice. I've restarted Eclipse, multiple times. This appears to have something to do with a Custom widget I have in my XML file. I'd really like the Java source so I can see what Eclipse is choking on. -- 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