Everything is working but I have one serious problem. For the login I need to send data to a database. To connect with it I have to add user name and user password to my sketch. I read that everyone can view my source code and so is able to read out the database access information. And with this it's possible to read user information like user names and passwords. First question: Is it really possible to view the source code?
Alternatively I could send the data from my sketch to a php file, but I don't know how to do this. Opening a link to the php file and get the information with GET from the URL is one possibility, but how to open the link? I don't want to open the link in a new and blank browser tab, this would be stupid (I guess). Can I open a link without really opening it in a new browser tab? And would this be safe?
I'm going to develop a software for computers, not for android. It has to be for free and I want to earn money with ads. The problem is that everything like AdSense or admob only works for websites or mobile phones. Is there any option to include one of these into a processing software for computers? It's no option to transform the software into a website.
If there is no possibility with such services, I guess I have to search the ads by myself. Does anybody have experience with this? Of course I could place an "ad" in my software for making ads there. But that's probably not very promising. Another way would be to work with a mediation office, but I think they take too much money for themselves :-)
I have no experience at all with this, so I'm very pleased for help.
I'm trying to develop my first android app, it's a simply game. In this game there are fields, which on each smartphone should have the same size. But is this possible? I mean, they all have different screen sizes and different pixel sizes, haven't they? So I should know how big a pixel is, in inch/cm. Is it possible to get this?
Hello together I'm writing a 2D football game and I've a question about redrawing. At the moment the pc draws the hole screen new with each time he goes through the void draw(). The problem is that he doesn't need any time the same time and so the players don't have the same speed all the time. And I changed the code only a little bit one time and then he needed only about half the time for one draw then bevor. But my code is only about 500 lines long and I don't understand why that little change of code can make such a big difference in the speed of the pc. Because my pc is not 50 years old and he can play the newest games without a problem but with my little programm he seems to have one :-) Do you know why this is? Can I avoid this with including the time or what? And is there a possibility to move the players without redrawing the hole screen all the time?