Category : android

I registered a user in the system with a registration code in android studio. public class Register extends AppCompatActivity { Button button; private EditText email,password,nickname; private FirebaseAuth firebaseAuth; DatabaseReference databsereference; FirebaseUser firebaseUser; String language2="English"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_register); hideNavigationBan(); Intent i = getIntent(); language2 = i.getStringExtra("language"); button = (Button) findViewById(R.id.Enter); firebaseAuth ..

Read more

I seem to be having an intermittent issue with Android Studio upon carrying out a Gradle Sync. I am running Android Studio 4.1.3 with Gradle 6.8.3 on Windows. Changing the Gradle version seems to make no difference. In the Sync output window, the following appears: Unable to load class ‘org.jetbrains.kotlin.gradle.KotlinDslScriptModelProvider’. This is an unexpected error. ..

Read more

RecyclerView wrap_content not working.TextView after it not showing and RecyclerView in SwipeRefreshLayout not "wrap_content" DID NOT SOLVE MY ISSUE Hello, i try to build a little app where i want to display cards inside a SwipeRefreshLayout. As you may know, the wrap_content attr doesn’t work properly with this particular layout (see this question). The answer ..

Read more

Not sure where I make a mistake. Code: public class VaccinationTotalUSA extends Fragment { RecyclerView rvRecentRecord; ProgressBar progressBar; private static final String TAG = VaccinationTotalUSA.class.getSimpleName(); ArrayList<VaccinationTimeline> recentRecords; @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_vaccination, container, false); // call view rvRecentRecord = view.findViewById(R.id.vaccinationRecord); progressBar = ..

Read more

It isn’t a problem, but I want really thanks you if someone can answer. Where I can learn ALL android development in particular how android studio work? On Youtube when I watch tutorials about android projects I can’t understand anything cause I don’t know in which document and why the instructor is working. I’ve just ..

Read more

As the title says, I will like to access the Http server on the avd from the host machine. Every Google search changes the topic to "access host machine from host avd". I saw this: Use adb forward but I get error: device not found then running ip a on the avd gives 10.0.2.15, also ..

Read more

I am running an apk well on the emulator. When I run the apk on a real device, it works well. However, in some instances and for a strange reason on the real device, it throws the following error; avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=10037 scontext=u:r:untrusted_app:s0…… I have done some research and ..

Read more

I am trying to get json data from my php server but whenever i try im getting "org.json.JSONException: End of input at character 0 of" also im using fragment for bottom menu private void getData() { // Initialize a new RequestQueue instance RequestQueue queue = Volley.newRequestQueue(this); JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, dataurl+name, null, new Response.Listener<JSONObject>() ..

Read more