Skip to content

Instantly share code, notes, and snippets.

@p4yam
Last active February 12, 2017 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p4yam/c776cb413cf0335c116c6770cfc701c2 to your computer and use it in GitHub Desktop.
Save p4yam/c776cb413cf0335c116c6770cfc701c2 to your computer and use it in GitHub Desktop.
get android hardware info
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="ir.kivee.androidsysteminfo.MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="دریافت مشخصات سخت افزاری سیستم" />
<Button
android:id="@+id/getSystemInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:padding="16dp"
android:text="Get Android System Info" />
<TextView
android:id="@+id/info_display"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment