Android Studio ™ 📲 ThemeForest, Envato, Codecanyon, Freepik, Adobe, Udemy
前往频道在 Telegram
Android Studio Developer Community... Source Code, Themes, Scripts, Plugins. themeforest, envato, codecanyon, download
显示更多未指定国家未指定类别
1 826
订阅者
无数据24 小时
无数据7 天
无数据30 天
帖子存档
[•_•] ❣︎ (- -)
{\ }\ /[ /]
/ \ / \
can any one help me?
package com.example.carrantal;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.TextView;
import android.widget.Toast;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.auth.AuthResult;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.ValueEventListener;
import java.sql.Time;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
public class Reservation extends AppCompatActivity {
// for checking
String stime , sdate , shosptname , loc ;
EditText eTime,eDate,cmodel;
String Time,Date,carname ,Location ;
Button Add_d , Update_d;
int i= 0;
DatabaseReference mStore;
private FirebaseAuth mAuth;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_reservation);
eTime = (EditText) findViewById(R.id.editTime);
eDate = (EditText) findViewById(R.id.editDate);
cmodel = (EditText) findViewById(R.id.carnmodel);
mStore = FirebaseDatabase.getInstance().getReference().child("carr");
Add_d = findViewById(R.id.btnCon);
Add_d.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
// to string
String Time = eTime.getText().toString().trim();
String Date = eDate.getText().toString().trim();
String carnmodel =cmodel.getText().toString().trim();
mStore = FirebaseDatabase.getInstance().getReference().child("carr");
if (TextUtils.isEmpty(Time)){
Toast.makeText(getApplicationContext(), "Time is Required",Toast.LENGTH_LONG).show();
return;
}
if (TextUtils.isEmpty(Date)){
Toast.makeText(getApplicationContext(), "Date is Required",Toast.LENGTH_LONG).show();
return;
}
Toast.makeText(getApplicationContext(),"name of car : ",Toast.LENGTH_LONG);
if (TextUtils.isEmpty(carnmodel)){
Toast.makeText(getApplicationContext(), "car Name is Required",Toast.LENGTH_LONG).show();
return;
}
}
});
Update_d = findViewById(R.id.btnUpd);
Update_d.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
// to string
Time = eTime.getText().toString().trim();
Date = eDate.getText().toString().trim();
if (TextUtils.isEmpty(Time)){
Toast.makeText(getApplicationContext(), "Time is Required",Toast.LENGTH_LONG).show();
return;
}
if (TextUtils.isEmpty(Date)){
Toast.makeText(getApplicationContext(), "Date is Required",Toast.LENGTH_LONG).show();
return;
}
if (TextUtils.isEmpty(carname)){
Toast.makeText(getApplicationContext(), "car Name is Required",Toast.LENGTH_LONG).show();
return;
}
mStore = FirebaseDatabase.get
♥️ Hi, K udaya Welcome to, Android Studio Official !
✿┅═══❁✿ ॐ ✿❁═══┅✿
🔹 Use English Language Only
🔸 Don't Share any Links or Ads
🔸 We Sell Android Studio Project And All Types Website And Hosting For Final Year Students and Professionally
🌐 Buy or Sale Source Code or Projects Here
☎️ If You have any problem Contact Owner
if I have an
okhttp call to obtain a value from a device and I call it from onCreateView() event, normally I obtain correctly this error message:
android java okhttp dispatcher android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.and the app crashes.... I put the whole okhttp call inside
getActivity().runOnUiThread(new Runnable() {
@Override
public void run() {
new Thread(() -> { okhttp call here... }).start();
}
}
but it returns anyway the same error and the app crashes.... maybe okhttp doesn't have to be called in onCreateView() event , even if inside runUiOnThread() ?....♥️ Hi Ammar Alwgeeh Welcome to, Android Studio Official !
✿┅═══❁✿ ॐ ✿❁═══┅✿
🔹 Use English Language Only
🔸 Don't Share any Links Ore ads
🔸 We Sell Android Studio Project And All Types Website And Hosting For Final Year Students and Professionally Contact Here
☎️ If You have any problem Contact Owner
🌐 Visit Our Website For More Information
♥️ Hi Star_kpm Welcome to, Android Studio Official !
✿┅═══❁✿ ॐ ✿❁═══┅✿
🔹 Use English Language Only
🔸 Don't Share any Links Ore ads
🔸 We Sell Android Studio Project And All Types Website And Hosting For Final Year Students and Professionally Contact Here
☎️ If You have any problem Contact Owner
🌐 Visit Our Website For More Information
are you on Apple Silicon
servicebookingapp-10.rar42.46 MB
Like your personal phone
https://t.me/dealshuntt
Join for amazing Loot deals
♥️ Hi, Qudratullah Welcome to, Android Studio Official !
✿┅═══❁✿ ॐ ✿❁═══┅✿
🔹 Use English Language Only
🔸 Don't Share any Links or Ads
🔸 We Sell Android Studio Project And All Types Website And Hosting For Final Year Students and Professionally
🌐 Buy or Sale Source Code or Projects Here
☎️ If You have any problem Contact Owner
hey i m new in Android ..🌚 so which Language should i learn for Android App development
I have a big problem with android studio
I work on the project, it in a certain time stops responding me, it doesn't add element to the activity main.xml, so I re-start the program and xml file doesn't show me anything
♥️ Hi, Muhammad Welcome to, Android Studio Official !
✿┅═══❁✿ ॐ ✿❁═══┅✿
🔹 Use English Language Only
🔸 Don't Share any Links or Ads
🔸 We Sell Android Studio Project And All Types Website And Hosting For Final Year Students and Professionally
🌐 Buy or Sale Source Code or Projects Here
☎️ If You have any problem Contact Owner
Saved filter '
thanks'.♥️ Hi ABUH VICTOR Welcome to, Android Studio Official !
✿┅═══❁✿ ॐ ✿❁═══┅✿
🔹 Use English Language Only
🔸 Don't Share any Links Ore ads
🔸 We Sell Android Studio Project And All Types Website And Hosting For Final Year Students and Professionally Contact Here
☎️ If You have any problem Contact Owner
🌐 Visit Our Website For More Information
