2010年8月18日

  
        PackageManager pm = context.getPackageManager();   
        PackageInfo info = pm.getPackageArchiveInfo(filePath, PackageManager.GET_ACTIVITIES);   
        if(info != null){   
            ApplicationInfo appInfo = info.applicationInfo;   
            String appName = pm.getApplicationLabel(appInfo).toString();   
            String packageName = appInfo.packageName;   
         
        }   
 

posted @ 2010-08-18 20:45 lbeing 阅读(128) 评论(0) 编辑

<?xml version="1.0" encoding="utf-8"?>  
<RelativeLayout  
  xmlns:android="http://schemas.android.com/apk/res/android"  
  android:layout_width="fill_parent"  
  android:layout_height="wrap_content">  
  <ImageView  
    android:id="@+id/icon_left"  
    android:layout_width="wrap_content"  
    android:layout_height="wrap_content"  
    android:layout_alignParentLeft="true"  
    android:src="@drawable/icon"  
    />  
  <Button  
    android:id="@+id/button"  
    android:layout_width="wrap_content"  
    android:layout_height="wrap_content"  
    android:layout_alignParentRight="true"  
    android:text="button"  
    />     
  <LinearLayout  
    android:orientation="vertical"  
    android:layout_width="fill_parent"  
    android:layout_height="wrap_content"  
    android:layout_toLeftOf="@id/button"  
    android:layout_toRightOf="@id/icon_left"  
    >  
    <TextView  
        android:layout_width="fill_parent"  
        android:layout_height="wrap_content"  
        android:text="trust you"  
        />  
    <TextView  
        android:layout_width="fill_parent"  
        android:layout_height="wrap_content"  
        android:text="aaaaa"  
        />  
  </LinearLayout>       
</RelativeLayout> 

posted @ 2010-08-18 11:00 lbeing 阅读(153) 评论(0) 编辑

公告

导航

统计