[Q] Magpie for CM7 missing CMParts.... Help - G1 Q&A, Help & Troubleshooting

Just flashe (and re-flashed just in case) update-cm-7-20111030-Magpie-DS-signed by "Firerat" from his dropbox, go to select CyanogenMod Settings under Setting and get "com.android setting" FCs....
Logcat shown the follong......
11-06 10:10:06.700 I/ActivityManager(248)Starting: Intent { act=android.intent.action.MAIN cmp=com.cyanogenmod.cmparts/.activities.MainActivity } from pid 6687
11-06 10:10:06.710 D/AndroidRuntime(6687)Shutting down VM
11-06 10:10:06.730 W/dalvikvm(6687)threadid=1: thread exiting with uncaught exception (group=0x401a8560)
11-06 10:10:06.750 E/AndroidRuntime(6687)FATAL EXCEPTION: main
11-06 10:10:06.750 E/AndroidRuntime(6687)android.content.ActivityNotFoundException: Unable to find explicit activity class {com.cyanogenmod.cmparts/com.cyanogenmod.cmparts.activities.MainActivity}; have you declared this activity in your AndroidManifest.xml?
any help appriciated
thaks in advance
Tim

Related

pdf-viewer app in donut builds

I am not a copyright lawyer, so I don't know, if this question is allowed or not. If not: would some friendly mod delete my thread without being angry to me?
In some donut builds, the pdf-viewer is included:
http://db.androidspin.com/android_build_information.asp
I downloaded some of them but when I unzipped them, I could not find any pdf-viewer app nor lib. Where is this hidden and what do I have to backup, to run the viewer on other donut build?
Thanks for you help. I really like the donut builds like cyans, but without pdf, it sucks. I backed up my pdf-viewer from earlier cm-builds (before 4.1.99) but didn't get them to work.
Did you ever get an answer to this? As you said, the PDF reader I had installed for Cupcake doesn't work at all in the latest cyan ROM (here's the logcat):
Code:
I/ActivityManager( 138): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.htc.pdfreader/.ActPDFReader }
I/ActivityManager( 138): Start proc com.htc.pdfreader for activity com.htc.pdfreader/.ActPDFReader: pid=636 uid=10116 gids={1015}
I/ActivityThread( 636): Publishing provider com.htc.pdfreader.PdfSuggestionProvider: com.htc.pdfreader.PdfSuggestionProvider
D/dalvikvm( 636): Trying to load lib /system/lib/libpdfreader.so 0x438cf988
I/dalvikvm( 636): Unable to dlopen(/system/lib/libpdfreader.so): Cannot load library: reloc_library[1172]: 121 cannot locate 'FT_Get_Glyph'...
W/dalvikvm( 636): Exception Ljava/lang/UnsatisfiedLinkError; thrown during Lcom/htc/pdfreader/JNIHost;.<clinit>
D/AndroidRuntime( 636): Shutting down VM
W/dalvikvm( 636): threadid=3: thread exiting with uncaught exception (group=0x4001e1c0)
E/AndroidRuntime( 636): Uncaught handler: thread main exiting due to uncaught exception
Looks like the problem is in libpdfreader.so not working with Donut.
no, I never got an answer. But I found that quickoffice worked well. Just do a search for eclair or android 2.0 here ... there are some threads where you can download and adb push quickoffice.
Hope this helps.
I tried moving a pdfreader.apk and a libpdfreader.so from a cupcake build to the latest cyanogen rom and it didn't work well :/ I got the app to install after i signed it but it force closes when I try to open it. Does anyone have a good non-wares pdf viewer that works on donut?.. Or found a way to have the htc pdfviewer to work?

MIUI - Problem with PreferenceActivity class

Hi, guys. I am having some troubles with the MIUI rom and the application "Cardiotrainer" because of a class that crashes in miui. I sent a message to a couple of admins of the miui main page, and also posted a couple of threads in the miui developers forum, but I had no response of any of the messages. I hope you can help me. I attach the last message I sent:
Hi. I sent you a message a couple of days ago, but I suppose it was deleted when the server failed. I hope you can help me, because I can't read chinese, so I can only read what google can translate hehehehe. First of all I would like to thank all the miui staff because of their great job. I like miui much more than any other rom, but since some versions ago I am having troubles with an application.
When I go running, I use the "Cardiotrainer" application, but since some versions ago, when I select some versions of the settings menu (all of them that display another submenu) the program crashes. It only happens with miui, so it's a rom problem. I read the crash log and I suppose the problem is becaus a NullPointerException in the PreferenceActivity class. Anyway I attach the crash error just in case it's helpful.
Code:
ERROR REPORT
Report type
Crash
Package name
com.wsl.CardioTrainer
Package version
63
Package version name
3.4.1
Installed by
com.google.android.feedback
Process name
com.wsl.CardioTrainer
Time
wednesday 22 december 2010
System app
false
SYSTEM
Device
passion
Build id
MIUI.0.12.11
Build type
userdebug
Model
Nexus One
Product
libra_passion
SDK version
8
Release
2.2.1
Incremental version
0.12.11
Codename
REL
Board
mahimahi
Brand
generic
Running applications
com.google.android.feedback
com.android.inputmethod.latin
com.android.providers.calendar
android.process.acore
com.google.process.gapps
com.android.phone
system
com.google.android.googlequicksearchbox
android.process.media
com.android.vending
com.svox.pico
com.android.voicedialer
com.noshufou.android.su
com.android.defcontainer
com.cooliris.media
com.google.android.apps.mapsocationFriendService
com.android.vending.updater
com.android.launcher
com.android.updater
com.miui.player
com.google.android.apps.uploader
com.twitter.android
(sorry, but it's quite impossible to copy the logs )
CRASH
Exception class name
java.lang.NullPointerException
Source file
PreferenceActivity.java
Source class
android.preference.PreferenceActivity
Source method
bindPreferences
Line number
247
Stack trace
java.lang.NullPointerException
at android.preference.PreferenceActivity.
bindPreferences(PreferenceActivity.java:247)
at android.preference.PreferenceActivity.
access$000(PreferenceActivity.java:86)
at android.preference.
PreferenceActivity$1.handleMessage(PreferenceActivity.java:109)
at android.os.Handler.
dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.
main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(NativeMethod)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.
ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.
main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(NativeMethod)
I hope with this information the problem can be solved. Thanks for your time.
Click to expand...
Click to collapse
+1
I am also using CardioTrainer on a MIUI ROM and it always crashes in settings :'(
I also have a similar problem with the Youversion Bible app. The tech support guys there reported that this is common problem with different apps in MIUI as MIUI has some "different structure" of handling settings. When pressing settings, the app crashes.
Here's my log:
processName:com.sirma.mobile.bible.android
pid:12915
uid:10072
tag:null
shortMsg:java.lang.NullPointerException
longMsg:java.lang.NullPointerException
stackTrace:java.lang.NullPointerException
at android.preference.PreferenceActivity.bindPreferences(PreferenceActivity.java:247)
at android.preference.PreferenceActivity.access$000(PreferenceActivity.java:86)
at android.preference.PreferenceActivity$1.handleMessage(PreferenceActivity.java:109)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4628)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:870)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
at dalvik.system.NativeStart.main(Native Method)
Click to expand...
Click to collapse
I have MIUI 1.3.5 on the Sprint EVO, but I believe this is a general MIUI problem, so posting here.

[DEV/WIP] MIUI V4.1 Jellybean for GT P7510

It's been a long time since I've even tried to port a ROM. Android surely has changed a lot and now I get to meet new errors that I have never seen and have no idea to get past.
Mainly posting this because I only actually have an hour or less every day to work on this, and if I couldn't get it working quickly enough then I'd just leave it up to the community. Used MapleSyrup's AOSP 4.1.1 ROM and Galaxy Nexus's MIUI.US ROM. Whoever can fix this error will win 100 internetz, and maybe a small donation if it's fully booting/working. As I said I really have little time to work on this.
The error;
Code:
W/Zygote ( 105): Class not found for preloading: android.media.AudioManager$2
E/JNIHelp ( 105): Native registration unable to find class 'android/media/videoeditor/VideoEditorProfile', aborting
F/libc ( 105): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 105 (zygote)
MIUI boots to the bootanimation. The animation doesn't loop but the system is looping at that. Want to try an fix it? Here ya go;
By clicking the download link, you fully acknowledge that this ROM is still under development, and not all, if any, features may be available to the user. You also acknowledge that you are fully accountable for any damages, explosions, sword fights, or other unexpected activity that may occur to your device.
http://goo.gl/4zzzl
Btw I see no rules as to whether non-fully-booting ROMs can be placed here so if not... Oops.
GazaIan said:
Code:
W/Zygote ( 105): Class not found for preloading: android.media.AudioManager$2
E/JNIHelp ( 105): Native registration unable to find class 'android/media/videoeditor/VideoEditorProfile', aborting
F/libc ( 105): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 105 (zygote)
Click to expand...
Click to collapse
Wild assed guess, here... but it looks like you are missing JNI library. I can't post a link, but I found the following in the source code for com.android.media.videoeditor.VideoEditorProfile.java.You'll notice a promising bit in the constructor...
Code:
static {
System.loadLibrary("media_jni");
native_init();
}
You might want to see if your ROM has that lib available.

[ROM] [UNOFFICIAL] [4.4.4] [RC] SlimKat [tomato] [2015-01-20]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
SlimRoms is a custom android operating system. The main goal is to offer users a slimmed down but still feature rich alternative to other android operating systems.
The entire SlimTeam work together to bring you this tailor-made beauty straight from Android Open Source Project (AOSP) source code.
All of the sources can be publicly viewed through GitHub and you can stop by the public Gerrit to submit patches of any type.
SlimKat is the project name for SlimRoms based on Android 4.4 and offers the following original features:
​
The Real Dark Slim
Full system-wide dark interfaces. - If you like it smooth and classy.
Custom Shortcuts. Everywhere.
Hardware keys, Navigation Ring, Navigation Bar, Lockscreen, Tiles, Notifications etc. - We've got you covered.
System-Wide Keyboard Controls
Rotation, cursor control, optional emoticions, etc. - You'll be tapping away to your heart's content.
SlimCenter
Downloads, contact information, system app removal. - More fun than you can shake a stick at.
Camera Features
Trueview, Smart Capture. - Capture life moments with ease
.​
Check out the full feature list here​
WHAT IS WORKING?
WiFi
Bluetooth
RIL (single sim support only)
Sensors
GPS
Camera
Leds
Buttons
Audio
Video
Camcorder
WHAT IS NOT WORKING?
Nothing .....!! Or you tell me.....!!!
Installation Instructions
Download the latest build
Wipe data / Factory reset
Wipe cache
Wipe dalvik cache
Flash it using ClockworkMod recovery or TWRP
Flash Gapps
Flash Addons
Reboot
Enjoy
DOWNLOADS
Unofficial Builds
Slim Gapps​
SOURCES:https://github.com/YU-YUREKA
Disclaimer: SlimRoms are not responsible for any damages to your device.
XDA:DevDB Information
Slimkat for Yureka, ROM for the YU Yureka
Contributors
sooorajjj, @sufoalmighty [For mirror links -available in 3rd post] , @Santhosh M and @faux123 [ for awesome kernel patches ] , Official CM team and Slim team
ROM OS Version: 4.4.x KitKat
ROM Kernel: Linux 3.1.x
ROM Firmware Required: Yureka
Based On: AOSP
Version Information
Status: Stable
Current Stable Version: 1
Stable Release Date: 2015-01-20
Created 2015-01-17
Last Updated 2015-01-20
NOTE: this is not stable for daily use
i do not recommend any one to flash this
this is just initial test build
EDIT : Stable for daily use
Thanks to @Santhosh M @faux123 for kernel commits : this is his kernel thread please support him and thank him here
SCREENSHOTS​
CHANGELOG​*"UNOFFICIAL-BUILD-1"
Initial TRY(to get slimkat - booting )
Fixed battery capacity bug
*"UNOFFICIAL-BUILD-2"
fix up boot.img and permissions
Audio bug is caused bcs of missing hal libs - still no fix........ trying
DT2W patches failed to compile will fix in next build
*"UNOFFICIAL-BUILD-3" -Mirror --Mirror2
fixed audio
fixed video
fixed Camcorder
*"UNOFFICIAL-BUILD-4" -Mirror --Mirror2
Build with custom toolchain linario linaro-4.9-14.06
And lots of kernel patches
Thanks, Flashing!
EDIT: tested, so smooth camera isnt as good as stock, sim 2 doesnt work at all
Great work mate! :good:
1st rom for YU thanks bro.
sufoalmighty said:
Thanks, Flashing!
EDIT: tested, so smooth camera isnt as good as stock, sim 2 doesnt work at all
Click to expand...
Click to collapse
thanks for testing
TheStrix said:
Great work mate! :good:
Click to expand...
Click to collapse
Samuel117 said:
1st rom for YU thanks bro.
Click to expand...
Click to collapse
thanks guys for support
@DooMLoRD @championswimmer
please take a look at these logs
audio hal issue - i think its because the audio effects and much more implementations by cm
http://paste.ubuntu.com/9770340/
http://paste.ubuntu.com/9770344/
http://paste.ubuntu.com/9763980/
Code:
I/MediaFocusControl( 827): AudioFocus requestAudioFocus() from [email protected]
V/Avrcp ( 2319): New genId = 9, clearing = 1
E/EffectProxy( 248): EffectCreate() could not get the sub effects
W/EffectsFactory( 248): EffectCreate() library proxy: could not create fx Qualcomm Bass Boost, error -22
E/AudioEffect( 4710): set(): AudioFlinger could not create effect, status: -22
E/AudioEffects-JNI( 4710): AudioEffect initCheck failed -4
E/AudioEffect-JAVA( 4710): Error code -4 when initializing AudioEffect.
D/AndroidRuntime( 4710): Shutting down VM
E/AndroidRuntime( 4710): FATAL EXCEPTION: main
E/AndroidRuntime( 4710): Process: com.android.gallery3d, PID: 4710
E/AndroidRuntime( 4710): java.lang.RuntimeException: Unable to resume activity {com.android.gallery3d/com.android.gallery3d.app.MovieActivity}: java.lang.IllegalArgumentException: Effect type: 0634f220-ddd4-11db-a0fc-0002a5d5c51b not supported.
E/AndroidRuntime( 4710): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2777)
E/AndroidRuntime( 4710): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2806)
E/AndroidRuntime( 4710): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2241)
E/AndroidRuntime( 4710): at android.app.ActivityThread.access$800(ActivityThread.java:138)
E/AndroidRuntime( 4710): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1199)
E/AndroidRuntime( 4710): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 4710): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 4710): at android.app.ActivityThread.main(ActivityThread.java:5034)
E/AndroidRuntime( 4710): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 4710): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
E/AndroidRuntime( 4710): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:611)
E/AndroidRuntime( 4710): Caused by: java.lang.IllegalArgumentException: Effect type: 0634f220-ddd4-11db-a0fc-0002a5d5c51b not supported.
E/AndroidRuntime( 4710): at android.media.audiofx.AudioEffect.<init>(AudioEffect.java:405)
E/AndroidRuntime( 4710): at android.media.audiofx.BassBoost.<init>(BassBoost.java:101)
E/AndroidRuntime( 4710): at com.android.gallery3d.app.MovieActivity.initEffects(MovieActivity.java:393)
E/AndroidRuntime( 4710): at com.android.gallery3d.app.MovieActivity.onResume(MovieActivity.java:504)
E/AndroidRuntime( 4710): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192)
E/AndroidRuntime( 4710): at android.app.Activity.performResume(Activity.java:5320)
E/AndroidRuntime( 4710): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2767)
E/AndroidRuntime( 4710): ... 10 more
W/ActivityManager( 827): Force finishing activity com.android.gallery3d/.app.MovieActivity
W/ActivityManager( 827): Force finishing activity com.android.gallery3d/.app.GalleryActivity
W/ActivityManager( 827): Activity pause timeout for ActivityRecord{6504dd28 u0 com.android.gallery3d/.app.MovieActivity t8 f}
I/Timeline( 2051): Timeline: Activity_idle id: [email protected] time:835130
I/Timeline( 827): Timeline: Activity_windows_visible id: ActivityRecord{64ffaa90 u0 com.slim.slimlauncher/.Launcher t1} time:835454
I/MSM-irqbalance( 239): Decided to move IRQ130 from CPU5 to CPU6
W/ActivityManager( 827): Activity destroy timeout for ActivityRecord{6534bac0 u0 com.android.gallery3d/.app.GalleryActivity t8 f}
W/ActivityManager( 827): Activity destroy timeout for ActivityRecord{6504dd28 u0 com.android.gallery3d/.app.MovieActivity t8 f}
I/MSM-irqbalance( 239): Decided to move IRQ131 from CPU5 to CPU6
Code:
D/AudioPolicyManagerBase( 248): getOutput() device 2, stream 1, samplingRate 0, format 0, channelMask 3, flags 0
D/AudioPolicyManagerBase( 248): getOutput() returns output 2
D/AudioPolicyManagerBase( 248): getOutput() device 2, stream 1, samplingRate 0, format 0, channelMask 3, flags 0
D/AudioPolicyManagerBase( 248): getOutput() returns output 2
D/AudioPolicyManagerBase( 248): getOutput() device 2, stream 1, samplingRate 48000, format 1, channelMask 3, flags 4
D/AudioPolicyManagerBase( 248): getOutput() returns output 3
W/AudioTrack( 827): AUDIO_OUTPUT_FLAG_FAST denied by client due to mismatching sample rate (48000 vs 44100)
D/AudioFlinger( 248): start(4099), calling pid 827 session 52
D/AudioFlinger( 248): ? => ACTIVE (4099) on thread 0xb87083f0
I/QCOM PowerHAL( 248): Processing audio hint. Metadata: state=1
D/AudioPolicyManagerBase( 248): startOutput() output 3, stream 1, session 52
I/ActivityManager( 827): START u0 {act=android.intent.action.MAIN cmp=com.android.settings/.SubSettings (has extras)} from pid 1892
D/SubSettings( 1892): Launching fragment com.android.settings.deviceinfo.Memory
here is the vendor blobs iam using
https://github.com/YU-YUREKA/proprietary_vendor_yu
any kind of help is appreciated
thank you
sooraj
video cant be played ???
---------- Post added at 11:27 AM ---------- Previous post was at 11:24 AM ----------
can u give me link of stock rom
op updated new build is up for download
-------changes------
*"UNOFFICIAL-BUILD-2"
fix up boot.img and permissions
Audio bug is caused bcs of missing hal libs - still no fix........ trying
DT2W patches failed to compile will fix in next build
Kanth's said:
video cant be played ???
---------- Post added at 11:27 AM ---------- Previous post was at 11:24 AM ----------
can u give me link of stock rom
Click to expand...
Click to collapse
yes video can be played but not in gallery youtube wrks
and sorry i dont have link to stok rom
I would recommend this to move to android development
vishal_android freak said:
I would recommend this to move to android development
Click to expand...
Click to collapse
But why .?...!!! its completely a build from source and i have met all GPL requirements
sooorajjj
Thanks for the update version 3 for stable release
ela1103 said:
sooorajjj
Thanks for the update version 3 for stable release
Click to expand...
Click to collapse
you are welcome
the build will be up soon .....!
uploading on slow connection
sooorajjj
use the mediafire site to upload and download .because the speed is stable
ela1103 said:
sooorajjj
use the mediafire site to upload and download .because the speed is stable
Click to expand...
Click to collapse
sorry i cant use mediafire ........ but maybe someone can mirror the links
BUILD is UP
Is it possible to port it to coolpad f2 or install this one on this smartphone?
albin88 said:
Is it possible to port it to coolpad f2 or install this one on this smartphone?
Click to expand...
Click to collapse
Do not install this build directly to coolpad f2
you need to replace boot.img so yes porting is posssible
Just replace boot.img or something more? Could you port it or this is not so simple?
albin88 said:
Just replace boot.img or something more? Could you port it or this is not so simple?
Click to expand...
Click to collapse
do you have recovery installed to flash this on your coolpad f2 ?
if yes then make a backup and try try flashing the rom as it is if it doesn’t boot dont worry it wont brick your device .....! just go back to recovery and restore your backup ............ try this then report ....

Jcifs with android studio

Hello everyone, i want to connect file shared on my windows
I make app android to view file on any windows by share file
but i have a problem
please help me!
this is my code:
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("","wd","admin123");
String path = "smb://10.10.120.195/Share/a.txt";
try {
SmbFile file = new SmbFile(path, auth);
file.connect();
}
catch(Exception e)
{
}
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ problem
D/libc-netbsd: [getaddrinfo]: ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.admin.myapplication, PID: 12663
java.lang.ExceptionInInitializerError
at jcifs.netbios.NbtAddress.getWINSAddress(NbtAddress.java:533)
at jcifs.UniAddress.<clinit>(UniAddress.java:62)
at jcifs.smb.SmbFile.getFirstAddress(SmbFile.java:922)
at jcifs.smb.SmbFile.connect(SmbFile.java:1012)
at com.example.admin.myapplication.MainActivity.onCreate(MainActivity.java:31)
at android.app.Activity.performCreate(Activity.java:6309)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2519)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1488)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5728)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
Caused by: android.os.NetworkOnMainThreadException
at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1288)
at java.net.InetAddress.lookupHostByName(InetAddress.java:432)
at java.net.InetAddress.getLocalHost(InetAddress.java:410)
at jcifs.netbios.NbtAddress.<clinit>(NbtAddress.java:187)
at jcifs.netbios.NbtAddress.getWINSAddress(NbtAddress.java:533)*
at jcifs.UniAddress.<clinit>(UniAddress.java:62)*
at jcifs.smb.SmbFile.getFirstAddress(SmbFile.java:922)*
at jcifs.smb.SmbFile.connect(SmbFile.java:1012)*
at com.example.admin.myapplication.MainActivity.onCreate(MainActivity.java:31)*
at android.app.Activity.performCreate(Activity.java:6309)*
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)*
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2519)*
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654)*
at android.app.ActivityThread.-wrap11(ActivityThread.java)*
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1488)*
at android.os.Handler.dispatchMessage(Handler.java:111)*
at android.os.Looper.loop(Looper.java:207)*
at android.app.ActivityThread.main(ActivityThread.java:5728)*
at java.lang.reflect.Method.invoke(Native Method)*
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)*
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)*
I/System: FinalizerDaemon: finalize objects = 1
help me! please!
Reading through the error you will see that is is caused by Network on main thread exception.
In Android you are not allowed to do network calls on the main application thread. You need to use a separate AsyncTask. See this Stack Overflow thread.
http://stackoverflow.com/questions/6343166/how-to-fix-android-os-networkonmainthreadexception

Categories

Resources