Click here to Skip to main content
11,806,590 members (43,207 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Java Mobile 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.

Posted 8-Dec-12 15:13pm
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
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{
    public void onCreate(Bundle savedInstanceState) {
        // check here carefully.

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:
	<action android:name="android.intent.action.MAIN" xmlns:android="#unknown" />

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

  Print Answers RSS
0 ppolymorphe 295
1 OriginalGriff 150
2 George Jonsson 135
3 Richard Deeming 120
4 CPallini 100
0 OriginalGriff 3,380
1 Maciej Los 1,990
2 CPallini 1,915
3 KrunalRohit 1,907
4 ppolymorphe 1,317

Advertise | Privacy | Mobile
Web04 | 2.8.151002.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