Posts tagged with android

I have integrated Google Ads in my application and when I call notifyDataSetChnaged, ads are blinking.

I tried following solutions -

   fun RecyclerView.disableItemAnimator() {     var animator: RecyclerView.ItemAnimator? = home_article_recyclerview.getItemAnimator();     if (animator is SimpleItemAnimator) {         animator.setSupportsChangeAnimations(false);     } }   

And

 itemAnimator?.changeDuration = 0 

But none of them are working. Any help would be appreciated.

I'm using google AdWords for my android application promotion from last 2 years. From the last 4-5 days, my google AdWords campaign runs fast and spending much higher money then it use to be. And that conversion ration is not showing in google console and now even on my Admob. Like Google Adwords showing 9000 install and console says 3400 install from that same day. And no effect on AdMob also.

What happens to Google AdWords? Is any other facing this issue? What wrong I'm doing?

I wanted to know how I can send text to a specific whatsapp contact. I found some code to view a specific contact, but not to send data.

Cursor c = getContentResolver().query(ContactsContract.Data.CONTENT_URI,     new String[] { ContactsContract.Contacts.Data._ID }, ContactsContract.Data.DATA1 + "=?",     new String[] { id }, null); c.moveToFirst(); Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("content://com.android.contacts/data/" + c.getString(0))); startActivity(i); c.close(); 

This works fine for viewing a whatsapp-contact, but how can I add some text now? Or didn't the Whatsapp-developer implement such kind of an api?