of course ...
this is the [appname]activity.java which is in :src
package [packagename];
import android.app.Activity;
import android.os.Bundle;
import android.content.Intent;
import android.net.Uri;
public class PackageNameActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Uri uriUrl = Uri.parse("url for browser to go when launching");
Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);
startActivity(launchBrowser);
}
}
here is the androidManifest.xml :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="[packagename]"
android:versionCode="5"
android:versionName="4.1" >
<uses-sdk android:minSdkVersion="1" android:targetSdkVersion="7" />
<supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true"/>
<uses-permission android:name="android.permission.INTERNET" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity android:name=".[AppName]Activity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
here is main.xml :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android

rientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"/>
</LinearLayout>
here is strings.xml which is inside the 'values' directory :
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World</string>
<string name="app_name">[appname]</string>
</resources>
I played around with it, remove the string, changed it , removed here and there but didn't make it to go away.
even when no string - it is still giving me the black screen.
I just want it to exit app when hitting the back button....
thank you good people for your help and it's ok to laugh at noobies...

)
