android-4.0-ice-cream-sandwich

Android and JFileChooser

南笙酒味 提交于 2019-12-31 01:57:07
问题 I've developed a desktop application that allows the user to extract images from their phone. When I first started this project, my android was running Gingerbread. When I plugged my phone into the laptop via USB, it would appear as a "Device with removable storage". Therefore, the JFileChooser would pick it up. nwdir = new JFileChooser(); nwdir.setCurrentDirectory(new java.io.File("C:\\")); nwdir.setDialogTitle(choosertitle); nwdir.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); nwdir

Problems using extensions in tel: hyperlinks on Android 4

不羁的心 提交于 2019-12-30 10:12:14
问题 We have a mobile web site with some phone number links, like this: href="tel:12345678,123" This works fine on most devices, but it appears it doesn't work on many/all Android 4 devices. The extension simply doesn't appear in the dialer when you tap the link. Anyone found a solution to this? 回答1: According to the documentation, the tel: scheme supports RFC 3966. Reading these RFCs is a bit like reading cuneiform on clay tablets, but from what I can tell, your syntax is not part of that

Problems using extensions in tel: hyperlinks on Android 4

偶尔善良 提交于 2019-12-30 10:12:07
问题 We have a mobile web site with some phone number links, like this: href="tel:12345678,123" This works fine on most devices, but it appears it doesn't work on many/all Android 4 devices. The extension simply doesn't appear in the dialer when you tap the link. Anyone found a solution to this? 回答1: According to the documentation, the tel: scheme supports RFC 3966. Reading these RFCs is a bit like reading cuneiform on clay tablets, but from what I can tell, your syntax is not part of that

toddler safe app on android

*爱你&永不变心* 提交于 2019-12-29 04:28:06
问题 I have an app, that should be toddler safe. Meaning that, it blocks any single key touch, yet handles long pressing for exiting the app. This is so that, the toddler will be safe from doing (too) nasty things while playing. Up to version 2.3.4, I succeeded in achieving this. However, now I have 2 problems: On honeycomb, I have the status bar notifications which can be pressed on. Also , I have the switch-windows key which can be pressed. The only thing I succeeded with it is to dim the status

Android 4.0 ICS turning HttpURLConnection GET requests into POST requests

 ̄綄美尐妖づ 提交于 2019-12-28 04:08:08
问题 My Galaxy Nexus arrived today, and one of the first things I did was to load my app onto it so I could demonstrate it to my friends. Part of its functionality involves importing RSS Feeds from Google Reader. However, upon trying this, I was getting 405 Method Not Allowed errors. This problem is Ice Cream Sandwich-specific. The code I've attached works fine on Gingerbread and Honeycomb. I've traced the error down to the moment the connection is made, when the GET request magically turns into a

Autostart html5 video using android 4 browser

╄→尐↘猪︶ㄣ 提交于 2019-12-28 02:08:06
问题 I want to auto-start android html5 video using android 4 ice cream sandwich browser. I tried many java-script functions and autobuffer autoplay tags of html5 video. But nothing worked. I start android chrome client in webview via android app and that client should be able to auto-start video. When click the play button video plays but not auto play. Is it restricted in android? Other thing to notice is that no call back methods are called in chromeClient even when we click the play button &

Android 4.0: widgets not appearing?

眉间皱痕 提交于 2019-12-27 20:06:56
问题 I have a widget I created against Android 2.1 that's been fine and selling on the market. I had a user complain that he bought it and it never showed up on his Android 4.0 device. I loaded up the 4.0 emulator, ran it from Eclipse, it reported a successful installation and in fact I can see it listed in the "Widget Preview" app, and I can run it there and it seems fine, but it doesn't show up anywhere under "Widgets" -- I can't actually find it to drag it to the home screen! I assume this is

Background not blur activity in ICS api level 14 when open dialog in android

亡梦爱人 提交于 2019-12-25 10:49:12
问题 I making apps for background image blur when open dialog on button click event and its working for api level 8(Gingerbread) and api level 14 (ICS) not background image blur its only dimming background like on light black, what i do, Thanks for in Advance This is code working on Android 2.3 and 4.0 not working, AlertDialog alertDialog = alertDialogBuilder.create(); WindowManager.LayoutParams lp = alertDialog.getWindow().getAttributes(); lp.dimAmount=0.0f; alertDialog.getWindow().setAttributes

Change /data/local Permissions

烈酒焚心 提交于 2019-12-25 08:18:58
问题 I installed an ICS rom onto my Incredible and discovered that I could no longer run applications through Eclipse to test them. I searched StackOverflow and found an answer to why my problem was happening in this question, but how do I change the permissions of /data/local ? I don't want to mess anything up. This is probably an extremely easy fix, but thank you for the help! 回答1: You must be root, open a terminal emulator and on the first line type su to give you admin rights and hit enter. On

AS3 Air 3.3 app on Android always crashes after 4 seconds

自作多情 提交于 2019-12-25 05:14:33
问题 I'm testing on an HTC Sensation, running android 4.0.3. I'm publishing using FlashDevelop 4.0.3 and using the Air Mobile AS3 App template. All the application does is display a Rectangle using: this.graphics.beginFill(0x00FF00); this.graphics.drawRect(0, 0, 100, 100); Just so I can see that its actually publishing something. The app runs correctly if I publish to the desktop, however when I switch to publishing it to the phone, the problem I'm facing is that the application publishes and runs