-

   rss_rss_hh_new

 - e-mail

 

 -

 LiveInternet.ru:
: 17.03.2011
:
:
: 51

:


Android-

, 18 2017 . 16:08 +
, ? , . - : , Shared Preferences .. .

Ultra Debugger. :

  • saveValue(Context context, String key, Object value). , , ..
  • addLog(Context context, String text[, Throwable throwable]).
  • Shared Preferences.
  • SQLite.
  • , .
  • .
  • .


. , , .



:
  1. :
    debugCompile 'ru.bartwell:ultradebugger:1.3'
    compile 'ru.bartwell:ultradebugger.wrapper:1.3'

    , debug-. , flavor.
    wrapper. , , . , . , , debug- .
  2. Application :
    @Override
    public void onCreate() {
    	super.onCreate();
    	// Wrapper     debug-
    	UltraDebuggerWrapper.setEnabled(BuildConfig.DEBUG);
    	//       -
     	UltraDebuggerWrapper.start(this, 8090);
    }

    BuildConfig.DEBUG BuildConfig.FLAVOR.equals(dev).
  3. :
    UltraDebuggerWrapper.saveValue(context, SomeValue, 12345);
    UltraDebuggerWrapper.addLog(context, Some event);


-. IP- start(). IP- UltraDebuggerWrapper.getIp() UltraDebuggerWrapper.getPort() Toast .



. WiFi-, IP- (, 192.168.0.33:8090). . . :
image
, WEB- - :) .



. , UI UX -, . , . Ultra Debugger - Pull Request, .
Original source: habrahabr.ru (comments, light).

https://habrahabr.ru/post/333588/

:  

: [1] []
 

:
: 

: ( )

:

  URL