Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
g252691665 opened this issue Jan 4, 2017 · 4 comments

Comments

@g252691665
Copy link

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.

@g252691665
Copy link
Author

@docteau ,can you give some advice?

@g252691665
Copy link
Author

@docteau @aegiryy @hvijay @npapernot can you give me some advice,thank you.

@docteau
Copy link
Member

docteau commented Jan 6, 2017

Since the parsing of layout files is done by Soot code, this is probably due to the version of the Soot code used in IC3 0.2.0, since if I remember correctly it was updated between IC3 0.1.0 and 0.2.0.

@g252691665
Copy link
Author

@docteau ,thanks for your question,I found the code you updated,but I did some expermients,It did not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants