• Есть сайты, книги в которых описано как управляться с HttpUrlConnection и HttpClient?

    @Zirbi Автор вопроса
    IceJOKER: нет, мне просто интересно, я пока не собираюсь писать чат, в данный момент я интересуюсь лишь регистрацией
  • Есть сайты, книги в которых описано как управляться с HttpUrlConnection и HttpClient?

    @Zirbi Автор вопроса
    IceJOKER: совсем вылетело из головы, хотел спросить, сложно ли будет переделать данный пример в чат? Придется ли переписывать код, или можно лишь добавить нужные строки кода?
  • Есть сайты, книги в которых описано как управляться с HttpUrlConnection и HttpClient?

    @Zirbi Автор вопроса
    IceJOKER: то есть я правильно понял, нужно сделать сервер, клиент с помощью HttpUrlConnection и HttpClient отправляет данные, сервер их проверяет, в случае верности происходит авторизация?
  • Есть сайты, книги в которых описано как управляться с HttpUrlConnection и HttpClient?

    @Zirbi Автор вопроса
    IceJOKER: спасибо за ссылку, только не увидел там возможность регистрации, это возможно реализовать с HttpUrlConnection и HttpClient?
  • Есть сайты, книги в которых описано как управляться с HttpUrlConnection и HttpClient?

    @Zirbi Автор вопроса
    И возможно ли с помощью HttpUrlConnection и HttpClient реализовать регистрацию с авторизацией?
  • Есть сайты, книги в которых описано как управляться с HttpUrlConnection и HttpClient?

    @Zirbi Автор вопроса
    А что вы посоветуете кроме HttpUrlConnection и HttpClient? Думаю это не единственный способ отправлять запросы, какую библиотеку вы юзаете?
  • Ошибка в Html парсинге, как исправить?

    @Zirbi Автор вопроса
    01-28 12:08:08.083 7529-7529/com.example.robert.htm D/dalvikvm﹕ Zygote::ForkAndSpecialize : 0
    01-28 12:08:08.085 7529-7529/com.example.robert.htm D/dalvikvm﹕ zygote get new systemTid : 7529
    01-28 12:08:08.085 7529-7529/com.example.robert.htm D/dalvikvm﹕ Late-enabling CheckJNI
    01-28 12:08:08.086 7529-7533/com.example.robert.htm D/dalvikvm﹕ threadid=2: interp stack at 0x5cb07000
    01-28 12:08:08.086 7529-7534/com.example.robert.htm D/dalvikvm﹕ threadid=3: interp stack at 0x5cc27000
    01-28 12:08:08.086 7529-7534/com.example.robert.htm D/dalvikvm﹕ Elevating priority from 0 to -8
    01-28 12:08:08.086 7529-7529/com.example.robert.htm D/jdwp﹕ prepping for JDWP over ADB
    01-28 12:08:08.087 7529-7535/com.example.robert.htm D/dalvikvm﹕ threadid=4: interp stack at 0x5fe40000
    01-28 12:08:08.087 7529-7535/com.example.robert.htm D/jdwp﹕ JDWP: thread running
    01-28 12:08:08.087 7529-7535/com.example.robert.htm D/jdwp﹕ trying to receive file descriptor from ADB
    01-28 12:08:08.088 7529-7536/com.example.robert.htm D/dalvikvm﹕ threadid=5: interp stack at 0x5ff5e000
    01-28 12:08:08.088 7529-7529/com.example.robert.htm D/dalvikvm﹕ zygote get thread init done
    01-28 12:08:08.088 7529-7529/com.example.robert.htm D/dalvikvm﹕ create interp thread : stack size=128KB
    01-28 12:08:08.088 7529-7529/com.example.robert.htm D/dalvikvm﹕ create new thread
    01-28 12:08:08.089 7529-7529/com.example.robert.htm D/dalvikvm﹕ new thread created
    01-28 12:08:08.089 7529-7529/com.example.robert.htm D/dalvikvm﹕ update thread list
    01-28 12:08:08.089 7529-7537/com.example.robert.htm D/dalvikvm﹕ threadid=6: interp stack at 0x5ff7e000
    01-28 12:08:08.089 7529-7537/com.example.robert.htm D/dalvikvm﹕ threadid=6: created from interp
    01-28 12:08:08.089 7529-7529/com.example.robert.htm D/dalvikvm﹕ start new thread
    01-28 12:08:08.089 7529-7537/com.example.robert.htm D/dalvikvm﹕ threadid=6: notify debugger
    01-28 12:08:08.089 7529-7537/com.example.robert.htm D/dalvikvm﹕ threadid=6 (ReferenceQueueDaemon): calling run()
    01-28 12:08:08.089 7529-7529/com.example.robert.htm D/dalvikvm﹕ create interp thread : stack size=128KB
    01-28 12:08:08.089 7529-7529/com.example.robert.htm D/dalvikvm﹕ create new thread
    01-28 12:08:08.089 7529-7529/com.example.robert.htm D/dalvikvm﹕ new thread created
    01-28 12:08:08.089 7529-7529/com.example.robert.htm D/dalvikvm﹕ update thread list
    01-28 12:08:08.090 7529-7538/com.example.robert.htm D/dalvikvm﹕ threadid=7: interp stack at 0x6009c000
    01-28 12:08:08.090 7529-7538/com.example.robert.htm D/dalvikvm﹕ threadid=7: created from interp
    01-28 12:08:08.090 7529-7529/com.example.robert.htm D/dalvikvm﹕ start new thread
    01-28 12:08:08.090 7529-7538/com.example.robert.htm D/dalvikvm﹕ threadid=7: notify debugger
    01-28 12:08:08.090 7529-7538/com.example.robert.htm D/dalvikvm﹕ threadid=7 (FinalizerDaemon): calling run()
    01-28 12:08:08.091 7529-7529/com.example.robert.htm D/dalvikvm﹕ create interp thread : stack size=128KB
    01-28 12:08:08.091 7529-7529/com.example.robert.htm D/dalvikvm﹕ create new thread
    01-28 12:08:08.091 7529-7529/com.example.robert.htm D/dalvikvm﹕ new thread created
    01-28 12:08:08.091 7529-7529/com.example.robert.htm D/dalvikvm﹕ update thread list
    01-28 12:08:08.092 7529-7539/com.example.robert.htm D/dalvikvm﹕ threadid=8: interp stack at 0x601ba000
    01-28 12:08:08.092 7529-7539/com.example.robert.htm D/dalvikvm﹕ threadid=8: created from interp
    01-28 12:08:08.092 7529-7529/com.example.robert.htm D/dalvikvm﹕ start new thread
    01-28 12:08:08.092 7529-7539/com.example.robert.htm D/dalvikvm﹕ threadid=8: notify debugger
    01-28 12:08:08.092 7529-7539/com.example.robert.htm D/dalvikvm﹕ threadid=8 (FinalizerWatchdogDaemon): calling run()
    01-28 12:08:08.094 7529-7535/com.example.robert.htm D/jdwp﹕ received file descriptor 38 from ADB
    01-28 12:08:08.101 7529-7541/com.example.robert.htm D/dalvikvm﹕ threadid=9: interp stack at 0x605d4000
    01-28 12:08:08.102 7529-7542/com.example.robert.htm D/dalvikvm﹕ threadid=10: interp stack at 0x606f2000
    01-28 12:08:08.123 7529-7529/com.example.robert.htm V/Provider/Settings﹕ invalidate [system]: current 13 != cached 0
    01-28 12:08:08.125 7529-7529/com.example.robert.htm D/ActivityThread﹕ hoder:android.app.IActivityManager$ContentProviderHolder@41cebe98,provider,holder.Provider:android.content.ContentProviderProxy@41cec610
    01-28 12:08:08.126 7529-7529/com.example.robert.htm V/Provider/Settings﹕ from db cache, name = anr_debugging_mechanism , value = 1
    01-28 12:08:08.128 7529-7529/com.example.robert.htm D/asset﹕ AssetManager-->addDefaultAssets CIP path not exsit!
    01-28 12:08:08.132 7529-7529/com.example.robert.htm D/Proxy﹕ setHttpRequestCheckHandler
    01-28 12:08:08.134 7529-7529/com.example.robert.htm D/dalvikvm﹕ open_cached_dex_file : /data/app/com.example.robert.htm-1.apk /data/dalvik-cache/data@app@com.example.robert.htm-1.apk@classes.dex
    01-28 12:08:08.136 7529-7529/com.example.robert.htm D/ActivityThread﹕ BIND_APPLICATION handled : 0 / AppBindData{appInfo=ApplicationInfo{41ce8f60 com.example.robert.htm}}
    01-28 12:08:08.329 7529-7529/com.example.robert.htm D/dalvikvm﹕ create interp thread : stack size=128KB
    01-28 12:08:08.329 7529-7529/com.example.robert.htm D/dalvikvm﹕ create new thread
    01-28 12:08:08.329 7529-7529/com.example.robert.htm D/dalvikvm﹕ new thread created
    01-28 12:08:08.329 7529-7529/com.example.robert.htm D/dalvikvm﹕ update thread list
    01-28 12:08:08.329 7529-7561/com.example.robert.htm D/dalvikvm﹕ threadid=11: interp stack at 0x608fc000
    01-28 12:08:08.329 7529-7561/com.example.robert.htm D/dalvikvm﹕ threadid=11: created from interp
    01-28 12:08:08.329 7529-7529/com.example.robert.htm D/dalvikvm﹕ start new thread
    01-28 12:08:08.329 7529-7561/com.example.robert.htm D/dalvikvm﹕ threadid=11: notify debugger
    01-28 12:08:08.329 7529-7561/com.example.robert.htm D/dalvikvm﹕ threadid=11 (OkHttp ConnectionPool): calling run()
    01-28 12:08:08.330 7529-7529/com.example.robert.htm W/System.err﹕ android.os.NetworkOnMainThreadException
    01-28 12:08:08.348 7529-7529/com.example.robert.htm W/System.err﹕ at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1156)
    01-28 12:08:08.348 7529-7529/com.example.robert.htm W/System.err﹕ at java.net.InetAddress.lookupHostByName(InetAddress.java:385)
    01-28 12:08:08.348 7529-7529/com.example.robert.htm W/System.err﹕ at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
    01-28 12:08:08.348 7529-7529/com.example.robert.htm W/System.err﹕ at java.net.InetAddress.getAllByName(InetAddress.java:214)
    01-28 12:08:08.348 7529-7529/com.example.robert.htm W/System.err﹕ at com.android.okhttp.internal.Dns$1.getAllByName(Dns.java:28)
    01-28 12:08:08.348 7529-7529/com.example.robert.htm W/System.err﹕ at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:216)
    01-28 12:08:08.348 7529-7529/com.example.robert.htm W/System.err﹕ at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:122)
    01-28 12:08:08.348 7529-7529/com.example.robert.htm W/System.err﹕ at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:292)
    01-28 12:08:08.348 7529-7529/com.example.robert.htm W/System.err﹕ at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)
    01-28 12:08:08.349 7529-7529/com.example.robert.htm W/System.err﹕ at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)
    01-28 12:08:08.349 7529-7529/com.example.robert.htm W/System.err﹕ at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)
    01-28 12:08:08.349 7529-7529/com.example.robert.htm W/System.err﹕ at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
    01-28 12:08:08.349 7529-7529/com.example.robert.htm W/System.err﹕ at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:179)
    01-28 12:08:08.349 7529-7529/com.example.robert.htm W/System.err﹕ at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:246)
    01-28 12:08:08.349 7529-7529/com.example.robert.htm W/System.err﹕ at java.net.URL.openStream(URL.java:470)
    01-28 12:08:08.349 7529-7529/com.example.robert.htm W/System.err﹕ at org.htmlcleaner.Utils.readUrl(Utils.java:63)
    01-28 12:08:08.349 7529-7529/com.example.robert.htm W/System.err﹕ at org.htmlcleaner.HtmlCleaner.clean(HtmlCleaner.java:369)
    01-28 12:08:08.349 7529-7529/com.example.robert.htm W/System.err﹕ at org.htmlcleaner.HtmlCleaner.clean(HtmlCleaner.java:383)
    01-28 12:08:08.350 7529-7529/com.example.robert.htm W/System.err﹕ at com.example.robert.htm.MainActivity.getBlogStats(MainActivity.java:52)
    01-28 12:08:08.350 7529-7529/com.example.robert.htm W/System.err﹕ at com.example.robert.htm.MainActivity.onCreate(MainActivity.java:28)
    01-28 12:08:08.350 7529-7529/com.example.robert.htm W/System.err﹕ at android.app.Activity.performCreate(Activity.java:5264)
    01-28 12:08:08.350 7529-7529/com.example.robert.htm W/System.err﹕ at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)
    01-28 12:08:08.350 7529-7529/com.example.robert.htm W/System.err﹕ at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2302)
    01-28 12:08:08.350 7529-7529/com.example.robert.htm W/System.err﹕ at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
    01-28 12:08:08.350 7529-7529/com.example.robert.htm W/System.err﹕ at android.app.ActivityThread.access$800(ActivityThread.java:151)
    01-28 12:08:08.350 7529-7529/com.example.robert.htm W/System.err﹕ at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
    01-28 12:08:08.350 7529-7529/com.example.robert.htm W/System.err﹕ at android.os.Handler.dispatchMessage(Handler.java:110)
    01-28 12:08:08.350 7529-7529/com.example.robert.htm W/System.err﹕ at android.os.Looper.loop(Looper.java:193)
    01-28 12:08:08.350 7529-7529/com.example.robert.htm W/System.err﹕ at android.app.ActivityThread.main(ActivityThread.java:5305)
    01-28 12:08:08.351 7529-7529/com.example.robert.htm W/System.err﹕ at java.lang.reflect.Method.invokeNative(Native Method)
    01-28 12:08:08.351 7529-7529/com.example.robert.htm W/System.err﹕ at java.lang.reflect.Method.invoke(Method.java:515)
    01-28 12:08:08.351 7529-7529/com.example.robert.htm W/System.err﹕ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
    01-28 12:08:08.351 7529-7529/com.example.robert.htm W/System.err﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
    01-28 12:08:08.351 7529-7529/com.example.robert.htm W/System.err﹕ at dalvik.system.NativeStart.main(Native Method)
    01-28 12:08:08.351 7529-7529/com.example.robert.htm D/ActivityThread﹕ ACT-AM_ON_RESUME_CALLED ActivityRecord{41cea580 token=android.os.BinderProxy@41ce9d50 {com.example.robert.htm/com.example.robert.htm.MainActivity}}
    01-28 12:08:08.352 7529-7529/com.example.robert.htm V/PhoneWindow﹕ DecorView setVisiblity: visibility = 4 ,Parent =null, this =com.android.internal.policy.impl.PhoneWindow$DecorView{41cf2450 I.E..... R.....ID 0,0-0,0}
    01-28 12:08:08.373 7529-7529/com.example.robert.htm V/PhoneWindow﹕ DecorView setVisiblity: visibility = 0 ,Parent =ViewRoot{41da2fd8 com.example.robert.htm/com.example.robert.htm.MainActivity,ident = 0}, this =com.android.internal.policy.impl.PhoneWindow$DecorView{41cf2450 V.E..... R.....ID 0,0-0,0}
    01-28 12:08:08.374 7529-7529/com.example.robert.htm D/ActivityThread﹕ ACT-LAUNCH_ACTIVITY handled : 0 / ActivityRecord{41cea580 token=android.os.BinderProxy@41ce9d50 {com.example.robert.htm/com.example.robert.htm.MainActivity}}
    01-28 12:08:08.374 7529-7529/com.example.robert.htm D/ActivityThread﹕ ACT-AM_ON_PAUSE_CALLED ActivityRecord{41cea580 token=android.os.BinderProxy@41ce9d50 {com.example.robert.htm/com.example.robert.htm.MainActivity}}
    01-28 12:08:08.375 7529-7529/com.example.robert.htm D/ActivityThread﹕ ACT-PAUSE_ACTIVITY handled : 0 / android.os.BinderProxy@41ce9d50
    01-28 12:08:08.409 7529-7529/com.example.robert.htm E/﹕ appName=com.example.robert.htm, acAppName=/system/bin/surfaceflinger
    01-28 12:08:08.409 7529-7529/com.example.robert.htm E/﹕ 0
    01-28 12:08:08.413 7529-7529/com.example.robert.htm D/GraphicBuffer﹕ create handle(0x60e5dc10) (w:720, h:1280, f:1)
    01-28 12:08:08.414 7529-7529/com.example.robert.htm I/MaliEGL﹕ [Mali]window_type=1, is_framebuffer=0, errnum = 0
    01-28 12:08:08.414 7529-7529/com.example.robert.htm I/MaliEGL﹕ [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
    01-28 12:08:08.414 7529-7529/com.example.robert.htm I/MaliEGL﹕ [Mali]max_allowed_dequeued_buffers=3
    01-28 12:08:08.415 7529-7529/com.example.robert.htm D/GraphicBuffer﹕ close handle(0x60e5dc10) (w:720 h:1280 f:1)
    01-28 12:08:08.419 7529-7529/com.example.robert.htm D/GraphicBuffer﹕ create handle(0x61222a08) (w:720, h:1280, f:1)
    01-28 12:08:08.422 7529-7529/com.example.robert.htm D/OpenGLRenderer﹕ Enabling debug mode 0
    01-28 12:08:08.424 7529-7529/com.example.robert.htm D/GraphicBuffer﹕ create handle(0x60fa0248) (w:768, h:768, f:1)
    01-28 12:08:08.426 7529-7529/com.example.robert.htm I/[MALI][Gralloc]﹕ dlopen libsec_mem.so fail
    01-28 12:08:08.426 7529-7529/com.example.robert.htm D/OpenGLRenderer﹕ setViewport 720x1280 <0x60f9e008>
    01-28 12:08:08.427 7529-7529/com.example.robert.htm D/ActivityThread﹕ ACT-STOP_ACTIVITY_SHOW handled : 0 / android.os.BinderProxy@41ce9d50
    01-28 12:08:08.447 7529-7529/com.example.robert.htm D/OpenGLRenderer﹕ prepareDirty (0.00, 0.00, 720.00, 1280.00) opaque 1 <0x60f9e008>
    01-28 12:08:08.452 7529-7529/com.example.robert.htm D/OpenGLRenderer﹕ finish <0x60f9e008>
    01-28 12:08:19.946 7529-7529/com.example.robert.htm D/GraphicBuffer﹕ create handle(0x611e3d80) (w:720, h:1280, f:1)
    01-28 12:08:19.948 7529-7529/com.example.robert.htm D/OpenGLRenderer﹕ prepareDirty (0.00, 0.00, 720.00, 1280.00) opaque 1 <0x60f9e008>
    01-28 12:08:19.948 7529-7529/com.example.robert.htm D/OpenGLRenderer﹕ finish <0x60f9e008>
    01-28 12:08:21.297 7529-7529/com.example.robert.htm D/ActivityThread﹕ ACT-AM_ON_RESUME_CALLED ActivityRecord{41cea580 token=android.os.BinderProxy@41ce9d50 {com.example.robert.htm/com.example.robert.htm.MainActivity}}
    01-28 12:08:21.297 7529-7529/com.example.robert.htm V/PhoneWindow﹕ DecorView setVisiblity: visibility = 0 ,Parent =ViewRoot{41da2fd8 com.example.robert.htm/com.example.robert.htm.MainActivity,ident = 0}, this =com.android.internal.policy.impl.PhoneWindow$DecorView{41cf2450 V.E..... R.....I. 0,0-720,1280}
    01-28 12:08:21.302 7529-7529/com.example.robert.htm D/ActivityThread﹕ ACT-RESUME_ACTIVITY handled : 1 / android.os.BinderProxy@41ce9d50
    01-28 12:08:21.340 7529-7529/com.example.robert.htm V/InputMethodManager﹕ onWindowFocus: null softInputMode=288 first=true flags=#1810100
    01-28 12:08:21.340 7529-7529/com.example.robert.htm V/InputMethodManager﹕ START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView{41cf2450 V.E..... R.....I. 0,0-720,1280} ic=null tba=android.view.inputmethod.EditorInfo@41db2fa0 controlFlags=#104

    01-28 12:08:52.096 7529-7529/com.example.robert.htm D/ActivityThread﹕ ACT-PAUSE_ACTIVITY handled : 0 / android.os.BinderProxy@41ce9d50
    01-28 12:08:52.097 7529-7529/com.example.robert.htm D/ActivityThread﹕ ACT-STOP_ACTIVITY_SHOW handled : 0 / android.os.BinderProxy@41ce9d50
    01-28 12:08:52.104 7529-7529/com.example.robert.htm V/InputMethodManager﹕ START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView{41cf2450 V.E..... R.....I. 0,0-720,1280} ic=null tba=android.view.inputmethod.EditorInfo@41db5480 controlFlags=#100
    01-28 12:09:08.330 7529-7561/com.example.robert.htm D/dalvikvm﹕ threadid=11: exiting
    01-28 12:09:08.330 7529-7561/com.example.robert.htm D/dalvikvm﹕ threadid=11: bye!
  • Android разработка, игра стоит свеч?

    @Zirbi Автор вопроса
    "В принципе, да. Но создать нечто уникальное и сложное с самого начала лучше не надеяться ;) желание отбивает." Ну у меня пока отсутствуют планы создать второй Facebook, но на Java + PHP возможно создать хорошее приложение вроде: копия Whatsapp или Instagram? Хотелось бы узнать силу этих языков
  • Android разработка, игра стоит свеч?

    @Zirbi Автор вопроса
    99? Вроде 25 долларов