android-3.0-honeycomb

Android Actionbar Search widget implementation In ListFragment

有些话、适合烂在心里 提交于 2019-12-02 14:03:39
I currently have my application set up with a ListFragment on the left and a DetailsFragment on the right (similar to the layout on the tablet below). On the action bar I have a search widget which when a search term is submitted should update the contents of the list (in the ListFragment). I have been following the search guide on android dev ( http://developer.android.com/guide/topics/search/search-dialog.html ) but I am having problems getting the search to update the list in the same activity. I have managed to get some form of implementation working by calling a new activity when the

NullPointException with getActionBar

眉间皱痕 提交于 2019-12-02 08:15:57
I have a really strange behaviour with my tablet interface (Android > 3). When I launch it, it's like a Android 2* interface with the title at the bottom. And of course when I call the getActionBar() it returns a null. My min-sdk & target-sdk are well set and I use the SDK Android 3.0 (11). Where am I wrong ? public class MainScreenActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mainlayout); ActionBar bar = getActionBar(); bar.setBackgroundDrawable(getResources().getDrawable(R.drawable.actionbar

Is there a file size limit on Android Honeycomb?

梦想的初衷 提交于 2019-12-02 05:34:31
问题 I wanted to know if there was a size limit to the data files an android app can use or a size limit depending on the SD card (or internal memory) filesystem ? Cheers Olivier 回答1: The file size limit is determined by the filesystem. FAT32, for instance, cannot handle files larger than 4GB. Unfortunately, it is fairly likely that your microSD card is formatted in FAT32. For Android 2.2 and older, the internal file system is YAFFS. The author, Charles Manning, states in this mailing that the

Android Honeycomb: layout problem - hide/show FrameLayouts

随声附和 提交于 2019-12-02 04:38:39
问题 in my Activity , I have a layout containing 3 FrameLayout s, one at the top, one at the left and one at the "center". Now, I sometimes only want to display one or two of them. Atm I am doing it this way: FrameLayout frame = (FrameLayout) findViewById(R.id.framelayout_menu_left); frame.setVisibility(...); frame = (FrameLayout) findViewById(R.id.framelayout_content); frame.setVisibility(...); frame = (FrameLayout) findViewById(R.id.framelayout_menu_top); frame.setVisibility(...); However this

How can I hide or remove the status bar in Android HoneyComb?

為{幸葍}努か 提交于 2019-12-02 04:28:17
How can I hide or remove the status bar in Android HoneyComb? Every time I run my application, I find some contents have to be covered by the status bar. I have try to change the AndroidManifest.xml , but nothing changed. You don't. It's considered a permanent screen decoration in the same way that capacitive home/menu/etc. buttons below the touchscreen on Android phones are. How are you measuring the space available for your content? Intrications You can only dim the status bar. See How do I dim the system bar in Android 3.0 (Honeycomb)? 来源: https://stackoverflow.com/questions/6563957/how-can

Can GeoCoder getFromLocation method cause a NetworkOnMainThreadException to be thrown?

喜夏-厌秋 提交于 2019-12-02 02:35:10
I have an app which was tested thoroughly and working fine on Android Gingerbread (and older Android versions). I've noticed from users' reported crash errors that phones running later versions of the Android operating system are throwing a NetworkOnMainThreadException . I'm trying to work through my code and eliminate/fix all culprits. Would the GeoCoder getFromLocation and getFromLocationName methods throw a NetworkOnMainThreadException if called from the main/ui thread? Seems like these Geocoder methods and any networking or i/o calls are going to throw up a NetworkOnMainThreadException .

Android Honeycomb: layout problem - hide/show FrameLayouts

こ雲淡風輕ζ 提交于 2019-12-02 01:58:06
in my Activity , I have a layout containing 3 FrameLayout s, one at the top, one at the left and one at the "center". Now, I sometimes only want to display one or two of them. Atm I am doing it this way: FrameLayout frame = (FrameLayout) findViewById(R.id.framelayout_menu_left); frame.setVisibility(...); frame = (FrameLayout) findViewById(R.id.framelayout_content); frame.setVisibility(...); frame = (FrameLayout) findViewById(R.id.framelayout_menu_top); frame.setVisibility(...); However this can get really ugly results, e.g. when I switch the "content" Fragment and hide the top and/or left

Screen Size Honeycomb Menu android

时光毁灭记忆、已成空白 提交于 2019-12-02 00:12:49
问题 Hi I am trying yo get the screen size of screen minus the menu bar at the bottom. I know I could just subtract a constant number according to the resolution of the device but it is a super ugly hack. I am sure google people are not dumb enough to forget to give the user a function to get the height of the bottom menu bar so I can subtract it from the full screen size This is a similar post. Size of android notification bar and title bar? DisplayMetrics metrics = new DisplayMetrics();

Screen Size Honeycomb Menu android

廉价感情. 提交于 2019-12-01 21:43:54
Hi I am trying yo get the screen size of screen minus the menu bar at the bottom. I know I could just subtract a constant number according to the resolution of the device but it is a super ugly hack. I am sure google people are not dumb enough to forget to give the user a function to get the height of the bottom menu bar so I can subtract it from the full screen size This is a similar post. Size of android notification bar and title bar? DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); what_i_need =metrics.heightPixels-buttomMenuHeight(

Android Honeycomb: Fragment not able to start AsyncTask?

雨燕双飞 提交于 2019-12-01 21:35:49
I've run into this error before, but thought it was some mistake by the strict mode system. However, it apparently was right as I sadly found out now. :( My programm is made of one Activity and loads of Fragments. I have a NetworkWorker fragment, which starts URL requests like this: public void startURLRequest(Fragment target, String url, String message) { if (asyncTask != null) asyncTask.cancel(true); asyncTask = new FragmentHttpHelper(url, message, target); asyncTask.doInBackground(); return; } FragmentHttpHelper is a custom inner class derived from AsyncTask: private class