Quantcast
Channel: Android
Viewing all 21933 articles
Browse latest View live

Writing to SD card on Android

$
0
0
What is the proper way of writing to the SD card on an Android device? I simply cannot get this working.
I have set Write Access in the Player Settings to "External (SDCard)" but Application.persistentDataPath returns "/mnt/sdcard/Android/data/com.x.x/files" which is the internal storage.

What is the universal solution for obtaining the correct path for the SD card on Android?

Android Build Crashes on Start: Didn't find class "com.facebook.FacebookContentProvider"

$
0
0
Using Unity 2017.1.2f1, I built my app for Android. Build completed successfully. I used "Build & Run", which loaded it onto the Android device I have attached to my PC via USB.

When the app starts on my Android device, it says, "Unfortunately, Bingo has stopped."

Looking at the logcat, I see this:

E/AndroidRuntime(24085): FATAL EXCEPTION: main
E/AndroidRuntime(24085): Process: com.darrensmith.net.bingo, PID: 24085
E/AndroidRuntime(24085): java.lang.RuntimeException: Unable to get...

Android Build Crashes on Start: Didn't find class "com.facebook.FacebookContentProvider"

"App signing by Google Play" works well with Unity?

$
0
0
Does Google "App signing by Google Play" work well with Unity? Is it as simple as adding some keys from Google to my keystore, or is it more convoluted? Anyone who tried, please share your experience.

Constant Geolocation issue - Allview P6 Lite

$
0
0
Hi everyone i have a very strange issue on this device.
When i try to retrieve the geolocation coords in this phone, i always have the same error

Code (CSharp):
  1. //The result is always this
  2.  
  3. Input.location.status == LocationServiceStatus.Failed
On other phones there isn't this kind of problems at the moment but I don't know how to explain why in this case isn't working.
I've thought that the phone itself could have some GPS issues but other apps, like Google Maps retrieves the coords...

Constant Geolocation issue - Allview P6 Lite

Google Play Services not working?

$
0
0
I have google play services setup in my dev console and inside my game. When I call the login on start up it shows the Google Play loging screen then closes after trying to connect as in it fails to connect? Is there a reason for this?

I have internet and I have google play services on my phone but it doesnt seem to want to work for me..

Can someone that is really good with setting up play services contact me?

Google play Game Services Not Working

Trying to set up the Android Development Environment to work with Unity 2018.1.2f1 (64-bit)

$
0
0
Hello guys,

I am getting ready to port an iPhone game to Android. I am using Unity 2018.1.2f1 (64-bit). The problem is that the Android SDK tools is suppose to have a "android.bat" file inside the "tools" folder but it doesn't. Also when I double click on "android" file inside the "tools" folder, a black screen flashes for less than a second and then disappear. Online all the google searches take me to older version of the steps to set the development environment.

So please does anyone...

Trying to set up the Android Development Environment to work with Unity 2018.1.2f1 (64-bit)

Still "Target Android SDK of 24 not installed" after it had been installed by Android Studio setting


Alternatives to Google Play Game Services

$
0
0
Hi all,

After much frustration with Google Play Game Services I am beginning to wonder whether the implementation is worth the headache!

So the setup is basic; authenticate through GPG, pass auth token to GameSparks which manages products, saves etc. I am basically only using for achivements and Leaderboard functions and a quick way to authenticate without needing users to complete any username / password forms.

All implemented and working around 6 months ago but constantly dogged with...

Alternatives to Google Play Game Services

UnityWebRequest Android: java.io.IOException: unexpected end of stream on Connection

$
0
0
Hello guys,

I have a project where I communicate with some server over UnityWebRequest. In the editor everything works fine, but when I build it for Android and run it on my device I get an IOException sometimes while trying to send a web request. The exact error is as follows:
UnityWebRequest Android: java.io.IOException: unexpected end of stream on Connection

Anyone know if Unity supports Android 8 / Android O / Api 26 in 5.6.2?

$
0
0
Hey all,

Does anyone know if there's any reason to 'not' build against the latest SDK, any known issues? I can't spot any mention of Android 8 being specifically supported in Unity 5.6.2, thanks!

crash on “libunity.so AndroidGraphics::ApplyPendingWindowChanges”

$
0
0
My App reports some crash like:
1 #00 pc 005e9ef8 libunity.so AndroidGraphics::ApplyPendingWindowChanges() [armeabi-v7a]
2 #01 pc 005f5b90 libunity.so nativeFocusChanged(_JNIEnv*, _jobject*, bool) [armeabi-v7a]
3 #02 pc 00b949e3 /data/app/com.ggmobile.cn.gg2-1/oat/arm/base.odex (oatexec+3561955) [armeabi]
4 java:
5 com.unity3d.player.UnityPlayer.b(Unknown Source)
6 com.unity3d.player.UnityPlayer$4.run(Unknown Source)
7 com.unity3d.player.UnityPlayer.executeGLThreadJobs(Unknown Source)
8...

crash on “libunity.so AndroidGraphics::ApplyPendingWindowChanges”

Touch: detect if single touch or wipe

$
0
0
Hello together,
I am trying to develop an android app with the following functionality:
1) single tap:
select or create object (this works fine)
2) wipe:
move selected object < Here is my problem

My code looks like this:

Code (CSharp):
  1.  
  2.             if (touch.phase == TouchPhase.Began)
  3.             {
  4. // do anything with a single touch
  5. }
  6.  
  7.                 if (touch.phase == TouchPhase.Moved)
  8.                 {
  9. // move the object
  10. //This does`nt work...
  11.  
  12.                 }
  13.  
What am I...

Touch: detect if single touch or wipe

Java 9 (JDK 9) support by Unity Android

$
0
0
Announcement:

If you are using JDK 9 or JDK10 and trying to build for Android in Unity - you're most likely to have your build failed, with message like "Unable to list target platforms" - "Error:Invalid command android".

We are working together with Google on fixing this issue - it requires fixes on Unity side, but also Android SDK tools need to be updated to be compatible with latest Java.

In the meanwhile, we recommend using Java 8 (JDK 8). You can have both Java...

Java 9 (JDK 9) support by Unity Android

App icon not showing on all devices.

$
0
0
I have just uploaded a new version of my app to the Google Play store, but the App Icon isn't showing up on some devices (so far the only report is from a Pixel 2 user.. who is my boss' brother so she's personally invested in getting this resolved)

When I download the app on my phone it looks fine - but on the screenshot provided to me it is showing the default Unity icon instead.

Is there a reason this would work on some devices and not others? Searching this problem I'm vaguely aware...

App icon not showing on all devices.

Unity 5.4.1f1 profiler freezing when connected to Android

$
0
0
In Unity 5.4.1f1 profiler freezes on the moments when connected to Android device.

In Unity 5.4.0f3 everything working OK.

Anybody else have this problem?

Google play Game Services Wont Login

$
0
0
I was able to make a login since yesterday.. then now after a minute of testing It suddenly not login..
any possible reason? any help.. its crazy suddenly not working :(
Op: SIGN_IN status: ERROR_NOT_AUTHORIZED

java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)

Unable to convert classes into dex format.

$
0
0
Hi Guys need your help i got this error:

CommandInvokationFailure: Unable to convert classes into dex format.
C:/Program Files/Java/jdk1.8.0_152\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/xxx/AppData/Local/Android/Sdk\tools" -Dfile.encoding=UTF8 -jar "L:\Software\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

stderr[

trouble writing output: Too many field references to fit in one dex file: 65978; max is 65536.

TY

App crash on LineageOS 15.1

$
0
0
Hello guys, i have really strange bug/problem.

I have Unity3d 2018.1 and I create some app. When I try to test it on my device which is Xiaomi Redmi Note 3 PRO with LineageOS 15.1 (Android 8.1), my app crash on launch. When I try to test it on different mobile phone (Galaxy S8 - Android 8.0), it works without problem.

My friend create same app on Unity 5.3.4 and it works on my phone.

So, I want to ask if Unity3d 2018.1 has some kind of bug with Android 8.1 or where is problem. Its really...

App crash on LineageOS 15.1
Viewing all 21933 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>