[android-developers] VpnService and simple packet capture mechanism?

2012-02-06 Thread mellery451
I'm considering the possibility of using the new android (4.0) VpnService interface to implement a non-root-required packet capture utility. Would it be possible to implement a VpnService such that each packet it received from the device could be written to a file for subsequent analysis and then

[android-developers] Re: Questions about VpnService

2012-02-01 Thread mellery451
On Dec 20 2011, 1:13 pm, Lysandus imbroke...@gmail.com wrote: I have a couple questions aboutVpnService. Is theVpnServiceadded in 4.0 only for creating a vpn connection for your app, or does it make the vpn for all traffic on the device?  If it's all device traffic does that mean your app

[android-developers] Re: verizon galaxy nexus as dev phone?

2011-12-19 Thread mellery451
On Dec 19, 1:18 pm, Romain Guy romain...@android.com wrote: You don't need to have an unlocked phone to install and debug apps. A bootloader unlocked phone is only useful if you plan on modifying the system itself. -- Romain Guy Android framework engineer romain...@android.com There's

[android-developers] Docs: TestSuite - createTest

2011-11-29 Thread mellery451
Can anyone else make sense of this description for the createTest method? http://developer.android.com/reference/junit/framework/TestSuite.html#createTest(java.lang.Class,%20java.lang.String) I was trying to figure out how to dynamically create test suites and cases at runtime (data driven

[android-developers] Re: How to read data off a website into an Android app

2011-11-15 Thread mellery451
well, I think you'd want to start with an HttpClient (http:// developer.android.com/reference/android/net/http/ AndroidHttpClient.html) to make the request and download the resource(s). Then you would need to extract the information you need from the content. This is commonly called scraping

[android-developers] Re: How to read data off a website into an Android app

2011-11-15 Thread mellery451
, but not restricted to that) somewhere on the web and have my app read that data. This way I can periodically revise the data that shows on the apps that my customers have installed on their phones. Any ideas on the best way to do that? On Nov 15, 3:44 pm, mellery451 mellery...@gmail.com wrote

[android-developers] Dynamic test cases / data driven testing in android unit test

2011-11-03 Thread mellery451
I'm trying to get starting with unit testing my android application and I'm having trouble figuring out how to do data driven testing. For my particular case, I have a file that I'm storing as an asset and this file has input and expected output for a particular API under test. I can read the

[android-developers] How to call native (JNI) code from test application

2011-10-28 Thread mellery451
I'm building an app and I have a corresponding test application for it. One of the first items I have added is some native code for a well- encapsulated computation (hashing). I now want to test this native code from my test application. I've imported the JNI wrapper class into my

[android-developers] Re: How to call native (JNI) code from test application

2011-10-28 Thread mellery451
location in the libs directory of your project. Steven Studio LFPhttp://www.studio-lfp.com On Friday, October 28, 2011 12:46:58 PM UTC-5, mellery451 wrote: I'm building an app and I have a corresponding test application for it. One of the first items I have added is some native code

[android-developers] Re: how to transfer file from android device to another android device using WIFI

2011-10-20 Thread mellery451
On Oct 20, 5:46 am, Kristopher Micinski krismicin...@gmail.com wrote: (It seems like people ask about this a lot, maybe somebody could make money off of creating a web service and then charging a modest licensing fee?) I think bump (http://bu.mp/) provides this. There are probably other

[android-developers] Re: I want to know how can I make the cell take input from the soft keypad ?

2011-10-13 Thread mellery451
hmm - seems like you might want to just add a TableLayout (http:// developer.android.com/guide/topics/ui/layout-objects.html#tablelayout) to your main view at runtime and then create EditText controls in each TableRow. Of course, if your layout can be static (fixed number of rows/cols), then you

[android-developers] Help Understanding Security Exception

2011-09-09 Thread mellery451
I'm seeking some help in understanding the possible reasons of the following error : Caused by: java.lang.SecurityException at android.os.BinderProxy.transact(Native Method) at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java: 146) at

[android-developers] Help Understanding Security Exception

2011-09-09 Thread mellery451
Hello, I'm looking for some advice understanding the cause of the following exception in my app: Caused by: java.lang.SecurityException at android.os.BinderProxy.transact(Native Method) at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java: 146) at

[android-developers] Re: ADB could see Samsung Galaxy Tab 10.1 but now it can't!

2011-09-09 Thread mellery451
I have often had to restart the adb daemon on my ubuntu box with root privs. - so often, in fact, that I have a little shell script with the following commands: /opt/android/android-sdk-linux_86/platform-tools/adb kill-server /opt/android/android-sdk-linux_86/platform-tools/adb start-server

[android-developers] Re: can you switch screen orientation via an app?

2011-09-09 Thread mellery451
On Sep 8, 1:42 pm, Jim Graham spooky1...@gmail.com wrote: Does anyone know if this is possible?  And if so, can you point me to the right terms to search for in the dev guide?  I've only got a few days to write this before I have to go into the hospital for cancer surgery, and I'd like to