How to prevent others from deleting my admob ads?

I published the application on Google Appmarket.

And I use admob to get some profit. Now I found that someone downloaded my application and removed the ad, and published it in some other market, which I don’t want at all.

Here is the code I put in my layout.xml

<com.admob.android.ads.AdView android:id="@+id/admob_view" android:visibility="visible" android:layout_width="fill_parent" android:layout_height="wrap_content" app:backgroundColor="#000000" app:primaryTextColor="#FFFFFF" app:secondaryTextColor="#CCCCCC" app:keywords=""/> 

How can I prevent this?

+4
source share
2 answers

To make this harder, you can add a view in Java instead of XML and obfuscate your code.

+4
source

It's too late, but for future versions and applications you can set copy protection to β€œOn” on the Android Market download page. He is at the base. I doubt it is flawless, but it may help some of the people who can do this, from opportunity.

+3
source

All Articles