• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

The device is not recognized

Thanks codesplice, I installed the universal ADB Driver and the phone is recognized now ! It was unauthorized then but I did "adb kill-server" and "adb start-server" on command line, it still didn't work but then I just unplugged the phone and plugged it again, and it was recognized by android studio.

The only problem is that the application doesn't run, I don't know why, the build is okay, the device is set to authorized when I check it on the command line with "adb devices". Everything is fine but nothing happens on the phone.

Edit:forget it ! I just didn't notice that the app was actually launched on the phone, I didn't pay attention because there is no notification or anything when it runs. It works fine now.
Thanks to everyone !

Galaxy S20: Specs

These are the Samsung Galaxy S20 Specs according to the latest news:
  • 5G Connectivity
  • 6.2- to 6.4-inch AMOLED display
  • 120Hz refresh rate
  • 3 rear cameras:
    • 12MP main camera
    • 64MP telephoto camera with 3x optical zoom
    • 12MP ultra wide camera
  • 10MP front-facing camera
  • 128GB Storage
  • 4,000-mAh battery
  • Qualcomm Snapdragon 865 processor
The full Galaxy S20 specs will be updated as information is released and discussion will be opened once all information has been officially made public.

The Best Galaxy S20 Case

The first thing many smartphone users do after they buy a phone, tear open the box, and turn it on is buy a case for their phone. What's the best case for the Samsung Galaxy S20?

We'll be reviewing the following Galaxy S20 Cases:
  • Samsung (Official Case)
  • Spigen
  • Speck
  • Incipio
  • Case-Mate
  • Lifeproof
  • OtterBox
If you want to be notified when our review is published, please click the "eye" icon in the top right and choose whether or not you want e-mail notifications (must be logged in).

If you'd like us to include a Galaxy S20 Case from another brand not currently on this list, please tweet @androidforums along with the case brand you're nominating for consideration.

This article will be re-opened for discussion once our Galaxy S20 Case Review is published!

Galaxy S20: Price

The Samsung Galaxy S20 Price will be $999 USD based on current rumors. There may be a 4G version (that doesn't support 5G) for $849.

This will be the starting price but customer options (internal storage, color, etc...), carrier deals, customer upgrades, trade-ins, and taxes and other fees could make the price higher or lower, depending.

This falls in line with the Samsung Galaxy S10 launch which saw the price start at $899 for the 128GB model. It's a surprise to see the estimated price of a new model drop from the previous year, but there are more expensive versions of this year's phone found with the Galaxy S20 Plus, Galaxy S20 Ultra, and Galaxy Z Fold.

Galaxy S20: Release Date

The Samsung Galaxy S20 Release Date is March 6th, 2020 (unofficially) and it will be unveiled for the first time on February 11th, 2020.

This falls into line with the past two iterations of the Samsung Galaxy Series:
  • Galaxy S20 Release Date: March 6th, 2020
  • Galaxy S10 Release Date: March 8th, 2019
  • Galaxy S9 Release Date: March 16th, 2018
Stay tuned for more Galaxy S20 updates including release date and price announcements.

Disable factory reset

Your device's internal storage is divided into several partitions. Most of them are restricted with system-level permissions and one is set to be the user's data partition. The installed Android operating system is on those system partitions and as a general user you only have very limited access to any of them. (Most indirectly via the Settings app.) You do have full, unfettered access to anything residing in that data partition. When you rooted your device, this gives you more ability to access the operating system.
But again, a Factory Reset only wipes that user data partition clean. It does not have any access to any of those system-level partitions and it doesn't have the ability to the alter the installed operating system either. But as you use that device more and more, you build up a lot of things in that user data partition. Config and setting files for your apps get stored there along with general files too. So doing a Factory Reset is something of a drastic measure, but it cannot restore deleted apps, it cannot change a rooted device back into a non-rooted one, nor will it return a phone that's been upgraded to a newer OS version to a previous one.
A 'Factory Reset' is something of a misnomer as implies it can magically restore a phone to its original state but that's just not reality. The 'Reset' part only refers to an established user's files and settings.


Just a suggestion but you might find installing the Titanium Backup Pro app to be helpful:
https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup
https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackupPro
also, Root Explorer is a really good 'root required' file explorer app:
https://play.google.com/store/apps/details?id=com.speedsoftware.rootexplorer&hl=en_US
Thanks!!!

How do I get the categories class to transition to subcategories class

Hi

I'm currently using fragments to create a category screen and ranking screen, however, I now want to add subcategories to the categories when clicked, however now upon clicking a category now I get this error

(Unable to instantiate activity ComponentInfo{com.example.educat/com.example.educat.SubCat}: java.lang.ClassCastException: com.example.educat.SubCat cannot be cast to android.app.Activity)

The categories class currently fetches the categories from firebase and lists them, I now want on click of a category to take the user to subcategories also fetched from firebase.

Any help would be appreciated.

public class CategoryFragment extends Fragment {

View myFragment;

RecyclerView listCategory;
RecyclerView.LayoutManager layoutManager;
FirebaseRecyclerAdapter<Category, CategoryViewHolder> adapter;
FirebaseDatabase database;
DatabaseReference categories;

public static CategoryFragment newInstance(){
CategoryFragment categoryFragment =new CategoryFragment();
return categoryFragment;
}
@override
public void onCreate(@nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
database= FirebaseDatabase.getInstance();
categories = database.getReference("Category");


}
@nullable
@override
public View onCreateView(@NonNull LayoutInflater inflater, @nullable ViewGroup container, @nullable Bundle savedInstanceState) {
myFragment = inflater.inflate(R.layout.fragment_category,container,false);
listCategory = (RecyclerView)myFragment.findViewById(R.id.listCategory);
listCategory.setHasFixedSize(true);
layoutManager = new LinearLayoutManager(container.getContext());
listCategory.setLayoutManager(layoutManager);
loadCategories();

return myFragment;
}

private void loadCategories() {
adapter = new FirebaseRecyclerAdapter<Category, CategoryViewHolder>(
Category.class,
R.layout.category_layout,
CategoryViewHolder.class,
categories
) {
@override
protected void populateViewHolder(CategoryViewHolder viewHolder, final Category category, int position) {
viewHolder.category_name.setText(category.getName());
Picasso.with(getActivity())
.load(category.getImage())
.into(viewHolder.category_image);
viewHolder.setItemClickListener(new ItemClickListener() {
@override
public void onClick(View view, int position, boolean isLongClick) {
Intent startGame = new Intent(getActivity(),SubCat.class);
Common.categoryId = adapter.getRef(position).getKey();
Common.categoryName = category.getName();
startActivity(startGame);

}
});
}
};
adapter.notifyDataSetChanged();
listCategory.setAdapter(adapter);
}

public class SubCat extends Fragment {

View myFragment;

RecyclerView listCategory;
RecyclerView.LayoutManager layoutManager;
FirebaseRecyclerAdapter<Category, CategoryViewHolder> adapter;
FirebaseDatabase database;
DatabaseReference categories;

public static CategoryFragment newInstance(){
CategoryFragment categoryFragment =new CategoryFragment();
return categoryFragment;
}
@override
public void onCreate(@nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
database= FirebaseDatabase.getInstance();

categories = database.getReference("Subcategory");
}

@nullable
@override
public View onCreateView(@NonNull LayoutInflater inflater, @nullable ViewGroup container, @nullable Bundle savedInstanceState) {
myFragment = inflater.inflate(R.layout.fragment_category,container,false);
listCategory = (RecyclerView)myFragment.findViewById(R.id.listCategory);
listCategory.setHasFixedSize(true);
layoutManager = new LinearLayoutManager(container.getContext());
listCategory.setLayoutManager(layoutManager);
loadCategories();

return myFragment;
}

private void loadCategories() {
adapter = new FirebaseRecyclerAdapter<Category, CategoryViewHolder>(
Category.class,
R.layout.category_layout,
CategoryViewHolder.class,
categories
) {
@override
protected void populateViewHolder(CategoryViewHolder viewHolder, final Category category, int position) {
viewHolder.category_name.setText(category.getName());
Picasso.with(getActivity())
.load(category.getImage())
.into(viewHolder.category_image);
viewHolder.setItemClickListener(new ItemClickListener() {
@override
public void onClick(View view, int position, boolean isLongClick) {
//Toast.makeText(getActivity(),String.format("%s|%s",adapter.getRef(position).getKey(),category.getName()),Toast.LENGTH_SHORT).show();
Intent startGame = new Intent(getActivity(),Start.class);
Common.categoryId = adapter.getRef(position).getKey();
Common.categoryName = category.getName();
startActivity(startGame);

}
});
}
};
adapter.notifyDataSetChanged();
listCategory.setAdapter(adapter);
}

Filter

Back
Top Bottom