android,cameraRelated issues-Collection of common programming errors
David Dimalanta
android libgdx memory-efficiency debugging screen
When making my simple app for revisions to update the latest changes, I test it first between the device (Google Nexus 7) and desktop using Eclipse IDE. I made eleven screens for the game in terms of the following for testing:Splash screen (usually the company’s logo) Game content (Usually announced if it’s rated E or M, for example) Loading Screen Title screen Main Menu screen Player 1’s registration screen Player 2’s registration screen Player list screen Game screenI tried testing switching s
Jonathan Hobbs
java android animation sprites pixel
I have been coding speed for an object. I have made it so the object will move from one end of the screen to another at a speed depending on the screen size, at the monemt I have made it so it will take one second to pass the screen. So i have worked out the speed in code but when I go to assign the speed it tells me to force close and i do not understand why. Here is the code: MainGame Code:@Override protected void onDraw(Canvas canvas) {setBlockSpeed(getWidth()); }private int blockSpeed;privat
milano
android libgdx
I try to create live wallpaper with libgdx framework. Here’s my source code: repositoryWhen I run this, black screen with name of the app appears (probably empty android layout). Main game is not called. I think that it is because starting a service not an activity. However how could I start an activity when AndroidTestWallpaper isn’t subclass of Activity class? I used this tutorial but I don’t think it’s complete, in this form my IDE (Intellij IDEA) doesn’t let me to run the app because no main
A M
android cocos2d
CCScene doesn’t show anything on 4.3 version?I am working on a project in which I’m using the cocos2d_android.jar and on the 4.3 version the screen goes blank and music/ccTouches/others things working fine.Even after I change the jar file with the API level 18(4.3 version), Add into my project and there is no error in the import time and uses their classes but in the RunTimeError occurred like :09-14 07:49:49.890: E/AndroidRuntime(1282): FATAL EXCEPTION: GLThread 102 09-14 07:49:49.890: E/Andro
grgarside
android mac-os irrlicht ndk
I’m new to irrlicht and I have started with irrlicht android port. I have made the following changes to android.mk file:LOCAL_CFLAGS := -O3 -DANDROID_NDK -DDISABLE_IMPORTGL -I./../include/ -I./include/ -I/documents/karthik/android/android-ndk-r9/platforms/android-18/arch-arm/usr/includeLOCAL_LDLIBS := -L/documents/karthik/android/android-ndk-r9/platforms/android-14/arch-arm/usr/lib/libGLESv1_CM.so -ldl -llog -L/documents/karthik/android/android-ndk-r9/platforms/android-14/arch-arm/usr/lib/libGLE
rolfl
java android parcelable
I am new to the Parcelable interface that I have implemented in my classes. At first they were Serializable, but now I have changed them to Parcelable.Have I done this the right way, and am I doing everything correctly? Here are my snippets of code:Citypublic class City implements Parcelable {private String code;private String name;private List<CityWeather> weathers ;public City() {super();}public String getName() {return name;}public void setName(String name) {this.name = name;}public Str
Mark101
java android
I have a method called hash button however on press the application crashes. Any idea why this is happening?I have included parts of my logcat below, any help is greatly appreciated.Many Thanks, Mark02-12 16:59:26.115: E/AndroidRuntime(2416): FATAL EXCEPTION: main 02-12 16:59:26.115: E/AndroidRuntime(2416): java.lang.ArrayIndexOutOfBoundsException: length=4; index=4
user3313192
java android json android-asynctask
I’am building a app that connects to a remote sever through JSON in this case connecting to ‘localhost’. The current program i have written will open different UI depending on their ‘type’ i.e normal or admin. My logat and java are below: This is my Log cat data: 02-19 07:19:51.921: E/AndroidRuntime(1707): FATAL EXCEPTION: AsyncTask #1 02-19 07:19:51.921: E/AndroidRuntime(1707): Process: com.example.newjudoapp, PID: 1707 02-19 07:19:51.921: E/AndroidRuntime(1707): java.lang.RuntimeException: A
user2005938
java android box2d andengine sigsegv
I am getting this error:Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 16513 (UpdateThread)when I create the body of a wall, but only the second time the method is called. For example, when the scene loads, the method that loads these walls is called once, and when the player collides with an object that brings him to the next room, the method is called again. This is the part of the method that is giving this error:Tile t = new Tile((float) i * 64, (float) j * 64- ((j * 64 – (mHeight
baTimá
android android-intent android-activity android-logcat
When i try to open a activity in my app which its suposed to show some saved messages(that i saved in another activity in the same app) it Force to Close and shows me these errors in LogCat:10-08 18:22:17.243: E/AndroidRuntime(269): FATAL EXCEPTION: main10-08 18:22:17.243: E/AndroidRuntime(269): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mensagem/com.example.mensagem.Mensagenssalvas}: java.lang.NullPointerException10-08 18:22:17.243: E/AndroidRuntime(269):
gian paolo
kernel-modules camera firewire
I have a JVC GR-D740E camera with a usb firewire “Pinnacle 510 USB Rev: 2.0″ (that works on windows xp). I’ve ubuntu 11.10 in dual boot with windows xp. I’ve done some steps with no success:i’ve installed kino. I opened Kino having the camera opened and in play. When i push the capture button kino returns that the kernel module raw1394 hasn’l loaded.I’ve tried with kdenlive that stopped with an error:Fatal Error.” “MLT’s SDL module not foundIf i do:gp@gp-desktop:~$ dvgrabError: no camera exists
akubabas
android camera
i want to start camera with name from database and i have three database.. i have code like this:public void startCamera() {long tim=System.currentTimeMillis();SimpleDateFormat df = new SimpleDateFormat(“yyyy-MM-dd kk:mm:ss”);String curTime =df.format(tim);System.out.println(“Time : ” + curTime);Cursor c = helper.getKomp(almagId2);Cursor ca = helper.getSat(almagId);Cursor cb = helper.getUlok(almagId1);if(c.moveToFirst()){fileName =c.getString(1)+”_”+”kanan”+”_”+System.currentTimeMillis()+ “.jpg
Bill the Lizard
android camera
My custom camera apps crash if called by another application.Like for example, my camera was called by my tracks. If you press the camera icon of my tracks, it will popup and let the user select what camera want to use. I have tried to use my camera but it crashes. But if I click the camera from the application menu, my camera works fine.AndroidManifest.xml<uses-permission android:name=”android.permission.CAMERA” /> <uses-permission android:name=”android.permission.WRITE_EXTERNAL_STORAG
Nishant Mendiratta
android camera android-camera frame-rate android-mediarecorder
Following is the full code for recording the videos from both the camera front and the back camera . I need to set the frame rate of the video recoded to 30 fps. That’s the big issue i have tried lots of thing but nothing is working out for me . It’s being around 2 week and i am stuck in this problem this is really urgent . I am running this application on Samsung Tablet GT-P1000 and the Firmware Version is 2.3.3 GingerBread Well the code is working perfectly fine it’s recording the videos .Majo
karthi
android web-services opencv camera
I am working on an android application. In which I am getting users photo images(5 images)(Using opencv2.4.2 camera with face detection) and save into my database in the server using web service. For this I am using Opencv2.4.2 face detection sample, Ksoap2 for web service. In my android emulator and device(android 4.0.4) application working fine. But When I check with another device(android 4.0.3) it throws “Unfortunately, Myapp has stopped”. I have attached my log file below. I don’t know what
Hesam
android video camera record
In my application I need to have live streaming (music), buffer it and when it is finished, play it and capture video (video together with music which is playing, something like Karaoke). the problem is When I run the application, Log cat shows me following messages. what is the reason of application lost the surface?05-05 15:43:48.929: D/MediaRecorder(4745): doCleanUp 05-05 15:43:49.519: E/MediaRecorderJNI(4745): Application lost the surface 05-05 15:43:49.542: D/***VideoRecording***(4745): IOE
Fllo
java android camera light flashlight
So i designed a app for a basic flashlight it works fine BUT it’s slow ineffective and crashes the second you tap the on and off button to fast. what can i do to improve it?here is what i have so far :package com.example.myfirstapp;import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.ToggleButton; import android.graphics.SurfaceTexture; import android.hardware.Camera.Parameters; import android.hardware.Camera;public clas
Raghunandan
android camera nullpointerexception android-sdcard
I have a custom camera in my application with which I capture a picture, and save it in SD card within a folder. I am able to capture the image,but I need to get the image in another activity. I get Failure delivering result and NullPointer Exception in the onActivityResult event. I know that the image is being saved as I can see the path of the image, but the image itself is displayed in the folder after some random period of time. I am not sure if this can be the reason for NullPointerExceptio
Omar Mihilmy
java android eclipse camera
I am trying to build my own custom camera application I have learn through the Android developers Group about how to code the whole application but as soon as I launch the camera it crashes I don’t know what is the problem here is my code:package com.example.tapeit;import java.io.*; import java.text.SimpleDateFormat; import java.util.Date;import android.app.Activity; import android.content.Context; import android.content.pm.PackageManager; import android.hardware.Camera; import android.hardware.
Krivers
android opencv camera surfaceview nativelibrary
I’m using OpenCV for my application (third tutorial – camera control – from OpenCV samples). private int frameRate = 0;public Mat onCameraFrame(CvCameraViewFrame inputFrame) {mGray = inputFrame.gray();if (frameRate == 20){String rec = NativeLib.recognize(0,mGray.getNativeObjAddr(),mNetworkPath);//Core.putText(mGray, rec, new Point(50,50), Core.FONT_HERSHEY_SIMPLEX, 1.0, sc,2);frameRate = 0;}++frameRate;return mGray; }Problem is that after some time, the application stops working. This is the co
Web site is in building