02-16 23:37:04.977 6039-6039/? E/libprocessgroup: failed to make and chown /acct/uid_10060: Read-only file system
02-16 23:37:04.978 6039-6039/? W/Zygote: createProcessGroup failed, kernel missing CONFIG_CGROUP_CPUACCT?
02-16 23:37:04.978 6039-6039/? I/art: Not late-enabling -Xcheck:jni (already on)
02-16 23:37:05.001 6039-6047/? E/art: Failed writing handshake bytes (-1 of 14): Broken pipe
02-16 23:37:05.001 6039-6047/? I/art: Debugger is no longer active
02-16 23:37:05.129 6039-6039/? I/InstantRun: starting instant run server: is main process
02-16 23:37:05.239 6039-6039/? W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
02-16 23:37:05.305 6039-6052/? W/art: Suspending all threads took: 5.268ms
02-16 23:37:05.309 6039-6052/? I/art: Background partial concurrent mark sweep GC freed 863(246KB) AllocSpace objects, 0(0B) LOS objects, 50% free, 995KB/2019KB, paused 6.482ms total 23.239ms
02-16 23:37:05.460 6039-6039/? W/System.err: android.os.NetworkOnMainThreadException
02-16 23:37:05.461 6039-6039/? W/System.err: at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1147)
02-16 23:37:05.461 6039-6039/? W/System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:418)
02-16 23:37:05.461 6039-6039/? W/System.err: at java.net.InetAddress.getAllByNameImpl(InetAddress.java:252)
02-16 23:37:05.461 6039-6039/? W/System.err: at java.net.InetAddress.getAllByName(InetAddress.java:215)
02-16 23:37:05.461 6039-6039/? W/System.err: at com.android.okhttp.HostResolver$1.getAllByName(HostResolver.java:29)
02-16 23:37:05.461 6039-6039/? W/System.err: at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:232)
02-16 23:37:05.461 6039-6039/? W/System.err: at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:124)
02-16 23:37:05.461 6039-6039/? W/System.err: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:272)
02-16 23:37:05.461 6039-6039/? W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
02-16 23:37:05.461 6039-6039/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
02-16 23:37:05.461 6039-6039/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:332)
02-16 23:37:05.461 6039-6039/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:199)
02-16 23:37:05.461 6039-6039/? W/System.err: at java.net.URL.openStream(URL.java:470)
02-16 23:37:05.461 6039-6039/? W/System.err: at com.glascake.eyvo.webClass.getLines(webClass.java:13)
02-16 23:37:05.462 6039-6039/? W/System.err: at com.glascake.eyvo.MainActivity.onCreate(MainActivity.java:21)
02-16 23:37:05.462 6039-6039/? W/System.err: at android.app.Activity.performCreate(Activity.java:5990)
02-16 23:37:05.462 6039-6039/? W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
02-16 23:37:05.462 6039-6039/? W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
02-16 23:37:05.462 6039-6039/? W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
02-16 23:37:05.462 6039-6039/? W/System.err: at android.app.ActivityThread.access$800(ActivityThread.java:151)
02-16 23:37:05.462 6039-6039/? W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
02-16 23:37:05.462 6039-6039/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
02-16 23:37:05.462 6039-6039/? W/System.err: at android.os.Looper.loop(Looper.java:135)
02-16 23:37:05.462 6039-6039/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5254)
02-16 23:37:05.462 6039-6039/? W/System.err: at java.lang.reflect.Method.invoke(Native Method)
02-16 23:37:05.462 6039-6039/? W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
02-16 23:37:05.462 6039-6039/? W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
02-16 23:37:05.462 6039-6039/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
02-16 23:37:05.480 6039-6057/? D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
[ 02-16 23:37:05.482 6039: 6039 D/ ]
HostConnection::get() New Host Connection established 0xb40f1ab0, tid 6039
02-16 23:37:05.483 6039-6039/? D/Atlas: Validating map...
02-16 23:37:05.533 6039-6052/? I/art: Background sticky concurrent mark sweep GC freed 5890(383KB) AllocSpace objects, 0(0B) LOS objects, 22% free, 1568KB/2019KB, paused 7.870ms total 31.295ms
[ 02-16 23:37:05.596 6039: 6057 D/ ]
HostConnection::get() New Host Connection established 0xae882330, tid 6057
02-16 23:37:05.598 6039-6057/? I/OpenGLRenderer: Initialized EGL, version 1.4
02-16 23:37:05.599 6039-6057/? W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
02-16 23:37:05.612 6039-6057/? D/EGL_emulation: eglCreateContext: 0xae834d00: maj 2 min 0 rcv 2
02-16 23:37:05.657 6039-6057/? D/EGL_emulation: eglMakeCurrent: 0xae834d00: ver 2 0
02-16 23:37:05.664 6039-6057/? D/OpenGLRenderer: Enabling debug mode 0
02-16 23:37:05.689 6039-6057/? D/EGL_emulation: eglMakeCurrent: 0xae834d00: ver 2 0
02-16 23:37:05.969 6039-6057/? D/EGL_emulation: eglMakeCurrent: 0xae834d00: ver 2 0
02-16 23:37:06.032 6039-6039/com.glascake.eyvo W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
02-16 23:37:06.037 6039-6039/com.glascake.eyvo I/Choreographer: Skipped 31 frames! The application may be doing too much work on its main thread.
02-16 23:37:06.043 6039-6057/com.glascake.eyvo D/EGL_emulation: eglMakeCurrent: 0xae834d00: ver 2 0
02-16 23:37:06.127 6039-6057/com.glascake.eyvo D/EGL_emulation: eglMakeCurrent: 0xae834d00: ver 2 0
02-16 23:37:06.155 6039-6057/com.glascake.eyvo V/RenderScript: 0xae8e3c00 Launching thread(s), CPUs 2
02-16 23:37:06.193 6039-6057/com.glascake.eyvo D/EGL_emulation: eglMakeCurrent: 0xae834d00: ver 2 0
02-16 23:37:07.458 6039-6057/com.glascake.eyvo D/EGL_emulation: eglMakeCurrent: 0xae834d00: ver 2 0
02-16 23:37:07.506 6039-6057/com.glascake.eyvo D/EGL_emulation: eglMakeCurrent: 0xae834d00: ver 2 0
02-16 23:37:07.797 6039-6057/com.glascake.eyvo D/EGL_emulation: eglMakeCurrent: 0xae834d00: ver 2 0
02-16 23:37:09.460 6039-6057/com.glascake.eyvo D/EGL_emulation: eglMakeCurrent: 0xae834d00: ver 2 0
02-16 23:37:09.797 6039-6057/com.glascake.eyvo D/EGL_emulation: eglMakeCurrent: 0xae834d00: ver 2 0
02-16 23:37:54.052 6039-6057/com.glascake.eyvo D/EGL_emulation: eglMakeCurrent: 0xae834d00: ver 2 0
02-16 23:37:54.546 6039-6057/com.glascake.eyvo D/EGL_emulation: eglMakeCurrent: 0xae834d00: ver 2 0
Alles anzeigen
Main Activity
[...]
public class MainActivity extends AppCompatActivity {
webClass wb = new webClass();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
try {
URL search = new URL("http://www.google.com/");
ShowToast(search.toString(),Toast.LENGTH_SHORT);
ArrayList<String> lines = wb.getLines(search);
for (String line : lines) {
ShowToast(line, Toast.LENGTH_SHORT);
}
} catch (java.net.MalformedURLException e){
ShowToast("MalformedURLException",Toast.LENGTH_SHORT);
} catch (Exception ex){
ShowToast("Exception",Toast.LENGTH_SHORT);
ex.printStackTrace();
}
}
void ShowToast(String message, int length)
{
Toast.makeText(MainActivity.this,
message, length).show();
}
}
Alles anzeigen
@jogimuc was soll denn eine höhere api bringen?? ich hab gehört die hohen apis (ab 24) machen erst richtig probleme mit den permissions
@Andy61 logcat ist ganz oben hoffe du kannst helfen
falls nützlich:
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.glascake.eyvo"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}
Alles anzeigen