Rev 14 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 14 | Rev 17 | ||
|---|---|---|---|
| Line 30... | Line 30... | ||
| 30 | import android.content.pm.ResolveInfo; |
30 | import android.content.pm.ResolveInfo; |
| 31 | import android.os.Bundle; |
31 | import android.os.Bundle; |
| 32 | import android.view.View; |
32 | import android.view.View; |
| 33 | import android.widget.ListView; |
33 | import android.widget.ListView; |
| 34 | import android.widget.SimpleAdapter; |
34 | import android.widget.SimpleAdapter; |
| - | 35 | import de.pointedears.converter.helpers.UpdateService; |
|
| 35 | 36 | ||
| 36 | /**
|
37 | /**
|
| 37 | * Generates the main menu as a list of activities from the manifest
|
38 | * Generates the main menu as a list of activities from the manifest
|
| 38 | *
|
39 | *
|
| 39 | * @author
|
40 | * @author
|
| Line 41... | Line 42... | ||
| 41 | * Class courtesy of The Android Open Source Project
|
42 | * Class courtesy of The Android Open Source Project
|
| 42 | * (Android 2.2 SDK Examples), slightly adapted
|
43 | * (Android 2.2 SDK Examples), slightly adapted
|
| 43 | */
|
44 | */
|
| 44 | public class MenuActivity extends ListActivity |
45 | public class MenuActivity extends ListActivity |
| 45 | {
|
46 | {
|
| 46 | - | ||
| 47 | @Override |
47 | @Override |
| 48 | public void onCreate(Bundle savedInstanceState) |
48 | public void onCreate(Bundle savedInstanceState) |
| 49 | {
|
49 | {
|
| 50 | super.onCreate(savedInstanceState); |
50 | super.onCreate(savedInstanceState); |
| 51 | 51 | ||
| - | 52 | this.startService(new Intent(this, UpdateService.class)); |
|
| - | 53 | ||
| 52 | Intent intent = this.getIntent(); |
54 | Intent intent = this.getIntent(); |
| 53 | String path = intent.getStringExtra("de.pointedears.converter.Path"); //$NON-NLS-1$ |
55 | String path = intent.getStringExtra("de.pointedears.converter.Path"); //$NON-NLS-1$ |
| 54 | 56 | ||
| 55 | if (path == null) |
57 | if (path == null) |
| 56 | {
|
58 | {
|