Display append function in another new activity

I am doing an application which contains a listview of phone contact with a checkbox. I have found a coding that suits to my project. It works well but it does not operate as i want. Here is it : private void checkButtonClick() { Button myButton = (Button) findViewById(; final TextView textView = (TextView) findViewById(; myButton.setOnClickListener(new OnClickListener() { @Override public…
Read more

Android Internet check connexion automatically

Hello world how to always detect if I am connected or disconnected from the Internet automatically. Example: When I connected and I turn off 3G or wifi the toast says I’m disconnected, 3 seconds after I activate the 3G or wifi and a toast tells me I am connected. I use this method but it tells me the state of…
Read more

Android cant access play store after installing app from outside the play store

I have a rooted android phone where i install an app from outside the play store. and now I cant access play store anymore. I search for solution and found this. But I can’t even edit the host file. I use ES file explorer to edit. This are in the host file. localhost My questions is…
Read more

duplicate entry: android/support/annotation/AnyRes.class

I am not sure what this error means. Error:Execution failed for task ‘:app:packageAllDebugClassesForMultiDex’. > duplicate entry: android/support/annotation/AnyRes.class and here is my library dependencies dependencies { compile fileTree(dir: ‘libs’, include: [‘*.jar’]) compile ‘com.squareup.picasso:picasso:2.5.2’ compile ‘com.jakewharton:butterknife:7.0.1’ compile ‘’ compile ‘’ compile ‘’ compile ‘’ compile ‘’ compile ‘com.squareup.okhttp:okhttp:2.0.0’ compile ‘com.squareup.retrofit:retrofit:1.9.0’ compile ‘’ compile ‘org.apache.commons:commons-lang3:3.3.2’ compile ‘’ compile ‘com.marshalchen.ultimaterecyclerview:library:0.3.4’ compile ‘com.nineoldandroids:library:2.4.0’ compile…
Read more

No implementation found for android plugins .so file in gameclosure

I have some problem with gameanalytics plugins “src/main/jniLibs/armeabi-v7a/” file is not working properly . I tried different ways still not working and getting some error like ” No implementation found for void com.gameanalytics.sdk.GameAnalyticsSDKJNI.CppWrapper_addDesignEventWithEventId__SWIG_1(java” . Could you please help me to solve this problem. Reference documentation: Source: android

How to change width of SwitchCompat thumb

My question is about Android SwitchCompat. This is my xml code : < app:switchMinWidth=”@dimen/_108px” android:layout_width=”@dimen/_108px” android:layout_height=”@dimen/_60px” android:thumb=”@drawable/switch_thumb_selector” app:track=”@drawable/switch_track_selector” /> android:layout_width helps to set width of track, and android:layout_height helps to set height of thumb. But I want to set width of thumb. How to set width of thumb? Source: android

Display list based on number of items inputted (android)

My goal is to display items based on the inputted value of the user. for example: the user input is 5.. in my application, items will be listed. here is my code in MainActivity public class MainActivity extends AppCompatActivity { ArrayAdapter<String> adapter; ArrayList<String> itemList; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); itemList = new ArrayList<String>(); adapter = new ArrayAdapter<String>(this,…
Read more

‘Unable to contact the firebase server’

I am working on ionic hybrid mobile app using angularFire. I am implementing email/password authentication using $firebaseAuth service. It is working properly on chrome browser but when installed on android device it is giving error ‘Unable to contact the Firebase server.’ My andorid application has full network access permission and permissions to use data and wify. code and APK link…
Read more