android,eclipse,crash,startupRelated issues-Collection of common programming errors
Doran
android
Original: Is there a way to kill a child activity of a TabActivity. I have a very simple tab setup. There are two tabs. One of the tabs contains a MapActivity. When I switch to the MapActivity the GPS turns on. When I press back, the TabActivity exits, but the GPS is still on. The gps doesn’t turn off until I explicitly kill the app. Is there a way to kill the MapActivity from the TabActivity? I would like to kill it when TabActivity exits/onBackPressed.Edit: I do attempt to stop location reques
marlar
android sqlite cursor
I have this method which I use to fill a listview with data from a sqlite database. It works as expected when the application is started:private void populateListView() {Cursor showsCursor = mDbHelper.fetchAllSummaries();startManagingCursor(showsCursor);// Create an array to specify the fields we want to display in the listString[] from = new String[]{DbAdapter.SUMMARY_TITLE, DbAdapter.SUMMARY_DATE, DbAdapter.SUMMARY_SUMMARY};// and an array of the fields we want to bind those fields toint[] to
Manty
android memory-management linux-kernel arm page-fault
I am trying to debug a problem in which an application is triggering continuous data aborts due to invalid memory access.I have following queries.In general when an application in Android(CPU ARM) is accessing an invalid memory access, what happens?I guess a page fault would occur and then a data abort would be triggered. Is it so? Could someone briefly explain how does Android handle invalid memory access? What happens to the process which makes illegal memory access? Is it restarted again and
user2049241
android netty
I want to write a Client on android phone and send an Object to a Server running on my windows PC (using ObjectDecoderInputStream ), but had these ExceptionExceptionjava.io.StreamCorruptedException: unexpected end of block data at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.access$300(Unknown Source) at java.io.ObjectInputStream$GetFieldImpl.readFields(Unknown Source) at java.io.ObjectInputStream.readFields(Unknown Source) at java.net.InetSocketAddress.read
Ketan
android
I am new to android development. I have created one project with some source files and made it as library project as per the instruction given on android development site. I also created custom project with different package name and given reference of library project.my custom project is working properly with new resource files and layouts but when i try to add .java file with same name and package structure in custom project, it givens me following error:[2011-12-15 16:44:27 – my project] Dx
James Sunderland
android sqliteopenhelper
First up, I am new to android apps and am not working solo on this. My team mate has taken design while I handle this, and asked me to set up the database and the method to do this, etc etc.So while most of this seems to be ok, I put:Context context = null; DataBaseHelper drinksDataBase = new DataBaseHelper(context); into his main activity.The constructer is as follows:public DataBaseHelper(Context context) {super(context, DB_NAME, null, 1);this.myContext = context;try{createDataBase();}catch(I
PX Developer
android exception android-asynctask sharedpreferences
I have an application that stores some data in SharedPreferences. This control data is synchronized with a server, and when the user logins in the application I retrieve it using an AsyncTask. I’m trying to store the data retrieved in SharedPreferences again, but I’m getting a java.lang.ExceptionInInitializerError. This is the AsyncTask code:public class RetrieveLogTask extends AsyncTask<Void, Void, Boolean> {private String errorMessage;@Overrideprotected Boolean doInBackground(Void… par
user2237853
android ubuntu adb android-studio
When I go to install the packages from with Android Studio I get a “ADB not responding” error with wait/restart/close options. I can run adb from a term. I can see my device and install the apk from the cmd line, but it doesn’t work from within Android Studio.In the terminal (that is running Android Studio) I get the following 03:56:36 E/adb: Unexpected exception ‘Cannot run program “/media/5b317046-147a-42ee-aec1-f73caf1922c5/home/kloud9/WorkSpace/downloads/workspace/android-studio/sdk/platform
Mohit
android optionmenu
flipper = (ViewFlipper) findViewById(R.id.vFslideshow);flipper.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View v) {flipper.showNext();}}); }@Override public boolean onPrepareOptionsMenu(Menu menu) {if(flipper.isFlipping()){menu.removeItem(0);}else{menu.removeItem(1);}return true; }@Override public boolean onCreateOptionsMenu(Menu menu) {menu.add(0, 0, 0, “start slideshow”);menu.add(0, 1, 1, “stop slideshow”);menu.add(0, 2, 2, “close”);return super.onCreateOptions
ophilbert
android android-layout rotation android-animation rotateanimation
I’m trying to make an animation on a layout that has been previously rotated using RotateAnimation. The animation i want to do are fadeIn and FadeOut depending of the situationaLayout = (LinearLayout) _context.findViewById(R.layout.layoutId);AlphaAnimation fadeIn = new AlphaAnimation(0, 1.0f);AlphaAnimation fadeOut = new AlphaAnimation(1.0f, 0);fadeIn.setDuration(500);fadeOut.setDuration(500);fadeIn.setFillAfter(true);fadeOut.setFillAfter(true);Depending of the situation i apply :aLayout.startAn
kasdega
java eclipse svn tortoisesvn subclipse
A couple days ago, I started getting an error when attempting to add a file to our project that is checked into SVN. Checking out and updating still works fine but if I try to add a file I get an error that makes no sense.I’m using Eclipse 4.2 and the latest version of Subclipse but I also get the same error using TortoiseSVN 1.7.10.The error I get is:svn: E175002: Commit failed (details follow):svn: E175002: Commit failed (details follow): svn: E175002: Processing PROPFIND request response fai
iQue
eclipse google-app-engine compiler-errors
When I try to run the auto generated code in my google web app project using GAE I get the following error:Mar 19, 2014 5:21:28 PM com.google.appengine.tools.development.agent.AppEngineDevAgent premain SEVERE: Unable to load the App Engine dev agent. Security restrictions will not be completely emulated. java.lang.RuntimeException: Unexpected exception during cast. at com.google.apphosting.utils.clearcast.ClearCast$CasterImpl.cast(ClearCast.java:385) at com.google.apphosting.utils.clearcast.Clea
cHao
eclipse gwt
I’m working with Eclipse Helios 3.6 (32-bit). I installed the GWT plug-in and created a new Web application. In the Client folder I was trying to open a file with GWT designer, but unfortunately I was getting an error:Internal Error encountered unexpected internal error. This could be caused by a bug or by a misconfiguration issue, conflict, partial update, etc.java.lang.UnsupportedClassVersionError: Bad version number in .class fileStack trace: java.lang.UnsupportedClassVersionError: Bad versio
Yicanis
java android eclipse
I’ve been playing around with both dungeons sample in app billing code with google and blundell’s tutorial in app billing code. Both of these projects are basically out of the box besides changing the public key, renaming the application, and uploading it to google which I have already done. The two apps were working fine just recently (around 3 days ago). Now i’m getting this error both in the LogCat and the Device.Device:Error retrieving information from server. [DF-DFERH-01]LogCat:10-13 02:26
Pulak Agrawal
eclipse eclipse-plugin jira mylyn atlassian
I am trying to get JIRA-Eclipse integration using the Atlassian connector and hitting this error. JIRA RPC services are not enabled. Please contact your JIRA administrator.A. I installed the connector in Eclipse through marketplace, then tried adding a new task respository > selct JIRA > give details like user+pass and my JIRA base URL. B. I confirmed from JIRA side as per this document : https://confluence.atlassian.com/display/JIRA041/JIRA+XML-RPC+Overview. C. Going to http://<myinstance>
Nanne
javascript regex eclipse escaping
I have a regular expression testing for numbers(0-9) and/or forwardslashes (/). It looks like this:/^[0-9/]+$/i.test(value)Now I believe this to be correct, but the eclipse javascript validator disagrees:Syntax error on token “]”, delete this tokenI suppose this is because the separator/delimiter is / and eclipse ‘thinks’ the regex is finished (and therefore a ] would be unexpected). We can satisfy eclipse by escaping the / like so:/^[0-9\/]+$/i.test(value)Note that both versions work for me.My
dnagirl
php eclipse syntax-highlighting
I have the following static function in a PHP class:static function __callStatic($method,$args){$called=NULL;if(empty(static::$collection)) static::slurp();if(method_exists(static::$objtype,$method)){foreach(static::$collection as $obj){$called[]= call_user_func_array(array($obj, $method), $args);}} else if (property_exists(static::$objtype,$method)){ //$method isn’t a method, it’s a propertyforeach(static::$collection as $obj){$called[]= $obj->$method;}} else if($method==’collection’){$calle
Philip
java eclipse noclassdeffounderror dropbox
I use Eclipse to write Java code and use DropBox to sync my code with others’ across our multiple computers. Most of the time, everything works as expected: if anyone makes a change on either end, the change is saved and when the other person refreshes the Eclipse workspace, the changes come through and can be viewed and run successfully.Sometimes, one of several errors arises. Sometimes Eclipse says it cannot find a main class and sometimes it says it could not find the class itself. Sometimes
Jay
java eclipse ide java-ee survey
I am working on a solution that aims at solving problems that newbie programmers experience when they are “modifying code” while bug fixing / doing change requests, on code in production. Eclipse, as we all know is a great IDE. Features such as Code Completion, Open Declaration, Type Hierarchy, Package Explorer, Navigator, Finding References etc aids people in fixing things quicker compared to say using something like Textpad.If you are a newbie java programmer and you are using Eclipse IDE, wha
mrk
eclipse
I have downloaded eclipse classic x86_64 3.7 cocoa on my Mac Intel Core 2 Duo with snow leopard 10.6.8I have extracted and copied the eclipse directory to Applications folder. When run, I get following errorsSystem property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences Unexpected error loading extension: org.eclipse.equinox.p2.metadata.repository.simpleRepository java.lang.NoC
user3421610
php wordpress website crash syntax-error
I tried editing the function.php file in my WordPress theme.Somehow I messed up and have a T_STRING error problem. So, I looked it up, and find I need to add a double ” speech mark on line 64.BUT, now the site is crashed. If I try to go in to do the edit I just get an error message telling me there’s a syntax error, unexpected T_STRING in /mysite/wp-content/themes/sahifa/functions/theme-functions.php on line 64I mean, I don’t get into the dashboard AT ALL, just this error message.So how can I
Madhu
crash ios7 uitextview range nsattributedstring
Hi Everyone i have a UITextView where i am changing the font with range by using the below code. it is working fine in iPhone 4 with iOS 7 , but when i run the same in iPhone 5 with iOS 7 it was crashing and showing up “Range out of bounds”. i was breaking my head for this unexpected behavior. Please help me out. thank you.- (void)setFont:(UIFont *)font range:(NSRange)range{NSMutableAttributedString *text = [[NSMutableAttributedString alloc]initWithAttributedString: self.attributedText];
hoss
android exception crash android-studio
I was working on a project in Android Studio and was regularly compiling the code running it on my device to make sure everything was in working order. Suddenly the main activity crashes, several times after compiling several separate times. I checked the logcat and the error was reported as being due to failure to recognize the layout. I didn’t understand why, as I hadn’t changed any of the code in the main activity.In fact the only thing that had changed over the course of those few days was t
Harlandraka
windows-7 ssd crash bsod
I have a Windows 7 computer with this hardware:Asus P8P67 PRO Intel i7 2600k 8GB RAM AMD Radeon HD 6970 2TB HDD (used for storing data) 128GB SSD OCZ Vertex III (used for the OS)The PC works fine but Windows crashes after some time (sometimes after an hour, sometimes after 4 hours, etc). I can see it because when I open an application, it hangs and doesn’t open, and if I click on the start button, explorer crashes. After that, if I wait it goes to blue screen and re-crashes (never reboots): I ha
Psycogeek
power-supply freeze crash gpu htpc
Subject says most of it. My HTPC will occasionally be found in this hard-locked/crashed state when nothing of note was being done. The past couple times, it has been while the screensaver was running over top of the Steam client (not Big Picture, just the normal client) and nothing else of note was running. I’ve not experienced this crash when watching TV via Windows Media Center, nor when playing Steam games like Dark Souls. Checking Event Viewer has been fruitless, as no BugChecks or other err
Dynde
windows-7 hard-drive boot ssd crash
I’ve been having some weird random crashes that I can’t seem to locate, and I’m unsure if it’s windows or hardware related.It’s a brand new computer and very powerful. I’ve run into a couple of these random crashes, now I don’t know what causes them, as it happens during the night, when I’m sleeping. When I wake up, all I see is a boot manager screen that says Exception: 0xc00000e “Boot device inaccessible”. A simple restart doesn’t fix the problem – it seems to struggle locating my primary hdd
the_mandrill
windows-7 crash shutdown
I’ve got a problem with a Win7 machine that up until now has been very reliable. During the boot it will just power off — no warnings or BSOD. Sometimes it gets as far as the login screen but shuts down on login, other times during the splash screen. System repair and System Restore don’t make any difference. I can boot into safe mode or onto a boot disk, which suggests it’s not a CPU overheating problem. I wondered if it was some kind of disk corruption, but I wouldn’t have thought it wou
Alexis Li
mavericks retina-macbook-pro google-chrome crash hang
I bought rMBP around November last year. As I open Chrome, it crash without log. I can’t move the mouse, and the mms stream player keep working.The only solution is to restart it with power button.I can’t find the report by chrome://crashes and ~/Library/Logs/.I think the kernel_task doesn’t make it.Are there anyone else got the same problem and solution? How to identify the unexpected shutdown by power button in shutdown_monitor.log or /var/log/system.log?Version:10.9.1(13B3116) Chrome Version
boldnik
wireless lenovo thinkpad crash
Just a few days ago I installed new wifi driver and everything seemed to work fine on Lenovo ThinkPad S440. But now I experience a problem with wifi: the speed slows down to zero that no page could load in web browser. The second problem (not sure if they are connected but maybe) is system crashes unexpectedly. this is a pastebin of dmesg output so you could see what’s happening. When the system crashes, X and all other programs crash. I can’t even switch to tty and restart X. Can’t be reproduce
Julio Gorgé
xcode crash iphone uitabview
Using XCode 4, with the iPhone iOS 4.2Hey everyone, I’m using a tabBar interface for my new app that I’m trying to finish. I have declared the UILabels and as soon as I connect them in the interface builder to the actual labels, the whole app will crash upon selection of its tab at runtime, in the simulator and on my iphone. I’m hoping there’s a really simple answer out there, but I really have no idea where to look (I am a novice). Thanks in advance,
Oded
android linux sh startup
I’m looking to build CyanogenMod ROMs for android, I’ve followed a tutorial to setup the build environment.This is the tutorial I followed: http://wiki.cyanogenmod.org/w/Build_for_i9305#Prepare_the_device-specific_codeThe only question I have is, instead of executing:cd ~/android/systemsource build/envsetup.shEvery time I want to build the ROM, is there a way to run it on boot? I tried to create a script to do it for me and run it in the startup applications but I couldn’t get it to work.#!/bin/
greggorob64
c# .net asp.net custom-controls startup
We have a medium sized application that depends on several usercontrols, namely:A tablelayout panel, with 2×5 grid of usercontrols, with 3+ levels of inheritance. A big issue we’re running into with our application has proven to be startup time (both cold\warm), one of the big big hangups we’re getting is initializing this usercontrol grid.From our timing reports, this form comes in at about 0.75 seconds for initialization, and cutting this down would be a big deal.My question is: What the hec
lsv
grails startup
I’ve installed Grails on my Windows XP, but when i try to make a “grails complile” I’ve got an error: | Configuring classpath | Error Error executing script Compile: startup failed: __Compile: 1: unexpected char: 0x0 @ line 1, column 1. 1 error(Use –stacktrace to see the full trace)Please, provide a solution for resolve this problem.ThanksSome useful information: Grails Version is 2.2.4GRAILS_HOME=c:\grails GROOVY_HOME=C:\Program Files\Groovy JAVA_HOME=c:\Program Files\Java\jdk1.7.0_07 PA
Gilles
shell-script freebsd startup daemon jails
I have a FreeBSD jail in which I run a server using the command:/usr/sbin/daemon /path/to/script.pyAt the moment I have to run this command every time I restart the machine and the jail starts. I’d like to have this command started from /etc/rc. Is there an easy way to create a FreeBSD rc script for a daemon command?UPDATE: I read through this BSD documentation about rc scripts, and from that I created the following script in /etc/rc.d/pytivo:#!/bin/sh. /etc/rc.subrname=pytivo rcvar=pytivo_enabl
Gilles
linux startup proc busybox
I am making an embedded Linux distribution and my board is a Raspberry Pi. My kernel version is 3.2.27 without initramfs and my root file system as follows:/lib /* contains kernel modules */ /bin /sbin /usr/bin /usr/sbin /* contains busybox utils binaries */ /usr/lib /* contains cross-compiler tool chain libs */ linuxrc /* generated by busybox, kept in / */ /dev /* I have created console and ttyAM0 manua
Gilles
linux-mint startup upstart sysvinit
so I’ve been trying to get the /etc/rc.local script to run, and for the life of me, nothing seems to work. I can run it manually by using service rc.local start, and it just echos ‘hi’ to a file in my home directory, but on reboot it does not run. All the correct permissions seem to be set and links exist in the correct rc#.d directories. For reference, here is the relevant information:# ls -l /etc/rc.local -rwxr-xr-x 1 root root 45 Apr 12 21:10 /etc/rc.local# ls -l /etc/init.d/rc.local
Tim Lara
windows-xp startup performance-monitor disk-activity
I am running a fresh install of Windows XP SP3 with a very minimal set of applications installed, but even so, my computer often bogs down to a crawl while it is furiously accessing the hard drive, lighting the disk activity light solid for a minute or more.The problem is the worst directly after startup / logon, but it sometimes also happens when the computer has been sitting idle at the desktop screen saver for a long time and is “woken up” to launch an application. Since this is a fresh Wind
uvts_cvs
windows-xp startup logging shutdown
Is it possible to log startup and shutdown times in Windows XP? I mean logging these events in the system event log.For example I can hack a jscript like this// this is log_startup.js var shell = WScript.CreateObject(“WScript.Shell”); shell.LogEvent(0, “Startup timestamp = ” + Date() );and then adding it cscript /nologo log_startup.js to the startup menu folder but I would prefer a more Windows “native” way (and, by the way, I do not know how to detect the shutdown).Thank you.
random
windows-7 startup openoffice.org
Since upgrading to OpenOffice 3.3 on 64-bit Windows 7, OpenOffice.org fails to start and displays the following error:The application cannot be started.[context=”user”] caught unexpected exception!Worked fine at version 3.2. What’s going on, and what’s the workaround, if any?
bastibe
windows-7 performance startup
My main computer these days is a Laptop with an SSD.Besides that, I have a desktop gaming rig. It is from last year, but it still runs recent titles really well. Crysis 2, Witcher 2, Diablo 3, not a problem.However, after startup it is really slow. Like, Firefox will take half a minute from invocation to window. Steam will take minutes until it is up and responsive. Even the task manager takes, like, dozens of seconds to show up.Later on, Firefox takes less than five seconds to start and everyth
Web site is in building