Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Comments
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

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>
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900