Multilevel listview - Android Studio [closed] - java

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I am working on a school project and making a listView in android studio which will list all the agencies and when i click one agency it must give me all the agent details under that selected row , and when I click on the agent it should give me the contact information of the agent.
I am following this tutorial as a reference: here and I am stuck at point no. 4
I am using android studio and not eclipse(as per this tutorial) so was wondering where to add the .helper package in android studio in order to add AlertDialogManager.java file in it.
I am a newbie in android so any help is appreciated. Thanks!!

You can create a package by right clicking your source directory, or any of its existing packages and selecting New > Package. Then inside that new package, you can right click and select New > Java Class to create your new class.
Step 2 of your link explains the same process.

At the left side you can see two options: app and gradle script. Double Click on app
Then double click on java.
Now there are two packages having youe app's package name.One package have android test in bracket.Right click on package which is not android test and select New-->package. Window will open, write name and press enter.

Related

Can I transfer Java code from Eclipse to Andriodstudio? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed last month.
Improve this question
I have developed a game with Java in Eclipse, I would now like to take this 1 to 1 and make it into an app, how can I do this? Is that possible? Can I transfer this to Andriod Studio?
I donĀ“t know how i could make this. Do you know a video or an intruduction?
The android JAVA is kinda tricky. It violates the Java principle of Write Once Run Anywhere
To transfer any java project to android, it is best to:
Separate your Java code that handle UI from the one that handles the logique (its even better to wisely organize the project into packages
create a new blank android project
copy the logique Java code/classes to java resource folder
Convert the UI Java code/classes into android activities

cannot connect android to firebase [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am trying to connect my android app to firebase. In android studio when i click the button "connect to firebase" ,the loading menu came.. and no action still. I waited for 15 minutes,it is still loading . As I am new to this ,I don't know how to connect it. Can you what's the problem in this?. I've checked my internet also,it is working properly when i browse.
In the last update, when you click on the contact button the download appears, you must go to the official website of Firebase and click on Add Project and it will appear to you as shown in the picture
You choose the project name and add SHA1

Java vs JavaFx vs Android SDK in Intellij Idea [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
How should I choose among these buttons: Java vs JavaFx vs Android SDK in Intellij Idea start up? What are the difference among them? Can you guys explain to me? And if I intend to build an Android application, can I select the Java button? Pictures are shown as below...
How to choose?
If you want to create a Android projet, you need to use the Android button. This will setup all the requirements for the Android project to run on a mobile device.
The Java button creates a simple Java project unrelated to the Android framework.
JavaFX is a library to make desktop GUI. Pressing this button will setup a generate some template files ready to program with JavaFX.
As your image points out, you are about to create a new project. If you intend to create an Android project, then just click on the Android button, the IDE will create a basic project structure for you.

how to manipulate android libraries? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a library that I got it from github and I wanna make changes in some of the methods and layouts.how can I do it?
also I should say my workplace is AndroidStudio and use Gradle for adding library to my project.
Is there a way to manipulate gradle libraries?!
There are 2 solutions for these:-
u can download the .zip of the library modify it and import as a module in android studio project
clone the repository ,modify it and then upload it mavencentral so that u can use as dependency in studio or download .zip after modifying it and import as android studio project
If you use any function related with that library in your project you can access the specific class using Control + Left click on the function and go any deep you need. Then you can make it there the local modificacion of the library.
It is also not so recomended to make major changes.

What is the best way to make a java class library in Android with Eclipse? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I wonder, What is the best way to make a java class library in Android with Eclipse?. I know if I have done well.
I created an Android project and indicated that a library project. And without creating any activities.
Then I think my classes.
I create a folder called "jar"
Exporto classes to jar and keep in the "jar" folder.
In the projects that I want to add I add this jar as external jar.
This is what I do but I honestly do not know if it is right. The idea is to create general classes and be able to share and maintain it properly for other projects.
The general idea with a library project is you create classes within it. Then you reference them via your main projects manifest.
Add the library project in the main project settings and you will have general classes that you can share to any project.
I assume this is what you are looking for based on your post.
Edit
Here is how to do it:
1) Set project to be library (you have said you have done this).
2) Put your classes in your library project. (So you can call them from other projects).
3) Go to the main project and right click on it, select Android from the settings. This is where you turned your library project, into a library project.
4) Anyway, at the bottom click add.
5) In the manifest, create and activity reference to a class in the library project.
6) So if you are trying to get MainActivity you call com.library.project.package.MainActivity
Now you will have the MainActivity viewing able if you ran the project.

Categories