'Source Not Found' Error

by Mylk » Fri, 01 May 2009 01:04:32 GMT


Sponsored Links
 Hey All,

I'm working on my first app and I've come to a hurdle. When I launch
the app, I get nothing but a blank app screen.

My Class File Editor message gives me the following:

"Source Not Found"
The Jar of this class belongs to container Android '1.5' which does
not allow modifications to source attachments on its entries.

Here's my java code:

package com.example.newapp;

import android.app.Activity;
import android.os.Bundle;

public class NewApp extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);


And here's my XML:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=" http://schemas.android.com/apk/res/android" ;
      package="com.example.newapp"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/
app_name">
        <activity android:name=". NewApp"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <uses-sdk android:minSdkVersion="3" />


<RelativeLayout xmlns:android=" http://schemas.android.com/apk/res/ 
android"
     android:layout_width="fill_parent"
android:layout_height="fill_parent"
     android:padding="6dip" android:background="@drawable/
titleuiportrait">

     <Button android:id="@+id/getnewchar" android:text="Touch!"
          android:layout_height="wrap_content"
android:layout_width="fill_parent"
          android:background="@drawable/miniplay_button"
android:textSize="24sp"
          android:textColor="#FFFFFF" android:clickable="true"
android:hint="Get a new character"/>
</RelativeLayout>
</manifest>


Thanks for any help you can give.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Simulate call on real device

Hi guys...I was wondering if someone could ever simulate a call on a
real phone such as Nexus One or other...

I have trying to figure out how to do this...but couldn't..

I will really appreciate your help...

Thanks in advance..

Regards

-- 

2. Slow Process In Android Virtual Device(AVD)

Hi!

 I have download android emulator from the site,
 
http://www.blogsdna.com/10400/android-2-2-froyo-emulator-for-pc-and-mac-os-x.htm.

  1. android-sdk_r08-windows.zip
  2. installer_r08-windows.exe

After downloading this file , I have installed this file in my own
computer. I have created AVD on this emulator, Android 2.2, Android
1.6. But when I start my virtual android it takes too much time to
open the software.

I tried to run my own mobile application on this emulator through
browsing. But it will take too much time to open it in that browser.
So that I am unable to test it, whether my application will run on
android or not.

I have used SDCARD 512M for both the AVD.

Anyone knows what the problem is?

Thanks

-- 

3. Canvas and Bitmap overlaps each other.

4. [Android]How to get cursor position (x,y) on the screen

5. Require Android Developer for App

6. Samsung Galaxy MediaRecorder Issue

7. Proguard issue with Adsense library.