Try using jpegs instead of pngs. That'll reduce your memory usage
quite a bit if you have to use these images and alpha is not a concern.
On 23-Mar-09, at 11:22 AM, Romain Guy wrote:
>
> There's no other way, you are using too much memory, that's all. Note
> that you might have a memory leak
Make use of Handlers to tell the main thread when the other thread has
stopped or completed its task.
final Handler handler = new Handler() {
@Override
public void handleMessage(Message message) {
//do something here. Will be done on main thread
}
};
Use
Thanks :)
On 26-Mar-09, at 12:43 PM, for android wrote:
> in the onCreate set the Progresbar visibilty
> ProgressBar.setVisibilty(View.INVISIBLE)
>
> On Thu, Mar 26, 2009 at 12:34 PM, idev
> wrote:
>
> Hi
>
> I have added an indeterminate progress bar to my view and I want it to
> be display
Thanks a ton. Didn't know android allowed saving to mp3 directly
unlike an iphone.
On 31-Mar-09, at 5:32 PM, MrChaz wrote:
>
> Sure,
> Something like
>
> //Where the file comes from
> URL sourceURL = new URL("address");
> URLConnection conn = sourceURL.openConnection();
>
> InputStream inStr
Thanks.
But AFAIK having a close button tag and closing the tag using /> is
one and the same!
On 04-Mar-09, at 10:10 PM, Stoyan Damov wrote:
>
> Not quite sure (haven't looked at the schema) but perhaps Button is an
> empty element, so in your layout it should look like this:
>
>> >
Yeah that was it. COpied it into notepad and it showed some garbled up
things. Thanks.
On 06-Mar-09, at 4:10 AM, Marco Nelissen wrote:
>
> That layout compiles fine for me. Are you sure you don't have some
> non-printable character in your xml file that is messing things up?
>
>
> On Tue, M
Hi
I have a third-party jar file which I would like to use in my Android
application. Is it possible? Or are we restricted to using only those
jar files which are provided with the SDK?
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are sub
Hi
I want to open the Settings-> Sound & Display-> Phone Ringtones screen
from my application. How can I do that?
Thanks for any help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
Hi
Are there any open-source thesaurus available for the Android phone?
Thanks.
--~--~-~--~~~---~--~~
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@
Hi Mark,
Any news on this issue ?
Thanks,
Dani
On Monday, January 30, 2012 5:10:56 PM UTC+2, Mark Murphy (a Commons Guy)
wrote:
>
> On Sun, Jan 29, 2012 at 9:37 PM, Doug >
> wrote:
> > On Jan 26, 2:33 pm, Mark Murphy wrote:
> >> True, though I'm a bit hesitant to rely upon that behavior until
http://stackoverflow.com/questions/12401027/suppressing-usb-permission-dialog
How can I avoid the Usb permission dialog when running my app ?
Is there any way to achieve this ?
Is there a way to get the permission at install time, or one time when the
app runs, and have it suppressed for the r
Here's the code
Initially , when the activity is created, I set the title like this
getWindow
().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,R.layout.text_title);
TextView databar = (TextView) findViewById(R.id.search_title_text);
databar.setText(titleText);
On a button click, I change the title
You can use Log.d for printing debug statements to the LogCat and
Log.e for error statements.
On 15-May-09, at 1:25 PM, Francesco Pace wrote:
> Hi Mariano, thanks for your time.
> Example :
>
> / CODE APPLICATION
> System.out.println("Hello");
> foo1(); // Simple function
> System.out.
formations on my android application..
> There is a particular UI?
>
> 2009/5/15 iDeveloper
> You can use Log.d for printing debug statements to the LogCat and
> Log.e for error statements.
>
>
>
>
> On 15-May-09, at 1:25 PM, Francesco Pace wrote:
>
gt; >public static final int icon=0x7f02;
> >}
> >public static final class id {
> >public static final int LinearLayout01=0x7f05;
> >public static final int TextView01=0x7f050001;
> >}
> >public static final
Sob sob... Sorry to hurt you. Thats why I wanted to confirm before
using this.
I am already using custom title bar. What I ended up doing was I added
the title bar once, then every time I want to change it, I just change
the visibility to gone or visible depending on whether I want to show
The warning's got nothing to do with the emulator crash. I keep
getting this warning the every time I run the emulator but then
everything works fine on my mac.
There might be some other issue. Look at the crash logs. If its a
crash, they will be in Library/Logs/CrashReporter in your home
d
Not in the onCreate implementation. I am calling it on a button's
click event. And the button is sort of a refresh button. So it might
be pressed multiple times.
On 21-May-09, at 7:57 PM, Streets Of Boston wrote:
>
> Where do you call the showDialog()? In the onCreate?
>
> (Note that there
Hi
I am using a MediaPlayer instance in order to stream audio files from
an Internet location. The audio player is in a separate activity. The
user can select from a list of audio files and come to this activity
which plays the audio.
Now the user might go back to the previous activity (wit
Hi
I have a slideshow function in my app and if the number of images is
more, the phone locks (screen goes black) in the middle of the
slideshow.
How can I avoid this in my app?
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscr
again.
On 22-May-09, at 9:45 PM, Rob Franz wrote:
> You can detect whether audio is playing by getting a reference to
> AudioManager and calling isMusicActive()...
>
> -Rob
>
> On Fri, May 22, 2009 at 11:04 AM, Marco Nelissen
> wrote:
> On Thu, May 21, 2009 at 9:41 PM
use. At
> that point you can just call methods on the player (like 'isPlaying
> ()') without having to worry about where it is.
>
> Just a thought...
> Doug
>
> On May 22, 9:57 pm, iDeveloper wrote:
>> Thanks.
>>
>> And how do I stop the audio from playing if
Hi
I want to move an image around the screen according to the trackball
movement. I am able to capture the movements using the
onTrackballEvent method. But this is being called for very small float
values (I believe for each rotation?) of the trackball.
Now as X and Y positions of views sho
Hi Robert
Can you please post how you're using the service. I had the same
problem and asked this question on 22 May but didn't get a reply.
Using managed dialogs gives out errors too on orientation change.
Thanks.
On 29-May-09, at 9:23 AM, Robert Green wrote:
>
> I just tested using onl
Hi
I'd like to add a menu option to the Android camera app. Is this
possible to do using the current SDK?
I know I need to add an intent-filter tag in my activity to add my
activity to an app's menu. But I don't know what I should put in the
mime type. I want to be able to process the live
Check out this link - http://www.paxmodept.com/telesto/blogitem.htm?id=766
This works great without calling a service.
On 30-May-09, at 2:03 AM, Mark Murphy wrote:
>
> Robert Green wrote:
>> Are you trying to tell me that it's totally safe to throw stuff in
>> static fields?
>
> I wouldn't go
Hi
I have a list, a web view and certain buttons on my activity's layout.
I am trying to center the web view in the layout. The layout_gravity
attribute that I use for the webview doesn't seem to work. It stays
put aligned to the left of the screen when I view the activity.
Can someone please
Thanks a lot.
On 01-Jun-09, at 5:42 PM, Mark Murphy wrote:
>
> iDeveloper wrote:
>> I have a list, a web view and certain buttons on my activity's
>> layout.
>> I am trying to center the web view in the layout. The layout_gravity
>> attribute that I use f
Hi
This is what I tried based on the suggestions in the below chain mail
MyLocationListener myListener = new MyLocationListener();
LocationManager myManager =
(LocationManager)getSystemService(LOCATION_SERVICE);
myManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 2000,
0, myListene
s icon in the
> notification space keeps blinkin then there's some prob...
> u better move to a place where sunlight falls directly on ur
> phone then it might work... it worked for me tat way...
> but i dunno y...
>
>
> On Tue, Jun 2, 2009 at 2:47 PM, iDeveloper
> wrote:
Mark Murphy wrote:
>
> iDeveloper wrote:
>> Hi
>>
>> This is what I tried based on the suggestions in the below chain mail
>>
>> MyLocationListener myListener = new MyLocationListener();
>> LocationManager myManager =
>&g
I am also facing this problem, but the mp3 I reference has a special
character in the name. I am reading the URL from an XML and I don;t
have any idea how to stop the special character from being converted
to garbage when reading from it.
On 04-Jun-09, at 2:05 PM, SurtaX wrote:
>
> bump
ing the same issue as iDeveloper. I tried playing around
>> with
>> the listener (putting 2, 200, or 2000) , but the thing is the map is
>> not changing at all.
>>
>> Also, I am not getting the GPS icon on the phone screen.
>>
>> any luck?
>>
>> than
wrote:
>
> Correction: I meant I AM getting the GPS notification on the screen
> (GPS is enabled from the phone)
>
> On Jun 4, 1:21 pm, Georgy wrote:
>> I am getting the same issue as iDeveloper. I tried playing around
>> with
>> the listener (putting 2, 200, or 2000) , but t
Check out this link
http://code.google.com/p/android-misc-widgets/source/browse/#svn/
trunk/android-misc-widgets
They make very good use of styles and themes to create a custom title
bar. And it works great.
On 09-Jun-09, at 9:50 PM, Rick wrote:
>
> I'm setting up an app to use a custom ti
You will first have to copy it to the ringtones folder in your SD
Card. Once that is done, you can use the uri of this ringtone to set
it as the user's ringtone. Thats how Ringdroid does it. You can check
out the ringdroid source here http://code.google.com/p/ringdroid/
On 11-Jun-09, at 8
Have you included the activity in your AndroidManifest file?
On 11-Jun-09, at 10:01 PM, Mike Lanin wrote:
>
> I have a problem and cant realize a reason. I have
> ClassNotFoundException when starting
> Intent i = new Intent(EventInfo.this, AndricoMap.class);
> i.putExtra("address", address);
>
Can you post some more details, like your onCreate implementation and
the XML you are using.
On 18-Jun-09, at 3:53 AM, nEx.Software wrote:
>
> Not the case for me. Only one layout file here.
>
> On Jun 17, 12:10 pm, MrSnowflake wrote:
>> Maybe you have different layout files for landscape an
Hi
I am letting the user select an image from their Photo library and
edit it using my app.
The photo selection intent works great and I get the URI of the
selected image, but as soon as I make a call to Media.getBitmap to get
the selected image from the Uri, I get an OutOfMemory exception.
39 matches
Mail list logo