'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. how to make two apks install at the same place

Hi,

I have one apk that installs at folder data/data/totalcross.android.
Now i have another application that should install the files in that
folder. How can i create a apk that does this?

thanks in advance

   guich

ps: dear moderator, if this question should not belong to this forum,
please move it to the proper forum INSTEAD OF DELETING IT. thanks.

2. Battery Life vs Features

I'm curious as to how many developers take into consideration battery
life before implementing a feature.
Say you could implement a really nifty feature using the camera, but
you know that would drain the phone's battery faster on an
nonessential ability, what do you do? Do you completely disregard
battery consumption because that really just isn't your concern/ it's
just too cool? Or do you go for a more simple variation, that would
give the user longer battery life?

3. sending around 1000 messages in batch using SMS API

4. Audio Source Input for MIC Recording

5. Ringtone from the RingtoneManager always returns null

6. Extending contacts

7. How to get device details