[android-developers] How to sign .apk file with system certificate

2009-04-15 Thread Mark K
I have an application that I want to be able to use the userid: android:sharedUserId=android.uid.system, I need to sign the .apk file with the same certificate as the built in system applications, such as the 'Settings' application. I've located the keystore file in my build directory which

[android-developers] Delete SMS messages from SIM card

2009-03-20 Thread Mark K
Anyone know how to delete SMS messages from the SIM card? Thanks! Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Getting build number/version programatically

2009-02-27 Thread Mark K
Does anyone know of a way to get the version/build number programatically? I dug into Settings source code, it indicated that this info could be read from the file /proc/socinfo, but this file doesn't seem to exists on any of the devices I'm working with?! Wondering where else I might be able

[android-developers] Re: Paid applications - are they downloadable now?

2009-02-19 Thread Mark K
No paid apps yet on the market for users, 'mid week' means COB Friday in developer speak :) Mark On Feb 19, 8:58 am, nEx.Software justin.shapc...@gmail.com wrote: I've not seen any priced apps in the U.S. Market yet. On Feb 19, 3:31 am,

[android-developers] Re: How to get a deliver pdu from a SmsMessage

2009-02-18 Thread Mark K
To get the pdu from a message, use a broadcast reciever, set the intent filter in the manifest to recieve sms, you can get a pdu from a message in the broadcast reciever as follows: public void onReceive(Context context, Intent intent) { // if the abort command is

[android-developers] Re: How to get sms message from intent

2009-02-11 Thread Mark K
You don't need to use the telephone class, use a Broadcast reciever to grab messages as thay come in, as such public void onReceive(Context context, Intent intent) { // if the abort command is issued this will execute when the next message is received.

[android-developers] Re: Apple Why G1 Has No 3.5mm Headphone Input?

2009-02-11 Thread Mark K
What the patent issue really means is that an OEM manufacturer outside the US, with no US assets will implement the mult-touch interface, if no US company is willing to. We really need patent reform in this country, our bass-ackwards patent laws are preventing competition, and short changing

[android-developers] Re: It is now MID-Q1, where are the Paid Apps?

2009-02-11 Thread Mark K
Since Google is run by developers, that timeline was specified in 'developer time', in developer time mid Q1 = late Q1 to mid Q2 . :) At least you have plenty of time to get your apps ready, which is nice since we're also running on 'developer time'. M On Feb 11,

[android-developers] Re: Market numbers are weird the last few days

2009-02-11 Thread Mark K
Since the update users are prompted by there status bar to update all applications that are installed, and have an update avialble, that probably explains the increase in traffic due to update downloads. Mark On Feb 9, 8:57 pm, Jay-andro jayan...@gmail.com wrote: Starting

[android-developers] Re: using G1 without network

2009-02-05 Thread Mark K
You can use it without a SIM card once you have the phone initially setup, but it does seem like you need a SIM card to do the initial boot, and Google registration. Mark On Feb 5, 12:44 pm, Rob Ruff rr...@scires.com wrote: Is it possible to use the G1 without a

[android-developers] Re: Radio Off

2009-02-05 Thread Mark K
You can use android.provider.Settings, see the SDK docs. Mark On Feb 4, 2:14 am, Kamal Hasan kamal.hasa...@gmail.com wrote: Hi, Programatically how to switch off Radio, bluetooth and wifi in android  ? Can I enable airplane mode ? Kamal

[android-developers] Re: Putting App for Testing on My Dev Phone

2009-01-29 Thread Mark K
You can use adb (Android Debug Bridge) to install applications onto your phone. ie 'adb install c:\myproject\myapp.apk'. You should familiarize yourself with the Android command line tools such as adb and ddms, and not just rely on Eclipse. Don't forget to add the /tools directory to your PATH.

[android-developers] Re: G1 OS version?

2009-01-28 Thread Mark K
Look under 'Settings' scroll to the very bottom, 'About Phone' will give you the build number etc. Mark On Jan 23, 8:25 pm, Wah mobic...@gmail.com wrote: Can someone tell me the current OS version for T-mobile G1 phones? I have a developer phone but its

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-01-23 Thread Mark K
It seems that there my be a bug, memory leak with the BitmapFactory when decoding, and reading bitmaps from file. I, and many other developers have noticed similar problems to what you describe. I haven't been able to get any official confirmation that this is a known bug, but it looks like a

[android-developers] Re: Batteryprof

2009-01-13 Thread Mark K
One solutions is to have a spare replacement battery with, they only cost $25 and the battery can be changed in a minute, can't do that with an I-phone. Mark On Jan 13, 4:31 pm, enervat...@gmail.com wrote: Hi all, I've been thinking about battery life

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-09 Thread Mark K
As mentioned in other threads I've also had consistent problems with BitmapFactory.decodeFile() causing out of memory problems where there should be lots of memory available. I'm quite sure there is some kind of bug causing this problem, but I cannot get this officially confirmed. Many other

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-09 Thread Mark K
probem. Mark On Jan 9, 4:18 pm, EboMike ebom...@gmail.com wrote: Mark, did you try running without a debugger attached like I suggested earlier in this (or some other) thread? That fixed the BitmapFactory problems for me. On Jan 9, 1:53 pm, Mark K mark.ka...@gmail.com wrote

[android-developers] Re: OutOfMemoryError BitmapFactory.nativeDecodeByteArray inside Threads

2009-01-08 Thread Mark K
, Mark K mark.ka...@gmail.com wrote: Thanks for the beta on the bitmap,recycle(), it works! Before processing the next bitmap I use this code to free up memory. I have a class level Bitmap object.                                 Bitmap bm;// class level

[android-developers] Re: Power management in Android

2009-01-08 Thread Mark K
There's no way to query the power state directly that I know of, but you can have a receiver receive the intent 'ACTION_BATTERY_CHANGED' which should be thrown when the battery state changes. Mark On Jan 6, 11:29 pm, xroge...@gmail.com xroge...@gmail.com wrote: I

[android-developers] Re: Camera preview to an invisible SurfaceView

2008-12-19 Thread Mark K
I don't think this is possible. Doesn't seem like Android supports 'headless' graphics implementations. Mark On Dec 19, 7:35 am, Boshik bos...@gmail.com wrote: Hi Guys, Is it possible to capture camera snapshots to bitmaps WITHOUT creating a visible surface view?

[android-developers] Re: Sending a message from Service to Activity

2008-12-19 Thread Mark K
This issue has come up a number of times before. What you need to do is to define another aidl interface that is a 'callback' interface that contains the methods that you want to go from your service to your activity. Add a 'registerCallback' method to your existent aidl interface which

[android-developers] Re: Thought's On Android CupCake?

2008-12-19 Thread Mark K
Looks good, will have camcorder support which is huge! It needed to support recording video, since all the other 'smart phone' platforms do also. Hopefully it will be an easy upgrade for the G1. Mark On Dec 19, 9:37 am, TmobileG1Fans ilovetoar...@gmail.com wrote: I think it's

[android-developers] Re: Android Dev Phone Battery life

2008-12-19 Thread Mark K
More features (WiFi , GPS ) and bigger screen require more power. You can get spare batteries for around $25. I have a couple that I keep with me, just in case I juice the battery and am not near a plug. My BB had much better battery life, but then again my G1 does things that a BB never

[android-developers] Re: Web Service

2008-12-19 Thread Mark K
Since Android supports regular Java object serialization, you can just stream objects to and from Java app servers such as Tomcat etc, Using ObjectOutput/Input streams. See Tomcat docs and examples of how do do this. This is a first for a mobile platform! Also Android supports sax and dom xml

[android-developers] Re: Mobile Developers Research Project asking for Android's opinion, by Carnegie mellon University

2008-12-19 Thread Mark K
As a developer we generally don't get to decide which platform gets used. This decision is generally made by management and non-tech people, and is usually based more on business factors than technology. Of course if they ask for my opinion, I'd reccomend Android over other platforms because

[android-developers] Re: Regarding android registration

2008-12-19 Thread Mark K
In general, this can't be done, the only way for apps to comunicate is via aidl, if another app, or built in app doesn't implement an aidl interface that you can reach, then the only way for apps to communicate is via intents. Some information can be sent with intents using 'extras', and

[android-developers] Re: Testing the OrientationListener

2008-12-19 Thread Mark K
Check out 'Bubble' or 'Chistmas Snow Globe' at the app store. 'Bubble' is cool! On Dec 16, 9:44 pm, Hopper mehijun...@gmail.com wrote: Hey all, I'd like to know what options (if any) I have to test the OrientationListener -- and other sensors -- from within the Android Emulator. Five

[android-developers] Re: OutOfMemoryError BitmapFactory.nativeDecodeByteArray inside Threads

2008-12-17 Thread Mark K
or get/ set its pixels anymore). i.e. for (all of my big images) {      Bitmap b = decode(...);      canvas.drawBitmap(b, ...);      b.recycle();      // yikes, don't reference b again) } On Dec 15, 2008, at 9:04 PM, Mark K wrote:   Is there a work around for this problem? Something

[android-developers] Re: Installation unsuccessful - Package file was not signed correctly

2008-12-15 Thread Mark K
Is your self generated certificate valid until 2033? If you use the default, it will only have a validity of 180 days, use -validity 1 when generating your cert. Just something to check. Maybe try generating a new cert. M On Dec 14, 10:46 pm, joshv

[android-developers] Re: OutOfMemoryError BitmapFactory.nativeDecodeByteArray inside Threads

2008-12-15 Thread Mark K
I've run into this exact same problem a number of times myself. Not sure if its a bug or just a limitation of the jvm, can't seem to process more than a few large bitmaps without this occuring, this always seems to occur when decoding bitmaps from file. Hopefully its on the radar as a bug and

[android-developers] Re: abusive, explicit language comments in the Android Software Market

2008-12-15 Thread Mark K
Yes it seems some of the users of the store are quite acerbic and rude. They download applications for free that some one put time and effort into, and then make slanderous and rude comments if the application is not to their liking. I published an application, but then withdrew it after some

[android-developers] Re: google contact ?

2008-12-15 Thread Mark K
A bit of civility would be nice at the App Store. Many of the comments made about applications are quite rude and un-called for, some are even obscene People are getting free software, yet they are quite viscious if it isn't to their liking. I found it quite demoralizing to publish an app

[android-developers] Re: OutOfMemoryError BitmapFactory.nativeDecodeByteArray inside Threads

2008-12-15 Thread Mark K
Is there a work around for this problem? Something I need to do differently perhaps? It seems like garbage collection is not occurring between successive bitmap decoding operations. Explicitly calling gc() does not seem to help. This is particularly a problem on the G1, because there is no way

[android-developers] Re: iPhone SIM Card compatibility

2008-12-12 Thread Mark K
I've got my G1 working on ATT , for your apn settings set name= wap.cingular apn=wap.cingular, I left all other fields blank, my phone now phone works fine on ATT. The SIM card should be independant of the iPhone. Mark On Dec 11, 1:02 pm, Dave

[android-developers] Re: Timeout executing service

2008-12-12 Thread Mark K
Rather than using Thread.sleep(), use a Handler object instead, use Handler.postDelayed() . Using Thread.sleep in a GUI app will cause it to time out. Mark On Dec 11, 8:13 am, Andrew Stadler stad...@gmail.com wrote: Sukumar- The activity manager assumes that your

[android-developers] Re: Has anybody received an android dev phone in the US yet?

2008-12-11 Thread Mark K
I'm using my G1 on ATT , I had to add wap.cingular as an apn, set 'wap.cingular' as the name and apn, left all other settings blank. Mark On Dec 10, 12:05 pm, Jackson Miller [EMAIL PROTECTED] wrote: I just received my phone.  I ordered it on Saturday.  I am in

[android-developers] Re: java.util.Timer NOT make sense in Activity?

2008-12-09 Thread Mark K
Try using the alarm service or use a hanlder with postDelayed (). J2SE things may be supported in Android, but you don't always get the same result, particularly with issues involving threads. M On Dec 8, 7:45 pm, Xiongzh [EMAIL PROTECTED] wrote: Hi, I was going to

[android-developers] Re: How to create bitmap directly from byte array?

2008-12-09 Thread Mark K
try something like this: byte[] data = getData(); Bitmap bm=null; ByteArrayInputStream bytes = new ByteArrayInputStream(data); BitmapDrawable bmd = new BitmapDrawable(bytes); bm = bmd.getBitmap(); On Dec 8, 11:51 pm, shuoshuo [EMAIL PROTECTED] wrote: Hi,    Anyone' help is appreciated.    I

[android-developers] Re: why cannot stop my thread?

2008-12-09 Thread Mark K
Though android supports the j2se thread model, it may not produce the results you expect at run time. Try using thr Looper and Handler objects instead of raw threads in gui applications. Mark On Dec 9, 8:29 am, Shubham [EMAIL PROTECTED] wrote: Can you paste

[android-developers] Re: Is there any API for the Messaging notification settings ?

2008-12-08 Thread Mark K
These are not supported by the sms api (gsm telephony). You can write your own sms client activity where you can implement whatever you want to happen when recieving messages, but there is no api that will you allow you to modify these for the onboard sms client.

[android-developers] Re: Distorted Images taken from Camera

2008-12-04 Thread Mark K
I have my own camera app, works just fine on the G1, post the code maybe? Mark On Dec 3, 1:42 pm, ryan84c [EMAIL PROTECTED] wrote: Hi, I'm trying to develop an Android app that will allow users to take pictures. I've tried just about every sample out there, but one problem I

[android-developers] Re: How do I find qualified Android Mobile Application Developers

2008-12-03 Thread Mark K
I think the bulk of the experienced and talented Android developers are on the left coast, not to sound too provincial. Also most of the experienced Android developers are already employed, being as how there has been a sudden increase in demmand. MM On Dec 2, 11:39 

[android-developers] Re: Image capture

2008-12-03 Thread Mark K
You need to use the camera class in android.hardware, you can grab the byte[] the camera captures by use of the camera callback methods. M On Dec 2, 2:52 pm, fala70 [EMAIL PROTECTED] wrote: Using : Intent intent = new

[android-developers] Re: my PacMan version released

2008-12-03 Thread Mark K
I'll ckeck it out! On Dec 2, 12:37 pm, Andrea [EMAIL PROTECTED] wrote: Dear members, I've just published my Pacman version on AndAppstore.com and on SlideMe.org . It is still under development, so please test and report me bugs, comments and whatever you think maybe useful. I'm

[android-developers] Re: Camera Settings

2008-12-01 Thread Mark K
These features are supported by the G1 QCamera and driver, but they haven't been implemented at the API level for Android 1.0, hopefully some of these features will be supported in Android version 1.1. Mark On Nov 30, 1:47 pm, Xavier Mathews [EMAIL PROTECTED] wrote:

[android-developers] Re: G1 activation problem

2008-11-24 Thread Mark K
I was able to get an unlocked G1 phone onto ATT without an ATT data plan. I had to add 'wap.cingular' as an apn, only had to provide 'wap.cingular' no other fields. I was then able to log on with my google account and boot the phone, which currently uses only wifi for data . I guess the crux

[android-developers] Re: Sending a message from Service to Activity

2008-11-24 Thread Mark K
You need to set up the aidl as you have to connect to the service as you have, you then need to register a seperate call back interface with the service, and implement that interface in your activity, the API demos has an example of this, under remote service. I have successfully set up two