Phone doens't use layout-land when in landscape mode - Java for Android App Development

So I created a main.xml file in a layout-land folder. But when I run the app on my phone and I turn it into landscape mode it doens't do what it's supposed to do.
If I look at the Graphical Layout in Eclipse the code is correct but apparently it doens't run the code on my phone.
This is the .xml in the layout-land folder
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:background="@color/background"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="15dip"
android:orientation="horizontal" >
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:paddingLeft="20dip"
android:paddingRight="20dip" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="20dip"
android:text="@string/main_title"
android:textSize="24.5sp" />
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:stretchColumns="*" >
<TableRow>
<Button
android:id="@+id/continue_button"
android:text="@string/continue_label" />
<Button
android:id="@+id/new_button"
android:text="@string/new_game_label" />
</TableRow>
<TableRow>
<Button
android:id="@+id/about_button"
android:text="@string/about_label" />
<Button
android:id="@+id/exit_button"
android:text="@string/exit_label" />
</TableRow>
</TableLayout>
</LinearLayout>
</LinearLayout>
I wasn't able to include the package name because i am not allowed to post links

I know this may be a silly question but is your xml layout in your layout-land folder named the same as in your layout folder?

They are both called main.xml
Sent from my Galaxy Nexus using xda app-developers app

JanuS-1995 said:
They are both called main.xml
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
You don't happen to have android:configChanges="orientation" any where in your manifest do you?

Nope
Sent from my Galaxy Nexus using xda app-developers app

Soooo does it act correctly in an emulator?

I don't know. I takes ages for the emulator to start
Sent from my Galaxy Nexus using xda app-developers app

JanuS-1995 said:
I don't know. I takes ages for the emulator to start
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
Are you sure that you havent locked your phones rotation?

rexes13 said:
Are you sure that you havent locked your phones rotation?
Click to expand...
Click to collapse
Yes, I can rotate the screen but then it uses the regular layout and not the layout-land.

JanuS-1995 said:
Yes, I can rotate the screen but then it uses the regular layout and not the layout-land.
Click to expand...
Click to collapse
And there is no typo in layout-land?

ncesnp the
nikwen said:
And there is no typo in layout-land?
Click to expand...
Click to collapse
No, the folder is called: layout-land and the file is called main.xml

Found the problem!!!
the xml files apparently weren't the same (stupid mistake)
thanks for your time everyone!!

Disregard

Related

[q]wht makes an app as launcher

guys i have 2 doubts , its for my upcoming project.
1. wht code in manifestfile makes the app detected as a launcher in android?.
2. how to make an app starts right after boot.
guys i am not expecting a source code.i need some directions how to achieve it.
does any one has any ideas?
Sent from my GT-S5360 using xda app-developers app
jaison thomas said:
guys i have 2 doubts , its for my upcoming project.
1. wht code in manifestfile makes the app detected as a launcher in android?.
2. how to make an app starts right after boot.
guys i am not expecting a source code.i need some directions how to achieve it.
does any one has any ideas?
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
1st one, (i don't exactly remember) inside the <intent-filter> inside the main <activity>, write
Code:
<category android:name="android.intent.category.MONKEY" />
. There were more categories i suppose, but i don't remember.
2nd one, i don't have any idea!

Change display of Android version

Can someone please tell me how to change the text of Android version in about phone in settings to display 4.1.1like in roms like jelly blast v3
Sent from my GT-S5360 using xda app-developers app
darkshadow246 said:
Can someone please tell me how to change the text of Android version in about phone in settings to display 4.1.1
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
plz search before posting.Don t post without searching.
u need to change the value in build.prop file to dezired value and save it.
u need root explorer...
then navigate to
/system
then find build.prop
long press it and press open with text editor then find ro.build.version.release=X.X.X change X.X.X to any number or text..yes text..i tried text and it works perfectly..
MUFFINS¡¡
Muffin..or muffin u cant see
Im sorry to tell u.....u are MUFFINIZED...
samir basnet said:
plz search before posting.Don t post without searching.
u need to change the value in build.prop file to dezired value and save it.
Click to expand...
Click to collapse
I searched lots and didn't find it that's why I created this
Sent from my GT-S5360 using xda app-developers app
darkshadow246 said:
I searched lots and didn't find it that's why I created this
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
Are you sure about that? Seriously... lots is in the sense one too many... if you tried same words.. results will be same too.. try different patterns etc.. and you definitely did not search.. atleast not lots.. may be once if twice..
This comes in customization of rom.. there are tons and tons of thresds for that...
I'm not trying to flame you or anything.. but saying you searched without searching... that's bad..
Anyway, see my guide.. link in signature.. go to 11th post
See rom section... you will fund your answer without search.. as you hate that button..
___________________________________
[HELP THREAD]Ask Any Questions!
No one is listening until you make a mistake.
darkshadow246 said:
Can someone please tell me how to change the text of Android version in about phone in settings to display 4.1.1like in roms like jelly blast v3
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
Use root explorer go to build.prop
Open it using text editor and change android version to any value u desire..then save and reboot..
Press thanks if i helped u.!
darkshadow246 said:
Can someone please tell me how to change the text of Android version in about phone in settings to display 4.1.1like in roms like jelly blast v3
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
here>>
root ur device>>after tat use root explorer>>then navigate to/system>> find build.prop ter>>long press it then find ro.build.version.release=X.X.X change X.X.X to any number or text
Originally Posted by darkshadow246<br />
I searched lots and didn't find it that's why I created this<br />
<br />
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
<br />
<br />
Are you sure about that? Seriously... lots is in the sense one too many... if you tried same words.. results will be same too.. try different patterns etc.. and you definitely did not search.. atleast not lots.. may be once if twice.. <br />
<br />
<br />
This comes in customization of rom.. there are tons and tons of thresds for that...<br />
<br />
I'm not trying to flame you or anything.. but saying you searched without searching... that's bad..<br />
<br />
Anyway, see my guide.. link in signature.. go to 11th post<br />
<br />
See rom section... you will fund your answer without search.. as you hate that button..<br />
<font color="silver">___________________________________ </font> <br />
[HELP THREAD]Ask Any Questions! <font color="silver"> <br />
No one is listening until you make a mistake.</font>
Click to expand...
Click to collapse
Why don't you try searching for it
There are thousands of topics and I don't have the time for going through all of them
I hate using the search feature because it never gives my results and would have gone through at least half of the themes and apps section I've searched lots and couldn't find anything that's why I started this topic
Sent from my GT-S5360 using xda app-developers app
Changing it might make stuff think that its incompatible lol in my case v6 supercharger and maybe some apps
Sent from my GT-S5360 using xda app-developers app
darkshadow246 said:
Why don't you try searching for it
Click to expand...
Click to collapse
Well, I have searched it.. and I have found answer...
There are thousands of topics and I don't have the time for going through all of them
I hate using the search feature because it never gives my results
Click to expand...
Click to collapse
this kind of attitude won't get you anywhere...
No need to rush it if you don't have time.. take time and search and read.. being polite helps a lot.. I could give you links.. or many will help you I'm sure.. but searching and trying yourself before asking someone to do what you couldn't would not be right now would it be?
and would have gone through at least half of the themes and apps section I've searched lots and couldn't find anything that's why I started this topic
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
Sorry you had to go through all that... the topic you are looking for not only applies to our phone.. but to all xda android forums.. so try to widen your search... and you didn't even read my last post full.. I already gave you answer... if only you check links...
Also, you can't learn everything in an instant.. try to search and read..
Also, you can ask in the help thread.. I mean for a thing you couldn't find from search.. someone can get it there for you..
___________________________________
[HELP THREAD]Ask Any Questions!
No one is listening until you make a mistake.
i already answered the question...
but there are many threads bout this...u should have posted this on help thread by deadly...
nuff said...
MUFFINS¡¡
Muffin..or muffin u cant see
Im sorry to tell u.....u are MUFFINIZED...
Let's not get angry and fight
any way thanks guys for giving me a reply just after like 2minutes of it's creation
Sent from my GT-S5360 using xda app-developers app

[Solved]Need Official Gingerbread Launcher working on Custom Rom

Guys I am missing my official gingerbread launcher alot. And I am fed up of other launcher as some may have ads and buy pro and etc craps.
Please somebody help me !!!
If anyone have it please share it with me, I will by very thankfull to him.
Sent from Earth
The touchwiz launcher or gingerbread launcher?
Sent from my GT-S5360 using xda app-developers app
anubhavrev said:
The touchwiz launcher or gingerbread launcher?
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
Ummm...tw launcher...
Thats comes with galaxy y as default launcher.
Sent from Earth
It may be possible ....
Take backup of your current rom..
Just flash stock rom ....
Go to /system/etc/permissions/
Copy touchwiz.XML to any folder in sdcard....
Then go to /system/framework/ twframewrk.jar. then copy that jar
File to sdcard....
Restore backup....
Copy both files at appropriate place.
Change their permission
And reboot..........
Then install default (stock) launcher
Enjoyyy!!!!!!
Press thanks if it doesn't cost you
Sent from my GT-S5360 using xda premium
It may be possible ....<br />
Take backup of your current rom..<br />
Just flash stock rom ....<br />
Go to /system/etc/permissions/<br />
Copy touchwiz.XML to any folder in sdcard....<br />
Then go to /system/framework/ twframewrk.jar. then copy that jar<br />
File to sdcard....<br />
Restore backup....<br />
Copy both files at appropriate place. <br />
Change their permission<br />
And reboot..........<br />
Then install default (stock) launcher<br />
<br />
Enjoyyy!!!!!!<br />
<br />
Press thanks if it doesn't cost you<br />
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
After completing the following steps can i restore the backup of the launcher ?? as i dont have the apk of the launcher.
Will it work ??
Sent from Earth
androite said:
After completing the following steps can i restore the backup of the launcher ?? as i dont have the apk of the launcher.
Will it work ??
Sent from Earth
Click to expand...
Click to collapse
Sorry when u r on stock rom, in the /system/app/
Folder copy touchWiz launcher.apk or Samsung home. Apk in sdcard.......
And then install it
Press thanks if it doesn't cost you
Sent from my GT-S5360 using xda premium
---------- Post added at 11:41 PM ---------- Previous post was at 11:33 PM ----------
Here is link for launcher
http://www.mediafire.com/?m1xas5t1jicglki
Sent from my GT-S5360 using xda premium
LetJect said:
Sorry when u r on stock rom, in the /system/app/
Folder copy touchWiz launcher.apk or Samsung home. Apk in sdcard.......
And then install it
Press thanks if it doesn't cost you
Sent from my GT-S5360 using xda premium
---------- Post added at 11:41 PM ---------- Previous post was at 11:33 PM ----------
Here is link for launcher
http://www.mediafire.com/?m1xas5t1jicglki
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
Thanks.
Lets see what happens. I'll report you soon.
Sent from Earth
androite said:
Thanks.
Lets see what happens. I'll report you soon.
Sent from Earth
Click to expand...
Click to collapse
Sure
Sent from my GT-S5360
LetJect said:
Sure
Sent from my GT-S5360
Click to expand...
Click to collapse
That is not working...
Sent from Earth

Plz Any One Make Stock Odex DDmd1 flashable 14 toggles... with Flashlight work

plz plz plz ... make one .. with flashlight....
Sent from my GT-S5360 using xda app-developers app
If you have lidroidparts.apk installed and everything else in your SystemUI.apk
decompile your SystemUI.apk with apktool
open AndroidManifest.xml
above /application add the following
Code:
<activity android:theme="@*android:style/Theme.NoTitleBar.Fullscreen" android:name="com.lidroid.systemui.quickpanel.FlashlightActivity" android:clearTaskOnLaunch="true" android:launchMode="singleTask" android:configChanges="keyboardHidden|orientation" />
Recompile & sign
you could also extract the SystemUI.apk from one of my statusbars but you have to have the lidroid parts installed first
i have not enough time to all.. sir can u mak one for me ... in Stock Odex DDMD 1.. i need flash light work
Sent from my GT-S5360 using xda app-developers app

X3 Plus Playstore Problem

Yesterday I received my very first smartwatch X3 Plus in my mail. Its a great watch, however one issue I have when I try to sign in thru my google ID in Playstore. After putting my password and tapping next its just keeps on loading and nothings happens. I tried several times but still same.
Could anyone help me in this.
Thanks.
Check your IMEI number is intact by dialling *#06# from the watch dialler
Sent from my HTC 2PS6200 using Tapatalk
pablo11 said:
Check your IMEI number is intact by dialling *#06# from the watch dialler
Sent from my HTC 2PS6200 using Tapatalk
Click to expand...
Click to collapse
IMEI is showing upon dialing above code.
Any suggestions to fix this issue?
afbcamaro<br />
New Member<br />
*<br />
about an hour ago<br />
Quote<br />
<br />
It seems the last update has a fault in it.. In your watch enable development options in settings and check unknown sources.. Download /Install the Google Services application below in the link (the one labeled for Android 5.0+).. Reboot and it will start working properly.. Have Fun!!<br />
<br />
gappsandroid.blogspot.com/2016/10/google-play-services-apk-download.html?m=1
Download this version of play services. Copy to the watch and install it.
Sent from my HTC 2PS6200 using XDA-Developers mobile app
---------- Post added at 11:48 PM ---------- Previous post was at 11:47 PM ----------
New OTA is being worked on right now.
Sent from my HTC 2PS6200 using XDA-Developers mobile app
pablo11 said:
afbcamaro<br />
New Member<br />
*<br />
about an hour ago<br />
Quote<br />
<br />
It seems the last update has a fault in it.. In your watch enable development options in settings and check unknown sources.. Download /Install the Google Services application below in the link (the one labeled for Android 5.0+).. Reboot and it will start working properly.. Have Fun!!<br />
<br />
gappsandroid.blogspot.com/2016/10/google-play-services-apk-download.html?m=1
Download this version of play services. Copy to the watch and install it.
Sent from my HTC 2PS6200 using XDA-Developers mobile app
---------- Post added at 11:48 PM ---------- Previous post was at 11:47 PM ----------
New OTA is being worked on right now.
Sent from my HTC 2PS6200 using XDA-Developers mobile app
Click to expand...
Click to collapse
Thanks, the above solution worked.
Good. New OTA is out now anyway. We got it released this morning
Sent from my HTC 2PS6200 using Tapatalk

Categories

Resources