So I have a project for school, and they have not taught us android studio in the least and I have little experience with Javascript. I have looked at countless YouTube tutorials trying to figure my way out.
The project requires me to develop an android application that communicates with an ELM327 adapter. I am allowed to use open source software. I would like to take this: https://github.com/pires/android-obd-reader
and improve the layout as well as add some additional features such as live graph plotting and live gauges.
The first thing I'd like to do is change the layout to a tabbed layout rather than the layout the app currently has. Can anyone assist me in the best possible way to begin doing this? I am reading as much as I can but seem to be making no progress.
Related
I am fairly new to the Android Development. I am just learning all about it but thanks to my web programming background it is being really fast.
I have a question about webviews. When I have a simple component (like a chart) but hard to draw with Java I am building it with HTML and CSS and using it as a webview.
My question can look like opinion based but I am asking this in terms of performance.
I am wondering, how is having couple of simple webviews affects performance? I know that there is libraries almost for everything but importing a big library for a simple chart or something else seems like an overkill to me when I can make it with ~50 lines of HTML and CSS code.
Which one is more powerful? WebView or importing libraries for everything?
I guess importing libraries are much better for performance because those are you know stored locally whereas mostly web-views are very slow and unresponsive but if you don't have technical skills to work with library you can go with webview but in future try to use any library or you can take help of youtube there are lots of videos which teach you how to do
Maybe video like this
https://www.youtube.com/watch?v=qWBA2ikLJjU
I'm developing a flow chart drawing tool for Android and even though it has been a month I still couldn't find a good, reliable graphics library to help me develop this app.
Here are a few things I tried:
1-) Android views. Since a flowchart would naturally include lots and lots of shapes, this option wasn't satisfactory in terms of performance. Plus, I didn't even know how to draw arrows.
2-) Canvas. It was quite good when it comes to performance but canvas does nothing more than coloring pixels, so I can't go back to editing them after placing a shape on the screen.
3-) Now I'm working on Qt to see if I can achieve my goals and so far it seems as though it's very doable but using a cross-platform development software for only Android doesn't make a lot of sense.
4-) Libgdx and Unity are also options but using a game engine for such a lightweight app didn't seem like a very good idea to me.
Can you suggest me a good library or any other development tool?
There is https://github.com/mocircle/cidrawing library. Maybe useful for this type of task with link to https://github.com/Team-Blox/GraphView library.
Hope it helps.
I want to be able to run my Android code/app on Windows/Mac/Linux/etc. but not use an emulator, as they are slow/cumbersome.
I want a real Java SE app, but to reuse my Android code.
My idea is to make an Android emulator using Swing, read the layout files and create the widgets in Swing and map between the 2 UI event models, life cycle, and library classes.
Question is, does such a thing exist already, I googled it, but could not find anything.
Otherwise I will start an open source project for it myself. Anyone interested in helping is more than welcome.
So I created an open source project "Swingdroid" that lets you run Android apps and Java swing desktop applications.
You don't need to use an emulator or change any code. It loads Android layout files and activities and renders them using Swing.
On GitHub here,
https://github.com/BotLibre/BotLibre/tree/master/swingdroid
I totally agree with #muratgu. But, if you just want to parse Android layouts (views) xml files and render them using Java Swing, this is possible and this has already been implemented, before deciding to make your own implementation, you'd better check the wysiwyg feature of UI editor in Android Studio.
I am new to android app development. A tutorial I am following uses XML with Java. I am proficient in Java but have never worked with XML. I was thinking of using only Java for developing my first app but was wondering whether there were any disadvantages to not using XML?
Think of xml as a code for the design of your app. if you know web development, you will probably be profiecent at it. for the layout of your app, you are shown to panels. one shows the phone itself and you can manually put whatever you want into that layout, or use xml to write it out. sometimes, its more efficient to use the manual layout, which automatically writes the xml code within the xml file, or sometimes its easier to write in xml. so you should learn a little bit about it, but unless you want to code the entire design of you're app, it doesn't really matter as much as knowing java.
I would like to make/implement an widget that will show statistics for specific user at webpage (number of clicks at some links or butons, etc.). Initial idea is that user can click at some small button in corner of window and widget with his statistics will appear. That will later also be packed as Firefox plug-in.
Regarding my present searches, I found that there are couple free tools (like AWStats, Webalizer,...) that are doing similar job, but I'm not sure is it possible to customize them and implement in manner that I need. Also I was looking for Google Analytics API, but it looks like much more complex tool than I need here.
Technologies that I thought to use are GWT (Google Web Toolkit), because other parts will be written in Java and in my readings I found many thumbs up for this technology. I have to mention that I’m beginner in GWT, as well as web development, but I have experience in desktop application development, so I’m not beginner in programming.
If you need more information feel free to ask, and I’ll do my best to make my questions as clear as possible! Thank you in advance!
Nemanja