Hi All,
Just a starting programmer and I am new to Android Studio and Java. I'm having a difficult time understanding how to import the new android.hardware.camera2 API. In my main.java file, i used import android.hardware.camera2.CameraManager and CameraDevice, but they appear to be greyed out which I think means I'm implementing this all wrong. I found the API through the developer.adroid.com and I want to use it for my app. I have the latest API 21 and all the prerequisites in the screen shot attached. If anyone can point me to the right direction that would be much appreciated! Thanks!
charlieTang0 said:
Hi All,
Just a starting programmer and I am new to Android Studio and Java. I'm having a difficult time understanding how to import the new android.hardware.camera2 API. In my main.java file, i used import android.hardware.camera2.CameraManager and CameraDevice, but they appear to be greyed out which I think means I'm implementing this all wrong.
Click to expand...
Click to collapse
I'm not positive, but I think it will stay grey until you actually call the imported package into use in your code. It is grey to show you imported a package but you are currently not using it
Related
Just thought I'd double check this before I buy, but it is possible to write applications for this phone using java? Soz if its a stupid question but thats kinda what am needing lol.
No, it's not.
However it should be possible to use the android SDK which sadly kinda looks like Java.
http://developer.android.com/sdk/1.5_r3/index.html
Thanks for the reply. Thats a bit guttin, I thought that android supported java (or a mobile version of java). To be honest I'm just really lazy and dont want to learn a new language lol.
Do you know if android does support java and its just this phone that doesnt? Or is this the case with all android phones?
Irregular Programming said:
No, it's not.
However it should be possible to use the android SDK which sadly kinda looks like Java.
http://developer.android.com/sdk/1.5_r3/index.html
Click to expand...
Click to collapse
What? It's probably not a good idea to go around spouting misinformation like this. "Irregular Programming" indeed.
Perhaps you may like to read through: http://developer.android.com/guide/basics/what-is-android.html#applications
To ExO_PoLiTiX: you won't need to learn a new language, you'll just need to be aware of how the Dalvik (basically the java virtual machine Android runs) system works, and what you do/don't have access to.
My advice would be to read the page I linked above and then go down through all the pages in the side menu. There are also a whole bunch of example projects available for download from that site, all of which can be imported directly into eclipse, provided you've installed the SDK and ADT plugin.
If you already know java you'll find Android development will be a breeze.
iammorris said:
To ExO_PoLiTiX: you won't need to learn a new language, you'll just need to be aware of how the Dalvik (basically the java virtual machine Android runs) system works, and what you do/don't have access to.
My advice would be to read the page I linked above and then go down through all the pages in the side menu. There are also a whole bunch of example projects available for download from that site, all of which can be imported directly into eclipse, provided you've installed the SDK and ADT plugin.
If you already know java you'll find Android development will be a breeze.
Click to expand...
Click to collapse
you dont know how good that is to hear! lol I will have a look through the pages you suggested. Thanks for that. I plan on writing a game which uses the network features of the phone alot. My only experience of creating games is through java so thats why I wanted to use android =-)
Thanks again
iammorris said:
What? It's probably not a good idea to go around spouting misinformation like this. "Irregular Programming" indeed.
Perhaps you may like to read through: http://developer.android.com/guide/basics/what-is-android.html#applications
To ExO_PoLiTiX: you won't need to learn a new language, you'll just need to be aware of how the Dalvik (basically the java virtual machine Android runs) system works, and what you do/don't have access to.
My advice would be to read the page I linked above and then go down through all the pages in the side menu. There are also a whole bunch of example projects available for download from that site, all of which can be imported directly into eclipse, provided you've installed the SDK and ADT plugin.
If you already know java you'll find Android development will be a breeze.
Click to expand...
Click to collapse
Yup, I was wrong.
I was sure I've read about android using its own brand "Java-lookalike" language.
blahzay blah
Irregular Programming said:
Yup, I was wrong.
I was sure I've read about android using its own brand "Java-lookalike" language.
Click to expand...
Click to collapse
You can actually import the main java (e.g. javamail) classes into your projects so android runs almost all of Java.
Follow this link to help you create iphone apps as easy as possible. http://6a7d57q12b9gmv46x4n7rh9m52.hop.clickbank.net/?tid=XDA
Follow this link to help you create iphone apps as easy as possible. http://6fc2862--76bqnb8pfz3nbugtd.hop.clickbank.net/?tid=XDA
Hey there, I'm kinda new to android and coding in general, but I was wondering if someone could answer a few questions I had about the android NDK, preferably by someone that has actually used it.
1. How big of a performance boost could I get by using the NDK with a program that is currently runs slow due to a large amount of math processed each loop?
2. How hard is it to transfer data between the java and C/C++ code?
3. Is it possible to get input within the C++ code from the touch screen or keyboard?
Thanks, and sorry if this is the wrong thread for this, I wasn't sure where to put it.
enderx1 said:
Hey there, I'm kinda new to android and coding in general, but I was wondering if someone could answer a few questions I had about the android NDK, preferably by someone that has actually used it.
1. How big of a performance boost could I get by using the NDK with a program that is currently runs slow due to a large amount of math processed each loop?
2. How hard is it to transfer data between the java and C/C++ code?
3. Is it possible to get input within the C++ code from the touch screen or keyboard?
Thanks, and sorry if this is the wrong thread for this, I wasn't sure where to put it.
Click to expand...
Click to collapse
i havent written anything with android yet but i have done java and c++ for a bit so i can tell you that for the most part, translating from java to c++ shouldn't be TOO difficult IMO
Guys I am new to Windows Phone development as i have just started, so please forgive my mistakes.
I am planning to develop an app, simple app for viewing time table of my classes.
My couching classes regularly updates the time table on their website. And the link can be found here
http://www.professionalacademyca.in/time_table.php
source code
http://pastebin.com/6yUH1Q8t
Questions
1) How can I compile this app?
2) Is this possible or not?
3) if yes, than how?
please give suggestions
DBZo07 said:
Guys I am new to Windows Phone development as i have just started, so please forgive my mistakes.
I am planning to develop an app, simple app for viewing time table of my classes.
My couching classes regularly updates the time table on their website. And the link can be found here
http://www.professionalacademyca.in/time_table.php
source code
http://pastebin.com/6yUH1Q8t
Questions
1) How can I compile this app?
2) Is this possible or not?
3) if yes, than how?
please give suggestions
Click to expand...
Click to collapse
1. You will have to work with microsoft visual studio and windows phone sdk.
2. Yes it is possible
3. You can use htmlagilitypack for parsing the html. This is a very nice tutorial for that.
Ofcourse you should be familiar with programming in C# and XAML. You can easily find tutorials for these.
You could also use the AppStudio, which is an online environment for creating simple apps. It's way less powerful than Visual Studio + WP8 SDK, but it doesn't require a download and it's reportedly very easy to use (I'm used to VS, so AppStudio is no big deal to me, but you may find it more your speed).
Hello!
As some could see in my other topic, I'm learning about android studio to make an app with some maths to help me with my job.
Well, in one specific case, I need to search and get values in a table, based in a reference. Its basically like the VLOOKUP/HLOOKUP function in Excel.
My doubt is the ideal way of doing that, is there any kind of table inside the android studio, like a container or something ? Or I should use a data base ?
Below is the same math, on excel, that is the base that I'm creating the app for android, in this case is a simple table, but in some cases are many values:
The attachment 001.png is the list where I select the materials Standard, and then I get the 2 values σt and σe from the table.
The attachment 002.png is the table I am looking for the values:
Sorry about this kind of question, but I'm just reading a lot, looking for tips leading me to an ideal way of doing it, but its a little hard in the beginning.
Thanks in advanced.
Barata
Conversion
Hey from your question , I undestood that you are looking for ready table to give values.
As i see you are getting values in excel.
1) There is no direct conversion table available into android studio.
2) You can use library project import if you require familiar conversion tables.
3) If in excel you make your own conversion method . apply same into Anddroid studio.
What more , share your method or query breif.
Hello,
Thanks for replying satyampv,
Actually my doubt isnt about conversion, I said about excel because I'm used to work with it. And its so easy to use vlookup there that I was wondering if would have something like it on android studio .
If I have to put some huge table in a database here on android, it's ok, I accepted that I would have to do it. But the doubt is if I really have to use a database, or if exists other way to look up for values in a table. Like you said "2) You can use library project import if you require familiar conversion tables.", is that an alternative for a database ?
Or should I just forget those "normal tables" from my mind and use SQL lite ? Because is just to look for values, just read, I don't need to write neither do any changes in the table after it's created.
Thanks in advanced, again.
barata
Hello everybody, happy to have found this forum.
I am a student and have studied 3 years Java in highschool (pretty good level) and studying for about 2 C/C++ at University, am good with PHP and databases and I know some CMS pretty well. So intermediate programming skills, hoping to improve them. I'm from Italy so excuse my bad grammar
I want to create this app for some friends of mine and I want it to be connected to a database and that database will be displayed online on a website. Basic data categorized and if possible displayed differently for different zones. So say you're from Japan and access a category from the website: firstly it asks for location access and then displays to you the "nearest" data available (if you'd want you could access data from other locations). This should have minimum costs, talking website/database.
So what I am asking, how hard this can be? I have never created a project in Android Studio, just worked with Netbeans ,CodeBlocks and Eclipse.
Is there a way to quickly learn how to save the data from an app to a database ? The other way I guess I'm able to do it.
If any of you is so kindhearted to help me find some good tutorials.
Thanks.
It depends on your skill, based on your skill set it will be easy for you.
All you need is create an API for your app so it can exchange data to your web server. You can use a PHP Framework for your API to make your life easy.
On Android part you can use GSON for converting JSON data to Java Object and vice versa.
mariozawa said:
It depends on your skill, based on your skill set it will be easy for you.
All you need is create an API for your app so it can exchange data to your web server. You can use a PHP Framework for your API to make your life easy.
On Android part you can use GSON for converting JSON data to Java Object and vice versa.
Click to expand...
Click to collapse
hello kababayan.. do you specialized on themes? for what devices?
ioubuntu said:
Hello everybody, happy to have found this forum.
I am a student and have studied 3 years Java in highschool (pretty good level) and studying for about 2 C/C++ at University, am good with PHP and databases and I know some CMS pretty well. So intermediate programming skills, hoping to improve them. I'm from Italy so excuse my bad grammar
I want to create this app for some friends of mine and I want it to be connected to a database and that database will be displayed online on a website. Basic data categorized and if possible displayed differently for different zones. So say you're from Japan and access a category from the website: firstly it asks for location access and then displays to you the "nearest" data available (if you'd want you could access data from other locations). This should have minimum costs, talking website/database.
So what I am asking, how hard this can be? I have never created a project in Android Studio, just worked with Netbeans ,CodeBlocks and Eclipse.
Is there a way to quickly learn how to save the data from an app to a database ? The other way I guess I'm able to do it.
If any of you is so kindhearted to help me find some good tutorials.
Thanks.
Click to expand...
Click to collapse
I guess it can be created and to save your time try to build it using a mobile app builder then connecting it to other source would be easier
All the best