Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3b93ea7

Browse files
JAVATECHIGJAVATECHIG
JAVATECHIG
authored and
JAVATECHIG
committed
added How to Get List of Installed Apps in Android
1 parent ba3c275 commit 3b93ea7

File tree

17 files changed

+377
-0
lines changed

17 files changed

+377
-0
lines changed

‎ListInstalledApps/AndroidManifest.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.javatechig.listapps"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk
8+
android:minSdkVersion="8"
9+
android:targetSdkVersion="17" />
10+
11+
<application
12+
android:allowBackup="true"
13+
android:icon="@drawable/ic_launcher"
14+
android:label="@string/app_name"
15+
android:theme="@style/AppTheme" >
16+
<activity
17+
android:name="com.javatechig.listapps.AllAppsActivity"
18+
android:label="@string/app_name" >
19+
<intent-filter>
20+
<action android:name="android.intent.action.MAIN" />
21+
22+
<category android:name="android.intent.category.LAUNCHER" />
23+
</intent-filter>
24+
</activity>
25+
</application>
26+
27+
</manifest>
7.48 KB
Loading[フレーム]
3.69 KB
Loading[フレーム]
12.2 KB
Loading[フレーム]
24.2 KB
Loading[フレーム]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:layout_width="fill_parent"
3+
android:layout_height="fill_parent"
4+
android:orientation="vertical" >
5+
6+
<ListView
7+
android:id="@android:id/list"
8+
android:layout_width="fill_parent"
9+
android:layout_height="wrap_content" />
10+
11+
</LinearLayout>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="fill_parent"
4+
android:layout_height="wrap_content" >
5+
6+
<ImageView
7+
android:id="@+id/app_icon"
8+
android:layout_width="50dp"
9+
android:layout_height="50dp"
10+
android:padding="3dp"
11+
android:scaleType="centerCrop" />
12+
13+
<LinearLayout
14+
android:layout_width="fill_parent"
15+
android:layout_height="fill_parent"
16+
android:gravity="center_vertical"
17+
android:orientation="vertical"
18+
android:paddingLeft="5dp" >
19+
20+
<TextView
21+
android:id="@+id/app_name"
22+
android:layout_width="fill_parent"
23+
android:layout_height="wrap_content"
24+
android:gravity="center_vertical"
25+
android:textStyle="bold" />
26+
27+
<TextView
28+
android:id="@+id/app_paackage"
29+
android:layout_width="fill_parent"
30+
android:layout_height="wrap_content"
31+
android:gravity="center_vertical" />
32+
</LinearLayout>
33+
34+
</LinearLayout>

‎ListInstalledApps/res/menu/menu.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
2+
3+
<item
4+
android:id="@+id/menu_about"
5+
android:orderInCategory="100"
6+
android:icon="@android:drawable/ic_menu_info_details"
7+
android:showAsAction="always|withText"
8+
android:title="@string/action_about"/>
9+
10+
</menu>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<resources>
2+
3+
<!--
4+
Customize dimensions originally defined in res/values/dimens.xml (such as
5+
screen margins) for sw600dp devices (e.g. 7" tablets) here.
6+
-->
7+
8+
</resources>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<resources>
2+
3+
<!--
4+
Customize dimensions originally defined in res/values/dimens.xml (such as
5+
screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
6+
-->
7+
<dimen name="activity_horizontal_margin">128dp</dimen>
8+
9+
</resources>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /