Comments (3)
After "Unfortunetely App has stopped" you will receive stack trace in LogCat. Did you read it?
from mikrotik-java.
@AmrSubZero You seem to be instantiating the app correctly. I will need to see a stack trace to understand the problem. Can you get a stack trace?
from mikrotik-java.
Having thought about this some more, I speculate that the code is causing a Throwable
or RuntimeException
. I see you have a catch there with a printStackTrace()
, so assuming you can get the output of a print, I suggest you change your code like this:
public class MainActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
try {
ApiConnection.connect("192.168.1.2");
} catch (MikrotikApiException e) {
e.printStackTrace();
}
catch (Throwable e) {
e.printStackTrace();
}
}
}
At least we'll then be able to pick up why the app is stopping. Please let me know, or if this issue is no longer relevant, please close the issue.
from mikrotik-java.
Related Issues (20)
- Problem to send profile exchange command HOT 1
- Failure on login with empty pass HOT 1
- Failed to login if password contains = char
- Login fails if the password contains ! (Token.PIPE) HOT 2
- Connecting with API_SSL do not work with RouterOS Stable 6.45.5 version HOT 1
- get users by .id value not work
- Add support for nested query expressions HOT 9
- Failed to login if password contain ! HOT 1
- How to implement Pull Request #67 in Android HOT 2
- unknwon parameter when adding user hotspot profile with on-login script HOT 1
- issue with reading single file from mikrotik router HOT 1
- query with ~ symbol HOT 1
- Get result from /export compact
- [Request] Add Tilde in Scanner.java HOT 1
- New login method of Router OS HOT 1
- Thanks gideon HOT 1
- Mikrotik HOT 1
- Can't connect via ssl
- FOR MIKROTIK
- create-and-activate-profile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mikrotik-java.