Fix for lollipop explicit intent rule.
This commit is contained in:
parent
c3eb14aafb
commit
bac3393c0b
|
@ -32,9 +32,6 @@
|
||||||
android:enabled="true"
|
android:enabled="true"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:process=":ethereum_process" >
|
android:process=":ethereum_process" >
|
||||||
<intent-filter>
|
|
||||||
<action android:name="org.ethereum.android_app.EthereumService" />
|
|
||||||
</intent-filter>
|
|
||||||
</service>
|
</service>
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
|
|
|
@ -125,7 +125,7 @@ public class MainActivity extends ActionBarActivity implements ActivityInterface
|
||||||
tabs.setDistributeEvenly(true);
|
tabs.setDistributeEvenly(true);
|
||||||
tabs.setViewPager(viewPager);
|
tabs.setViewPager(viewPager);
|
||||||
|
|
||||||
ComponentName myService = startService(new Intent("org.ethereum.android_app.EthereumService"));
|
ComponentName myService = startService(new Intent(MainActivity.this, EthereumService.class));
|
||||||
doBindService();
|
doBindService();
|
||||||
|
|
||||||
//StrictMode.enableDefaults();
|
//StrictMode.enableDefaults();
|
||||||
|
@ -155,7 +155,7 @@ public class MainActivity extends ActionBarActivity implements ActivityInterface
|
||||||
// Establish a connection with the service. We use an explicit
|
// Establish a connection with the service. We use an explicit
|
||||||
// class name because there is no reason to be able to let other
|
// class name because there is no reason to be able to let other
|
||||||
// applications replace our component.
|
// applications replace our component.
|
||||||
bindService(new Intent("org.ethereum.android_app.EthereumService"), serviceConnection, Context.BIND_AUTO_CREATE);
|
bindService(new Intent(MainActivity.this, EthereumService.class), serviceConnection, Context.BIND_AUTO_CREATE);
|
||||||
isBound = true;
|
isBound = true;
|
||||||
Toast.makeText(MainActivity.this, "binding to service", Toast.LENGTH_SHORT).show();
|
Toast.makeText(MainActivity.this, "binding to service", Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue