Tabnine Logo
StubActivity
Code IndexAdd Tabnine to your IDE (free)

How to use
StubActivity
in
com.lody.virtual.client.stub

Best Java code snippets using com.lody.virtual.client.stub.StubActivity (Showing top 3 results out of 315)

origin: android-hacker/VirtualXposed

@Override
protected void onCreate(Bundle savedInstanceState) {
  // The savedInstanceState's classLoader is not exist.
  super.onCreate(null);
  finish();
  // It seems that we have conflict with the other Android-Plugin-Framework.
  Intent stubIntent = getIntent();
  // Try to acquire the actually component information.
  StubActivityRecord r = new StubActivityRecord(stubIntent);
  if (r.intent != null) {
    if (TextUtils.equals(r.info.processName, VirtualRuntime.getProcessName()) && r.userId == VUserHandle.myUserId()) {
      // Retry to inject the HCallback to instead of the exist one.
      InvocationStubManager.getInstance().checkEnv(HCallbackStub.class);
      Intent intent = r.intent;
      intent.setExtrasClassLoader(VClientImpl.get().getCurrentApplication().getClassLoader());
      startActivity(intent);
    } else {
      // Start the target Activity in other process.
      VActivityManager.get().startActivity(r.intent, r.userId);
    }
  }
}
origin: darkskygit/VirtualApp

@Override
protected void onCreate(Bundle savedInstanceState) {
  // The savedInstanceState's classLoader is not exist.
  super.onCreate(null);
  finish();
  // It seems that we have conflict with the other Android-Plugin-Framework.
  Intent stubIntent = getIntent();
  // Try to acquire the actually component information.
  StubActivityRecord r = new StubActivityRecord(stubIntent);
  if (r.intent != null) {
    if (TextUtils.equals(r.info.processName, VirtualRuntime.getProcessName()) && r.userId == VUserHandle.myUserId()) {
      // Retry to inject the HCallback to instead of the exist one.
      InvocationStubManager.getInstance().checkEnv(HCallbackStub.class);
      Intent intent = r.intent;
      intent.setExtrasClassLoader(VClientImpl.get().getCurrentApplication().getClassLoader());
      startActivity(intent);
    } else {
      // Start the target Activity in other process.
      VActivityManager.get().startActivity(r.intent, r.userId);
    }
  }
}
origin: bzsome/VirtualApp-x326

@Override
protected void onCreate(Bundle savedInstanceState) {
  // The savedInstanceState's classLoader is not exist.
  super.onCreate(null);
  finish();
  // It seems that we have conflict with the other Android-Plugin-Framework.
  Intent stubIntent = getIntent();
  // Try to acquire the actually component information.
  StubActivityRecord r = new StubActivityRecord(stubIntent);
  if (r.intent != null) {
    if (TextUtils.equals(r.info.processName, VirtualRuntime.getProcessName()) && r.userId == VUserHandle.myUserId()) {
      // Retry to inject the HCallback to instead of the exist one.
      InvocationStubManager.getInstance().checkEnv(HCallbackStub.class);
      Intent intent = r.intent;
      intent.setExtrasClassLoader(VClientImpl.get().getCurrentApplication().getClassLoader());
      startActivity(intent);
    } else {
      // Start the target Activity in other process.
      VActivityManager.get().startActivity(r.intent, r.userId);
    }
  }
}
com.lody.virtual.client.stubStubActivity

Most used methods

  • finish
  • getIntent
  • startActivity

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now