Image Buttons Xml and Activity Error for tablet - android

Sorry for english
First this is the main screen on my application:
ok, so im creating a wallpaper application for android and when i have my xml file in this way with the image buttons:
It works completely fine.
But when i have in this format for tablets:
This version when i go back to home screen and select a diffrent category i get Force Close and i dont know why, with the first version it doesnt Force close but the other layout does? i dont under stand it could some one help me.
Thanks

Ok i found the error for some reason android doesnt like the layout format that way had to change it, thanks anyways everybody

Related

Android ouTouch shows actionbar and bottomtabs

What i want is to build an app that reads very long text from database and display it into lot of pages. And i also wanted to have onTouchEvent i think for the First screen. And will be shown like this, http://imgur.com/BZ6FC3m,ja0qNX5#1. When its touched it will like this http://imgur.com/BZ6FC3m,ja0qNX5#0. Can you help me with this, i just wanted to know where should i start from here. Maybe some link which is just like this or something like this one, just something i can refer to and get started
u can use "SystemUiHider"
for example create new project in android studio , in "Add an Activity " Select FullScreen Activity and run :)

Can we set the location of android keyboad? if yes how?

I am new in Android. I am creating a calling app, where I am using android keyboard. but at the bottom I want "Dial" Button which should show even after the keyboard is appear. Currently I created a screen where all working is fine but when keyboard appears the "Dial" button is get hidden. This is the scenario, please suggest me, Can we set the location of android keyboard or What else I can do.? Please suggest me how can I do this.
Thanks in advance.
The Wireframe for screen is like below image
I guess this link Might solve your problem.
Android_Dialer

How can I edit Android's application menu?

I would like to edit the application menu in Android (where all apps and widgets are displayed).
Like this:
I would like to create an app where you can select how the icons (applications) are shown in this menu. I'm not sure if it is even called "application menu" so I'm having some trouble to find some more info about this matter.
If anyone could help me find a way to override the original layout or point me in the right direction, that would be awesome!
Thanks in advance!
What you are showing in the pic, is called a Launcher.
You can create a custom Launcher. Check this question to get started.

Menu does not showup first time after install

i a facing very weird problem in my app. i am inflating a layout on pressing menu key. and setting that layout on popupwindow. the prob i am facing is that when i install build on device and press menu key, popup does not show up. but if i navigate to some other screen and come back to previous screen, menu key works perfectly.
even if i cllose app and open it next time, menu key works fine. it does not work for the first time after install.
thanks in advance.
Maybe you set your click listener for the menu button in the wrong lifecycle method? Perhaps it doesn't add the listener until after onPause()? Seeing some source would be very helpful to be sure.
I think android pretty much decides on its own when it updates its layouts and redraws the view. Maybe your newly inflated view doesnt affect the other layouts in a way that makes this seem neccessary. I would try to call requestLayout()/forceLayout() on the main layout...
Not sure though...

the application has stopped unexpectedly

I have built a game. When the user clicks a button on the main page, he is redirected to another activity for a predefined time(say 20 s) and then he returns to the main page where he can choose another button. Now, this works perfectly on the emulator but on the phone when I clicks another button on the main page, it says the application has stopped unexpectedly. Force close. However, if I wait for say 3 s before clicking another button, it works. Is it because the images on the background of the buttons are too heavy?? Kindly help. Thanks in advance.
hey! i found out what was wrong. There was one picture which was too heavy!! it works fine now :)
Sometimes this error results from the widget like textview and so on, please delete the line related to something like textview.

Categories

Resources