android,jar,android-support-library,android-4.4,appcompatRelated 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):
h0tSPR1NG
java opencv ant jar noclassdeffounderror
I am trying to run a small java class from Ubuntu console, which contains OpenCV code like this :import org.opencv.core.Core; import org.opencv.core.Mat; import org.opencv.core.CvType; import org.opencv.core.Scalar;class SimpleSample {static{ System.loadLibrary(Core.NATIVE_LIBRARY_NAME); }public static void main(String[] args) {System.out.println(“Welcome to OpenCV ” + Core.VERSION);Mat m = new Mat(5, 10, CvType.CV_8UC1, new Scalar(0));System.out.println(“OpenCV Mat: ” + m);Mat mr1 = m.row(1);mr
BatuhanC
android eclipse email jar gmail
I have 2 classes mail and mainactivity and 1 xml file which contain a button, what I want is when I click on tht button , the app will send email automatically to an email address I wrote in my code, I tried this code :mail class :package com.example.emailtest;import java.util.Date; import java.util.Properties; import javax.activation.CommandMap; import javax.activation.DataHandler; import javax.activation.DataSource; import javax.activation.FileDataSource; import javax.activation.MailcapC
Hassaan Rabbani
java android jar xmpp xmppframework
I am trying to make XMPP client for android using http://davanum.wordpress.com/2007/12/31/android-just-use-smack-api-for-xmpp/I have been facing multiple issues in itFirst of all my host name and service name are both same i.e. web.vlivetech.comThen i do not know which jar file do i ned to include in my lib folder as i previously have included1- asmack-android-7but it was giving me error on some classes that NoClassDefFoundthen now i have removed it and includedsmack-3.4.1-0cec571.jarbut it is g
Derrick
java jar aix noclassdeffounderror
My java app starts something like this: /usr/java6_64/bin/java -cp main.jar:updater.jar:jtapi.jarIn some cases the jtapi.jar is not present and is downloaded at run time. The main.jar and updater.jar are designed to take care of this. This works flawlessly on multiple OSs, including AIX 5.3.However, on AIX 7.1 it fails if the jtapi.jar is not present to begin with. Here is the exception:Exception in thread “main” java.lang.NoClassDefFoundError: com.cisco.jtapi.extensions.CiscoProviderObserver
Nikolay Kuznetsov
java jar applet jnlp java-web-start
I am trying to deploy my applet using JNLP. I have tried using Eclipse Run Jetty Run plugin and it worked okay. But now with deployment at a real web server I am really stuck.My jnlp file sketch is like this (I hava edited some names).<?xml version=”1.0″ encoding=”UTF-8″?> <jnlp spec=”1.0+” href=”MyApplet.jnlp”><information><title>MyApplet</title><vendor>Me</vendor><offline-allowed/></information><security><j2ee-application-client-pe
evandrix
java jar
I would like to determine the jar file name from my java code. I found many solutions in the google, but nothing works. Just to see what I tried here is a stackoverflow forum where a bunch of solutions is posted: stackoverflowI have Mac OS X 10.6.5. When I type java -version I get this result: java version “1.6.0_22” Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261) Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)Thank you for your help.Edit: I edit my post to an
Rafael El Bundas Fernandez
deployment ant jar jboss7.x ear
I am trying to deploy an EAR file to my JBoss using Ant. I’m using JBoss 7.1. I already have got some wars working there (using the same deploy process) but this EAR contains data about my framework which i need to work. This framework in particular uses a JAR (index-app), which i have included in it’s lib folder.This clip from my EAR build.xml shows how it reads JAR’s from its lib folder (all sub-folder presented exist):<copy todir=”${build.home}” flatten=”true” includeemptydirs=”false”>&
Sophie Sperner
java collections github jar mahout
There is a mahout-math project on github. How can I make a jar out of it? I need to use the most recent code because the only one I could find located here, is buggy. Errors I get:[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test (default-test) on project mahout-math: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? [E
user1636585
java spring hibernate spring-mvc jar
Need help in upgrading web application from Spring 2.5 to 3.2.4 I have removed Spring.jar file from my classpath and added below jar files in my classpathspring-aop-3.2.4.RELEASE.jar spring-aspects-3.2.4.RELEASE.jar spring-beans-3.2.4.RELEASE.jar spring-context-3.2.4.RELEASE.jar spring-context-support-3.2.4.RELEASE.jar spring-core-3.2.4.RELEASE.jar spring-expression-3.2.4.RELEASE.jar spring-orm-3.2.4.RELEASE.jar spring-tx-3.2.4.RELEASE.jar spring-web-3.2.4.RELEASE.jar spring-webmvc-3.2.4.RELEASE
mightymouse3062
java eclipse jar
I am working on a project that is going to do serial communication and I want to package the java-simple-serial-connector (jssc) as part of the project.I don’t want to install the jssc.jar file on the system because this project is going to be run a bunch of different machines so it would be much easier to package the .jar with my executable .jar. I have added jssc.jar to my build path but when I run the program (note it isn’t finished yet) I get the following error:Exception in thread “main” ja
jef
android maven actionbarsherlock android-support-library
I read lots of things about actionbarsherlock, maven, android but none of the solution I’ve seen worked for me :(I’m sure that I’m pretty close to the solution but I don’t understand and I need some help :)So here is my problem, I try to create an android maven project with a dependency to Actionbarsherlock…. It seems pretty easy but I’ve always thoses errors[2013-01-16 18:10:28 – Dex Loader] Unable to execute dex: Multiple dex files define Landroid/support/v4/accessibilityservice/Accessibilit
??????? ???????
android android-actionbar android-support-library actionbarcompat
** I was recomended to use ActionBar Activity** Here is the previous codeimport android.support.v7.app.ActionBar; import android.support.v7.app.ActionBarActivity;public class MainActivity extends Activity {@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main); }I wrote new application and followed advice.import android.os.Bundle;import android.support.v7.app.ActionBar;import android.support.v7.app.ActionBarActivity
Piers Geyman
android maven android-support-library android-maven-plugin
I am using the v7 Support Library to show an ActionBar on Android 2.x.When I deploy the app to the device in my IDE (Intellij IDEA) the app works fine.When I build and package the app to be deployed to the Play Store using maven, I find that I get the following exception when I install and run the packaged app on my device and the app crashes. (It fails on the v8 simulator too). It works fine in both scenarios on android v4.3.Any idea why this would be crashing when built with maven?01-07 15:05:
Alex Girke
java android android-support-library renderscript
I get the following error message:01-19 23:31:16.436: E/RenderScript(30603): Unable to open shared library (/data/data/com.example.android.rs.hellocompute//lib/librs.mono.so): Cannot load library: reloc_library[1313]: 1222 cannot locate ‘_Z9rsForEach9rs_script13rs_allocationS0_’…01-19 23:31:16.436: E/RenderScript(30603): Unable to open system shared library (/system/lib/librs.mono.so): (null)01-19 23:31:16.444: D/AndroidRuntime(30603): Shutting down VM01-19 23:31:16.444: W/dalvikvm(30603): th
Craig Smith
android android-support-library
I’ve been trying to use the v7 support library to use a grid layout in my android project. I’ve seen that many people have had the same issues that I’m having but all of their fixes don’t work for me. I’ve updated java. I’ve updated the latest support library. I’ve added the support package to the build path. I’ve tried dragging a gridview onto a view and allow eclipse import the package. Non of these work. I continue to get android.support.v7.widget.GridLayout failed to instantiate. I even crea
Mohsen Afshin
android grid-layout android-support-library
I’m using support v7 GridLayout but as many others noted, it does not measure its children width correctly. In this question, there’s a workaround but the workaround works randomly for me, for some values it works, and for some children values it doesn’t.The proposed workaround:android:layout_width=”0dp”app:layout_gravity=”fill_horizontal”I set child values during runtime so my guess is only toward measuring children width.
ruidge
java android nullpointerexception android-support-library actionbarcompat
Call if (getSupportActionBar() != null)getSupportActionBar().hide();or just: getActionBar()in android.support.v7.app.ActionBarActivity I get such exception:…java.lang.NullPointerExceptionat android.support.v7.app.ActionBarImplICS.hide(ActionBarImplICS.java:302)at android.support.v7.app.ActionBarImplJB.hide(ActionBarImplJB.java:20)…EDIT: it just happens when activity have Theme:<style name=”MyTheme” parent=”Theme.AppCompat.Light”><item name=”android:windowNoTitle”>true</item&
Elenasys
android android-fragments actionbarsherlock android-support-library
As It was suggested in one of my questions I have to use 9-patch image with gradient for listview item background. But when I use 9-patch image, there are still problems with gradients:9-patch, test.9.png:But when I left transperent line 1 px height between gradient and bottom 9-patch line, that responds for horizontal content placement it’s all ok, and I have good looking gradients.9-patch image:And closer to see transperent line:And it’s a result:I’ve got good looking gradients, but there are
MBMJ
android intellij-idea android-support-library
I am trying to use viewpager from android support library v4 in intelli j. Currently, I am using the Android SDK 4.1I copied android-support-v4.jar to my intellij android project under ‘libs’in the project settings of intellijI went to “Modules” => “MyModuleName” => dependencies tab, and add the android-support-v4.jar, by navigating the path to the libs/ folder under my own projectI checked the ‘export’ besides this newly added jar filebut I still can’t use viewpager in my application.I get a cr
mentxugle
android eclipse android-support-library
I am developing a test app for a training course using android support library, v7 appcompat. I have installed and added the library to the project as explained in http://developer.android.com/tools/support-library/setup.html. Inside Eclipse everything works as expected.I need to export my project as an archive file (zip format) so the teacher can import that into his workspace and test my project. When I export the project and reimport it on a “clean” workspace (no v7 appcompat project added, s
MSaudi
android android-4.4
Hello I found this exception when I run my application on Android kitkat 4.411-28 08:50:00.752: E/dalvikvm(10056): dlopen(“/data/app-lib/com.vis.kotob-2/libdatabase_sqlcipher.so”) failed: dlopen failed: cannot locate symbol “_ZN7android10MemoryBaseC1ERKNS_2spINS_11IMemoryHeapEEElj” referenced by “libdatabase_sqlcipher.so”…11-28 08:50:00.762: E/AndroidRuntime(10056): FATAL EXCEPTION: main 11-28 08:50:00.762: E/AndroidRuntime(10056): Process: com.his.mojak, PID: 10056 11-28 08:50:00.762: E/And
Szymon
android android-4.4
I decided to start testing my app with Android 4.4 and noticed that the Android HTTP connection APIs are much stricter than before? I have never had this issue and I assume it is some type of bug.I’m connecting to SHOUTcast broadcasts that contain the particular icy header response.Has anyone seen this issue? How can I get around it?URL used for this test: http://50.117.121.162:80Logcat of exception: 11-01 23:47:57.299: E/ConnectHelper(3081): java.net.ProtocolException:Unexpected status line:
Narseo
android xml encoding webview android-4.4
I have noticed that for Android 4.4 handsets, saving a webview with:webview.saveWebArchive(name);and reading it after with WebArchiveReader WebArchiveReader (see code below) throws an Encoding Exception:11-08 15:10:31.976: W/System.err(2240): org.xml.sax.SAXParseException: Unexpected end of document 11-08 15:10:31.976: W/System.err(2240): at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:125)The method used to read the stored XML file worked perfectly fine
user2696615
android webview scrolling android-4.4
I am seeing some unexpected behavior when using a WebView in Android 4.4 (build target 18). One one page in particular we have some edit text fields, and to get the soft keyboard to pop up appropriately, we had to use a code snippet similar to the ones described here: https://code.google.com/p/android/issues/detail?id=7189webview.setOnTouchListener(new View.OnTouchListener() {@Overridepublic boolean onTouch(View v, MotionEvent event) {switch (event.getAction()) {case MotionEvent.ACTION_DOWN:cas
Illegal Argument
android android-fragments android-4.4
I am facing a wierd problem in Android kitkat. I am not able to use map fragments(support map fragment too). I used the following code:<fragmentandroid:id=”@+id/fragment1″android:name=”com.google.android.gms.maps.SupportMapFragment”android:layout_width=”wrap_content”android:layout_height=”match_parent”android:layout_above=”@+id/imageView1″android:layout_alignParentLeft=”true”android:layout_below=”@+id/linearLayout1″ />My application works in api level 18(Jellybean) but when compiled with k
wdyz
java android connect android-4.4 urlconnection
I have implement AudioStreaming to my application. All code is running well, except on Android 4.4.2, it doesn’t work, i got an error message from DDMS on my application : Unable to initialize the MediaPlayer for fileUrl=http://live.radiorodja.com:80 java.net.ProtocolException: Unexpected status line: ICY 200 OK E/info.wd.controller.StreamingMediaPlayer$1(28900): Unable to initialize the MediaPlayer for fileUrl=http://live.radiorodja.com:80 E/info.wd.controller.StreamingMediaPlayer$1(28900): jav
Gustus
android cordova android-4.4
Before Kitkat navigator.camera.getPicture returned a Uri like thiscontent://media/external/images/media/3951.In Kitkat however it returns a Uri like this:content://com.android.providers.media.documents/document/image:3951 Example code using cordova-2.9.0: gallery: function () {navigator.camera.getPicture(this.handleUri,function () {console.log(‘error retrieving imageURI’);return false;},{ quality: 100,destinationType: navigator.camera.DestinationType.FILE_URI,sourceType: navigator.camera.Picture
tyczj
android debugging android-4.4
I have 3 devices that have kitkat on them (Nexus 7 2013, Nexus 7 2013 and Galaxy Nexus obviously galaxy nexus is not an official build of kitkat) all of which I cannot do any debugging with in eclipse. All of whcih were working just fine before the updateto further prove that point I have a Samsung galaxy tab 10.1 with 4.0.4 and I can debug just fine, application stops on all breakpoints I set. Is there some setting that changed that I need to enable on the device or in eclipse so that debugging
Chris Lacy
android dalvik android-4.4
Google added a new ART runtime with Android 4.4. How can I determine whether ART or Dalvik is the current runtime?
krsteeve
android android-ndk android-4.4
I have an app that uses onLoad() to load a native library (SQL Cipher). When I ran this on my Nexus 5 it fails with a runtime exception. After doing some research I have come across an app with the same problem. Their explanation is: “the issue showed up because google closed a part of the NDK api as private, so basically when we try to initialize the native code it fails on onLoad() ” – Has anyone come across this and fixed it? I’m guessing this will be a common problem as KitKat becomes more p
Cody Gray
android gradle android-studio facebook-android-sdk appcompat
I have a problem when I want to compile my app:UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added`It seems to be a error with android-support-v4.jar.In my project I have 3 libraries: appcompat, facebook, google_play_services.My gradle files:AppProject/settings.gradleinclude ‘:libraries:google_play_services’, ‘:libraries:appcompat’, ‘:libraries:facebook’, ‘:app’AppProject/build.gradle :buildscript {repositories {mavenCentral()}dependencies {classpath ‘com.android.to
MSI
android jar android-support-library android-4.4 appcompat
I have been successfully using android-support-v7-appcompat library for last few months in my app to support action bar in older devices. Recently I have downloaded the Android 4.4(kitkat) updates with system image and SDK platform from the SDK Manager. I also added targetSdkVersion to “19” in manifest file. But my project was showing error as ‘android-support-v7-appcompat jar mismatch. Fix your dependaecies.’ Then I added the jar from /extras/android/support/…. to the project as an external j
Philipp Jahoda
android illegalstateexception appcompat android-actionbaractivity
I have an error catch when I extend ActionBarActivity. If I extend Activity there is no errors.The thing is in my other activities it works perfectly. At first, I thought it’s was because my previous activity put extras in the intent. But even without it the app crash.Here is my code :import android.support.v7.app.ActionBarActivity;import android.os.Bundle;public class FullscreenActivity extends ActionBarActivity {@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedI
Web site is in building