Android :: Library And Classes / Enables Writing NetMonitor Application For 3G & Wi-Fi
Mar 31, 2009
Dears Is there any Library and classes that enables writing a NetMonitor application for 3G & Wifi like in Symbian phones? Android.net.wifi and android.net seems haven't enogh functions to do that.Are Android Kernal developers willing to set such Network functionalities as Symbian & Windows Mobile have.
View 2 Replies
Aug 17, 2010
According to this SDK guide, unit-testing a Library project can be achieved by creating a standard application project, reference the Library project and then instrument the application for unit testing. However, when I do this and launch the test application I get the message.No tests found with test runner 'JUnit 3".I'm using Eclipse and the Android ADT plugin, all latest versions.the projects compile just fine. The test project also installs fine to the emulator. But in the console I can see that it looks for <library>.apk, which of course doesn't exist since I'm compiling this as a library into the test project.
View 1 Replies
View Related
Oct 2, 2010
I want to be able to have two projects, one that contains production code and one that contains test code. This shouldn't necessarily be an Android-specific question, but I'm want to write some unit tests for some non-platform-specific Android code on the host PC.
I created a new Java project so I can run the unit tests on the PC and only include the non-platform-specific classes from the Android project. Both projects are opened in the same Eclipse workspace. I assume I need to somehow include these Android-project sources explicitly in the new project where I'll run the Junit tests, but I can't figure out how to do this.
View 3 Replies
View Related
Apr 2, 2012
The problem is, that I wanted to write a JUnit-Test for some of my classes - but this stupid Anroid SDK does always lauch this absolutely lame AVD!
So I came up with the idea to move all my non-Android related classes out of the actual Android project into standard Java project. There I can easily test my classes and by adding this standard Java project to the BuildPath of the Android project, I can easily access and use my classes: no error is shown in the IDE - everything is fine.
But if I launch my full application in the AVD, it exits with following exception: NoClassDefFoundError!
I found out, how to run a normal test from an Android project. But why is it not possible to reference to a non-Android project? Regarding code reuse, this is really big disadvantage!
View 8 Replies
View Related
Jul 17, 2010
I'm new to JNI, i'm developing a native library for an Android project. I read some papers about JNI programming but i didn't understand if it is possible to create a library that can be loaded in different project classes with different packages. I read that to declare a new JNI method the syntax is:
the prefix "Java_"
an encoded fully qualified class name
an underscore ("_") separator
an encoded method name
Based on this definition it shouldn't be possible...
Suppose i had defined a class A in the package pkg1 with the native method foo contained in libfoo, and then i defined a class B in the package pkg2. Can i use libfoo and the foo method in B? How should i define the native method to achieve the result?
View 2 Replies
View Related
Aug 9, 2010
I was just wondering what ones you think is best
like ones you can search,look at your friends..friends and stuff basically what the iphone allows you to do with facebook
I also want to find a good application which enables facebook chat
View 3 Replies
View Related
Jul 23, 2009
Android does not provide an Exif Reader or Exif Writer in its SDK (it has a native implemenation, though, but that API is private).
The Sanselan library, however, does provide a full fledged set of functionality for reading and writing Exif metadata.
However, Sanselan pur sang cannot be included in an Android Project. It references classes and packages that do not exist under the current version of Android (e.g. ImageIO).
Therefore, I made a quick cut of Sanselan 0.97, cutting out all the classes that prevent it from being used on the Android platform. It is a quick cut and it may have some issues. However, I got its exif reading and writing to work for my application and it looks like its working quite well. Reading and writing raw image-data is, however, not possible in this cut. This has been cut out.
View 3 Replies
View Related
Jun 16, 2010
I came across this today and was wondering does this work in production app or does it merely work because my phone allows non market apks.
Here is an example, Take a class like, android.view.IWindow, and copy it's source into your project and recompile it after changing a few things. (Don't rename or repackage it).
Now when your APK loads in the VM, something odd happens.
CODE:...
So the logging is a little ambiguous, but is it saying that the classes in this APK are blocking out previous versions and that these new classes aren't being verified. If so I hope this is only succeeding because as developers most targets are in development mode when allowing non market apks (non rooted phones). However does this work in market released apps as well? This seems like a really nasty security exploit if I can override system interfaces just for my application.
View 4 Replies
View Related
Sep 2, 2010
Is there any way for an ordinary application to replace low level classes that are preloaded on startup, so that higher level preloaded classes will end up calling my custom versions rather than the originals?
I'm thinking the answer is no, but want to make sure I haven't overlooked something.
View 3 Replies
View Related
Sep 7, 2010
I am writing an android application for sending email which launches the default mail application of android and asks to allow sending mail or not.
I want to know the type of Exceptions that are expected to throw in this case.
I have gone through Developer guide and some other Android PDFs ,I am finding only base class Exception.
I want to know are there ant other exceptions that will be thrown other that exception, which we need to handle in our program.
View 1 Replies
View Related
Oct 24, 2009
I plan on writing a Java 3D game that will work both on PC and Android. Unfortunately it looks like there is no common OpenGL API for both platforms.Do the APIs differ significantly? Is there a way I could use the same 3D code in both versions? Is it a good idea?
View 3 Replies
View Related
Jan 28, 2010
I need to write an Android application that allows a user to connect to multiple social networking sites like MySpace, LinkedIn, FaceBook etc. and fetch friends list.
I know that most of these applications have Java libraries or functionalities exposed as REST based WebServices. But since there is a lot of variety and disparity in the ways that these libaries are written or service that can be consumed, is there any single, integrated service or middleware component that I can use to provide a unified interface in my mobile application?
View 2 Replies
View Related
Jul 29, 2009
I want to use ksoap2 library on my application and i got a ksoap2 library from http://code.google.com/p/ksoap2-android/ i add it as an external library but my application will crash when it need to use the library.
View 2 Replies
View Related
Sep 19, 2010
I want to develop an application that will periodically check whether Wi-Fi is enabled in android and depending on on the result it will take an action. Can anyone give me some suggestions regarding this?
View 1 Replies
View Related
Sep 5, 2010
Is there any ready library to read ePub format? I found ePublib in
http://github.com/psiegman/epublib. I'm still learning how to use it. I wonder if there is ePub jar which ready to use for read ePub format in android.
View 1 Replies
View Related
Aug 7, 2010
I've been trying to do this now for 2 whole days, and am about to give up. I followed the instructions here:
http://developer.android.com/guide/developing/eclipse-adt.html
but it is not working. I can see the library project is added to my application but I cannot reference anything in it. Also the R.java file from the lib was NOT added to my application, so the lib project contains tons of errors, everywhere it tries to reference it's own R.java file (most likely the cause of the former).
Also, in the console there are messages stating that the there is "No resource identifier found for attribute 'X' in package 'Lib Package'. The library builds just fine, and I don't get those messages in the console until I hook the library to my application.
You would think that creating and referencing a library would be a simple thing to do, as it is in most other projects, but this is turning into a real nightmare.
View 2 Replies
View Related
Dec 23, 2009
I am a brand new developer to Android. I wrote a pretty simple application that uses the gesture library. The application itself seems to run fine in the simulator. However, when I installed the application on my Google Dev Phone 1 (G1) last night, it doesn't seem to work. I've upgraded my G1 with the 1.6 image from the htc developer site. I see the first screen/activity for about a second and the application exits without and errors. Here is what my manifest looks like:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.blahblah" android:debuggable="true"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="4" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_CONTACTS">
</ uses-permission>
<uses-permission android:name="android.permission.CALL_PHONE">
</uses- permission>
<application android:icon="@drawable/icon" android:label="@string/ application_name"> <activity android:name="Gesture1Activity"
android:label="@string/application_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="Gesture2Activity"
android:label="@string/label_gesture_list" />
<activity android:name="Gesture3Activity"
android:label="@string/label_create_gesture" />
</application>
</manifest>
Here's the output for logcat:
D/AndroidRuntime(860): D/AndroidRuntime(860): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< D/AndroidRuntime(860): CheckJNI is OFF D/AndroidRuntime(860): --- registering native functions --- I/jdwp (860): received file descriptor 20 from ADB D/ddm-heap(860): Got feature list request I/ActivityManager(101): Starting activity: Intent { flg=0x10000000 cmp=com.blahblah/.Gesture1Activity } D/AndroidRuntime(860): Shutting down VM D/dalvikvm(860): DestroyJavaVM waiting for non-daemon threads to exit E/AndroidRuntime(860): ERROR: thread attach failed D/dalvikvm(860): DestroyJavaVM shutting VM down D/dalvikvm(860): HeapWorker thread shutting down D/dalvikvm(860): HeapWorker thread has shut down D/jdwp (860): JDWP shutting down net... D/jdwp (860): +++ peer disconnected I/dalvikvm(860): Debugger has detached; object registry had 1 entries D/dalvikvm(860): VM cleaning up D/dalvikvm(860): LinearAlloc 0x0 used 677572 of 4194304 (16%) W/InputManagerService(101): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub $Proxy@439a9eb8
View 5 Replies
View Related
Apr 8, 2009
I have developed bluetooth application where native library will be initiated by Java application (using JNI wrapper). JNI will call the entry function of the native library and then it will create Pthread to for scanning the device. Once Scanning is over, i will get the callback which i registered during the entry function of the native lib (called by app). But i haven't received the callback, but if i run the same native library in the shell (executable from the shell terminal) it is working fine. Can any one help me, if there is any specific architecture needs to follow while developing Java application based on native lib?
View 4 Replies
View Related
Jul 19, 2010
I need to provide some SDK as third party library for other applications. We don't want to open our source code. How could make a jar file?
View 2 Replies
View Related
Jun 18, 2010
I'm trying to set up an Android application with an Android library project dependence in Eclipse. I've set up a project called AnTest and a library project called AnLib. I've provided a reference to AnLib in the project properties of AnTest. Now I'm trying to refer to some library code (a static public method) from AnTest. Eclipse throws "com.anlib.Hello cannot be resolved to a type".
And it's not that the reference is dangling - I can see the resources properly merged. But from within AnTest, the only class in package com.anlib is "R".I've added AnLib to the Java build path/Projects in AnTest project properties. Now it compiles, but running throws a NoClassDefFoundError exception.
View 2 Replies
View Related
Oct 29, 2009
After getting comfy with the Android 2.0 environment and emulator (for the most part), I took the next step to bind <myapp> against the latest Android 2.0 jars: android.jar and maps.jar. The existing code (working in Android 1.6) did not need any changes to compile, but the app doesn't build due to a weird error message that prevents the build. See snippet below, drawn from the Eclipse Console. I have no aspirations to run up against any core library classes, and I am not aware I do. In other words, I am not implementing SealedObject (or any other core class that I am aware of) that would run up against Dalvik. Not in the javax, java or any other namespace. Anybody got any pointers what's going on here?......
View 6 Replies
View Related
May 10, 2010
I've got a male to male 3.5MM connector to plug into my aux port in my stereo of my car. I can stream Pandora, slacker etc, with no problem. HOWEVER, when I initially plug it in, my notification bar shows the headset Icon. After a while however, it turns into the Microphone enabled headset icon and it pulls up the Voice dialer app. This then kill slacker/pandora or anything else I'm running. If I'm able to listen for a while without it messing with the streaming app, once someone calls, then music stops, I can talk handsfree and then it goes back to the music when the call ends. But then almost immediately, the voice dialer app is brought back up and I'm back in the same situation where everything dies.
View 6 Replies
View Related
May 30, 2010
Is there an app that enables a clean up of old unused files, cache, internet files, etc
View 1 Replies
View Related
Nov 11, 2010
I have an Android library project that makes calls to PreferencesManager.getDefaultSharedPreferences.
I have 2 version of my app, paid/free, and they are not able to access the preferences stored by the library code.
Can someone tell me the right way to store values in SharedPreferences in library code and have the values available to projects that include the library?
View 2 Replies
View Related
Nov 22, 2010
My Use case like this
- User is in my application
- User presses home key (application goes to background)
Now user wants to go back to the same application (task in android terms)
one way is it through the application launcher BUT
for my application there is no icon provided.Instead user have to launch app with some "key combinations ". Essentially I have to write program to simulate application launcher.So How can "application launching" be achieved with CODE?
View 1 Replies
View Related
Aug 26, 2009
I created a jni library which depends the third shared library, I must copy the third shared library to /system/lib, otherwise, Java application can't load jni library. But you know, on G1 with official OS image, /system/lib is readonly. I tried to call System.setProperty to set java.library.path to the location stored the thired shared library before load jni library, but the issue still exists.
View 6 Replies
View Related
Jul 15, 2010
As I understand, the three ways of distributing my application are via Jar, Android Library and Android Library Project.Jar - cannot contain resources or XML layouts (so this is out for me)Android Library - I don't really know how this works but the Google API uses it..Android Library Project - includes resources but allows the client free rein on the code as it is distributed as source.If I am to create a closed source application that requires drawables and XML files that I want to distribute to other Android programmers, what should I use? And can someone direct me to a tutorial on creating an Android Library?
View 4 Replies
View Related
Apr 2, 2010
I using Eclipse Gallileo to develop Android application and Java library for this application. Please, help to set Android application dependency from my custom Java library rightly. I want this library automatically build if necessary and be included to .apk file.
View 6 Replies
View Related
Aug 11, 2010
The LogCat window is open. Sometimes LogCat displays Log messages, sometimes it does not, with or without the physical target attached. Is there an enable/disable Log somewhere in the debug environment?
View 2 Replies
View Related
Aug 8, 2010
I followed the instructions here on how to create an Android library project, and use it in an Android application:
http://developer.android.com/guide/developing/eclipse-adt.html
But it is not working. I can see the library project is added to my application but I cannot reference anything in it because it won't build. The R.java file from the lib is NOT being added to my application project, so the lib project contains tons of errors, everywhere it tries to reference it's own R.java file.
I don't know if this has anything to do with it, but in the console there are messages stating that the there is "No resource identifier found for attribute 'X' in package 'Lib Package'. My library package has a a few styleable attributes defined for a custom view I made, all of which are being complained about in this console message. The library builds just fine, and I don't get those messages in the console until I hook the library to my application, so I don't know what's up with this.
View 1 Replies
View Related