I'm trying to connect Crashlytics to my LibGDX project using RoboVM iOS bindings. I followed instructions from bindings web page: downloaded jar-file, put it in libs, modified build.gradle, synced... I also added <frameworks> from robovm.xml of the binding to my robovm.xml (not sure if it's needed for my gradle configuration).
I added Crashlytics.start() method call in my IOSLauncher class:
public class IOSLauncher extends IOSApplication.Delegate {
...
#Override
public boolean didFinishLaunching(UIApplication application, UIApplicationLaunchOptions launchOptions) {
Crashlytics.start("myAPIkeyIsHere");
return super.didFinishLaunching(application, launchOptions);
}
...
}
It's a little bit different from sample because my IOSLauncher class extends IOSApplication.Delegate not UIApplicationDelegateAdapter. But I think this doesn't matter.
After that I'm trying to force crash my app. I added throw new RuntimeException() at the start of my core project. App is successfully crashing. I can see corresponding stacktrace in console but I don't get any crash logs in Crashlytics dashboard.
I searched Crashlytics knowledge base and found that XCode may hide crash information from Crashlytics. So I tried crashing my app on my iPad disconnected from my Mac but it didn't help.
I googled a lot but there is almost no information about usage of this bindings with Crashlytics. Does anybody can help me with this? How can I check that Crashlytics connected correctly to my project? May be I forget something?
P.S. Earlier I connected Crashlytics to Android backend of the same project and it works fine there.
Crashlytics does not work with roboVM at the moment, as far as I know. Here is a post with a contributor saying as much. There is also some info here where the contributors say they are not supporting mach exception handling at the moment, which crashlytics uses.
You can use Bugsense or Flurry as alternatives though.
Related
I've installed and set up Java JDK 17 as well as Android SDK (the manual way) on my Ubuntu 22.04.
From there, is it possible to develop an Android application in Java WITHOUT Android Studio ?
Developing through the command line or through a light IDE is fine by me, but there are very few guidance and information out there.
Thanks to enlighten me.
Sure you can! You'll need to type an awful lot of stuff though, that Android Studio does for you automatically:
You'll need to create gradle files to build your project, you'll need to create an Android manifest to describe your Android components and your app (permissions, themes, target SDK, etc.).
You'll need to create the code files containing your Android components (Activity, Fragment, Service, BroadcastReceiver, etc.). You'll need to create all your UI definition files in XML (layouts and other resources).
Then you can use gradle on the command line to run all the necessary preprocessors, code generators, compilers, linkers, resource builders and package builders to give you an APK which you can then install on your device for testing. And you can debug by writing lots of stuff to the logs and using adb commands to get the logcat off the device to see the log messages, exceptions and stack traces.
I am pretty new to Android and am trying to have my android app to have access to the Dropbox on the same phone. I would want to have the authorization happen on the first activity that shows up on my app.
I've tried looking at the DropBox API information on their developers site but they don't have any details on how to implement authorization (just on how to loop through files etc..not that helpful)
I have tried looking here at: https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxActivity.java#L22
But I can't even have FileThumbnailRequestHandler.java class compile since Picasso.LoadedFrom.NETWORK returns a LoadedFrom and not an integer.
I'm pretty stuck and theres not a lot of documentation online on how to implement so help would be VERYYYYY appreciated!
To use Dropbox API v2 in Android, we recommend you use the official Dropbox API v2 Java SDK:
https://github.com/dropbox/dropbox-sdk-java
There isn't a step by step tutorial for that in particular, but there's an example Android app that uses it included with the SDK, with instructions for running it:
https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android
Though, it's probably easier to just install a released version of the Dropbox SDK rather than compile it locally, as long as you don't need to make changes to the Dropbox SDK. That is, in build.gradle, replace:
implementation group: 'com.dropbox.core', name: 'dropbox-core-sdk', version: '0-SNAPSHOT', changing: true
with:
implementation 'com.dropbox.core:dropbox-core-sdk:3.1.3'
You should refer to that example app as an example of how to implement the app authorization flow, which is accomplished via OAuth 2.
Your AndroidManifest.xml should be set up as shown here:
https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/AndroidManifest.xml#L33
You start the flow by calling startOAuth2Authentication as shown here:
https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/UserActivity.java#L34
You complete the flow by calling getOAuth2Token as shown here:
https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxActivity.java#L22
Your app can store and re-use the resulting access token for that user, as the example does here:
https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxActivity.java#L25
Make sure you follow the instructions for installing the SDK. Gradle or Maven should automatically install the right versions of the dependencies for you. I just tried it and it worked for me. That is, I didn't get the Picasso compilation error you mentioned, so I suspect you have a different version of the dependency installed.
I'm currently working on a specific Android app that might not be able to be uploaded to Google play due to some commercial considerations (But will be built in our customized ROM)
And now we've found some ways to update the app without Google Play, but still those solutions will lead to a dialog that asks user to allow installing apps from unknown sources, however showing the dialog and changing the configuration might not be a favorable option for our project.
I've referred to this before
How to push updates to preinstalled apps without allowing installation from unknown sources
Unfortunately our app cannot be built as a system app, so this solution might not be helpful.
So is it possible to update a pre-installed app without Google Play and also not to be detected as unknown sources(Or not be asked by the system)? Thx
I have a problem when call ends, and finish() to current activity of conversation, app blows me, but does not show me any error, and often appears me this error:
E/TwilioConversations: [Signaling]:RESIP::TRANSPORT: Got TLS read ret=0 error=6 error:00000006:invalid library (0):OPENSSL_internal:public key routines
If someone could help me because I have a lot of time with this problem.
Do you have other 3rd-party libraries that use SSL? There may be a conflict between the Twilio Video SDK and another library.
I have also seen this resolved by ensuring that you have the latest version of the SDK installed.
However, if you can let me know any more specifics regarding your code, I'm happy to help debug further.
i'm adding facebook post button to my app (phonegap 1.0), it seems that the only method to have this working is using the plugin here:
https://github.com/jos3000/phonegap-plugins/tree/master/Android/Facebook
But it's not working for me, first i saw in the log PluginManager not found, reading the docs it seems plugins are not being loaded like that anymore.
But the intent and dialog of facebook appear when calling
window.plugins.facebook.authorize(appID, function(res){...})
I can see the facebook page being loaded but just after it finished the page automatically goes back with no response.
Anyboy has used succesfully this plugin??. actually the whole phonegap-plugin system seems to be very buggy... but i can't change the framework right now all the rest of the app is working.
At the end i managed to have it working by changing the Facebook authentication option in the java file, not using single sign on.
By the way i do NOT recommend phonegap... it seems to me the library is still full of bugs
I've only ever had very minor issues working with PhoneGap and iOS. Most we were able to find quick workarounds to resolve.
The issue is Android itself. I'm trying to avoid supporting it until Google steps in and enforces standards on every phone device manufacturer. Otherwise, you're guaranteeing yourself a swiss cheese codebase to deal with workarounds on every single device out there.