Click here to Skip to main content
12,754,880 members (35,204 online)
Rate this:
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 16:13pm
Richard MacCutchan 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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170217.1 | Last Updated 3 Jan 2013
Copyright © CodeProject, 1999-2017
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