Skip to content

ic3-0.2.0 can not parse intent in the callback method in the layout XML files. #22

@g252691665

Description

@g252691665

Dear developers:
I download source code of ic3-0.2.0 and build it ,I found that ic3-0.2.0 can not parse intent in the callback method in the layout XML files.

MainActivity.java

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}
	
	
	public void startFoo(View view) {
		TelephonyManager tel = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);
		String deviceID = tel.getDeviceId();
		Intent intent = new Intent(MainActivity.this,FooActivity.class);
		intent.putExtra("deviceID", deviceID);
		startActivity(intent);
	}


}

activity_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    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=".MainActivity" >
    
    <Button
        android:text="显示启动FooActivity"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:onClick="startFoo"
        />

</RelativeLayout>

The result:the Intents table is null,but I used ic3-0.1.0-full.jar ,it does work,the Intents table is not null, can you give me some answers.

Best wishes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions