LibGdx Box2d collison not matching up with sprite

I am making a game as a project for a college class. when my main character (the tree) hits the ground, it stops short of the ground screenshot 1 and when the player lands on the little platform that gap is even bigger screenshot 2 my code for creating the body of the character and … Continue reading “LibGdx Box2d collison not matching up with sprite”

“UNAVAILABLE” gRPC failure from android client to python server

I’ve been struggling all day with the following issue with gRPC on Android when trying to make an RPC call to a python RPC server running on my machine (on the same network). My android gRPC android client compiles and runs, however, I get the following error message on the client (and silence on the … Continue reading ““UNAVAILABLE” gRPC failure from android client to python server”

load: id=gralloc != hmi->id=gralloc

I want use Material Design in my App, so I change AndroidManifest.xml just like: <?xml version=”1.0″ encoding=”utf-8″?> <manifest xmlns:android=”http://schemas.android.com/apk/res/android” package=”com.zdr.umarket” > <uses-permission android:name=”android.permission.WRITE_SETTINGS”/> <uses-permission android:name=”android.permission.WRITE_EXTERNAL_STORAGE”/> <application android:allowBackup=”true” android:icon=”@mipmap/ic_launcher” android:label=”@string/app_name” android:supportsRtl=”true” android:theme=”@android:style/Theme.Material.Light” > <activity android:name=”.MainActivity” > <intent-filter> <action android:name=”android.intent.action.MAIN” /> <category android:name=”android.intent.category.LAUNCHER” /> </intent-filter> </activity> </application> but when I running, Android Studio show: 05-07 14:33:01.478 21994-22007/com.zdr.umarket … Continue reading “load: id=gralloc != hmi->id=gralloc”

Draw a circle in the center of captured image in imageview android

I have to draw the circle in center of the captured image in image view and saved in DB. First capture the image and crop the image and draw circle in center of the image and display in image view and saved in DB. circle is not drawnn. I tried so many methodologies. please help … Continue reading “Draw a circle in the center of captured image in imageview android”

Sending encrypted JSON with RSA from Spring to Android by REST

Firstly sorry for my english ;] I have to encrypt a JSON object with RSA encryption in WebService Spring, and send it by REST to android and decrypt it. The problem is that after I’ve received in android an encrypted String, it is not the same like this which was sent from WebService. Sent encrypted … Continue reading “Sending encrypted JSON with RSA from Spring to Android by REST”

Nested / normal for loops in AsyncTask

I’ve been testing some asynctasks in android. But I found some illogical outcomes on these codes: int a1Sum = 0; int a2Sum = 0; long a1Time = 0; long a2Time = 0; private class Async1 extends AsyncTask<Void, Void, String> { protected void onPreExecute() { a1Time = System.currentTimeMillis(); } protected String doInBackground(Void… arg0) { for (int … Continue reading “Nested / normal for loops in AsyncTask”

How to record a longer touch for a higher jump on libgdx

So in my game I want to have it so the longer someone holds down on the screen the higher my character jumps. However I don’t know how to check if someone is holding down on the screen. My current attempt is to do this: And run it every frame in the update method public … Continue reading “How to record a longer touch for a higher jump on libgdx”