Have you done "setContentView(R.layout.yourLayout)" before calling
this. Looks ok to me, it certainly works for me.
if you are doing this on a certain click , then make sure its
clickable...
button1.setClickable(true);
-Chander
On Jan 31, 10:37 am, Bob wrote:
> Hi,
> How do I change the text o
That works perfectly, thanks for the help.
Do you know why it works?
2009/1/31 Dave Sparks
>
> Use Ogg files, you can get a nice seamless loop. We use this for the
> ringtones.
>
> On Jan 30, 10:30 am, "ph...@grantmidwinter.com"
> wrote:
> > Hoya,
> >
> > When using a mediaplayer to play back
Hello everybody
The imageview object supports, which formats of images other than
png and jpg?
Is it supporting *.jif, *.bmp. *.tiff, etc. to display them on sceen
of activity?
The picture application(on emulator) shows only *.jpg and *.png
format it does not shows other format images(*.
Thank you very much, fadden! It is much appreciated. For now I appear
to have fixed not only my run-to-run memory leaks but also the
frequent multi-run crashes by ensuring that my threads finish. From
reading this group I had just been looking in the wrong direction when
hunting for context leaks
Thanks guys, just what I needed!
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send
Demo Tutorial for filtering images for mime type
I am browsing list of images names of *.png ,*,jpeg, it is working
correctly
I am filtering images of type png and jpeg, IS there in other smart
way to achieve this, some thing we can do in manifest or coding so
that we will get desired cursor of
you may want to look at
http://groups.google.com/group/android-developers/browse_thread/thread/1c64cf65f87c9895/1d9464c96b91dbd8?show_docid=1d9464c96b91dbd8
On Jan 30, 8:20 pm, Brodsky wrote:
> Hi! Does anyone know how to tell when the headset button is being
> pressed? I'd like to support
Hi all,
I've been trying to create a local connection to a computer with a
Socket from the emulator thinking that it would automagically uses a
emulated wifi connection. It doesn't work, in particular because wifi
is not supported on the emulator:
- Does a Socket connection automatically choo
hi,
i want to create custom View showing possibly several items.
i think using Adapter interface would be good idea.
my question is: should i extend AdapterView? if so, what is the most
imortant when doing this (e.g. AdapterView is ViewGroup, so how should
i manage children)?
thanks,
pskink
-
take a look into the api samples. there are 14 lists, and one of them
has a very performant adapter...
greetings,
darolla
2009/1/31 skink :
>
> hi,
>
> i want to create custom View showing possibly several items.
>
> i think using Adapter interface would be good idea.
>
> my question is: should
hi,
i want to create custom View showing possibly several items.
i think using Adapter interface would be good idea.
my question is: should i extend AdapterView? if so, what is the most
imortant when doing this (e.g. AdapterView is ViewGroup, so how should
i manage children)?
thanks,
pskink
-
/**
* Demonstrates how to write an efficient list adapter. The adapter
used in this example binds
* to an ImageView and to a TextView for each row in the list.
*
* To work efficiently the adapter implemented here uses two techniques:
* - It reuses the convertView passed to getView() to avoid
take a look here:
http://code.google.com/p/android-titlebar/
http://www.anddev.org/my_own_titlebar_backbutton_like_on_the_iphone-t4591.html
and here:
http://code.google.com/p/android-misc-widgets/
http://www.anddev.org/making_own_theme-t4052.html
greetings,
darolla
2009/1/31 Craig :
>
> Cou
sometimes you need to invalidate()
greetings,
darolla
2009/1/31 Chander Pechetty :
>
> Have you done "setContentView(R.layout.yourLayout)" before calling
> this. Looks ok to me, it certainly works for me.
> if you are doing this on a certain click , then make sure its
> clickable...
> button1.se
On 31 Sty, 12:39, Marco Schmitz
wrote:
> /**
> * Demonstrates how to write an efficient list adapter. */
thanks Marco, but i don't want to use ListViews.
i want to write my own custom View, since from some reasons ListViews
dont fit to my requirenents
--~--~-~--~~~---
Hello
I am sending image using following. the image successfully send by
application. But The subject and text r not getting added to email.
I want to add body containing some hyperlink, I am doing this
Intent.EXTRA_TEXT but it is not going to added.
Will somebody will clear suggest me for. None
ahem, use android discuss list please
On Jan 30, 8:43 pm, agus tegar wrote:
> i hope android dev .
> focus to :
> Theme Style => with multi theme ( mac , android, iphon , vista ,win
> 7 ) ,
> effect animation ,
> google earth ,
> google Drive for android ,
> and
> Window Child in Desktop Andr
I've got a media recorder, prepared and started in the following way:
mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mRecorder.setOutputFormat
(MediaRecorder.OutputFormat.THREE_GPP);
mRecorder.setAudioEncoder
(MediaRec
I'm sorry if I missed it, but I didn't see what I was looking for
behind any of those links. I know I can create a custom theme to use
android attributes; what I want to do is create a custom theme with
custom attributes, and refer to those in my code.
--~--~-~--~~~--
Have you set the button id correctly in the XML layout?
2009/1/31 Marco Schmitz
>
> sometimes you need to invalidate()
>
> greetings,
> darolla
>
> 2009/1/31 Chander Pechetty :
> >
> > Have you done "setContentView(R.layout.yourLayout)" before calling
> > this. Looks ok to me, it certainly works
Craig wrote:
> I'm sorry if I missed it, but I didn't see what I was looking for
> behind any of those links. I know I can create a custom theme to use
> android attributes; what I want to do is create a custom theme with
> custom attributes, and refer to those in my code.
hi,
all you need to
Did anyone taste success? I am facing the same issue with SD card
settings/Image application settings crashing with the same exception
reported above..
Here's what i did:
1. emulator -sdcard ./sdcard1.iso & (sdcard image in my current
directory)
2. adb push PaymentError.png /sdcard/
Steps 1 and 2
Yes, i ran into the very same problem.
>From what I understood with documentation and logcat traces, I may be
wrong for some details but here's the general idea:
My background service (I use startService/stopService to handle an
XMPP connection and notifying the user of events when no activity is
There is bug in BitmapFactory memory allocation, there are tons of
threads in this mailing list dealing with that.
To sum up:
At a normal time when you create an object, the heap size is
automatically grown if not sufficient enough (there is an absolute
limit of 16MB per process though, you will c
Is there a way too block individual users access to your applications
on android market?
Also is there a way to reply to comments left for your application?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Deve
there is a single ethernet port in the emulated system. It is connected to
an internal firewall/router within the emulator code that emulates all
connectivity through standard BSD sockets. Which connection is used depends
entirely on your host machine setup, but wifi or no wifi doesn't have any
imp
IIUC, doing a forward geocode (looking up an address from a name) is pretty
straightforward, you do this:
private void findLocation() {
List locations = null;
Geocoder geocoder = new Geocoder(this, Locale.getDefault());
try {
locations =
geocoder.getFromLocati
Looking at adb logcat I'm getting this error:
"*Record channel already open*"
Could this be a bug? I don't understand how it could already be open..
nothing else is recording on the device?
2009/1/31 ph...@grantmidwinter.com
>
> I've got a media recorder, prepared and started in the following
Figured it out, real silly mistake. I was calling setContentView
(R.layout.myLayout) twice, once before and once after my code. Thanks
for all your help!
On Jan 31, 9:02 am, Phill Midwinter wrote:
> Have you set the button id correctly in the XML layout?
>
> 2009/1/31 Marco Schmitz
>
>
>
>
>
Are you running on a G1 or on the emulator? If on the emulator, maybe
audio input isn't working correctly and it's failing to open the audio
input device.
On Jan 31, 9:59 am, Phill Midwinter wrote:
> Looking at adb logcat I'm getting this error:
>
> "*Record channel already open*"
>
> Could this
I was running on a G1.
I've just found the problem though. On previous debug sessions - the
mediarecorder hadn't been properly released.
Solution was to reboot the phone, add overrides to onpause and ondestroy,
making sure it's released in each case and then run again. Works like a
charm!
2009/1
Yes, two reasons actually.
One, because the Ogg spec allows for specifying the exact number of
samples in the stream. MP3 does not have an official way to specify
the number of samples (there are unofficial ways).
Two, because the Ogg player has a native loop capability that allows
us to seamles
Can anyone offer any ideas on this?
Thanks!
On Jan 30, 9:39 am, AusR wrote:
> Hi,
>
> I've created a set of preference screens building on the tuts on
> androidguys.
>
> My preference XML contains nested PreferenceScreens. The below doesn't
> occur in the root screen, only once clicking to a c
I don't know anything about MapView. What service are you on e.g.
WiFi, 3G/EDGE (what carrier)? Is there anything useful in the log?
Maybe a proxy failure?
On Jan 30, 5:46 pm, Keiji Ariyama wrote:
> Hi folks,
>
> Now, I'm developing an Android app called "Echo".
> But 5 hours ago, My Dev phone h
That's extremely useful, I've not looked at the format before, but I'll have
to read up now.
2009/1/31 Dave Sparks
>
> Yes, two reasons actually.
>
> One, because the Ogg spec allows for specifying the exact number of
> samples in the stream. MP3 does not have an official way to specify
> the nu
Thanks! That did it. Here is an example of the code I used:
final private static int[] colorAttrs = new int[]
{R.attr.activeColor, ...};
I chained my View constructors:
public MyView(Context context) {this(context, null);}
public MyView(Context context, AttributeSet attrs) {this(context,
a
Craig wrote:
> Thanks! That did it. Here is an example of the code I used:
>
> final private static int[] colorAttrs = new int[]
> {R.attr.activeColor, ...};
>
> I chained my View constructors:
> public MyView(Context context) {this(context, null);}
> public MyView(Context context, Attribu
Suppose I get a cursor that contains all rows from my database, and I
want to show them on a spinner, the following code will work. But I
want to show two extra items as the spinner elements, how can I add
those two elements?
For example, if the following code can show 4 spinner elements
"Orange"
Hello,
I have been searching for some time and I can't find a detailled
tutorial on how to easily record and then read audio on the emulator
under eclipse. I have found these steps:
- You have to install a virtual sd card with mksdcard.exe 1024M
sdimg.iso
-then run the emulator : emulator.exe -
Hi,
I'm working on a simple application, I need the application to give
different response when the user click different position of the
screen. But it seems I can't get the position in the OnClickLisenter,
I tried OnTouchListener, but it's not as well as I expected. Can you
give me some help on t
Hi, I'm trying to sign up my app (even with debug key, I don't need a
custom key by now) and I get a Server Error 502. Anyone knows what's
happening? How long will it take? I need the key for February 2nd.
Please if anyone has a valid debug key could post it for me? (I'm
reading my career thesis a
Hey Androiders,
Buzz is happening around Android already. Off course there are
developer groups, where we can find out answers to questions. But we
(www.androidcompetencycenter.com/) have decided to provide support to
all developers through newly launched forums. Do check out the blog,
discuss,
are you testing it on the emulator or on the G1 device?
I'm not sure about it but I've read around some forums that you need a
virtual sd card to record audio on the emulator. (with the
mksdcard.exe in the tools provided with the sdk)
Some other sources also say it isn't possible to record audio
Hi, I am using the latest SDK android-sdk-windows-1.0_r2 and android
plugin version 0.8.0.v200809220836-110569 But everytime i try to run
an application, the console shows following messages. and DDMS view
shows no device.
[2009-01-31 23:27:02 - test] --
[2009-01-31 23
Developer wrote:
> Suppose I get a cursor that contains all rows from my database, and I
> want to show them on a spinner, the following code will work. But I
> want to show two extra items as the spinner elements, how can I add
> those two elements?
>
> For example, if the following code can sho
keen, can you send me an email with some details
beachy.g...@gmail.com
On Jan 30, 2:55 pm, cmxlgy wrote:
> Hi all -
>
> Just curious if anyone would be interested in helping us port our
> iPhone app to Android? It would be on a revenue share basis. Drop us a
> line off-list.
>
> Link to app:
>
Guillaume, that kind of sounds like you're running with a debugger
attached... see somewhere in the middle of this long thread, it is
known that the system will leak memory when you run with a debugger
attached - mostly when exceptions are involved, and
BitmapFactory.decodeFile() always throws (an
http://groups.google.com/group/android-developers/browse_thread/thread/fa2848e31636af70/8d967c32df91a7d1?lnk=gst&q=keeping+a+service+alive
On Jan 30, 3:09 pm, brs wrote:
> I have an app loosely based on the LocalService example from the SDK
> with a controller activity and a long-running, statef
It well could be over complicated - here is what I did:
In res, values, attrs.xml I have:
...
In res, values, styles.xml:
sounds good, do you have an example piece of code or can you please
point me to something.
On Jan 30, 8:44 pm, Dave Sparks wrote:
> No, you don't draw on the camera preview surface. You create a
> transparent surface above it in the Z stack and draw on that.
>
> On Jan 30, 5:31 pm, srajpal wrot
Thank you for reply. Any good reason for doing it..
Most of the designs aim to assume reasonal defaults to min typing and
do more with less..
Regards,
Nagendra
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android
Played around with this a little and solved it just like Dave Sparks
suggested
Thank you Dave
here is the code
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.hardware.Camera
Hi Firedger,
Thank you bringin clarity by way of internal and external.
The one I am refering here is for internal usage. The application I am
refering here has
Main menu list, which has Settings and About and Help as menu items.
On user choosing Settings it would show submenu
Login
Register
C
Try this:
emulator -help-audio-in
It will tell you which audio backends are available on your system.
You didn't specify what OS you are using.
I think there was also some sample code in the SDK at one point. Maybe
one of the developer advocates can point you to it. Another option is
to look fo
You shouldn't have to reboot the device. The release() call just
forces the release of the hardware resources instead of waiting for
the garbage collector to come along.
You should always call release() in your onPause() if you are using a
singleton hardware resource like a media player, media re
Thanks; it looks as if it might.
--- SER
On Jan 30, 7:11 am, "Alistair."
wrote:
> This might help.
>
> http://groups.google.com/group/android-developers/browse_thread/threa...
>
> Al.
>
> On Jan 29, 3:16 am, "Sean E.Russell" wrote:
>
> > I have a strange problem where, if the screen is rotated
I am trying to discover the frequeny of recored audio. I am kinda new
to multimedia programming (I am very new to android). Is there a way
to get raw frequency information from the mic?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Thanks for reply fadden..
Is there any replacement for threads..or else I will have to change my
logic as u described..
On Jan 31, 7:20 am, fadden wrote:
> On Jan 30, 6:30 am, Sagar Parmar wrote:
>
> > I am using Thread to display animation..I create a new thread whenever user
> > preference
Dave,
Thank you for your reply.
>> WiFi, 3G/EDGE (what carrier)? Is there anything useful in the log?
>> Maybe a proxy failure?
I didn't change any settings my dev phone.
As you know, this trouble cause is Google server error. And it has
recovered now.
Thank you,
Keiji
Dave Sparks wrote:
> I
Hi Lutz,
When we talk of sending intents from Activity1 to Activity2 ,
Activity2 should have the intent filter
with the intent with which it wants to be invoked.
After getting invoked from activity1 , activity2 can further invoke
another activity with intent
data it wants.
You can also use broacas
Search the forum before posting: :-)
http://groups.google.com/group/android-developers/browse_thread/thread/4ffea4cb05b51efe?hl=en&q=#1d190c624e30eeaa
Mark Murphy's Blog -> http://androidguys.com/?s=rotational+forces
android:configChanges="orientation"
--~--~-~--~~~--
I just figured out how to fix this, but it requires root access.
Pull /data/system/packages.xml
Find the entry for your package and comment it out.
shell back in and chmod packages.xml to be world-writeable
Push packages.xml back into the phone.
Restart the phone.
You can then install the app wi
In SDK 1.0, you can only record to a file using the AMR-NB codec,
which is bandwidth limited to 4KHz, and the encoding process itself is
pretty lossy. If you want to experiment with this on a G1, go to
Messaging, create a new message, click menu and select Attach, and
select Record Audio. This wil
63 matches
Mail list logo