Why Action Settings doesn't show while changing Device? - android

Why I can't see action settings in action bar in Samsung Mini S3 after simple hello world compilation where it shows up in Nexus 7. Is it depend on somehow in app theme the one I am using? I tried to change app theme but it looks like it always takes Nexus S layout even i select Samsung Mini Display size. Any idea ?
PS. I also can't select Samsung Mini Display size 800*480 where in ADB i have option 480*800

If you are using the default action bar which gets created in a new android application you will of course not see the overflow menu on the samsung mini S3 because if i am not mistaken then s3 mini has a hard button on the left which will open up the overflow menu for you

Related

How can I set the design preview in Android Studio to show a tablet layout instead of a phone layout?

I'm at the moment developing an app for tablets and the app isn't supposed to be available for phones.
When I edit an XML in Android Studio, there's the design preview that shows roughly how the XML will be rendered on the device. By default it's set to show it in a phone device. How do I set this to be a tablet view?
By default, it should have a nexus 5 and an icon at the top. Click on that icon ans a list of devices will appear.In the third listView you will find Nexus 7 where it is a tablet. CHoose one from that listView.
Go to XML EDITOR
Click on Device Editor
Now you will see different type of Device with there Name ,resolution and size
Bottom of the device list you will see Generic Phones and Tablets
In Android Studio, go to Preview - Top Toolbar:
The pixel phone name will let you choose the screen to show in the
Android Studio Preview so, this can be helpful to design the layout
for Tablets.
The second icon, has two options called Landscape and portrait which the first one Landscape will help to design the layout for the purpose.
The second option & important is, Create Tablet Variation which creates few directories for designing the Tablet layout.
There is also an option in the phone icon called Generic phones and Tablets which you might consider using.

Samsung galaxy not displaying menu

I have created an android program.It has a menu button and I published it in Google play.But in my phone Samsung Galaxy not showing that menu .I tried it in LG Nexus 4 it works fine .Then I tried in different tablets and works fine .Micro max ninja not showing menu.
Also I want to know about menus of different style .How to enable horizontal scrolling?
What kind of Menu button? The one that is displayed on the Action bar or digital buttons below? Because it might not be displayed because the phone might have a dedicated, physical menu button.
As from the Android docs:
The action overflow in the action bar provides access to your app's less frequently used actions. The overflow icon only appears on phones that have no menu hardware keys. Phones with menu keys display the action overflow when the user presses the key.

Shortcut icon takes wrong image size on Galaxy Nexus

I tried creating an app which puts a shortcut icon on the home screen of the device.
It works nice on other devices, but on my Galaxy Nexus (with 4.2.1) the icon crops the icon image and takes the top left of it only.
It appears like this:
Any idea why this might be happening, or is it a bug?
Try delete all the icons except the one for the galaxy nexus(if i remember good it's 96X96)
It's an issue with a custom ROM.
Handle this case and put another shortcut icon to Galaxy Nexus (with 4.2.1)

HTC One X - shows "compatibility" menu icon

I have application which uses Sherlock ActionBar package.
The application uses platform-specific behavior for menu (so it's 3-dot icon in ActionBar on ICS and classic menu under HW button on pre-ICS)
I had recieved report from one user with HTC One X. It appears, that One X shows some "compatibility" bar with menu button on the bottom of screen, and there is also same button in ActionBar (where it's supposed to be).
I was not able to emulate this in AVD, and I have multiple reports that this issue is not present on Galaxy Nexus or Galaxy S (they show only the icon in ActionBar).
I have no idea where to look to resolve this or how to debug it, so any help or workaround will be appreciated.
Application is built against API14, with targetSdk="11"
You have a typo:
The android:targetSdkVersion in the manifest should be the solution - it's recommended by Google to always set it to the maximum available (currently it's 19).
Some websites do show that HTC shows the huge button on old apps, but not on new ones, as shown here, so if you think it's weird/ugly, simply set the target SDK. Also make sure it's updated in the project.properties file .

How to play fullscreen video on Samsung Galaxy Tab 10.1

I developed an app that plays a video on fullscreen mode, it works fine on mobile phones but when I tested it on a Samsung Galaxy Tab 10.1 running on Honeycomb 3.1 it seems the taskbar still stays on the bottom.
I tried running some apps like angry birds but still it can't run on fullscreen mode, the taskbar stays on the bottom still. Running the youtube app just makes taskbar into black and the screen mode stays the same.
Is this a limitation on a Samsung Galaxy Tab 10.1? or this a standard on all HoneyComb?
Thanks Android Gurus =)
The bottom bar can never go away on Honeycomb, because since tablets do not have hardware home or back buttons, the only way for the user to exit your app is to use the bottom status bar. If it were hideable, they would be stuck in your app, and that wouldn't be a good user experience.
AmandeepGrewal is correct, but you should also be able to "dim" the bar with:
setSystemUiVisibility(int).
You can see if this is of any help:
ActionBar actionBar = activity.getActionBar();
if (actionBar != null) {
//mContentView.setSystemUiVisibility(visibility);
if (visibility == View.STATUS_BAR_VISIBLE) {
actionBar.show();
} else {
actionBar.hide();
}
}
Well, apparently, it is possible for the taskbar to be hidden completely on Honeycomb 3.2 because I have a Samsung Galaxy Tab Plus 7.0, and when the Kindle app runs, the taskbar completely disappears. If one taps the screen anywhere in the Kindle app, the taskbar pops back up.
Presumably, any app could be written or modified to allow this capability.

Categories

Resources