Code:
package project.moe;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.view.View.OnClickListener;
import android.os.Bundle;
public class ProjectActivity extends Activity {
/** Called when the activity is first created. */
Button enter;
@Override// Line 23
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button enter= (Button)findViewById(R.id.buttonenter);
enter.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Intent moe= new Intent(getApplicationContext(), UserActivity.class);
startActivity(new Intent (moe));
}
});
}
}
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus"
android:required="false" />
I have this on my Android manifest
On Sun, May 6, 2012 at 10:22 PM, Jason Teagle <[email protected]>wrote:
> so i did restart everything and still it doesn't want to run. And no i
>> didn't change
>> anything in my code.
>>
>
> Very odd! Are you relying on any external resources, such as phone
> hardware, memory cards, etc.? Something that might have changed its state
> suddenly (thus, your code remains the same but values you are obtaining
> from those items are no longer valid)?
>
>
>
> Attached you will the logCat errors
>>
>
> OK, what is at line 23 of ProjectActivity.java? That appears to be the
> problem line at this moment. Can you trace the references being used at
> that line, to find out where they are coming from? It would be helpful if
> you could show us some code around that line, even if you have to change
> variable names to avoid showing us proprietary information - but I do
> appreciate that you have restrictions.
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to
> android-developers@**googlegroups.com<[email protected]>
> To unsubscribe from this group, send email to
> android-developers+**[email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en>
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en