Android :: LVL Implementation - Device Fingerprinting
Oct 30, 2010
I'm working on an LVL implementation and I want to use as many different device identifiers as I can. I have considered using IMEI numbers but I've discarded that because a) it's intrusive and b) not all devices will have them.
What might I use to fingerprint a phone for license verification?
As an aside, how have your experiences with LVL been so far? Any pitfalls? I'm not asking for anyone to share their implementation details as that would give the hackers ideas.
View 5 Replies
Jan 2, 2010
Are there any audio fingerprinting systems (PUID, etc) that are implemented in pure Java (for running on Android)?
View 1 Replies
View Related
Feb 22, 2009
I have run mediaplayer in SDK which can play media in res/raw folder successfully on emulator , but now I wanted to run it on my hardware which have already successfully implemented the android kernal and file system and audio, video drivers etc. I have no experience to implement JAVA app . I once implemented mplayer app written in C to my linux OS which only need to copy the final executable file , but now I don't know which files or folder should I copy to my platform because I have no basic knowledge of Java although I have run successfully on my emulator.
View 5 Replies
View Related
Jul 28, 2010
I've been playing around with the new LVL announced yesterday and wanted to write a policy which only stops the user when it is certain that he does not have a license. In other words, the policy will only "dontAllow" the user if the last meaningful response from the licensing service was NOT_LICENSED. Therefore, if the user is offline when they first use the app, then they will be allowed in. The idea behind this is that I don't want genuine paying users to ever (within reason) be inconvenienced by this licensing system. The downside is that all the user needs to do is clear the app data and go offline before restarting the app. The app will continue working until they go online (and restart the app). My thoughts are: 1. Most users won't know about that workaround 2. Those users that are happy to use that workaround, probably wouldn't pay for the app anyway.
View 6 Replies
View Related
Jun 2, 2010
Create an anonymous implementation of OnClickListener
private OnClickListener mCorkyListener = new OnClickListener() {
public void onClick(View v) {
// do something when the button is clicked}};
View 2 Replies
View Related
Nov 10, 2009
We have discovered a potential bug in the implementation of AppWidgets. Here is a simple reproducer.
Attached is the code for an application containing a TestActivity and a TestWidget. TestActivity extends MapActivity and TestWidget is a simple widget provider which updates a TextView every 2 seconds. Now if the TestActivity is launched with no instance of TestWidget running, it works just fine. But if the TestActivity is launched after placing the TestWidget on the home, it results in ClassNotFoundException. Here is what we get:
CODE:.............
So it seems we have an inconsistency in the way the class loader works for the same apk.
WORKS - Launch the application by itself, without invoking the Widget. DOES NOT WORK - Create a Widget on the Home screen and then launch the application from the launcher.
The source code for this application (http://www.yousendit.com/ download/TzY3ZGVhZy96NE4zZUE9PQ) has been attached. Hope someone from the Android team can shed light on this behavior.
This error is seen on the 1.5r3 SDK. Not sure if this has been addressed in 1.6 and 2.0 SDKs..
View 2 Replies
View Related
Oct 27, 2010
I'm want to implement Dynamic SlideShow of Images similar to Gallery. On Drag, i Should be able to change to next images. I'm looking into Gallary1.java class from APIDemo Example, i think there is no sufficient information in that, so is there any better code example.
View 2 Replies
View Related
Jul 2, 2009
I am trying to implement picture gallery in my application but it's not scrolling smoothly can someone suggest me what could be the reason or how to do it.how it is implmented i the phone.
View 2 Replies
View Related
Dec 5, 2009
I am trying to create certificates for users for my program. I am have created a keystore and included the publickeystore.store with my application in the assets folder. I created all the certificates using the keytool program from JAVA. When I try to authenticate the certificate I get the following error: 12-05 17:32:49.962: ERROR/AndroidRuntime(891): Caused by: java.security.KeyStoreException: KeyStore JKS implementation not found
View 3 Replies
View Related
May 5, 2010
Can any one tell me how to include tab implementation in AnDroidDraw code?
View 1 Replies
View Related
Jan 28, 2010
I would like to implement the similar widget as QuickContactBadge from which I can launch some internal activities. I checked out the source code for QuickContactBadge, QuickContactActivity etc and simplified them to accommodate our requests. It can launch and display at correct position. However, I can not see the original view below the quick contact tack no matter how I try. And I found the window created by QuickContactWindow is quite small and I tried to set the background etc. Nothing works. Who can help or give some guidance about how window works? Say, from Activity A, I click on image, I launch a new activity (or window), how can I make the Window of Activity A is still visible? Or more general, what is the best way to achieve similar behavior like QuickContactBadge?
View 2 Replies
View Related
Feb 11, 2009
I am using the Telephony class to get messages ( Telephony.Sms.Intents.getMessageFromIntent(Intent intent)). But I can't find the class Telephony from its package(android.provider), there is an error named "The import android.provider.Telephony cannot be resolved" when import android.provider.Telephony.Sms.Intents, the sdk version I'm using is android-sdk-windows-1.0_r2, how can I use this with the new implementation of Telephony?
View 2 Replies
View Related
Sep 20, 2010
In iPhone there is Cocoa Asynchronous socket library. Is there a similar library in Java for Android? Can it be done using Java Asynchronous sockets(NIO library) or is there a way I can make use of NDK for Android and use native libraries for asynchronous sockets?
View 1 Replies
View Related
Nov 21, 2010
I am writing an Android Application which outputs some array of buttons dynamically.
My question is how to implement onClickListener() functionality for Array Of Buttons. I mean how to recognize the button that is clicked in public void onClick() method ? I need to display a toast based on the button that is clicked.
View 2 Replies
View Related
Jul 17, 2010
First I have my app running currently and its working fine, I just question how I implemented it. I come from a linear C++ background and this Activity/Intent thing is a little new to me. Here is how my app works currently (order of activities started)
("->" = Starts Activity, "<-" = Returns from activity)
MainActivity -> Login Activity <- onActivityResult function displayListOfItems ...
I am wondering if I should switch the starting intent as follows:
LoginActivity MainActivity function displayListOfItems
The issue I had with the second scenario was that pressing the back hard key would take me from the MainActivity back to the LoginActivity and I didn't like this. I guess to sum up my question, is it normal for the MainActivity to handle all subsequent starting of activities or is it common to do a more linear implementation?
View 5 Replies
View Related
Nov 10, 2010
Has anyone tried to write his own implementation of ViewGroup with some TextViews in it? I have a problem, that TextViews in such an implementation don't respect gravity attribute (TextView.setGravity(Gravity.CENTER);) and text is positioned in the top left corner.
If enyone is interested, I just overwrote method onMeasure() (for all my TextViews) and changed call from super.onMeasure() to setMeasuredDimension(int, int) and gravity started to work normally.
Basically, in my custom layout I use the following class to display text:
CODE:................................
View 2 Replies
View Related
May 16, 2012
If exists a L2TP or PPTP or even OpenVPN protocol implementation (C or Java) which can be used in an Android application?
View 1 Replies
View Related
May 26, 2009
I'm implementing a service that contains a thread to handle all time consuming operation. My core service logic is in a different thread than the ui or main thread. According to the Android document, when the OS plans to free some system resource, it will call onDestroy () on the service and only when onDestroy() returns it will kill the process hosting the service, thus giving opportunity to the service to cleanup.Now, when onDestroy() is called, I want to send a message to my service thread to do the necessary cleanup. Only when the service thread acknowledges that the cleanup or shutdown is complete, onDestroy () should return. I could find a way to send asynchronous messages to threads and the corresponding processing of the messages, but not able to figure out how I need to implement onDestroy(), such that it would send a message to the service thread and should wait for a result, before returning.
View 13 Replies
View Related
May 26, 2009
When I pass a Bitmap using the Binder Remote service mechanism, does the internal implementation of writeToParcel/createFromParcel of the Bitmap class use shared memory?
View 5 Replies
View Related
Apr 1, 2010
I'm trying to make (for learning purposes) my own implementation of a simple AdapterView where items comes from an basic Adapter (ImageAdapter from sdk samples).
Actual code is like this:
public class MyAdapterView extends AdapterView<ImageAdapter> implements AdapterView.OnItemClickListener{
private ImageAdapter mAdapter;
public MyAdapterView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
initThings();}
private void initThings(){
setOnItemClickListener(this);}
@Overridepublic ImageAdapter getAdapter() {
// TODO Auto-generated method stubreturn mAdapter;}
@Overridepublic void setAdapter(ImageAdapter adapter) {
// TODO Auto-generated method stub
mAdapter=adapter;
requestLayout();}
View obtainView(int position) {
View child = mAdapter.getView(position, null, this);
return child;} code...
This isn't a coding masterpiece, it just displays a pseudo-listview with pictures. I know i could've used ListView, GridView, Spinner, etc. but i'm relative new to android and i'm trying to figure out some things on it. Well, the question here is Why is my onItemClick not firing?
Using the same ImageAdapter with a GridView, everything works ok, but when i use with above class, i get nothing. Inside AdapterView.java there is code for those click, longclick, etc events... so why can't i just fire them? Maybe i'm misunderstanding basic things on how AdapterView works? Should I extend other base classes instead? And why? Hoping to find more experienced guidance on here, thanks in advance.
View 2 Replies
View Related
Aug 19, 2010
I have used RelativeLayout for a custom implementation of a ListAdapter and I am not sure if I can continue using this or if I need to use TableLayout. In the first example I have the text positioned as I would like by using one image view and one text view containing the book name and the author name. However, I want to style the author text differently so I think I will need two text views. In the second example I have added another text view but it floats to the right. Second eg is Clipboard02.png. How can I make the second text view go under the first text (as in eg 1). I have done this in code rather than using XML layout.
http://carriehall.co.uk/Clipboard01.png
LinearLayout.LayoutParams skyParams = new LinearLayout.LayoutParams( 70, LayoutParams.WRAP_CONTENT );
ImageView skyControl = new ImageView( context );
skyControl.setImageResource( R.drawable.the_eyre_affair );
addView( skyControl, skyParams );
LinearLayout.LayoutParams bookParams = new LinearLayout.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
bookParams.setMargins( 5, 10, 5, 10 );
TextView bookControl = new TextView( context );
bookControl.setTextAppearance( context, R.style.SpecialText );
bookControl.setText( book.getTitle( ) + "
" + book.getAuthor( )); addView( bookControl, bookParams );
View 1 Replies
View Related
Sep 3, 2010
I have a ListView populated via a CursorAdapter. I give my user the ability to alter the data in the list. For example, the user can mark a row as being unread (the data are messages).
Suppose my user marked a row unread. Would a proper implementation mark the row in the database as read and then requery the Cursor?
View 1 Replies
View Related
Feb 21, 2012
I wanted to implement the application specific VPN client in android, that is vpn connection once established should be only available to our application and rest of the apps in android device should make use of normal internet connection.
To elaborate my need more, i have an application already which connects to corporate email, files and other data from internet normally but for some security reason we need it to be go through tunnel within our application and access everything within via tunnel basically want we are looking here is security while accessing company corporate network.
Since we are new to something like this we don't have a hint on how to start what protocols to use etc (we are assuming ipsec l2tp for now).
And between we are just looking to send and receive data over tunnel, there is nothing more or need to control computer on the network all we need is to route data through corporate firewall and should support multiple vpn servers such as cisco, microsoft etc. How complex or how feasible to implement it.
View 1 Replies
View Related
May 22, 2010
I just published a free preview of a 3D implementation of the classic snake game. It works smoothly enough on Milestone, please let me know how it works on other phone. You can download it searching for Snake3D.
View 1 Replies
View Related
Nov 13, 2013
As far as I understand, immersive mode can be implemented in two ways in 4.4 KitKat Feature Spotlight: Apps Can Now Go Truly Full-Screen, Hide The Navigation Bar
the user has to swipe down to bring back the navigation bar (the book readers, games example) or touch the screen (the video players example).Is there a way (even if it involves a custom rom) to make video players use the swipe down implementation? The reason I ask is that I have a toddler who I often let watch cartoons on youtube (ie while waiting for food at a restaurant...). He constantly touches buttons on the navigation bar on accident which stops the video and then I have to take the phone from him, restart the app, restart the video, and give it back. I would love to be able to use the swipe-down implementation in this scenario.
View 3 Replies
View Related
Jun 13, 2010
I'm now trying to implement my own content provider. My original data was stored on network or local/remote file systems, so I want to provide data via input stream. I know that client may call ContentResolver.getnputStream to retrieve the input stream to access data. But I don't know how to implement content provider in this situation, I searched the Internet but all the tutorials for content provider are talks about how to expose data that stored on local database. how to expose data that stored on file systems using a content provider? what happened when client call ContentResolver.getnputStream? I want to know how to return an input stream to my client.
View 4 Replies
View Related
Dec 1, 2009
SSLContext context = SSLContext.getInstance("SSL"); The above line results in the exception: java.security.NoSuchAlgorithmException: SSLContext SSL implementation not found, I'm using Android 2.0 SDK and when specifying TLS, it is accepted. How come I get the exception? Doesn't Android support SSL?
View 1 Replies
View Related
Nov 1, 2010
i want to implement a client for https, all in my localhost (in my apache, it is configured to ask authentication), with a resource " https://localhost:443/resources/resource1.xml" the server works fine.
I have a client for desktop, and it works fine, the resources are consumed using httpcomponents-client-4.0.3), i have readed that Android uses that version.
This is the code of my client in Android (practically is the same of desktop mapped to android) ,
in the line of SSLContext sc = SSLContext.getInstance("TSL"); the next exception is thrown :
java.security.NosuchAlgorithmException: SSLContext SSL implementation not found
I have tried with TSL and the exception continue.
Import java.io.IOException;
CODE:..................
View 9 Replies
View Related
Apr 7, 2010
I am creating an Android app that includes a third party jar. That third party jar utilizes internal logging that is failing to initialize when I run the app, with this error: "org.apache.commons.logging.LogConfigurationException: No suitable Log implementation".
The 3rd party jar appears to be using org.apache.commons.logging and to depend on log4j, specifically log4j-1.2.14.jar. I have packaged the log4j jar into the Android app. The third party jar was packaged with a log4j.xml configuration file, which I have tried packaging into the app as an XML resource (and also as a raw resource).
The "No suitable Log implementation" error message is not very descriptive, and I have no immediate familiarity with Java logging. So I am looking for likely causes of the problem (what class or configuration resources might I be missing?) or for some debugging technique that will result in a different error message that is more explicit about the problem. I do not have access to source code for the 3rd party jar.
Here is the exception stack trace. When I run the app, I get the following exception as soon as one of the third party jar classes attempts to initialize its internal logging. code...
View 1 Replies
View Related
Feb 22, 2010
I have a requirement to implement IP camera's for my client's Organization(May be 5 or more). I need to provide facility to view these camera's preview in their Android mobiles. I found an application already available in Android Market(IP Cam Viewer) and it is what exactly my Client asking. Can anyone suggest me the best IP camera(It should be operated by their mobile i.e moving it up and down, as well as left and right) And how can I implement this functionality in Android(i.e Viewing live video from the IP Camera)?
View 2 Replies
View Related