android-3.0-honeycomb

Is there a way to hide the system bar in Android 3.0? It's an internal device and I'm managing navigation

安稳与你 提交于 2019-12-27 10:40:35
问题 In Android 2.3 and below, you could make an application full screen, and then "hijack" the menu/back/search buttons by just returning false onKeyDown()... and registering the app as a default home launcher application, that way, there's no way to exit the application. In Android 3.0 (Honeycomb) the navigation buttons (System Bar) is always present, I'd like to hide it. Is it possible? FYI, I am not publishing this application on the Android Market. This is an internal application for devices

Is there a way to hide the system bar in Android 3.0? It's an internal device and I'm managing navigation

孤街浪徒 提交于 2019-12-27 10:40:31
问题 In Android 2.3 and below, you could make an application full screen, and then "hijack" the menu/back/search buttons by just returning false onKeyDown()... and registering the app as a default home launcher application, that way, there's no way to exit the application. In Android 3.0 (Honeycomb) the navigation buttons (System Bar) is always present, I'd like to hide it. Is it possible? FYI, I am not publishing this application on the Android Market. This is an internal application for devices

Android HoneyComb Error using Actionbar

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 18:31:23
问题 Honeycomb error android.os.NetworkOnMainThreadException after i set my target sdk to 11. I used the below codes to ignore it. Will it effect my app? Can somebody suggest anything to overcome this problem. StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.grid_layout); StrictMode.ThreadPolicy policy

How to access sqlite DB on the Xoom?

你离开我真会死。 提交于 2019-12-25 08:59:06
问题 I have a Nexus One (rooted) and a Xoom (stock, not rooted). I have developed on my Nexus for quite some time, without any problems. I'm facing one with the Xoom, however, as it is not rooted. Indeed, I use sqlite databases in my apps, and I would like to debug them using sqlite3 as I do on my Nexus. It doesn't work! $ pwd / $ id uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),3001(net_b_admin),3002(net_bt),3003(inet) $ sqlite3

It is possible to make a HoneyComb activity unclosable?

徘徊边缘 提交于 2019-12-25 08:35:27
问题 I'm developing a presentation style application for HoneyComb Tablets. At one stage the tablet may be passed around a room for people to interact with. If possible I would like to prevent malicious users from navigating away from the current activity. So far I have overwritten the onBackPressed() to prevent finishing the activity but users can still press the other buttons on the status bar and also leave the app via notifications that pop up. Any suggestions or possible solutions? Thanks 回答1

Webview is making problem in Android HoneyComb

强颜欢笑 提交于 2019-12-25 04:08:09
问题 I am developing an application for Moto Xoom. I am displaying some static content in the webview, once the content is loaded, after scrolling down, displaying one button in the bottom. Following are the properties set to webview. mWebview.setWebViewClient(new WebViewClient()); mWebview.setVerticalScrollBarEnabled(false); mWebview.getSettings().setJavaScriptEnabled(true); mWebview.getSettings().setDefaultZoom(ZoomDensity.MEDIUM); mWebview.loadData(data, "text/html", "UTF-8"); In Layout, inside

Android List View selected item style not showing until user scrolls

浪尽此生 提交于 2019-12-24 22:14:20
问题 I am currently working on an Android tablet application which has two fragments, a list fragment and a details fragment. I am trying to make my list similar to People and Email where when selected the item background changes and a triangle is positioned on the right hand side of the list. I am currently having difficulties setting the background of the item selected in the list. As I understand in the list view I should set android:listSelector to a drawable and all should work. <LinearLayout

Is NinePatchDrawable+setColorFilter HW Accelerated in Honeycomb?

这一生的挚爱 提交于 2019-12-24 18:20:04
问题 I'm building compound controls (UI controls that consist of multiple standard UI controls) and I need HW acceleration (Honeycomb only app). The typical control will look like this: ViewGroup (some layout subclass) with a NinePatchDrawable background + setColorFilter on the background drawable. Inside that, one or more Views with a NinePatchDrawable background + setColorFilter on the background drawable. I'll build up my UI from compound controls like this. Will this hierarchy be hardware

How do I make my android apps fill the screen on Honeycomb?

泪湿孤枕 提交于 2019-12-24 04:47:06
问题 I just got a Xoom on Wednesday, and upon loading my apps onto it, they run in a small window, as if they are being run on a smaller device. Various other apps fill the screen of the Xoom, although they don't seem to be using any specific honeycomb APIs, as they just seem to be the same UI I get on my phone, just stretched to fit. How would I go about getting my apps to fill the screen? Do I have to use fragments, or is there a simpler way? 回答1: I figured it out: I simply had to set the

Use hardwareAcceleration flag with Canvas.clipPath

寵の児 提交于 2019-12-23 20:32:57
问题 I'm porting a project made for the Galaxy Tab 1, for Galaxy Tab 2, but the apk runs slowly so I added the hardwareAccelerated flag on the AndroidManifest.XML of the new application. But running give me the following error: java.lang.UnsupportedOperationException at android.view.GLES20Canvas.clipPath(GLES20Canvas.java:287) at br.com.iba.view.PageCurlView.drawCurl(PageCurlView.java:284) at br.com.iba.view.PageCurlView.onDraw(PageCurlView.java:353) at android.view.View.draw(View.java:9291) 回答1: