[android-developers] Re: problems with bitmaps

2009-04-09 Thread mark . kahrl
There's been a number of threads on this issue, the BitmapFactory tends to throw this out of memory errors when it really shouldn't, looks like a bug or memory leak. I'm not sure if it's cataloged as an official bug though. Using bitmap.recycle(), and reducing the sample size will mitigate ,

[android-developers] Re: calling servlet from application

2009-04-08 Thread mark . kahrl
Yes that is a wonderful feature of Android, in that much of the backend functionality is the same as 'regular' java. You can even stream objects back and forth to servlets, no need for chossy xml/soap type web data services. M On Apr 6, 11:06 am, Mark Murphy

[android-developers] Re: SMS in android

2009-03-31 Thread mark . kahrl
You can receive an SMS mesage on the emulator by using emulator control, you'll need an actual device to fully test sending sms, the behavior is different on the emulator. M On Mar 30, 10:05 am, aglagla lad...@gmail.com wrote: Hello World! I'm a beginner in android platform.I

[android-developers] Re: OutofMemory exception when dealing with large Bitmaps

2009-03-27 Thread mark . kahrl
This is a common problem when using the BimapFactory.decode, there is a bug or memory leak. We've had lengthy discussions about this in previous threads. Using smaller bitmaps, using bitmap.recycle(), and turning down the sample size can mitigate, but not eliminate this problem.

[android-developers] Re: All SYMBIAN based end devices accept Java language Applications :: Need Clarification

2009-03-27 Thread mark . kahrl
Java is a very general term these days, to Sun it is a 'brand' , in corporate speak. What the statement is trying to say is that Symbian devices accept J2ME which is a subset of the Java language and API's for mobile devices. Android and J2ME do not really have much to do with each other,

[android-developers] Re: Intercept Incoming SMS

2009-03-27 Thread mark . kahrl
That is because both your receiver and the onboard application both grab the message from the same intent, intents can be captured by more than one receiver, howerver your receiver cannot consume the intent such that it is not available to other receivers. Mark On Mar 24, 3:29 pm,

[android-developers] Re: Delete SMS messages from SIM card

2009-03-24 Thread mark . kahrl
Anyone, anyone? Bueller? ... I'll answer my own question, I'll try using the uri content://sms/sim On Mar 20, 1:14 pm, mark.ka...@gmail.com wrote:   That is programmatically delete messages from the SIM card... On Mar 20, 12:58 pm, Mark K mark.ka...@gmail.com wrote:     Anyone know

[android-developers] Re: Delete SMS messages from SIM card

2009-03-20 Thread mark . kahrl
That is programmatically delete messages from the SIM card... On Mar 20, 12:58 pm, Mark K mark.ka...@gmail.com wrote:     Anyone know how to delete SMS messages from the SIM card? Thanks!                      Mark --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Accessing System Brightness

2009-03-20 Thread mark . kahrl
int bright = 50; Settings.System.putInt(ftaContext.getContentResolver(), Settings.System.SCREEN_BRIGHTNESS, bright); On Mar 19, 9:14 pm, joby joby...@gmail.com wrote: Hi,       I want to use the system brightness  in android,anybody can give me a sample code of getting the brightness from

[android-developers] Re: List of private / hidden / system APIs?

2009-03-13 Thread mark . kahrl
On Android, All apps are created equal but some are equal than others... You can replicate most of the functionality of the built in apps by using internal classes, that do not ship as part of the SDK. The only exception I've found is that some classes require you to have the same process id

[android-developers] Re: Learning JAVA

2009-03-12 Thread mark . kahrl
It might be easier of you don't know Java to start by learning Java and writing some usual desktop applications in awt/Swing. Look at the materials for the Java programmer certification to get a good overview of Java. Once you've got a handle on Java then try writing and Android app. Just my

[android-developers] Re: Android Telephony

2009-03-12 Thread mark . kahrl
This can be done, but it is a bit of an advanced topic. You'll need to use an internal class which is com.android.internal.telephony.PhoneStateIntentReceiver Grab this package, the .class files from the cupcake source tree repository , (doesn't ship with the SDK) and add the classes to

[android-developers] Re: How to creat Toast Like view

2009-03-12 Thread mark . kahrl
Did you look at PopupWindow in the /widgets package? it is toast like, but persist until the user closes it. Mark On Mar 11, 5:26 am, Gulfam gulfa...@gmail.com wrote: Hi Tushar You can make toast like this public void showAlertMessage(Context context, String text){

[android-developers] Re: Application developer wanted for contract work

2009-03-10 Thread mark . kahrl
So basically you're looking for someone to do all the work, and absorb all the risk for you. On Mar 9, 5:08 pm, AndroidDev petersmai...@gmail.com wrote: We am looking for a expert Android developer for Android application development. You must have documented experience in following

[android-developers] Re: Android Testing with TMobile G1

2009-03-10 Thread mark . kahrl
You do need to enable debugging to use adb, under Settings - applications - development M On Mar 10, 2:52 pm, mark.ka...@gmail.com wrote:   I just use a regular G1 for development, got it before the dev phone came out. You can access it with adb as usual. You don't

[android-developers] Re: Regarding ADB offline message

2009-03-03 Thread mark . kahrl
Ah the joy of Vista... Did you try running 'adb kill-server' several times while the device is unplugged, then replugging it? I've had to do that to see the device once in a while, but I'm not using Vi$ta . On Mar 3, 2:58 am, Al Sutton a...@funkyandroid.com wrote: If you're using Vista there

[android-developers] Re: About porting Android to CDMA phones?

2009-03-03 Thread mark . kahrl
I know for a fact that several vendors are currently developing Android to deploy on CDMA phones, don't know exactly what code modifications are required. M On Mar 3, 1:28 am, ilikeB2 zhengji1...@gmail.com wrote: Hi Because there is a new project that wants me to

[android-developers] Re: How to detect SMS sending?

2009-02-27 Thread mark . kahrl
Thanks for the info, the content observer works, Using pending intents with the SmsManger does not seem to work, the intent gets broadcast that the message was sent, even if you have no signal or SIM card in the device, the content obsever does actually tell if the message was sent from the

[android-developers] Re: extraction

2009-02-27 Thread mark . kahrl
There is a way, I could tell you, but I don't anyone unpacking and decompiling my apps! It will be left as an exercise for the reader. M On Feb 26, 1:02 pm, crans b.cranthy.ku...@gmail.com wrote: any one can help me how to extract code from apk file .

[android-developers] Re: Getting build number/version programatically

2009-02-27 Thread mark . kahrl
Thanks for that info, I guess that should have been intuitively obvious to the casual observer On Feb 27, 1:21 pm, Mark Murphy mmur...@commonsware.com wrote: Mark K wrote:   Does anyone know of a way to get the version/build number programatically? Check out android.os.Build

[android-developers] Re: Getting build number/version programatically

2009-02-27 Thread mark . kahrl
I need to do it programmatically, but thanks. M On Feb 27, 3:49 pm, sm1 sergemas...@gmail.com wrote: You could use *Device Internals for r1* which is free in Tools, and scroll to section *android.os.Build*, it will list you the fields and values that you

[android-developers] Re: Are there any 5-star apps out there?

2009-02-26 Thread mark . kahrl
I'm proud to say my app currently has a five star rating, unfortunatley have only had 2 sales so far. At least I have a day job doing Android development. Mark On Feb 26, 10:09 am, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: It seems like the Market's rating

[android-developers] Re: Bitmap Memory

2009-02-26 Thread mark . kahrl
Are you using BitmapFactory? There have been a number of threads about memory leaks, or similar problems when using BitmapFactory to process bitmaps. Using Bitmap.recycle may mitigate, but not eliminate these types of problems. M On Feb 26, 11:39 am, Mattaku Betsujin

[android-developers] Re: DEV PHONE IN ASIA

2009-02-26 Thread mark . kahrl
Should work with any SIM card, but you will probably have to add an APN entry for your carrier. That's the beauty of GSM, it is truly a global standard. Mark On Feb 25, 5:46 am, Joo mini...@gmail.com wrote: Hello developers, I am planning to buy a dev phone in singapore

[android-developers] Re: Bitmap.comrpess() failing with PNG images?

2009-02-26 Thread mark . kahrl
PNGs are based on vector graphics instead of raster graphics which are used ny .jpeg, I don't think compression will work on vector graphic files.Vector graphic files have there own compression , which is based on graphic primitives instead of rasters/pixels. PNG's should more fairly compact

[android-developers] Re: Are there any 5-star apps out there?

2009-02-26 Thread mark . kahrl
Unless you're willing to purchase and give it 5 stars, I ain't saying which app it is! :) It's really just packaged content, so I don't plan on changing it until I update the content next year. On Feb 26, 1:51 pm, Stoyan Damov stoyan.da...@gmail.com wrote: What's your app, I'll be happy to

[android-developers] Re: Bitmap Memory

2009-02-26 Thread mark . kahrl
I'm just saying there have been a number of threads on this issue, I've had out of memory problems when processing bitmaps, and so have many other developers. It looks to me like a bug IMHO. I hope this problem will be resolved at some point. On Feb 26, 2:02 pm, bra...@gmail.com

[android-developers] Re: Threading help!!

2009-02-24 Thread mark . kahrl
Try a using a handler thread such as: Handler handler = new Handler(getMainLooper()); handler.post(new thread(this)); On Feb 22, 5:10 pm, Gray graham.stachow...@gmail.com wrote: I am developing an application on the Android Platform for my music service (axcid.org).. Haven't spent a