android,android-intent,android-fragments,nfcRelated issues-Collection of common programming errors
Dave Anderson
android android-studio sqlcipher
I have a working Android app that uses the armeabi libraries for SQLCipher but I cannot make the app work for x86.When I try and debug the app on an x86 device I can step through the app until the call to SQLiteDatabase.loadLibs(this); which results in A/libc? Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)I’ve checked the library loading in logcat;armeabiD/dalvikvm? Trying to load lib /data/data/com.eglootech.sqlcipher/lib/libstlport_shared.so 0x42562c10 D/dalvikvm? Added shared lib /data/data
user3063132
java android fatal-error forceclose
I’m getting an error stating: FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo on the line:actionBar.setCustomView(R.layout.actionbar_custom_view_home);MainActivity.java:public class MainActivity extends YouTubeBaseActivity implementsYouTubePlayer.OnInitializedListener {private VideosListView listView;private ActionBarDrawerToggle actionBarDrawerToggle;private ActionBarDrawerToggle mDrawerToggle;public static final String API_KEY = “XXXXXXXXXXXXXXXXXXXXXX
user3076060
android sigsegv metaio
i have to create an Android Augmented Reality app for university which can load content dynamically. I have a .zip archive with the content and unzip it to the internal storage. here’s my code to do that:// Extract the ZIP file ZipInputStream zis = new ZipInputStream(new BufferedInputStream(zipFile)); boolean success; try {ZipEntry ze;while ((ze = zis.getNextEntry()) != null) {byte[] buffer = new byte[1024];String filename = ze.getName();FileOutputStream fos = openFileOutput(filename,Context.MOD
Joris Weimar
android crash drawing samsung-mobile android-4.3-jelly-bean
I get a Fatal signal 11 (SIGSEGV) code=1 whenever I draw a filled polygon that crosses the screen bounds. This happens on OS 4.3 on a Samsung Note 10.1. What could cause this? I assume the OS should be able to clip polygons.The offending code:public SplashStarShape(Context context, int x, int y, int size) {super(context);paint = new Paint();star = new Path();star.setFillType(Path.FillType.WINDING);paint.setAntiAlias(true);paint.setStrokeWidth(DS.scale(10));paint.setColor(EslColors.WHITE);int k =
Casey
android c++11 lambda cocos2d-x
I’m making a game using cocos2d-x 2.2 and I had no problem with compiling & building c++11 stuff on xcode & ios. And also no problem with compiling & building on android project.But the problem is I get below run-time error when trying to call c++11 feature std::function with lambda function.11-17 00:13:38.201: A/libc(5419): Fatal signal 11 (SIGSEGV) at 0x000001d0 (code=1), thread 5446 (Thread-27308)The code is nothing special. A member variable with std::function type and saves lamb
erwin
java android
I am trying to generate my project doc , and got an error on a java.lang Loading source files for package com.swimtechtest.swimmer… Loading source files for package com.swimtechtest.swimmer.math… Loading source files for package com.swimtechtest.swimmer.database… Loading source files for package com.swimtechtest.swimmer.helpers… Constructing Javadoc information… com.sun.tools.javac.util.FatalError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath at com.sun.t
Ahmad Azwar Anas
android boost android-ndk
I have cross compiled boost regex library but when trying to include it in one of my JNI \ C wrapper in custom Android build, it is throwing a fatal error: cwctype no such file found.But when I am including it in any Native Android Application, it is compiling without any error with folowing config value in Application.mk APP_STL := gnustl_staticbut while building custom android build in Android.mk for STL i have already included libstlport and stdlibc++ as:LOCAL_C_INCLUDES += /../boost_1_53_0 L
Amit Kumar
javascript android phonegap xml-parsing
Hello i am developing an app in which i am fetching png images encoded using base64 in XML form. In android 2.2 emulator and device images are displaying , but when i try it on android 4.1 emulator app crash and showing these log in locat01-22 11:05:03.104: W/dalvikvm(723): JNI WARNING: JNI method called with exception pending 01-22 11:05:03.114: W/dalvikvm(723): in Landroid/webkit/JWebCoreJavaBridge;.nativeServiceFuncPtrQueue:()V (FindClass) 01-22 11:05:03.114: W/dalvik
VM4
android android-fragments android-ndk libc genymotion
My application does not use NDK. I am testing it on the GenyMotion Nexus 7 emulator and the problem is quite hard to reproduce and I still haven’t figured out a correct way to reproduce it. Sometimes the application works fine for a long time and sometimes it just crashes and automatically restarts after about 30 seconds of using.EDIT: I am not 100% but it only happens on genymotion emulator, but not regular android emulator (I will continue testing).The problem started happenning when I added s
rekire
android textview settext
i’m noob at android and i face a strange exception when i try to settext or setcolor or anything that was working before protected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);pageNoSeek = (SeekBar)findViewById(R.id.pageNoSeekBar);pageNotv = (TextView)findViewById(R.id.pageNotv);nextButton=(ImageButton)findViewById(R.id.leftButton);backButton=(ImageButton)findViewById(R.id.rightButton);mainText = (TextView)findViewById(R.id.mainText);mainText.setTextColor(Color.RE
user3469968
android android-intent
I am getting ready to develop my first app. Had some minor success yesterday, but today the app crashes everytime I try to pass and display an intent in a new activity. As I could not find my mistake I started from scratch using the google “myFirstApp” tutorial, only to find out I had the same crashes starting an activity, despite following exactly the instructions. I do not find my mistake, so I politely ask you to help me find the error.MainActivity:package com.example.myfirstapp;import androi
francedema
java android android-intent out-of-memory fatal-error
I have problem with test my application on Galaxy S3 device. I created the apk file and put it in to Galaxy S2 and It works but when I put my application in Galaxy S3 I obtain this error:Resolve Fatal signal 11(SIGSEV) at 0x00000000This is the Activity’s code:public class Livello extends Activity {private TextView live;private TextView motto;private TextView punteggio;private int score=0;@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentVie
Nadirah Ibtisam
android eclipse android-intent android-maps
I got these errors. My program is to read current location and route the map path.. Previously it worked on my Eclipse..which I checked them a month ago.. When I tried to run it again today it appears these errors… “Unfortunately FirstMap has stopped” can someone tell me what cause it? Is it because of the Eclipse? or SDK? or the api? I have tested for api 8 and 13..it doesn’t workMany thanks 01-18 02:53:14.372: E/AndroidRuntime(806): FATAL EXCEPTION: main 01-18 02:53:14.372: E/AndroidRuntime
AndroidKrayze
android performance android-intent android-memory
I keep getting this error when I run my app. The app will compile fine and once I start interacting with it (ImageSlider) sometimes it breaks and comes up with that message.LogCat02-18 12:25:05.426: E/AndroidRuntime(4545): FATAL EXCEPTION: main 02-18 12:25:05.426: E/AndroidRuntime(4545): java.lang.OutOfMemoryError 02-18 12:25:05.426: E/AndroidRuntime(4545): at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) 02-18 12:25:05.426: E/AndroidRuntime(4545): at android.graphics.
user3546811
java android android-intent nullpointerexception
This question already has an answer here:android.os.NetworkOnMainThreadException16 answersI am trying to dev my app using the Parse.com lib. When a user login into his account, he goes to the Main activity. At the first time he does that, it is OK. But if he does a logout and then a login again, when he goes to the main activity shows up the error.I am using a sliding menu that if the user is logged it shows the options: Settings and Logout. Or, shows Login and Sign Up.Maybe the error is when I
Jamie Taylor
android-intent
I get the above error on the log when i click the button on my application. I will post the code for the Sending Activity and the receiving activity.Sending Activity:private TrackerDAO dbHelper; private SimpleCursorAdapter dataAdapter;String historyString = “”; long idDB;long getlastID; String getAD; String Check;public static long TripID;@Override protected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_history_list);try{dbHelper =
Marco Acierno
android android-intent
04-18 11:33:28.747: E/SoundPool(370): error loading /system/media/audio/ui/Effect_Tick.ogg04-18 11:33:28.747: W/AudioService(370): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg04-18 11:33:28.777: E/SoundPool(370): error loading /system/media/audio/ui/Effect_Tick.ogg04-18 11:33:28.777: W/AudioService(370): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg04-18 11:33:28.797: E/SoundPool(370): error loading /system/media/audio/ui/Effect_Tick.ogg04-18 11:3
codeMagic
java android android-intent
I am trying to make the Endurance button on the Exercise List Page launch Endurance list. The Warmups button works fine. But, the endurance button makes the app crash when clicked. Here is the Exercise List Java:package com.example.chopbuilderfordrums;import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button;public class ExerciseList extends Activity implements View.OnClickListener {Button button1;Button button
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):
Jawad Amjad
android android-intent fatal-error
I have used Google Services in my App. And I am seeing the following error even when the app is not running. Here is the Exception.01-23 18:17:43.040: E/AndroidRuntime(840): Process: com.google.android.gms, PID: 840 01-23 18:17:43.040: E/AndroidRuntime(840): java.lang.SecurityException: [aml] Fraud! Package com.gss.petwet.doctor isn’t associated with uid 10294! 01-23 18:17:43.040: E/AndroidRuntime(840): at android.os.Parcel.readException(Parcel.java:1465) 01-23 18:17:43.040: E/AndroidRuntime(8
VM4
android android-fragments android-ndk libc genymotion
My application does not use NDK. I am testing it on the GenyMotion Nexus 7 emulator and the problem is quite hard to reproduce and I still haven’t figured out a correct way to reproduce it. Sometimes the application works fine for a long time and sometimes it just crashes and automatically restarts after about 30 seconds of using.EDIT: I am not 100% but it only happens on genymotion emulator, but not regular android emulator (I will continue testing).The problem started happenning when I added s
Aljon Davis Moliva
java android eclipse android-fragments fatal-error
When i run my application in my phone which has android version 4.2.2. it will work correctly, but when i run it again in other phone like 4.1.2, ice cream sandwich, only the splashscreen will work correctly. and after 5 seconds, the application already stop. This is my Logcat Error:FATAL EXCEPTION: mainjava.lang.RuntimeException: Unable to start activity ComponentInfo{dtournavigation.android/dtournavigation.android.MyActivity}: java.lang.NullPointerExceptionat android.app.ActivityThread.perform
Eddie
java android android-fragments tabs
I have an Activity, which has 2 text fields and a button; when the button is clicked the text in the text fields are uploaded to sql remote server.it works fine.Now i want to create a swipe/tab view. i have done that,and till this it is fine. Now i want the above activity to be shown under this swipe view,in one of the tab. The GUI is fine . but when i click the button to upload, it shows the error.following is the code,which works when it is a separate activity: AddComment.javapackage overskov.
user1745263
android android-fragments android-gallery android-inflate
new here, been a long time prowler.I am trying to set up a gallery for my app. I am implementing the one from the AOSP “Launcher2” here which is working wonderfully on android 4.0But.. on my other test device (2.3.4) I get an “android.view.InflateException: Binary XML file line #24: Errorinflating class fragment”I checked this stackoverflow solution here where he seems to have it working for all versions. So I implemented his changes into my WallpaperChooser.javapackage gallery.android.demo;impo
sami
android android-fragments fragment android-fragmentactivity
when i click btnMeat only a black page displays. i want to display fragment pages. i am really confused.my main page:public class Main extends Activity {public void onCreate(Bundle bundle) {super.onCreate(bundle);setContentView(R.layout.main);Button btnMeat=(Button)findViewById(R.id.meat);btnMeat.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View view) {try {Intent intent=new Intent(Main.this,MeatList.class);startActivity(intent);}catch (Exception ex){Toast.makeText
Mike
android listview android-fragments interface
I have an interesting fragment with multiple spinners. THe first spinner, loads the data into the second spinner based on what was selected. It looks something like this:When the fragment first loads the first spinner is “All” and it fills the listView with all the beers. Right now this is the only listView I can click on items without them force closing. The code for my portfolio is:public class Portfolio extends Fragment implements PortfolioGetAllBeers.OnArticleSelectedListener {String beerId
user2977501
java android android-fragments
Hello I’m working on an application that is going to be android launcher there are three different screens in this launcher the first screen is a bookshelf that is supposed to import and Show all books in the SD card place on the device the second is a calculator (works just fine!) Third is a Homework page where you can make google drive docs and flashcards (also works fine!!) I get no errors when I run my code the app automatically crashes when it launches on my device and on the emulator.Here
Peter Blum
android android-fragments nullpointerexception initialization
I have tried to debug this issue, but am quite puzzled to why I am getting a Null Pointer Exception error. I keep getting the error at the line in my code where the checkBTStates() method is declared (yes I have gone through this to the best of my ability to make sure everything is okay) Below is my fragment, activity, and error code. I wish I could paste code better. Sorry.Fragmentpackage edu.umass.ecs.chalkmaster3000;import android.app.Activity; import android.app.Fragment; import android.blue
Ryan
android android-fragments android-viewpager android-tabs
I’m trying to implement FragmentTabPager Activity, but it doesn’t run at all. Once I call the activity the app stops immediately. I’ve used tried multiple sources of code/tutorial including developers.android, but the same problem happens with all of them. And from what I understand, no one has faced the same problem(at least they haven’t written about it). THis leads me to believe that I am making some stupid mistake. I’ve spent over 2 days on this. Heres the code for my fragmentTabPager activi
Bryan
android android-listview android-fragments
Ok I have an app that implements tabs in the action bar using fragments. each of those tabs have their own views with buttons in them each. I want to be able to launch either an activity or another fragment view from those buttons to do various other things. An example of what i’m trying to do would be as follows. I have my main activity which looks like this:public class MainActivity extends SherlockFragmentActivity {@Override protected void onCreate(Bundle savedInstanceState) {super.onCreat
Rick Drayton
java android nfc onresume
I’m having a problem with onResume() where my application crashes during a function call to an intent handler. It will also crash when giving my app priority of reading NFC tags with the enableForegroundDispath() method. I’ve added all the NFC intent filters and permissions to the manifest. If I comment out the last two methods in onResume() the app runs perfectly…Not sure what’s wrong, but any help is really appreciated! The MainActivity is below. package com.example.final_project;import java
Peanut
android nfc credit-card nexus-4 emv
I’ve written an Android application that sends a VERIFY PIN command to an EMV credit card and gets the response. The application works on a Nexus S and Galaxy Nexus however it falls over when using a Nexus 4. I have tried this with two cards and it doesn’t work on either when both the Nexus S and Galaxy Nexus do. I know the Nexus 4 and Nexus 10 have Broadcomm chips instead of NXP ones and have had problems with NfcV tags but I don’t see how this could be related. I use the transceive() method to
ThinkingStiff
android mobile nfc
Not sure whether my app is able to write the information I obtain from user of the app. The app keeps crashing when I press the write to tag button. I generally have 5 EditText for user input. Then I would use these values and make into a string to write into and NFC Tag. (This information would then be read using a separate app which will then break the strings into different components again).`@Overridepublic void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);mNfcAdap
NFC guy
java android nfc
I save the AAR on my NFC-Tag. If I scan the TAG with the Nexus S (Android 4.1.1), i get the NfcAdapter.ACTION_NDEF_DISCOVERED and the NFCReaderActivity directly starts.If I do the same with the HTC X (Android 4.0.3), the application starts but I just get the android.intent.action.MAIN and so the NFCReaderActivity doesn’t show up and the Tag isn’t scanned.This works on Samsung Nexus S but not on HTC:<activity android:name=”.activities.NFCWriterActivity”></activity> <activity andr
m_eiman
aes nfc mifare
I’m trying to authenticate with a DESfire EV1 card, but the card doesn’t reply. Before trying to authenticate, I’ve just formatted the card and created a new application, selected the new application and need to authenticate before creating a file.Here’s the communcation from format to fail:Format card to start over bsp_mifare –> 0b 01 90 fc 00 00 00 (tranceive, 56 bits) bsp_mifare <– fa 01 01 (24 bits) bsp_mifare –> fa 01 01 (tranceive, 24 bits) bsp_mifare <– fa 01 01 (24 bits)
Torhan Bartel
java android nfc
I’m simply trying to read the content of a tag. But the longer I research this, the more I feel like the only one that doesn’t understand how this works. Looking through the developer.android.com site, I found the following method:public String readTag(Tag tag) {MifareUltralight mifare = MifareUltralight.get(tag);try {mifare.connect();byte[] payload = mifare.readPages(4);return new String(payload, Charset.forName(“US-ASCII”));} catch (IOException e) {Log.e(TAG, “IOException while writing Scanner
Spedge
android nfc nexus-s apdu
I am working on an Application using the IsoDep Tag Tech to issue APDU commands to an NFC enabled card.UPDATE: So the issues seen below seem related to the power requirements of the cards I am using, when I use a different card with lower power requirements the below symptoms don’t occur as frequently.I have followed the documentation explicitly and have a successful managed to implement the protocol. However with mixed success I am experiencing some issues with the NFC lower level libraries be
Sajith4U
android tags nfc javacard nexus-s
I am new to NFC development.so i create Android application which send data to jcop(31/36) card and it encrypted Data(key generation) and send back to nexus s device.But every time i got this error.In my java card application i used RSA2048 for data encryption.Can anyone tell me is that problem with java card or android device.(When i try application with galaxy S2 it works fine)08-14 17:20:36.411: D/AudioHardware(89): AudioHardware pcm playback is exiting standby. 08-14 17:20:36.411: D/AudioHar
Yop
java nfc smartcard
I am working on Felica Tag with the ACR Reader 122.The following code that works to connect to all other type of nfc tag is not working for Felica TagCard card = terminal.connect(“*”);I get the following exception :javax.smartcardio.CardException: connect() failed atsun.security.smartcardio.TerminalImpl.connect(TerminalImpl.java:67)Caused by: sun.security.smartcardio.PCSCException:SCARD_W_UNPOWERED_CARD atsun.security.smartcardio.PCSC.SCardConnect(Native Method) atsun.security.smartca
MachoProgrammer
java android nfc
as I wrote in the title, I’m trying to use card emulation using my Nexus S, Cyanogenmod 10.1.3 and the ACS Acr122 usb reader. I found this article http://nelenkov.blogspot.it/2012/10/emulating-pki-smart-card-with-cm91.html and the github with the source code https://github.com/nelenkov/virtual-pki-card. I followed the instructions and it happened a strange thing. While the smartphone is on the reader the connection starts and stops repeatedly thus the demo doesn’t work and the client raises thi
Web site is in building