Codota Logo
IMDemoApplication.getDir
Code IndexAdd Codota to your IDE (free)

How to use
getDir
method
in
io.gobelieve.im.demo.IMDemoApplication

Best Java code snippets using io.gobelieve.im.demo.IMDemoApplication.getDir (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: GoBelieveIO/im_android

@Override
public void onCreate() {
  super.onCreate();
  sApplication = this;
  IMService mIMService = IMService.getInstance();
  //app可以单独部署服务器,给予第三方应用更多的灵活性
  mIMService.setHost("imnode2.gobelieve.io");
  IMHttpAPI.setAPIURL("http://api.gobelieve.io");
  String androidID = Settings.Secure.getString(this.getContentResolver(),
      Settings.Secure.ANDROID_ID);
  //设置设备唯一标识,用于多点登录时设备校验
  mIMService.setDeviceID(androidID);
  //监听网路状态变更
  IMService.getInstance().registerConnectivityChangeReceiver(getApplicationContext());
  //可以在登录成功后,设置每个用户不同的消息存储目录
  FileCache fc = FileCache.getInstance();
  fc.setDir(this.getDir("cache", MODE_PRIVATE));
  mIMService.setPeerMessageHandler(PeerMessageHandler.getInstance());
  mIMService.setGroupMessageHandler(GroupMessageHandler.getInstance());
  //预先做dns查询
  refreshHost();
}
origin: GoBelieveIO/im_android

@Override
public void onCreate() {
  super.onCreate();
  sApplication = this;
  IMService mIMService = IMService.getInstance();
  //app可以单独部署服务器,给予第三方应用更多的灵活性
  mIMService.setHost("imnode2.gobelieve.io");
  IMHttpAPI.setAPIURL("http://api.gobelieve.io");
  String androidID = Settings.Secure.getString(this.getContentResolver(),
      Settings.Secure.ANDROID_ID);
  //设置设备唯一标识,用于多点登录时设备校验
  mIMService.setDeviceID(androidID);
  //监听网路状态变更
  IMService.getInstance().registerConnectivityChangeReceiver(getApplicationContext());
  //可以在登录成功后,设置每个用户不同的消息存储目录
  FileCache fc = FileCache.getInstance();
  fc.setDir(this.getDir("cache", MODE_PRIVATE));
  mIMService.setPeerMessageHandler(PeerMessageHandler.getInstance());
  mIMService.setGroupMessageHandler(GroupMessageHandler.getInstance());
  mIMService.setCustomerMessageHandler(CustomerMessageHandler.getInstance());
  //预先做dns查询
  refreshHost();
}
io.gobelieve.im.demoIMDemoApplicationgetDir

Popular methods of IMDemoApplication

  • getApplicationContext
  • getContentResolver
  • getAssets
  • refreshHost
  • getDeviceToken

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now