我不明白为什么我的应用程序在安装apk时崩溃了? 我想点击动作按钮,然后打电话 logcat的:
08-19 17:26:06.466 15592-15954/? E/MPlugin: Unsupported class: com.mediatek.common.telephony.IOnlyOwnerSimSupport
08-19 17:26:06.332 15592-15592/? E/NetworkScheduler.SR: Invalid parameter app
08-19 17:26:06.332 15592-15592/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
main_activity.java
public void Call(View v)
{
Intent intentcall= new Intent(Intent.ACTION_DIAL);
intentcall.setData(Uri.parse("tel:103"));
startActivity(intentcall);
}
xml:
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|bottom"
android:layout_margin="@dimen/fab_margin"
android:src="@android:drawable/ic_dialog_email"
android:onClick="Call"/>