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

horizontal scroll of Iframe on mobile
is there any plugin/library by which i can import blender animations?
How to verify Android app calls to Server?
Duplicate row data using content provider
Using retrofit with IMDB API
Android ListView requires two fingers to scroll
Listview with dynamic height inside a scrollview with a tabview with viewpager
Sticky toobar title in Parallax effect using CollapsingToolbarLayout in Android
Error send and receive XML and JSON Android
Custom transition between Activities not calling createAnimator method
Checkbox Activity is not Performed in android
Periodically run a service in the background
Scroll not working properly in AppBarLayout
Set Document height as Wrap Content IText Android
Homescreen visible for a short time when using finishAfterTransition
Android Left Align Text In A NumberPicker

Categories

HOME
microsoftgraph
css3
pda
static
mysql-workbench
apache-spark-mllib
camera
error-handling
appcelerator
yandex
cublas
entity-framework-core
nsbundle
rom
regular-language
polling
missing-data
pkcs#11
accessibility
augeas
google-schemas
gkturnbasedmatch
topology
ksh
mongoid6
scriptella
beautifier
asymptotic-complexity
has-and-belongs-to-many
scrollview
complex-numbers
paragraph
mailkit
code-snippets
keras-layer
reverse
yowsup
cd
metawidget
news
plaintext
install.packages
pom.xml
openrasta
jquery-ui-draggable
x-ray
video-conferencing
opengl-4
git-flow
monkey
grails-plugin
beamer
clipboard.js
thread-sleep
nio2
false-sharing
highland.js
state-restoration
boomerang
xvim
rubaxa-sortable
iced-coffeescript
nutiteq
teamcity-9.1
kubuntu
android-broadcast
j-security-check
public-html
spy++
insight.database
create.js
unix-socket
angular-carousel
template-deduction
rcaller
xml-dsig
ie8-compatibility-mode
windows-phone-8-sdk
gpars
insert-id
cascadingdropdown
virtual-pc
dopostback
wcf-configuration
pyunit
garbage
predicatebuilder
filemerge
creole
inline-formset
nhprof
diagrams
updatesourcetrigger
binomial-heap
ajax-polling
dojo-dnd
localizable.strings
netbeans6.1

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