[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 , bu

[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 wrote

[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 wrote: > Hello World! > I'm a beginner in android platform.I want to know how I

[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, Jo

[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, excpe

[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: 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 wrote: > > > > >     Anyone know how to delet

[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 wrote: > Hi, > >       I want to use the system brightness  in android,anybody can give > me a sample code of getting the brightness from android. --~--~-

[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 wrote: >     Anyone know how to delete SMS messages from the SIM card? Thanks! > >                      Mark --~--~-~--~~~---~--~~ You received this message because you are

[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 a

[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 wrote: > Hi Tushar > > You can make toast like this > > public void showAlertMessage(Context context, String text){ > >         La

[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 you'r

[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 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: Android Testing with TMobile G1

2009-03-10 Thread mark . kahrl
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 have root access, but this doesn't seem to matter for developing normal apps, only if you plan on hacking or setting up your own linux layer code etc. You also get the a

[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 wrote: > We am looking for a expert Android developer for Android application > development. You must have documented experience in following areas: > > - UI developmen

[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 wrote: > Hi > > Because there is a new project that wants me to porting android to

[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 wrote: > If you're using Vista there is no fix. > > It's

[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 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 can obtain from this

[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 wrote: > Mark K wrote: > >   Does anyone know of a way to get the version/build number > > programatically? > > Check out android.os.Build and android.os.Bui

[android-developers] Re: Bitmap Memory

2009-02-27 Thread mark . kahrl
I agree, looks like a memory leak to me, I was able to mitigate the problem, but I hope this issue at least gets officially recognized as a bug, and eventually fixed. Mark On Feb 27, 12:56 pm, Mark Murphy wrote: > bra...@gmail.com wrote: > > I have to agree. I am literall

[android-developers] Re: Phone Calls

2009-02-27 Thread mark . kahrl
Should just change your number on your profile to 867 5309 , anyone with that number is used to getting random calls anyway:) On Feb 25, 11:56 pm, Al Sutton wrote: > I'd put up a SkypeIn number, mobile, or something similar that you can > turn off when you're "Off duty". > > Al. > > > > > > j

[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 wrote: > any one can help me how to extract code from apk file . --~--~-~--~~~---

[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 dev

[android-developers] Re: Assuming Developers are Pirates

2009-02-27 Thread mark . kahrl
I don't think it matters that much, developers actually paying for software? Unlikely in any case. On Feb 26, 11:08 am, Eric Veenendaal wrote: > I just wanted to start a thread expressing my displeasure with the > choice to block copy-protected apps from being made available to > ADPs.  Th

[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" wrote: > If

[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 wrote: > What's your app, I'll be happy to give you a 1 * for no

[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 to

[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 wrote: > Hello developers, > I am planning to buy a dev phone in singapore and I live in Ind

[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 wrote:

[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 wrote: > It seems like the Market's rating system usings floor() inste

[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 wrote: > I am developing an application on the Android Platform for my music > service (axcid.org).. > > Haven't spent a huge amount of time in Ja