android


Error implementing tutorial code


am trying to implement this - http://www.divided-games.com/drawing-with-canvas-on-top-of-a-camera-preview/ - code. i am using eclipse. i had some trouble because this code uses the old camera api but i got through that. now my manifest file has some errors:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="in.android.move"
android:versionCode="666"
android:versionName="BJP" >
<uses-sdk android:minSdkVersion="13"
android:targetSdkVersion="14"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera" />
<application
android:allowBackup="false"
android:label="#string/app_name"
android:icon="#drawable/ic_launcher"
android:theme="#android:style/Theme.NoTitleBar.Fullscreen" >
<activity android:name=".MainActivity"
android:label="#string/app_name"
android:configChanges="keyboardHidden|orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
The 1st and 8th lines are underlined yellow. the rest of my code has no alerted errors. I uploaded the code into my phone and i get this logcat error. The popup in my phone says: Unfortunately, move has stopped.
06-04 23:32:30.984: I/art(622): Late-enabling -Xcheck:jni
06-04 23:32:31.089: W/System(622): ClassLoader referenced unknown path: /data/app/in.android.move-2/lib/arm
06-04 23:32:31.221: D/AndroidRuntime(622): Shutting down VM
06-04 23:32:31.229: E/AndroidRuntime(622): FATAL EXCEPTION: main
06-04 23:32:31.229: E/AndroidRuntime(622): Process: in.android.move, PID: 622
06-04 23:32:31.229: E/AndroidRuntime(622): Theme: themes:{}
06-04 23:32:31.229: E/AndroidRuntime(622): java.lang.RuntimeException: Unable to start activity ComponentInfo{in.android.move/in.android.move.MainActivity}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
06-04 23:32:31.229: E/AndroidRuntime(622): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2450)
06-04 23:32:31.229: E/AndroidRuntime(622): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2510)
06-04 23:32:31.229: E/AndroidRuntime(622): at android.app.ActivityThread.-wrap11(ActivityThread.java)
06-04 23:32:31.229: E/AndroidRuntime(622): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1363)
06-04 23:32:31.229: E/AndroidRuntime(622): at android.os.Handler.dispatchMessage(Handler.java:102)
06-04 23:32:31.229: E/AndroidRuntime(622): at android.os.Looper.loop(Looper.java:148)
06-04 23:32:31.229: E/AndroidRuntime(622): at android.app.ActivityThread.main(ActivityThread.java:5461)
06-04 23:32:31.229: E/AndroidRuntime(622): at java.lang.reflect.Method.invoke(Native Method)
06-04 23:32:31.229: E/AndroidRuntime(622): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
06-04 23:32:31.229: E/AndroidRuntime(622): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
06-04 23:32:31.229: E/AndroidRuntime(622): Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
06-04 23:32:31.229: E/AndroidRuntime(622): at com.android.internal.policy.PhoneWindow.requestFeature(PhoneWindow.java:367)
06-04 23:32:31.229: E/AndroidRuntime(622): at android.app.Activity.requestWindowFeature(Activity.java:3656)
06-04 23:32:31.229: E/AndroidRuntime(622): at in.android.move.MainActivity.onCreate(MainActivity.java:28)
06-04 23:32:31.229: E/AndroidRuntime(622): at android.app.Activity.performCreate(Activity.java:6251)
06-04 23:32:31.229: E/AndroidRuntime(622): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
06-04 23:32:31.229: E/AndroidRuntime(622): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2403)
06-04 23:32:31.229: E/AndroidRuntime(622): ... 9 more

Related Links

Realtime html 5 application polling
Java null pointer exception while using google maps in Android
Reflection for Finding Classes in Android Application
How to improve memory usage with BitmapFactory.decodebyteArray()?
Send touch screen event to foreground activity (only from APK)
How to auto-pair to another Android device over Bluetooth without prompting for a pin?
I want to download an audio from the server
Can we add our application setting menu to the android device settings menu
Simulate Multi Touch in Android Emulator
Clossing expanded child views in ExpandableListActivity
Is this code Correct ? Send Email Via Android
java.lang.ClassCastException: android.app.Application cannot be cast to greendroid.app.GDApplication
Can I catch Exception in C in android NDK?
how to use Service
Android VideoView repetition
How to read more than one column in database by cursor and fill into a list?

Categories

HOME
httparty
eclipse
localization
scikit-learn
paraview
spark-streaming
cheerio
telegram
depth
character-encoding
interface
apache-spark-mllib
oracle-apex-5
graphics
rendering
soa
jetty
pearson-correlation
jquery-ui
frontend
lanczos
owin
google-chrome-app
resultset
endpoint
scrolltop
magnetic-cards
flatpak
video-editing
squashfs
exploit
gmock
bulletphysics
shared
firebase-analytics
tizen-tv
carrierwave
nsurl
recurring-events
python-2.6
database-comparison
installscript
least-squares
video-capture
python-pptx
hivemq
node-mssql
odroid
health-monitoring
doc
apriori
android-softkeyboard
opencmis
optimizely
mschart
twilio-click-to-call
datamaps
remedy
scalding
video-conferencing
opengl-4
libjpeg
objectscript
shinobi
testrail
gets
grails-plugin
adafruit
i386
appscale
google-query-language
nullable
findfirst
iokit
r-package
file-move
sql-server-data-tools
snoop
webfinger
imagefilter
nsmenu
jama
encryption-asymmetric
with-statement
cancellation
matrix-inverse
paste
maven-scm
menubar
qscrollarea
eclipse-kepler
modular
pagedown
android-loadermanager
redis-py
frameworkelementfactory
predicatebuilder
relative
qglwidget
jqueryform
dot-emacs
web-garden
build-environment
localizable.strings
xslcompiledtransform
change-management

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App