![]() ![]()
7_x", dex file "/data/data//files/instant-run/dex/slice-smack-java7-4.1.7_5f x", dex file "/data/data//files/instant-run/dex/slice-smack-im-4.1.7_a1945 x", dex file "/data/data//files/instant-run/dex/slice-smack-extensions-4.1. 7_x", dex file "/data/data//files/instant-run/dex/slice-smack-resolver-minid ns-4.1.7_x", dex file "/data/data//files/instant-run/dex/slice-smack-resolver-javax -4.1.7_x", dex file "/data/data//files/instant-run/dex/slice-smack-resolver-dnsja va-4.1.7_x", dex file "/data/data//files/instant-run/dex/slice-smack-legacy-4.1.7_9 x", dex file "/data/data//files/instant-run/dex/slice-smack-jingle-old-4.1. java:38)Īt $1.onClick(LoginActivity.java:47)Īt (View.java:4909)Īt $n(View.java:20390)Īt android.os.Handler.handleCallback(Handler.java:815)Īt android.os.Handler.dispatchMessage(Handler.java:104)Īt android.os.Looper.loop(Looper.java:194)Īt (ActivityThread.java:5796)Īt .invoke(Native Method)Īt .invoke(Method.java:372)Īt .ZygoteInit$n(ZygoteInit.java:1010 )Īt .ZygoteInit.main(ZygoteInit.java:805)Ĭaused by: : Didn't find class "" on path: DexPathList[[dex file "/data/data//files/instant-run/dex/slice-xpp3_xpath-1.1.4c_60 x", dex file "/data/data//files/instant-run/dex/slice-support-annotations- 23.2.1_x", dex file "/data/data//files/instant-run/dex/slice-smack-tcp-4.1.7_0a90 x", dex file "/data/data//files/instant-run/dex/slice-smack-sasl-provided- 4.1.7_x", dex file "/data/data//files/instant-run/dex/slice-smack-sasl-javax-4.1. : Failed resolution of: Ljavax/naming/directory/InitialDirContext Īt .(JavaxResolver.java :50)Īt (Native Method)Īt (Class.java:317)Īt .loadSmackClass(SmackInitialization.j ava:213)Īt .parseClassesToLoad(SmackInitializati on.java:193)Īt .processConfigFile(SmackInitializatio n.java:163)Īt .processConfigFile(SmackInitializatio n.java:148)Īt .(SmackInitialization.java:11 6)Īt .getVersion(SmackConfiguration.java:96 )Īt .(ConnectionConfiguration. I am getting a ClassNotFoundException in an android app. #CHAT APP EJABBERD ANDROID STUDIO CODE#The app is borrowing some GUI and native code from Telegram and I'm planing to replace it in the future. I really want to share the source to help other developers, hope this app will became as a show case for smack and as sample Android App for it. Maintain a TCP connection and working in the background to receive message (can relay on it without using push notification). ![]() Note that the app is doing almost everything that other messengers do except group chat which is under development. I have two choice now whether to submit the app code as it is uncleaned and has many unused code lines and classes which I don't like because it will make other developers confused, or to wait couple of months to start work again on the app, this is the only reason make me holding the source code and not sharing it yet. This app is not meant to be an open source and doesn't take into account that other developer may work on it, so the code is not organised or clean and kinda messy (this will give an idea about how messy it is. Problem is as per XMPP protocol, client & Ejabberd server directly establish a persistant connection, so how do I put my API layer in between? Its been weeks of headbanging by now and I am stuck.After 2 years working on this app I've decided to make it an open source on GitHub, hope for more people contributes to it and show smack library power and how beautiful is. ![]() #CHAT APP EJABBERD ANDROID STUDIO HOW TO#I am not getting any resource on how to create API layer instead of letting client phones directly communicate with Ejabberd Server. #CHAT APP EJABBERD ANDROID STUDIO UPDATE#So tomorrow if I replace Ejabberd server with custom MQTT solution (for scale), then I won't need my app users to update app, since API endpoints have same URL, and I can simply change code behind my API layer, thus keeping me free of depending on Ejabberd forever. To solve this problem, I am trying to create a layer of API endpoints so that all communication happens from client phone to ejabberd server via API layer. This works fine for now, but later I might want to move to MQTT based custom solution for chat replacing Ejabberd and that will force all my app users to compulsorily update their App, since app right now has in its source code stored URL of Ejabberd Server and directly communicates to it. Now using smack library on Android, I can connect and message other users via Ejabberd server I setup on my cloud. ![]() In the backend hosted on cloud, I have setup an Ejabberd Server. I am trying to build a WhatsApp like chatting app on Android. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |