So in my main activity I have a listView, a custom ArrayAdapter, and a Connection to the database.
This works all just fine ! When I click one of the item, I'm redirected to a second activity, which Logs/Registers the user. Then after successful attempt to login.
User is redirected to the proper activity.
Admin can do CRUD Operation User can do SELECT
What I am trying to do ... is to call that same list view , adapter , connection from the mainActivity and just change it's layout accordingly !
Custom ArrayAdapters and ListView are so difficult to grasp, I rather find a way to re-use the code instead of copy pasting.
Please might also suggest to create a class, for these 3 things ... but i'm still very new and i'm not to sure how to do it properly.