Menu
  • HOME
  • TAGS

overridePendingTransition not work in adapter(android)

java,android,eclipse

change like this code Intent intent = new Intent(FirstActivity.this, SecondActivity.class); Bundle b = new Bundle(); b.putInt("key", 1); //Your id intent.putExtras(b); //Put your id to your next Intent startActivity(intent); getActivity().overridePendingTransition(R.anim.pull_in_left, R.anim.push_out_right); then receive like in newActivity Bundle b = getIntent().getExtras(); int value = b.getInt("key"); ...

What wrong with my code in this case causing “Program has unexpectedly stopped”? [duplicate]

java,android,eclipse

private String message = getString(R.string.message); You're accessing resources too early. You cannot access resources at activity construction time e.g. when initializing member variables. You need to wait until onCreate() in the activity lifecycle. Move the getString() there. Generally, to learn what went wrong, see the exception stacktrace in logcat....

java null pointer exception JMenuBar [duplicate]

java,eclipse,swing,user-interface,nullpointerexception

MenuBar.add(MenuHelp); You are accessing the MenuBar variable without initializing it. You are missing a MenuBar = new JMenuBar (..); BTW, your code would be more readable if you use Java naming conventions (variables should start with a lower case letter)....

Trouble trying to run Python 2.7 and 3.4 in Eclipse

python,eclipse

I'm assuming you're using PyDev. I don't know if there are other alternatives but that's what I use for Python in Eclipse. Right-click on your project folder in the Package Explorer view and select "Properties". Select "PyDev - Interpreter/Grammar" Select the appropriate Grammar Version and Interpreter, if those options contain...

guidance needed on using apache commons math

java,eclipse,apache

It may be so simple that you haven't imported the DescriptiveStatistics class. Put this in the top of your file: import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics; ...

The method setColor(int) is undefined for the type NotificationCompat.Builder

android,eclipse,android-notifications

Updated: The issue is that the support library wasnt updated to the latest version.

Is there something wrong with my eclipse calculator?

eclipse

Your constructor is not correct. Rewrite it as follow public TaxReturn(double inc, int stat){ income = inc; status = stat; } By declaring type on income and status variables, you made them local to the constructor....

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver [Eclipse, Tomcat]

java,mysql,eclipse,tomcat,jdbc

It should be in your Webcontent/WEB-INF/lib folder not Webcontent/META-INF/lib

Array Out of Bounce Exception for Jar, but not Eclipse

java,eclipse,jar

This is happening because your jar file is unable to find maze.txt . change String fileName = "maze.txt"; to String fileName = <absolute-path-for-maze.txt> ; and it should be through in jar ...

Search for exact word or phrase in Flash Builder's “Search” tool?

regex,eclipse,flex,flex4,flash-builder

Enable the regular expression option and then use the below regex. \bremoveEvent\b \b called word boundary which helps to do an exact match.. \b matches between a word charcater and non-word character, vice-versa.....

BIRT Report Client or Server Side Filtering?

eclipse,birt

Yes this visibility property is filtering elements on server-side, so it is secured in your case. As far as i know there is only one BIRT property acting as a sort of client-side filter: this is the "General -> display" property (block | inline | No display). However for performance...

Disable Wrapping Cursor in Eclipse

eclipse,vim,vi

In Vim, the behavior of the arrows when the cursor is at the BOL/EOL is governed by the 'whichwrap' option which — judging by the manual — is not supported by viPlugin. What you want would be achievable with custom mappings and a bit of vimscript logic in Vim itself...

Showing previous searches in PyCharm

eclipse,full-text-search,pycharm

When View tool window is active (View -> Tool Windows -> Find (Alt+3)) there's Recent find usages (Ctrl+E) option in the context menu. It seems Pycharm does not remember excluded results, though.

Calling Perl script from Java (JAX-WS in Eclipse)

java,eclipse,perl,jax-ws

I got similar stuff some time ago. The solution for me was to 'accept' the output of the program. Something like this: Process p = Runtime.getRuntime().exec(cmd); final InputStream is = p.getInputStream(); new Thread(new Runnable() { @Override public void run() { try { while (is.available() != 0) { is.read(); } }...

ADT not updated in eclipse

java,android,eclipse

I removed Previous version of ADT first and then installed that. This problem was resolved.

Close module in android studio

android,eclipse,android-studio

There is no notion of opening and closing a module in Android Studio. There should be no need to do it. You seem to be treating an Android Studio project as being the equivalent of an Eclipse workspace, and IMHO that is not a valid comparison....

How to Change Default Text Editor Annotation Preferences in Eclipse?

java,eclipse

The problem seems to be specific to when you're using a custom theme like Dark (does not happen with the default theme). I am able to reproduce it with Luna also, but it seems to be fixed in the Mars version (4.5) which is due to release on Wednesday (June...

Eclipse can't recognize my javax.ws.rs.core.Response object

eclipse

Based on documentation all methods in Response are static. Your IDE does recognize the Object, but it has no instanse method, so Eclipse will not suggest anything more than the nested classes. EDIT: I've found another JavaDoc for Jersey. Looks like it talks about slightly different (newer?) version of this...

How to force team members to comment using eclipse plugin or something else

eclipse,jenkins,eclipse-plugin,coding-style,build-automation

You can run static code checks and their corresponding eclipse plug-ins to enforce comments being made in code. For e.g. in CheckStyle javadoc can be enforced http://checkstyle.sourceforge.net/config_javadoc.html Also checkstyle can be easily integrated with Jenkins. You can also use eclipse java compiler settings for javadoc check. Go to preferences->java->compiler->javadoc to...

AWS RDS on Eclipse

eclipse,amazon-web-services,amazon-ec2,amazon-rds

Okay, per the comments on the question, I'm going to give an answer that works around the question. In other words, the straightforward answer is to do an insecure thing (open the database to public). Here's the TLDR on the answer: create a tunnel to an ec2 instance, then tell...

Renaming file I got this error: !MESSAGE Variable references non-existent resource

python,eclipse,resources,liclipse

This is probably the Run Configuration for the project. Look in 'Run > Run Configurations' for your project and check the variables....

Eclipse not compiling because of ClassNotFoundException

java,eclipse,amazon-web-services,compilation,aspectj

It seems that your Eclipse doesn't found the library of aspectj. Try to download it again from: https://eclipse.org/aspectj/downloads.php By your stack trace I suppose that the version of aspectj that it is looking for it's the 1.6 so I suppose that you have to search the package in which puts...

Eclipse Selenium Facebook login issue (new page email) driver.findElement(By.id(“email”)).sendKeys(“”); Java

java,eclipse,email,selenium,facebook-login

Since its opening in a different popup you need to first switch to that window (popup) before doing any operation. Try to first get the window object of the popup and then Switch to the window the try to write the email. Below code will help to find the window....

Eclipse Design Tab detects wrong Java

java,eclipse

looks like JAVA_HOME is set to the java 7 one, will this require a restart? You're actually executing eclipse with Java 7, you can update JAVA_HOME to point to Java 8, and then restart eclipse (not your computer)....

do-while loop in android app

android,eclipse,do-while

You need to catch if the user presses something like "no": boolean someBool = true; .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { someBool = false; } }); do{ some code }while(someBool); You can set a boolean if the user presses "no" to false and check inside...

Spring Roo Shell in Eclipse: Could not create sts.roo.ui.rooShellView

eclipse,spring-roo,spring-tool-suite

As you can see here, current version of Spring IDE Roo Support plugin has no support to load Spring Roo version higher than 1.2.1. This is already fixed in new plugin version that will be released with STS 3.7.0 which is scheduled for end of June/early July. Until that, you...

Eclipse Debugger Hitting Comments, Skipping Actual Code

eclipse,debugging

This happens when you source code is out of sync with class files that are being executed in the VM. To correct this Do a clean build. Deploy your changes (i.e. make sure the class file you built are copied to the execution environment). Re-start your debug session. The debug...

How to access controls(views)in tabs from another one in android?

android,eclipse,android-fragments,android-tabs,oncreate

From Android Documentation about FragmentPagerAdapter : This version of the pager is best for use when there are a handful of typically more static fragments to be paged through, such as a set of tabs. The fragment of each page the user visits will be kept in memory, though its...

one eclipse install not displaying utf8

java,eclipse,svn,utf-8

Workspace-wide encoding is configured here (Windows -> Preferences -> General -> Workspace): If it is not working as expected, the project probably overrides the settings (Right click on project -> Properties -> Resources): ...

Stop git from bringing changes to master into my branch?

eclipse,git

So the problem here is that MYBRANCH is set up to track origin/master, which means that when you do a git pull, origin/master will be merged into it. You can untrack it by doing git config --unset branch.MYBRANCH.merge. Assuming there is an origin/MYBRANCH, you can track it by doing git...

How to compile and run a JSP Beans project using Eclipse

java,html,eclipse,jsp

The problem is the difference between you input name and the setter of UserData, please try to modify the index.html as: <form action="saveName.jsp" method="post"> What is your name? <input type="text" name="userName" size="20"> <br> What is your email address? <input type="text" name="userEmail" size="20"> <br> What is your age? <input type="text" name="userAge"...

How do I view Android LogCat output from an exported APK running on a physical device?

android,eclipse,logcat

Try adb logcat from the console or cmd, which will give you all the logs of the device. Here's a small tutorial: http://forum.xda-developers.com/showthread.php?t=1726238 and official docs: http://developer.android.com/tools/help/logcat.html If your device is rooted, you can also try this one: https://play.google.com/store/apps/details?id=com.nolanlawson.logcat...

What are my next steps on finding the cause of this exception?

java,android,eclipse,debugging

I step through the code as the application is running on the Android device but the exception occurs in code that is not part of the application As you've done, step through your application code line by line in a debugger, until you get to the last line which...

Is there a way to compile Objective-C in windows with eclipse without launching the MSYS terminal

objective-c,eclipse

After checking the environment variables inside the GNUStep, I made the Objective-C code working directly with eclipse without launching the MSYS terminal Download and install GNUStep from http://www.gnustep.org/windows/installer.html Download and install Eclipse Luna for C/C++ https://eclipse.org/downloads/ After installation You can launch GNUStep Shell and execute "set > paths.txt" This paths.txt...

Why does Eclipse reference a 1.4 JRE?

java,eclipse

As @Marvin mentioned in the comments above, Eclipse Juno is not compatible with JDK 1.8. It might be a bug that Eclipse interprets JDK 1.8 as 1.4, but I suspect you can work around it by either removing the 1.8 from your list of installed JREs or updating to a...

Dx trouble writing output: already prepared… - Error in console

java,android,eclipse,e-commerce,braintree

This is only an issue in 1.6.1 and 1.6.0 with the full jar. A new optional dependency was added in these versions and the full jar picks it up and compiles it in. For now you can use 1.5.1 and a future release will not include Google Play Services in...

Unfortunately, (My app) has stopped. Eclipse Android [duplicate]

java,android,eclipse,adt

In your MainActivity.java at line no 34 you are trying to initialize some widget that is not present in your xml layout which you have set it in your setContentView(R.layout.... That;s why you are geting nullpointerexception. EDIT: change your setContentView(R.layout.activity_main) to setContentView(R.layout.fragment_main)...

Accessing files inside a jar file

java,eclipse

That's because the file is inside the JAR and is no longer accessible on the file system - using a FileInputStream is still using files. You need to treat it as a resource instead and get an InputStream from that, then it will work both when packaged as a JAR...

Java Server Pages, Java iOS and Codename One

java,ios,eclipse,xcode

That's not how Codename One works. JSP code will run on the server unrelated to Codename One, the xcode project won't work with Codename One. You will need to write the mobile code from scratch....

Add item above “Project” in eclipse project explorer contextmenu

eclipse,eclipse-plugin,ide,contextmenu,project-explorer

As has been mentioned in NewActionProvider.java there is no menugroupid to accomodate "My Project Wizard" in the "Project..." Group :(. /** * Adds a submenu to the given menu with the name "group.new" see * {@link ICommonMenuConstants#GROUP_NEW}). The submenu contains the following structure: * * <ul> * <li>a new generic...

How to change Eclipse IDE GUI icons?

eclipse,user-interface,icons

Most of the icons seem to be stored under \eclipse\configuration\org.eclipse.osgi\bundles\684\1.cp\icons AND in other folders of \eclipse\configuration\org.eclipse.osgi\bundles. I don't know if the license of Eclipse allows you to change that just check that out, and if you can, you can either change/create them yourself or you can search for icon packs...

Importing an OSGI bundle into eclipse

java,eclipse,maven,dependency-management,osgi-bundle

You will need to also install bundles that export these packages into your target platform.

Eclipse CDT shows … not resolved errors for ARM neon intrinsics, but produces the binary

c++,eclipse,arm,neon

Change: #include "arm_neon.h" to: #include <arm_neon.h> Watch out for this in future - often <> and "" are interchangeable, but in some cases it can make an important difference. Always use <> for system headers and "" for user headers....

Can I install 2 or more Android SDK when using Eclipse

java,android,eclipse,sdk,versions

There shouldn't be any problem if you use the latest SDK version ; actually, this is recommended. However, make sure to set the correct "Target SDK", i.e. the highest android version you have successfully tested your app with, and the "Minimum Required SDK" as well....

eclipse pydev - how to install python modules

python,eclipse,module,pydev

Well, pip install should work for PyDev (it should automatically recognize the dependency)... I.e.: in your use case, the only folder that should be in the PYTHONPATH is D:\apps\Python34\lib\site-packages (and pip should install packages to that folder -- make sure you don't add extra folders for "D:\apps\Python34\lib\site-packages\django" nor anything else...

Tempered Greedy Token - What is different about placing the dot before the negative lookahead

regex,eclipse

((?!</table>).)* would checks for that particular character going to be matched must not be a starting character in the string </table>. If yes, then only it matches that particular character. * repeats the same zero or more times. (.(?!</table>))* matches any character only if it's not followed by </table>, zero...

Android Studio incorrect package name

android,eclipse,android-studio,android-gradle,packages

My problem was that I was looking at the wrong build.gradle file and didn't see the application id value. Once I found the correct file (thanks to @ianhanniballake) I changed the application id and it worked.

Eclipse Layout: static instead of relative values?

android,eclipse,layout

<LinearLayout android:orientation=horizontal android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:orientation=horizontal android:layout_width="0" android:weight="50" android:layout_height="match_parent"> <Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="75dp" android:gravity="center" android:text="Button" /> </LinearLayout> <LinearLayout android:orientation=horizontal android:layout_width="0"...

Getting SSLHandshakeException in java

java,eclipse,ssl,https,digital-certificate

If importing to keystore not resolving your issue.. as i was not able to resolve it. Then add following line of code. It worked for me. System.setProperty( "javax.net.ssl.keyStore", "D:\\G2B.p12" ); // The path to the .p12 file System.setProperty( "javax.net.ssl.keyStorePassword", "****" ); // The password of the p12 file System.setProperty( "javax.net.ssl.keyStoreType",...

Java eclipse I want to open the form like tab [on hold]

java,eclipse

You want to make your program look like that? With tabs? If that's the case, use a tabbed pane. link: https://docs.oracle.com/javase/tutorial/uiswing/components/tabbedpane.html...

IntelliJ - use imported modules as dependencies like maven projects in Eclipse

eclipse,scala,maven,intellij-idea,sbt

It should work out of box for dependencies, which are imported to the project as modules, no additional settings needed. At least for Java. Just do not run a Maven goal, that would use dependencies from the repository. ...

Compilation Error on maven

java,eclipse,maven,maven-plugin

Check with that below dependency is it present or not ?? <dependency> <groupId>javax.ws.rs</groupId> <artifactId>javax.ws.rs-api</artifactId> <version>2.0-m01</version> </dependency> ...

The local variable may not have been initialized error

java,eclipse

You're writing code that looks ambiguous: "aString" + anInt + anotherInt + "anotherString" Java is interpreting this to mean the equivalent of: ("aString" + anInt) + anotherInt + "anotherString" so that each int is converted to a String before being added, but you wanted to do the equivalent of: "aString"...

How to use two port numbers for a single java web application?

java,eclipse,tomcat,servlets,port

Find out which tomcat installation eclipse is using. Under your tomcat installation there is a conf/server.xml file. You add a new HTTP connector for the port you desire there and restart tomcat. Now you have tomcat listening to the extra port you added. <Connector port="4121" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" />...

Match string in XText regardless of upper/lower case

java,eclipse,pattern-matching,dsl,xtext

There is a flag that you can configure in the mwe2 workflow. Replace the XtextAntlrGeneratorFragment by the org.eclipse.xtext.generator.parser.antlr.ex.rt.AntlrGeneratorFragment and pass options = { ignoreCase = true }. Same for the XtextAntlrUiGeneratorFragment and the org.eclipse.xtext.generator.parser.antlr.ex.ca.ContentAssistParserGeneratorFragment

Meaning of connectionTimeout in tomcat

java,eclipse,tomcat

Taken from here: https://tomcat.apache.org/tomcat-7.0-doc/config/http.html connectionTimeout The number of milliseconds this Connector will wait, after accepting a connection, for the request URI line to be presented. Use a value of -1 to indicate no (i.e. infinite) timeout. The default value is 60000 (i.e. 60 seconds) but note that the standard server.xml...

Open a properties file from a class in a Dynamic Web Project

java,eclipse,jsp,properties-file

You can put this propertie file within your java package for example com/test and use following: getClass().getResourceAsStream( "com/test/myfile.propertie"); Hope it helps....

Opening frame that is under the JavaFX program category

eclipse,video,javafx,jframe,mp4

I am not sure to understand your problem but in order to create a new frame in JavaFX. You have to create a new class with a new stage. Let's say you create a new class "newFrame" with the code below. public void show(Stage stage){ //define your root double width...

Why is eclipse complaining when I try to close BufferedReader in finally block?

java,eclipse,exception,bufferedreader,try-catch-finally

Both code examples should have compiler errors complaining about an unhandled IOException. Eclipse shows these as errors in both code examples for me. The reason is that the close method throws an IOException, a checked exception, when called in the finally block, which is outside a try block. The fix...

Not Able to consume external RestFul web service from Client in Eclipse or from restclient-ui

java,eclipse,web-services,restful-url,rest-client

Try setting your company's proxy using: System.getProperties().put("https.proxyHost", "proxyHost"); System.getProperties().put("https.proxyPort", "proxyPort"); Similarly for http....

Play Framework 2.4 IDE Eclipse directions don't work

eclipse,playframework,sbt,playframework-2.4

Version 4.0.0 is not yet available. Use RC2: addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0-RC2")...

How to implement log changes in a storm project locally using Eclipse

java,eclipse,logback,storm

I am not sure if I understand correctly. What do you mean by "local storm project"? Do you execute using LocalCluster? In this case, you need to create a file "logback.xml" and put you logger configuration there. logback.xml must be in your classpath, ie, you can put it into "src"...

Enable JButton after CheckBox is checked

java,eclipse,jbutton,jcheckbox

Assuming that you have a JButton called button and you set it by default to be disabled, and also you have JCheckBox called chbox you can use the following code to enable this functionality: chbox.addItemListener(new ItemListener() { @Override public void itemStateChanged(ItemEvent e) { button.setEnabled(e.getStateChange() == ItemEvent.SELECTED); } }); Edit: You...

Java 8 Optional.ifPresent is my code wrong or is it eclipse?

eclipse,java-8,nullable,optional

JDT's null analysis cannot know about the semantics of each and every method in JRE and other libraries. Therefore, no conclusions are drawn from seeing a call to ifPresent. This can be remedied by adding external annotations to Optional so that the analysis will see method ofNullable as <T> Optional<@NonNull...

Remote debugging tomcat with OpenShift

eclipse,tomcat,openshift,remote-debugging

You should read through the Developer Portal's pages on Port Forwarding (https://developers.openshift.com/en/managing-port-forwarding.html) to make sure that you are using it correctly. You will want to connect to your local loopback address: 127.0.0.1 along with the correct forwarded port once you have run the port-forwarding command.

exec-maven-plugin error, even on working example

java,eclipse,maven

The error log which you posted says the following: java.lang.ClassNotFoundException com.jadex.qna.QNAProject.App So it clear what the root source of the error is. You are trying to execute the main() method of a class whose class file Maven cannot find. As this SO article discusses, you can try explicitly compiling first,...

Scala running issue on eclipse

eclipse,scala

to run as scala application, you need to create Scala App and not class In eclipse, package explorer select project/src/package right click new>scala app inform Name e.g. Test and click "finish" select Test.scala right click "run as Scala Application" see results in console window....

How to structure my XText terminals? WORDS/SL_STRING/ML_STRING

java,eclipse,eclipse-plugin,dsl,xtext

You should implement a data type rule in order to achieve the desired behavior. Sebastian wrote an excellent blog post on this topic which can be found here: http://zarnekow.blogspot.de/2012/11/xtext-corner-6-data-types-terminals-why.html Here is a minimal example of a grammar: grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals generate myDsl "http://www.xtext.org/example/mydsl/MyDsl" Model: greetings+=Greeting*; Greeting: 'Example' ':' comment=Comment;...

String returned positive booleans, despite not fulfilling any [closed]

java,eclipse,exception

Change = to == in all the control flow statements. = is used for assignment and == is used for boolean comparison on integral types.

Tomcat 7 PermGen Space or Failed to Create JVM

java,eclipse,tomcat,tomcat7,permgen

Problem solved : Downloaded a new Tomcat (7.0.62) : https://tomcat.apache.org/download-70.cgi Added Arguments at the launch of my Tomcat : -Xms256m -Xmx512m -XX:MaxPermSize=128m ...

Mysterious claim of a missing { in eclipse

java,eclipse

In Java, you cannot write executable statements directly in class.So this is syntactically wrong: for(int i=0; i<10; i++) { this.colorList[i] = this.allColors[this.r.nextInt(this.allColors.length)]; } Executable statements can only be in methods/constructors/code blocks...

html form action not working when using eclipse

java,eclipse,jsp,servlets

Try to delete the comment // @WebServlet("/hello"), and put @WebServlet("/hello"). Stop the server, refresh and if its necessary clean it. And re - launch again. And take a look if the web.xml the welcome file list is correctly, because is the file which launch always.

How to find references to a class that's referenced indirectly via exported jar in Eclipse?

java,eclipse

For a plug-in project, all of its dependencies have to be from other plug-ins and declared using its MANIFEST.MF file. Being packaged in a .jar has nothing to do with it. At runtime, the stated dependencies are wired by Equinox. At development time, PDE uses your MANIFEST.MF to set up...

Eclpse Luna SWT version

eclipse,swt

Your assumption is right. The plug-in with the id org.eclipse.swt is indeed the version of SWT that runs Eclipse.

How to inactivate an eclipse plug-in without uninstall it?

eclipse,plugins,eclipse-plugin,kepler

You can temporarily disable a plugin simply by moving its directory out of Eclipse's plugins directory. In Eclipse, if you select Help | About | Installation Details | Plugins, the list of plugins has 2 columns 'Version' and 'Plug in Id'. The corresponding plugin subdirectory will have the format id_version....

UISpec4J tests in Eclipse are not found

java,eclipse,user-interface,testing,uispec4j

just for fun. you can remove "extends UISpecTestCase" in your class and give it a try see if it works or not :) Junit 4.X should support annotation well and I didn't see any reason you need to extends UISpecTestCase....

How to use the string from editText as display textview in another activity?

android,eclipse

You can send the string using Bundle Intent i=new Intent(A.this, B.class); Bundle b = new Bundle(); b.putString("name", sub6.getText().toString()); i.putExtras(b); startActivity(i); and in the receiving activity: Bundle extras = getIntent().getExtras(); String text = extras.getString("name"); ...

Eclipse CDT - No Console Output on OSX

c++,eclipse,osx,terminal,64bit

Are you using the right compiler? If you are compiling with Cross GCC it might not run on a 64bit OS X device. Try using MacOS GCC for compiling if so.

Match a pattern preceded by a specific pattern without using a lookbehind

regex,eclipse,lookahead

A work-around for the lack of variable-length lookbehind is available in situations when your strings have a relatively small fixed upper limit on their length. For example, if you know that strings are at most 100 characters long, you could use {0,100} in place of * or {1,100} in place...

Dynamically populating List View from Website XML data Android

java,android,xml,eclipse,networking

First of all, you need to run your network request in a separate thread like an AsyncTask, like @Jones said, try to create a class extending AsyncTask and then in doInBackground() put your getLocs() method. Don't forget to add the INTERNET permission to your Manifest.

Java: unhandled exception

java,eclipse,exception,exception-handling,try-catch

The issue is caused by the lambda function. The interface of the function that forEach requires doesn't declare any kind of checked exceptions: take a look at java.util.function.Consumer. That's the place where the first issue occurs, the second one is simply a result of the first one. Either you should...

No hello World output for Neo4j

java,eclipse,neo4j

That example creates and then deletes the data so that is one reason why your graph is empty. Another observation is your DB_PATH. If you've set DB_PATH='data/graph.db', then that path is relative to your project path. If your code is located in /projects/example then this embedded database should be created...

How to avoid calling 'onCreated()' method of near tabs when i switch to some tabs?

android,eclipse,tabs,fragmentpageradapter

You can't. You can set your number of "pre-cache" tabs in your View Pager viewPager.setOffscreenPageLimit(3); But the minimum number to load is one back and forward, the equivalent: viewPager.setOffscreenPageLimit(1); In order to be able to swipe....

Modify ivy classpath entry

java,eclipse,eclipse-plugin,ivy,ivyde

With the project, you can get all the class path entries. I went through and excludes the ivy entries. Then I re-added them with the correct class path and property files. Now, the paths do not include ${ivyproject_loc} and ${project_loc}. Here is the code: protected void changeIvyClasspath(IProject project, IProgressMonitor monitor)...

First program doesn't work and i have no idea why

android,xml,eclipse

You are using android:theme="@android:style/Theme.Light" as the theme of your application. Since your styles.xml has <style name="AppBaseTheme" parent="Theme.AppCompat.Light"> <!-- Theme customizations available in newer API levels can go in res/values-vXX/styles.xml, while customizations related to backward-compatibility can go here. --> </style> You should be using AppBaseTheme as your theme in your manifest....

Eclipse extension point for Open Resource/Open Type dialogs

eclipse,plugins,eclipse-plugin

These dialogs don't support customization. Open Resource is OpenResourceDialog (an internal class) derived from FilteredResourcesSelectionDialog. Open Type is OpenTypeSelectionDialog (again internal) derived from another internal class FilteredTypesSelectionDialog which in turn is derived from FilteredItemsSelectionDialog. ...

Android Fullscreen codes not working

java,android,eclipse

To show app in fullscreen use: getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); To remove it use: getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); ...

WebDriver Selenium browse file Java

java,eclipse,junit,webdriver

From the screenshot you have given, I can see the concerned element is in an iframe. (Check the second bar in the developer tools below the bar containing: Inspector, Console,etc. You will note the iframe#iframe_1434526152814_57_7. ). Hence, you weren't able to send the path to it. In order to send...

What solution of Eclipse to Install for Python

python,eclipse

Having installed Eclipse classic (or any other version of Eclipse, for this matter), you can then install the PyDev module. (There are many online tutorials telling you how to do this. And the documentation can be found there: http://pydev.org/manual_101_install.html) If you're looking for an IDE for Python, PyCharm is also...

Importing Spring MVC Project Manually to Eclipse

java,eclipse,spring,spring-mvc

you will extract zip file and go to inside folder in templete.zip is import succesully into eclipse IDE.i have tested.

How to save a json file locally with dojo toolkit

javascript,android,json,eclipse,dojo

Why use dojo? You can use javascript and HTML5

FXML file won't load even when file path is correct

java,eclipse,javafx

The problem in here is that you are appending a /, when you are already using a ClassLoader's getResource(). You should never use a / at the beginning of a ClassLoader path is because all ClassLoader paths are absolute. You can definitely use Class's getResource() with a URL which starts...