Android is an operating system for mobile devices developed and maintained by Google, Inc. This tag should contain specific programming questions about Android.
0
votes
0answers
20 views
is it enough knowing c# to make android and ios games with unity game engine? [on hold]
Is it enough knowing c# to make android and I-phone games with unity game engine or should i also learn both platforms native language (java / objective c or swift) ?
0
votes
1answer
32 views
libgdx - Trying to load ttf font using asset manager
I tried to load a ttf font using an AssetManager like this:
FreetypeFontLoader.FreeTypeFontLoaderParameter freeTypeFontLoaderParameter = new FreetypeFontLoader.FreeTypeFontLoaderParameter();
...
0
votes
0answers
21 views
libgdx BitmapFont setColor works only the first time
Here's my code:
game.assetManager.get("fonts/zrnic40.fnt", BitmapFont.class).setColor(.5f, .5f, .5f, 1);
game.assetManager.get("fonts/zrnic40.fnt", BitmapFont.class).draw(game.batch, text, x, y);
...
0
votes
1answer
30 views
Is attribution sufficient for CC BY-SA 3.0-licenced music in a commercial mobile game?
I am in the process of developing a mobile game that I intend to sell on Google Play. I want to include a music licensed as:
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
If I attribute the ...
1
vote
0answers
12 views
Android Drag and drop problem
Im having major problem (all of a sudden, it worked before :-)) with drag and drop for my jig-saw puzzle app.
My layout is in 2 relative layouts 1 for the puzzle pieces and 1 for the complete image ...
0
votes
0answers
17 views
Android libgdx - Sound plays only on desktop
I made a simple game in Android Studio 2.2.2 using libgdx. Currently, I use one background loop music and two sounds. When I run the game on Desktop Application everything works just fine. But when I ...
0
votes
1answer
29 views
Android: How to prevent player(drag/drop touch input) from moving through non-moving objects?
My player is moved around the screen by touch user input. The user touches the character and drags him to another position. (implemented in touchevent: actionmove and actiondown). I want the touch-...
-1
votes
0answers
46 views
List of strategy games that suitable for Real commanders [closed]
I want to start developing a strategy game. But First, I'm looking for strategy games that suitable for improving decision of Real Military Commanders in real wars; and Data-approach is more important ...
0
votes
0answers
38 views
Unpleasant periodic stutter in game loop
The game is running smoothly otherwise. However in certain periods the game stutters. So it goes from smooth...stutter...smooth and so on. The intervall between these is like 2-3 seconds on average (...
0
votes
1answer
54 views
What is a good approach to dynamically change actor Position?
In my card game there are 2 players with each player having a hand(a ListArray of of Cards.In this case its handPlayer1).
The Card class extends Actor.This is the code I use to deal the cards to the ...
1
vote
1answer
30 views
Libgdx game crashes on some devices without any Errors / Logs
I'm making a similar game to the talking tom game where a character is animated on the screen and talks back.
I have about 100 transparent PNGs for each animation.
There are 10 Animations.
Each PNG ...
0
votes
0answers
15 views
How to merge Unity project with an Android Studio project?
I am creating an application that deals with activities and fragments. I have a Unity project which displays 360 photo with gvr. I want to open the Unity project in one of the fragments. Any ideas ...
1
vote
1answer
21 views
Cannot use my objects method when accessing from Stage LibGDX
I have a class Card with the method setOwner. I have set up my touch input to use a hitActor to identify touches by getting the Actor's name like so :
public boolean touchDown(int screenX, int ...
0
votes
0answers
28 views
Bounding box (rectangle/polygon) for custom shapes and collision detection
I am a beginner in game development. I am using the libGDX with Box2D and struggling to come up with a solution for the following problem.:
How can I have a bounding rectangle/polygon for custom ...
0
votes
0answers
16 views
Can I use the native android camera in unity game?
This has probably been asked before, but is there an asset for unity to use camera in an android phone/tablet and use it within a game, maybe create something similar to MSQRD? Need portrait layout, ...
1
vote
2answers
30 views
Upgrades in game with leaderboards? [closed]
I am working on an endless mobile game right now and I'm currently in the designing phase. Most (or all) mobile games especially endless ones now have leaderboards and a player's position in the board ...
3
votes
0answers
31 views
Build includes sprite packer atlas and its original textures
I use Unity's Sprite Packer, it's working great. However, when I looked at the build report (in the Editor.log) it turns out that the build often includes the generated atlas texture and its original ...
0
votes
0answers
8 views
libGDX' parallel of Android's Region
I'm an Android programmer trying to migrate to libGDX.
In Android I'm used to the Region class, which allows the creation of arbitrary shapes, including union, intersection and difference operations ...
0
votes
0answers
25 views
Disable texture compression in Unity when building for Android?
I'm implementing a 360 image viewer in Unity for GoogleVR/Cardboard and the Android texture compression is ruining the image quality. The images are 2D sprite textures projected onto the inside of a ...
0
votes
1answer
52 views
How do I load 100+, 480*800, 30KB PNGs into a frame by frame animation on Android without OOMs?
I'm an Android dev who's trying to get into game dev.
As the title says, I'm trying to load a hundred PNGs as an animation, fullscreen on Android, but no matter what I try, I always getting out of ...
-3
votes
0answers
31 views
How to publish an Android app in Google?
I had a problem regarding publishing an Android app with purchases. My country doesn't support Google payment. How could I solve this problem?
0
votes
2answers
29 views
3D model gets partially invisible when large, Vuforia and Unity
I'd appreciate if someone could advise on my problem.
I use one on-device image target and a single 3D model. I use Unity extension and then export the scene to Android project. I also use Extended ...
0
votes
0answers
10 views
UniWebView does not work on Android
I'm finding with uniwebview on Android it often does not load the page correctly.
What I'm doing is isntantiating a prefab with the uniwebview script attached to it, assigning it various values then ...
0
votes
0answers
21 views
LibGDX log: MuxOMX ctor
I'm developing a game in Java for Android using LibGDX with Android Studio. I'm using the AssetsManager class and I've noticed weird log when finishLoading() is finished:
10-17 22:15:17.108 31943-...
-1
votes
0answers
28 views
Complex shapes for bodies with libgdx
I want to use add a body for a complex image with Libgdx and followed this tutorial: https://www.codeandweb.com/texturepacker/tutorials/libgdx-physics
but that doesn't work because of this error:
...
1
vote
1answer
26 views
Google Play Services Save Game to store single long?
I want to implement a Google Leaderboard in my game. The score I will send to the leaderboard is a single long number.
Now I want to make sure that the user's progress won't get lost when ...
0
votes
0answers
18 views
How I can check what type of textures available in current machine?
can someone help to me with this question. I wanna check is specified type of texture available on device. Should I check every type "by my hand", or I can automatically take it from somewhere?
0
votes
0answers
25 views
Libgdx Actor doesn't perform action when called from Array
The Card actor does the action when it is done like this:
MoveAction moveAction = new MoveToAction();
moveAction.setPosition(TABLE_WIDTH/2, TABLE_HEIGHT/2);
moveAction.setDuration(10f);
Card card = ...
0
votes
1answer
81 views
Is it possible to use C++ in SDL for Android?
I have successfully compiled SDL for Android using the example, which uses C. Is it possible to use C++ too?
I am trying to port a C++ game which uses SDL 2 to Android.
If it is possible, how can I ...
0
votes
1answer
58 views
Only 20fps framerate in libgdx Android with ~190 Actors being drawn
I'm getting bad frame rates while developing a game on Android. I have been developing on desktop too and only have the issues on Android. I am testing with a Nexus 6 (can't imagine how badly it ...
0
votes
0answers
28 views
Is the touch position on Android and iOS the same?
There is a small difference in the touch position detected on my current Android device in reference to all the iOS devices I’ve tested so far. It is noticeable in the way that I need to touch the ...
0
votes
2answers
25 views
LibGDX - problem with AssetLoader
can someone tell me where i make a mistake? i want to use AssetLoader to load textures but.... always have the same error. I thought that problem is with my game so I made new project but I still have ...
0
votes
4answers
71 views
Deployed Android APK file size was more tha expected when developed in Unity
I developed a game, and build it as an Android APK file. I was not using any assets, only a UI panel and a UI Button. I thought the APK file woul be 3 MB, but it was 18MB.
On the Google Play store, ...
-3
votes
1answer
67 views
Getting a game maker android error
When I attempt to build my project, I get the following error. Can anyone help?
A problem occurred configuring project ':com.companyname.ReignOfDystopia'.
> failed to find target with hash ...
1
vote
2answers
68 views
LibGDX - question about game UI
I have question about game UI. Im using only one Screen class in my game and for different "screens" Im using gamestates. My question is how to set stage with buttons (play button, pause button, ...
1
vote
1answer
60 views
Libgdx/Android/2D RPG game: optimizing time consuming when switching from Map to Map
I am completely new in game developing and even more new in the use of Libgdx. So far I have successfully done great thing on my game project thanks to all the advices I could have gathered on this ...
1
vote
1answer
54 views
How to create and choose sprite sheet for different mobile screen resolution in Unity
Background
We’re working on a 2D mobile game. We want to publish the game on all apple devices which at least support iOS 7 and to all android devices which at least support Android 4 OS. These ...
-2
votes
1answer
42 views
Mobile OnMouseDown
I have a scene in my game with a bunch of colliders2D. The game is made for android. I want to be able to click on some colliders2D and execute some functions there. So I started with OnMouseDown on ...
2
votes
0answers
80 views
Speech recognition in Unity 5 for Android
I've been working on a game in which the player have to say particular words to perform various tasks. For example, if the player says "boat", a boat pops up in the game. The game I'm building is ...
0
votes
0answers
89 views
I can't add an android plugin to unity
I have spent a lot of time on this, everything seems to be building correctly, but I can't get my plugin to work. Here is what I made so far :
Here is how my hierarchy looks like in Unity :
Classes ...
0
votes
0answers
40 views
Determine Wifi adapter address on Android with Unity/C#
This piece of (crude) code is able to find my Wifi NetworkInterface on my Windows 7 x64:
class WifiAddrTest {
IPAddress wifi_ipv4;
void getIP() {
foreach (NetworkInterface netif in ...
1
vote
0answers
17 views
Can we access the internal array of a Android Bitmap?
Does an Android Bitmap function similar to a BufferedImage? When you get the internal pixel buffer as an int[] or as a byte[] and update the values inside them, the image changes. Is that the same ...
1
vote
3answers
576 views
Better Way to Detect Line Cross
I am developing a very simple game in libGDX for android devices. Simply, the game is a character who runs and jumps over obstacles, every time the character jumps over one of said obstacles, a ...
0
votes
1answer
69 views
How to make WASD equivalent input on mobile in Unity?
I'm familiar with Unity 3d, but I haven't made phone games before.
I have already looked into the input manager to no evail. The problem is that I don't know how to make a WASD-like input on a phone ...
1
vote
2answers
106 views
If I want to create game for mobile and tablet on android and ios, which aspect ratio or screen resolution should I use?
Now my game is currently use 3:4 aspect ratio ,which is 480*640
, so my game has the letterbox (I don't like stretch) on my android mobile and my friend mobile. I don't like letterbox, so I have just ...
1
vote
1answer
37 views
How to detect a swipe and make the player GO rotate towards the end of the touch Android Unity
I am making a game where the user can swipe on the screen and the player gameobject will turn towards the end of the swipe.
I am using the following to detect the end of the swipe:
if (...
0
votes
1answer
59 views
Mobile Game: Google Play no supported dev country and capitalization alternatives (no policies violation or suspicious behavior)?
If my country is listed as not supported as a developer country (for payments), this mean developer can upload app but no make any money with it. If I understood correctly, not even in app ads are ...
1
vote
1answer
32 views
(Unity 5) Weird Touch Behavior
In my (Google Cardboard) Android app I would like to make my camera move on Touch. That movement state should be controlled via a "switch", so when I touch the screen the camera starts to move and ...
1
vote
1answer
114 views
Performance of 8 bit / 16 bit games vs Android/iOS games! [closed]
CONTEXT
I have always been intrigued by video games - NES and SNES in particular. Now I am a 32 years old computer professional who has mostly done his coding in Java and C#. I recently found great ...
0
votes
0answers
58 views
Why is Unity deploying an old version of my game to my Android phone?
I am making a simple Android game in Unity, and then suddenly, while debugging, I hit build and run to run it on my Android phone, and it just ran the old version without the fixes. I know this for ...