Permalink
Browse files

added logo

  • Loading branch information...
1 parent 60a455d commit 357720357c7df64df9210d8b705177aa48b46d88 Dominik Obermaier committed Oct 10, 2012
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -3,9 +3,15 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
- android:layout_height="match_parent" android:background="@color/background"
+ android:layout_height="match_parent" android:background="@android:color/background_light"
android:longClickable="true">
+ <ImageView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/imageView"
+ android:src="@drawable/blackice" android:layout_centerHorizontal="true"
+ android:layout_alignParentTop="true" android:layout_marginTop="47dp"/>
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
@@ -10,6 +10,7 @@
public class BlackIceActivity extends Activity {
+ public static final String SERVICE_CLASSNAME = "de.eclipsemagazin.mqtt.push.MQTTService";
private Button button;
@Override
@@ -62,13 +63,13 @@ private void startBlackIceService() {
private void stopBlackIceService() {
final Intent intent = new Intent(this, MQTTService.class);
- boolean b = stopService(intent);
+ stopService(intent);
}
private boolean serviceIsRunning() {
ActivityManager manager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {
- if ("de.eclipsemagazin.mqtt.push.MQTTService".equals(service.service.getClassName())) {
+ if (SERVICE_CLASSNAME.equals(service.service.getClassName())) {
return true;
}
}

0 comments on commit 3577203

Please sign in to comment.