Newrelic install for Android that does not use ant - android

I want to install Newrelic to monitor my Android app.
I have successfully integrated the SDK using ant.
However, I prefer using a code library rather than linking my code with their .class.
The Newrelic documentation doesn't mention a non ant way to install Newrelic, here - http://newrelic.wistia.com/medias/rzbz77365w.
I noticed the Newrelic staff answer questions here in SO, so maybe one of them can assure me that using ant is the only supported solution at the moment?

Update to this: the latest SDK now includes an Eclipse and Maven plugin and a much-improved Ant build process as well.

Here is the response by the newrelic support group:
Currently we don't have a library offering for New Relic for Mobile Apps, since we implement complete instrumentation of network calls right at build time, a library option isn't workable with our current implementation.

Related

Using selective APIs from Google Play Services in Eclipse

In my project I am integrating push notification for that I require classes from com.google.android.gms package.
Is it possible for me to include selected package from whole library?
I am using eclipse. actually there are lot more libraries required, due to which I am facing 65k multidex issue. Any solution?
If you really really want to use the Eclipse to compile this, you need to perform these steps:
Have someone with Android studio include your needed Google components as dependency.
Kidnap the components from exploded-aar Android studio folder and setup the components as your own Eclipse library.
But of course, this is highly not a recommended procedure, but this is for those people who desperately needs it as last resort. This also marks a disclaimer that the kidnapped libraries are already free from the developer's accountability, because you didn't compile it the right way.
PS. Did this with Google Maps
If you want to use selective components of the Google Play Services you will need to switch to Android studio.
Read this: (Source)
Important: Support for the Android Developer Tools (ADT) in Eclipse
has ended, per our announcement. You should migrate your app
development projects to Android Studio as soon as possible. For more
information on transitioning to Android Studio, see Migrating from
Eclipse ADT.
If you still want to continue using eclipse, you'll have to to the hard work yourself - of deleting the unwanted packages/components from the full source code and making sure it compiles and works fine.
Instructions of setting up selective APIs can be found on this page, for android studio. For Eclipse, as the documentation says nothing about setting up selective APIs, you just have to go with the whole set.
NO. you have to migrate your code to Android Studio.

TFS automated build setup for android application

I am developing an android application. TFS is used for version control. Even the automated build also needs to setup for the android app on TFS server.
It would be great If anyone can guilde me on this.
This is a really broad question, so I'm giving you a really broad answer:
Install the Java SDK, the Android SDK, and whatever you need to build your application on your build agent(s).
Create a custom build process template (or find one online) that can execute an ANT or Maven script.

How to compile Android native library with Android Studio?

I am a new user of android studio and I am developing application based on native library(JNI) and eclipse is provide builder facilities for NDK-build. so any functionality available in android studio to build NDK
NDK integration is very basic, limited, and not documented (per the New Build System page) at the time of this writing. There a couple of examples in the samples at the bottom of that page that illustrate how this can be done. You can also check the Gradle Plugin User Guide periodically to see if any additional documentation is available.
Android Studio runs ndk-build automatically if you have a jni directory in your project root. I describe the minimal setup you need in my answer to a similar question.

Google APIs Client Library for Java (google-api-java-client) -- Maven vs. Importing JARs

I've started work on an Android App that will work with Google Docs.
UPDATE 12/9: From the information I've come across, it seems Google Docs is not supported by this library. The question is probably still relevant in general, but seem not specifically for this project as I can't use the library anyway.
I was doing some research and come across the Google APIs Client Library for Java
I decided to start with the tasks-android-sample to begin learning how to utilize this library.
I followed these instructions
I successfully installed Mercurial and Maven and already had Java 7 installed.
I was able to execute these commands
cd [someDirectory]
hg clone https://code.google.com/p/google-api-java-client.samples/ google-api-java-client-samples
cd google-api-java-client-samples/shared/shared-sample-android
[editor] src/main/java/com/google/api/services/samples/shared/android/ClientCredentials.java
mvn source:jar install
I was also successful in setting up the Mercurial plugin (not sure what this did for me -- I believe the hg command above is the only time Mercurial was involved) and Maven plugin
Finally, I was able to imported the tasks-android-sample, compile it, run it on the emulator and I was able to see the tasks I created on my google account.
I then repeated the process, except this time I simply imported sample's source code and the required JARs into a new Android project and added the ClientCredentials.java manually to the project (So I could specify my Google API Key).
I was also able to compile and run this project and it operated as expected.
My questions in all this is which method is preferred? Or is it a personal choice? Are there benefits to using Maven that I'm not realizing at this time?
Maven helps you download proper dependency libraries for the project, and can reduce the burden of find and download proper libraries.
It's fine to just put dependency libs in your code base. It's a personal choice.

android scala and eclipse

I tried following the instructions here link text to make a scala application. However when I run the "ant install" command I get the following error
aaptexec doesn't support the "basename" attribute
I read this is because of the new sdk 7 version here. However noone on that thread seems to offer any solution.
Has anyone tried to do this with the new sdk?
Thanks in advance
You may take a look at Building Android apps in Scala with sbt, I found it is much easier to use SBT to build Scala/Andoird application than Eclipse.
You should also use https://github.com/steve918/android-plugin instead of the plug-in describe at the page if you want use latest Android SDK.
http://code.google.com/p/treeshaker/ may be what you're looking for.
It's a build step for Eclipse which, used together with Scala IDE, will enable you to use Scala on Android.
Solution found here to use the latest Android SDK, with Eclipse 3.7.2 and Scala 2.9 :
https://stackoverflow.com/a/11084146/1287856
It compiles under Android SDK 18
It does not have the strange side-effects of Treeshaker like forgetting to include some classes.

Categories

Resources