How to Create/Add new Package inside src folder in Android Studio
The following are the steps to add new Package name inside src folder:
Step 1: Open Android Studio and Navigate to any view(Android or Project)
Step 2: In Android View you will have two folders: app and Gradle Scripts
Step 3: Open App folder then open Java folder. Right click on Java folder and select New > Package.
Step 4: Choose directory destination which main\java and click OK.
Step 5: Give a name to new Package(For example: samplePackage). Click Ok.
Step 5: Now you have samplePackage inside JAVA folder. You can keep separate Java files inside it.