Categories
Mastering Development

how shareit application able to send any type of app to receiver

hi i am intermediate level of android developer. i have a question that how shareIt app able to send the any type of app means all types of application is successfully sender able to send to receiver and receiver also able to install the app and use it. when i try this feature in my […]

Categories
Mastering Development

Can anyone please explain why my app is not launching

I tried to make my app inflating with 2 EditTexts and Spinner when button is pressed, but it is not launching. I’m new to programming, so there can be some simple mistakes. I found out: Without spinner app works. Logcat shows no errors. Please help me. Thank you in advance. My java code: package com.example.test2; […]

Categories
Game Creation Mastering Development

Listview With Custom Adapter, Checkbox Items And Select All option

I have an application that populate data from sqlite and put in a listview 1 of the holder in listview layout is a checkbox. I also have 1 checkbox in the forupload activity which named select all, that if all the items in the listview are checked, the select all checkbox will be set as […]

Categories
Mastering Development

Spinner android and okhttp3, When I have fetched data it’s no displays in spinner only when I am clicking spinner

I’m using the okhttp3 to fetch data and it then this data are displaying in spinner. But it’s not happend. The spinner as empty but when I drop down the spinner I can see my date fetched by okhttp3. I’m not pretty sure why spinner is empty at the beginning. private List<String> categories; @Override protected […]

Categories
Mastering Development

how to refresh recyclerview after making some change on sqlite database

My app has recyclerview in fragment and when I click one of the list inside recyclerview, on the next page, there is check button that I can update a value on sqlite database. With this updating, I can change order of list of recyclerview. Since sqlite database is not like firebase addlistener. It can not […]

Categories
Mastering Development

Want to link my listview with text in Android Studio

When I click on SOUTHPARK it opens KYLE and I want to make KYLE clickable and write something in KYLE how can I do that? If it’s related I can copy paste my manifest That’s pretty much it I have to write something here so I can post public class MainActivity extends AppCompatActivity { @Override […]

Categories
Mastering Development

If condition on Spinner drop-down list

I made a drop-down list using spinner but now I want and a specific message to display when a certain value is selected along with an EditText when a certain keyword is entered. I attempted using if condition but it didn’t work. The scenario is like this: When the user input their age over 18 […]

Categories
Mastering Development

Getting null pointer exception when setting spinner view text

Below is the code invoked onItemSelected in a spinner. At times I am getting a null pointer exception even when the app is closed. The image of the bug is attached in this post. /** * Store the selected product * @param parent * @param view * @param position * @param id */ @Override public […]

Categories
Mastering Development

How to display different textview when Spinner option is selected in Android Studio

I am developing an application and I need to show a differents Textview when the user take a each option of a Spinner would be select in Android Studio, my code is the next: Txt_Tiempo = (Spinner) findViewById(R.id.Txt_Tiempo); Txt_Tiempo.setAdapter(adapter); Txt_Tiempo.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) { if […]

Categories
Mastering Development

How to delete a listView document from firestore when I click it?

I wanna delete a document from firestore and I wanna change the activity when I click to the listView item. I can change the activity and I can remove the movie when I click it but I open the app again it’s still in there cause I can’t delete it from firestore I try but […]