Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Java Android
Hi All,

Can you please help me? I'm a newbie in android programming. Whenever i run my code the emulator didn't preview my layout. Please help me.


Thanks!!
Posted 8-Dec-12 16:13pm
Comments
Richard MacCutchan at 9-Dec-12 6:09am
   
We need more detail in order to help you. Remember we cannot see your screen and have no idea what your code is doing. Please use the "Improve Question" link above and add the information.
AndroidVivek at 3-Jan-13 1:31am
   
what is your issue layout is not fitting or
layout doesn't seems you ...

try to delete avd and re run..
check a proper error . where are you getting from ,
it can be in xml also...

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi Janna Mamer Dela Cruz,

Was you emulator dont show your desired layout ?
Check again on onCreate() method of your Activity

public class Your_Activity extends Activity{
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        // check here carefully.
        setContentView(R.layout.your_desired_layout);
    }

One more point, check whether your desired layout was set to MAIN layout.
Check in your AndroidManifest.xml file.
Main activity ( which be started at first when application is run ) has below property:
<intent-filter>
	<action android:name="android.intent.action.MAIN" xmlns:android="#unknown" />
</intent-filter>
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 199
1 Sergey Alexandrovich Kryukov 154
2 Sascha Lefévre 120
3 Abhinav S 104
4 Rana Waqas 78
0 Sergey Alexandrovich Kryukov 6,628
1 OriginalGriff 6,298
2 Peter Leow 2,534
3 Maciej Los 2,437
4 Abhinav S 2,378


Advertise | Privacy | Mobile
Web02 | 2.8.150414.1 | Last Updated 3 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100