[android-developers] Don't receive intent

2009-09-01 Thread Lutz Schönemann
Hi, my current problem is that I don't receive an intent. I have a BroadcastReceiver and defined in the AndroidManifest.xml file that it also should receive intents with these actions - android.intent.action.PACKAGE_ADDED - android.intent.action.PACKAGE_CHANGED -

[android-developers] Re: Don't receive intent

2009-09-01 Thread Lutz Schönemann
schrieb Lutz Schönemann: Hi, my current problem is that I don't receive an intent. I have a BroadcastReceiver and defined in the AndroidManifest.xml file that it also should receive intents with these actions - android.intent.action.PACKAGE_ADDED - android.intent.action.PACKAGE_CHANGED

[android-developers] Expose service interface to other application

2009-08-31 Thread Lutz Schönemann
Hi, I have created a service and want to expose the interface to other applications. For one service I have done this successfuly. I just put the AIDL interface into the new project and all worked fine. Now for this service I've done the same but I get a java.lang.VerifyError when trying

[android-developers] Re: Can not access my own service

2009-08-31 Thread Lutz Schönemann
in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 28, 3:29 am, Lutz Schönemann lutz.schoenem...@sit.fraunhofer.de wrote: Hi, my current problem is to access my own service. The thing is I have 2 interfaces for my

[android-developers] Re: Can not access my own service

2009-08-31 Thread Lutz Schönemann
in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 28, 3:29 am, Lutz Schönemann lutz.schoenem...@sit.fraunhofer.de wrote: Hi, my current problem is to access my own service. The thing is I have 2 interfaces for my service and want to restrict one of them

[android-developers] Re: Can not access my own service

2009-08-31 Thread Lutz Schönemann
Suddenly it works. The change is, that instead of hardcode the permissions name into the code, I used: Manifest.permission.MY_PERMISSIONS_NAME; Am 31.08.2009 um 11:41 schrieb Lutz Schönemann: I've tested it with a system permission (android.permission.INTERNET) and it worked fine

[android-developers] Use classes defined inside other applications

2009-08-31 Thread Lutz Schönemann
Hi, is it possible to use classes that are defined in other applications? I have two dependent projects and want to use classes from one project inside the other. I use eclipse and in the project preferences Project References I checked the other project. In addition I added the

[android-developers] Re: Use classes defined inside other applications

2009-08-31 Thread Lutz Schönemann
a jar file and import jar library in other projects 2009/8/31 Lutz Schönemann lutz.schoenem...@sit.fraunhofer.de Hi, is it possible to use classes that are defined in other applications? I have two dependent projects and want to use classes from one project inside the other. I use eclipse

[android-developers] Can not access my own service

2009-08-28 Thread Lutz Schönemann
Hi, my current problem is to access my own service. The thing is I have 2 interfaces for my service and want to restrict one of them to applications that have a special permission. I have a service and an activity in one package. The application has that special permission but I always

[android-developers] Re: How i can pass my String to Another page

2009-08-28 Thread Lutz Schönemann
You also can put your string into the intents data bundle object if you are using intents to start your next page: Intent intent = new Intent(YourAction); intent.setExtras(Username, username); startActivity(intent); Am 28.08.2009 um 12:05 schrieb Panut Sunyakorn: You can use

[android-developers] Re: How to call another class method.

2009-08-28 Thread Lutz Schönemann
you need a reference to the class that contains the method you want to call. To access the mehtod homepage() inside the eSkyGuide from the class Weather, you need an instance of the eSkyGuide class inside the instance of the Weather class. for example: public class Weather extends

[android-developers] Re: How i can pass my String to Another page

2009-08-28 Thread Lutz Schönemann
Am 28.08.2009 um 13:42 schrieb Sasi Kumar: public static String username; s2.java private String df; df=s1.username; Bad idea. So you have to hardcode the username because it's static and you can't change it at runtime Use intents for this thats all!. On Aug 28, 2:22

[android-developers] LocationManager and PendingIntent problem

2009-08-03 Thread Lutz Schönemann
Hi, I have more than one problem to use the addProximityAlert() method from the LocationManager class. The first thing is that I want to create a PendingIntent for a broadcast receiver. Therefor I use this code: Intent intent = new Intent(app1.PROXIMITY_ALERT);

[android-developers] Re: LocationManager and PendingIntent problem

2009-08-03 Thread Lutz Schönemann
(LocationManager.KEY_PROXIMITY_ENTERING))); } } } } The latitude and longitute I registerd for is 1, 1 and on the terminal I run the geo command multiple times: geo fix 3 3 geo fix 1 1 ... What am I doing wrong? Am 03.08.2009 um 15:12 schrieb Lutz Schönemann: Hi, I have

[android-developers] Re: LocationManager and PendingIntent problem

2009-08-03 Thread Lutz Schönemann
Okay, I managed to get it to work on a real phone (Google Dev Phone 1). But why doesn't it work on an emulator? Is there more to do than just use the geo command? Am 03.08.2009 um 19:02 schrieb Dianne Hackborn: Please look at the examples in ApiDemos. 2009/8/3 Lutz Schönemann

[android-developers] Starting service in separate thread

2009-07-27 Thread Lutz Schönemann
Hi, i have a little frontend showing a list of items that it will retrieve from a service. I want that service to be started in a separate thread so the UI is still responding to user interaction while waiting for that service to call a callback method. What is the best way to start the

[android-developers] Re: Starting service in separate thread

2009-07-27 Thread Lutz Schönemann
How should I design a method that needs a few seconds to return a result? Even if I put the call to that method inside a separate thread it will not return faster. Am 27.07.2009 um 16:07 schrieb Mark Murphy: Lutz Schönemann wrote: Hi, i have a little frontend showing a list of items

[android-developers] Re: Starting service in separate thread

2009-07-27 Thread Lutz Schönemann
So, do you think that it is a good idea to design the UI that it wait's for callbacks from the service? Am 27.07.2009 um 16:44 schrieb Mark Murphy: Lutz Schönemann wrote: How should I design a method that needs a few seconds to return a result? Even if I put the call to that method inside

[android-developers] Get certificate used to sign an application

2009-07-13 Thread Lutz Schönemann
I need some info about the android.content.pm.Signature object. Currently I do the following to get the certificate used to sign the package: ---8---8---8--- ByteArrayInputStream is; CertificateFactory cf; try { cf = CertificateFactory.getInstance(X.509); }

[android-developers] Re: Installation error: failure -12

2009-07-13 Thread Lutz Schönemann
Maybe you have compiled your application for Android 1.5. Make sure to set Android 1.1 as target. Am 13.07.2009 um 13:10 schrieb bluestar: Hi all, I used Eclipse-SDK1.5 to create one app from apk(myClient.apk), and install on OpenMoko(Android version 1.0) but i received this

[android-developers] Re: Getting all views of an activity.

2009-07-13 Thread Lutz Schönemann
If you have all your Views in a LinearLayout or an other container that extends ViewGroup you can use the functions getChildCount() and getChildAt(int) and iterate through all of the contained views. Am 13.07.2009 um 18:21 schrieb Mathieu Plourde: I have the instance to my activity, and

[android-developers] Re: understanding the permission-group tag

2009-05-18 Thread Lutz Schönemann
Doesn't anybody know something about grouping permissions? The documentation does not explain that tag in depth. Lutz Am 14.05.2009 um 16:38 schrieb Lutz Schönemann: Hi, I need some help to understand the use of permission-group tag in AndroidManifest files. Is there any need of using

[android-developers] understanding the permission-group tag

2009-05-14 Thread Lutz Schönemann
Hi, I need some help to understand the use of permission-group tag in AndroidManifest files. Is there any need of using permission-group and what benefit offers this grouping? Is there a plus security using it? Does anyone know an example when to use it? Thanks for help Lutz

[android-developers] Getting Resource.NotFoundException

2009-04-20 Thread Lutz Schönemann
Hi everyone, my current problem is that I have two application. The first one defines a new permission and is already installed. The second uses the permission defined by app 1. When I try to install it by downloading it with the browser the PackageInstaller crashes. Looking at the logs

[android-developers] Re: Question about OpenGL literature

2009-03-26 Thread Lutz Schönemann
If you're looking just for a book on OpenGL there are the official books: - The Redbook: The OpenGL Reference Manual http://www.opengl.org/documentation/blue_book/ - The Bluebook: The OpenGL Programming Guide http://www.opengl.org/documentation/red_book/ You can also look on this site:

[android-developers] Re: Http GET method with extra headers

2009-03-26 Thread Lutz Schönemann
Hi, try the 'setHeader(String name, String value)' method from the HttpGet class. For example: --- snip --- DefaultHttpClient client = new DefaultHttpClient(); HttpGet method = new HttpGet(url); HttpResponse response = null; method.setHeader(user-agent,

[android-developers] API reference for system application

2009-03-26 Thread Lutz Schönemann
Hi, I want to do some development on the Android system. Is there a way to make Eclipse know about the entire API that Android provides to systemtools? And is there a reference for that API? Thanks Lutz smime.p7s Description: S/MIME cryptographic signature

[android-developers] Re: HttpGet.addHeader

2009-03-26 Thread Lutz Schönemann
If you use the DefaultHttpClient to connect to your server you don't need to reconnect. You'll receive a HttpResponse. You should validate the status code if the request was successful. after that just retrieve the HttpEntity. This class provides a getContent() method which returns a

[android-developers] Re: Building user interfaces at runtime with layouts from server

2009-03-26 Thread Lutz Schönemann
The point is now: Android already has this user interface description (layout.xml) and the code which inflates such a description (in preprocessed form) to a user interface. It would be awesome to reuse this code! You can use that LayoutInflater to create the tree of views and attach it to

[android-developers] Re: HttpGet.addHeader

2009-03-26 Thread Lutz Schönemann
Am 26.03.2009 um 16:12 schrieb Stoyan Damov: ResponseHandlerString responseHandler = new BasicResponseHandler(); String body = httpClient.execute(method, responseHandler); That's much simpler. But is there a way to get the status code if you do it this way? Lutz 2009/3/26 Lutz

[android-developers] Re: get Certificates from Package

2009-03-25 Thread Lutz Schönemann
Well there is a PackageParser class inside the core which reads the Certificates. But there seems to be no interface to get them via the standard API. Do I have to let my app parse the package it self? Am 23.03.2009 um 18:09 schrieb Lutz Schönemann: Hi, I'm looking for a way to get

[android-developers] get Certificates from Package

2009-03-23 Thread Lutz Schönemann
Hi, I'm looking for a way to get the certificates from a package that are used to sign it. Using the PackageInfo class it is possible to get the signatures. But what can I do with signatures if I don't get the public keys to verify these. The next question I have where does the

[android-developers] Re: Adding padding between buttons in a LinearLayout

2009-01-27 Thread Lutz Schönemann
Hi, you can try to add a simple View object between the two Buttons. I found this snippet in the Android source code: Button android:id=@+id/ok_button android:layout_width=150dip android:paddingLeft=6dip android:layout_gravity=left

[android-developers] Sending Intent to specific Activity

2009-01-12 Thread Lutz Schönemann
Hi, I want to create a activity that receives intents modify these and send them to an other activity that is also registerd to receive this kind of intents. These two activities are not in the same package. Is there a way to specify a activity that should receive this intent? I am new to