Using google analytics android for desktop application - java

I am on the lookout for doing analytics for a desktop application written in Java. I came across two services viz: TrackerBird and DesktopMetrics , but for a small time developer like me , those services are not affordable.
Google analytics has android support. So I was wondering if I could use the same in the desktop application which is on Java.I am looking for a headsup if anyone has implemented the same and tips on how to proceed on using GA on desktop.
the SO link here says no , but I think it can be done.
Here is the link of google code on using GA in android , says it should bind to an application context. I was wondering if I could hack it to work in a desktop app.

There is no Google supported library for GA on desktop Java. The Google Analytics Android library has a lot of dependencies on Android infrastructure (for extracting basic user information, maintaining persistent state, and tracking application lifetime). But, since GA just boils down to HTTP image requests, it should be possible for a desktop Java app to mimic those. I have not used it, but this library looks like what you want: http://code.google.com/p/jgoogleanalytics/
For more details and other useful links see Manually sending data to Google Analytics

Have you thought about using Mixpanel? It gives you 25,000 to 175,000 free data points a month and has a Java integration library:
https://mixpanel.com/docs/integration-libraries/java

Related

Choosing right service for data storing in an app

I'm trying to build a mobile application on Android, and being new to cloud services in development, I was shocked at how many options were thrown at me. The app will only upload store and use pictures from the cloud, there won't be many at once (+-100). Also, I want all of them to be centralized (I guess it's basically a server).
I was met with options like: Google Drive API, Google Cloud Storage, and a few more Google and non-Google services, and I'm a bit confused as to which is the most suitable for my needs.
Preferably it would be a free service, but I work with what I get.
All your suggestions are welcome, and thank you.

Alternate ways of connecting to EWS on Android

Where I work they want to make an app to display meetings scheduled on exchange on tablets outside of the meeting rooms. I have been tasked with making the app, and with no experience developing for android, I feel a bit lost. So far, I have tried two different Java API libraries for Exchange Web Services, and the Microsoft EWS API for C#, and the compiled apk files making calls to EWS all crash on the tablets they want to use (Running android 4.0 and 4.4). I was wondering if there are any ways to pull meetings/make meetings on EWS without using an external library, or if anyone had a suggestion for an android specific API they know to work on android.
These are the ones that I have tried:
Java EWS (with the android wrappers people have made)
JWebServices
EWS Managed API
EWS is just a SOAP web service so you can use any http client or other SOAP library to communicate, the hard part is when you don't use one of the libraries your talking about you need to create and parse all the SOAP request and responses yourself which is not that hard its just time consuming to build all the necessary code. The only other part is Authentication but if your using Basic Auth adding the Header is easy, NTLM is harder but again it just a header. If you don't have to use Java and you want to use C# xamarin and https://www.nuget.org/packages/Microsoft.Net.Http/ will work.
What might make it easier is forget about trying to run the EWS code on Android create a Hybrid App where your EWS code runs on a WebServer and just write a simple Android App that communicates with that WebSerivce, then the only thing running locally then is the Web code which shouldn't crash and it makes maintaining and updating your app really simple and you then have a more free choice as to what you can use to write the Web backend.

Accessing Data from Python GAE Datastore using Java

I have set up a Google App Engine website project using Python, with the webapp2 framework. It's neat and seems to be working perfectly. I can run queries in the backend of my website using python.
However, recently I've decided I want to have an Android (and maybe iOS) app as well as a website. The app will almost clone the website. Now, I have no idea how to query this data or access the datastore using Java, since up till now it's all been using the ndb import in Python.
How exactly would I approach this? I doubt that I need to create a new project in Java on GAE?
Has it something to do with Remote API? Looking into that now. And if so, it seems like none is available for Swift language.
Should I consider using a different Database system, and forget about GAE?
I only wish to read the data in Java, not write to the database.
For this you can use Cloud Endpoints. You expose the information you want on an API, and you consume it from iOS or Android. Here there is a tutorial that covers it.

Transitioning from Java to Google App Engine

I am writing a Java program for my workplace, to help catalog pricing with several parameters involved. The current program implements JComboBox, along with other Container objects.
I have realized that our workstation will not run a Java program through Windows due to protective limitations, so I am hoping to transition to Google App Engine, since we can load websites much more freely.
The problem I have run into is that JComboBox doesn't run through Google App Engine. In fact, none of the Containers I was using will work in Google App Engine. The tutorials on Google Developers haven't provided the information I need.
Where can I find information on what objects I can use in Google App Engine to simulate a GUI with pop-up menus and buttons?
(I am using the Google Plugin for Eclipse.)
Maybe this link will help you, it lists all compatible frameworks: http://code.google.com/p/googleappengine/wiki/WillItPlayInJava
For a higly responsive GUI, I suggest you take a look at the GWT: http://www.gwtproject.org/examples.html
In a nutshell: GWT allows you to write web applications with Java. Some/all of the Java is converted into JavaScript for better usability.
If you want to use Google App Engine (GAE) you can either use GWT for a standard GUI or a Java Webframework like Vaadin or JSF.

WURFL Java API does not identify mobile app user agents correctly

I have used WURFL Java API (also using the web browser patch) to create a standalone application for device detection. When a user agent for mobile app is used , it returns generic web browser (or blank field if web browser patch is not used) for Android and application version as device_os_version for Apple iPhone app user agents. The algorithm used in the new api as described in new api algorithms should give correct results but its not!
Can anyone help me how to tackle this problem?
I've not used the JavaAPI myself, but I have had good luck so far getting support directly from the WURFL community forums. They have a subforum for API problems. I would suggest making a post there, including the user agent string that's giving you problems and a sampling of the source code you've attempted to use before.
http://www.scientiamobile.com/forum/index.php
Sorry I couldn't give you a direct answer.

Categories

Resources