Hi,
How is android's AlertDialog layout define? Is there a layout.xml file
corresponding to the AlertDialog?
I have looked at AlertDialog implementation, But i don't figure out
how that is being layout (e.g. the location of the button, the
location of text) Where are they defined? And how can I
I used to work for a company where anyone who checked in code that broke
the build and didn't fix it within a couple of hours had to buy a round
of cakes or doughnuts for the dev team.
Amazingly enough it reduced broken builds as opposed to increasing
wastelines.
Al.
Jean-Baptiste Queru
How can I place widgets such as buttons on top of a SurfaceView
(Video). According to the reference this should be possible.
But I have no idea how the xml file should look like.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
U can use File object , then write data to SDCARD,that's ok.
2009/3/21 Dianne Hackborn hack...@android.com
2009/3/20 zypsg zhaoyongp...@gmail.com
Do you mean that useopenFileOutput and openFileInput to
save
my persistent data ?
Yes, and there are other methods for
Do you wanna add the ImageView into Layout when start a Activity??
2009/3/21 Chetan hackpal...@gmail.com
I want to initialize ImageView class in Class which do not extends
View.
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
You can use FrameLayout :-)
--~--~-~--~~~---~--~~
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 email
if you want a List of BEST Companies
check this link
http://insurance-methods.blogspot.com/2009/03/life-insurance-2.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group,
+1 for written guide lines.
Also I think it's a bad idea that every vendor can opt for its own look and
feel and I hope they don't. However I am aware, that this ship has sailed.
It still feels strange though to have an application platform that enables
and encourages the deployement of 3rd party
if you want a List of BEST Companies
check this link
http://insurance-methods.blogspot.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Is there a way to check before sending a broadcast (from a remote
service) whether there are registered broadcast listeners? What I'd
like to do is to send broadcasts only if there are registered
listeners, otherwise make a toast. Does it make any sense?
Thanks for the explanation. I found the files there alright so the
code is working which is great. Now I need to access the files in the
device to display their contents in a TextView in a screen. I've been
trying to do something like this:
String text = new String(istr);
murphy wrote:
Thanks for the explanation. I found the files there alright so the
code is working which is great. Now I need to access the files in the
device to display their contents in a TextView in a screen. I've been
trying to do something like this:
String text = new
I'm trying to implement an About box. The PackageInfo class is great
for this, but I see it needs a package name as an argument to
instantiate it:
PackageManager pm = getPackageManager();
String version = getString(R.string.about_unknown);
try {
PackageInfo pi =
Dear all,
AiDiJi.com http://www.aidiji.com/ (http://www.aidiji.com) has brought
online the Android projects promotion pages, where companies and individuals
can release their Android software products. The pages are mainly targeted
at the market of China, which as you know, has the population of
On Sun, Mar 22, 2009 at 5:28 AM, Yuriy Olkhovyy y.olkho...@gmail.com wrote:
Is there a way to check before sending a broadcast (from a remote
service) whether there are registered broadcast listeners? What I'd
like to do is to send broadcasts only if there are registered
listeners, otherwise
I'm using the code in this fashion:
try{
URL myURL = new URL(http://www.indulec.ie/weather.txt;);
URLConnection conn = myURL.openConnection();
conn.connect();
BufferedReader is = new BufferedReader(new InputStreamReader
I've added in also the line FileInputStream fIn = openFileInput
(news.txt); but I don't know what to do with it once I open it to be
able to display it in my TextView in a new screen.
On Mar 22, 3:59 pm, murphy howt...@hotmail.com wrote:
I'm using the code in this fashion:
try{
murphy wrote:
I've added in also the line FileInputStream fIn = openFileInput
(news.txt); but I don't know what to do with it once I open it to be
able to display it in my TextView in a new screen.
http://www.exampledepot.com/egs/java.io/ReadLinesFromFile.html
--
Mark Murphy (a Commons Guy)
Yes,but there is no jarsigner
On 17 Mrz., 23:07, Sundog sunns...@gmail.com wrote:
Look in you bin directory...
On Mar 17, 11:18 am, Nox v.beh...@googlemail.com wrote:
Hi everyone,
I'm developing on Linux (Ubuntu 8.05) and I want to sign my app.
I've already exported the application
Is it possible to add Jarsigner to the bin directory, or to create
it???
On 22 Mrz., 17:32, Nox v.beh...@googlemail.com wrote:
Yes,but there is no jarsigner
On 17 Mrz., 23:07, Sundog sunns...@gmail.com wrote:
Look in you bin directory...
On Mar 17, 11:18 am, Nox
Hi everyone,
I've developed an app in English,but how can I add German to the same
application???
Thanks in advance
Viktor
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this
2009/3/22 Nox v.beh...@googlemail.com:
Hi everyone,
I've developed an app in English,but how can I add German to the same
application???
Thanks in advance
Viktor
Hi, you should put your strings in string.xml files
values-en/strings.xml
values-de/strings.xml
Check
probably in some directory resembling /opt/java/jdk/bin/jarsigner ...try
adding that directory(or something closely resembling it) to path
export PATH=$PATH;/opt/java/jdk/bin/
On Sun, Mar 22, 2009 at 12:37 PM, Nox v.beh...@googlemail.com wrote:
Is it possible to add Jarsigner to the bin
nice try boosting your google adsense revenue, but imho, try something a bit
less obvious.
Cheers!
On Sun, Mar 22, 2009 at 8:22 AM, blue sea redsea...@yahoo.com wrote:
if you want a List of BEST Companies
check this link
http://insurance-methods.blogspot.com/
--
~phunny.pha...@gmail.com
Or, you can render a progressbar onto a Canvas and then Canvas.drawText()
using relative positions.
getHeighthttp://developer.android.com/reference/android/graphics/Canvas.html#getHeight()()
and
getWidthhttp://developer.android.com/reference/android/graphics/Canvas.html#getWidth()
()
On Sat, Mar
I've got it working now, I used this code to finish it:
FileInputStream fIn = openFileInput(news.txt);
InputStreamReader isr = null;
char[] inputBuffer = new char[255];
String data = null;
try{
isr = new
Unfortunately there is no Jarsigner!!!
Can I find it in an other way?
I need it urgent, because I want to publish my app.
On 22 Mrz., 18:15, Mark Fayngersh phunny.pha...@gmail.com wrote:
probably in some directory resembling /opt/java/jdk/bin/jarsigner ...try
adding that directory(or
Nox wrote:
Unfortunately there is no Jarsigner!!!
Can I find it in an other way?
I need it urgent, because I want to publish my app.
The jarsigner program is not from Android or the Android SDK. Your Java
JDK should have come with it -- if it did not, try downloading and
reinstalling the JDK
Unfortunately there isn't currently a complete way to achieve this, I don't
think. You can use the PackageManager to do the same query the system does
for all receiver components matching the broadcast intent, but this won't
tell you about anyone who has used registerReceiver().
On Sun, Mar 22,
Could you explain more what you are doing? If you are doing an about box
for yourself, you either already know your package name or you can use
Context.getPackageName() to find the one you are using.
I guess you could open your AndroidManifest.xml using the AssetManager and
parse it, but there
The layout is an xml file, and an implementation detail. If you want to
have your own kind of alert dialog, just subclass from Dialog and make it
yourself. Given how customizable AlertDialog is (with the ability to stick
in your own layouts and such), I think trying to do something beyond what
usually your layout is defined in an xml file (in res/layout) and in
your Java-like Android code you can reference it so:
d.setContentView(R.layout.dialog_view);
where d is an instance of AlertDialog.
and dialog_view.xml could contain:
?xml version=1.0 encoding=utf-8?
RelativeLayout
Is it possible to initiate a onClickListener on a Rect?
Second question, how can i manually draw a button with using any xml. I
tried creating a button then setting width, height, text, and then
draw(Canvas). But it never appeared on the screen.
Thanks!
--
~phunny.pha...@gmail.com
https://jdk-distros.dev.java.net/ubuntu.html
On Sun, Mar 22, 2009 at 2:46 PM, Mark Murphy mmur...@commonsware.comwrote:
Nox wrote:
Unfortunately there is no Jarsigner!!!
Can I find it in an other way?
I need it urgent, because I want to publish my app.
The jarsigner program is not from
Beautiful: Context.getPackageName() was what I needed, thanks.
I was just looking for a way to use the main package name without
defining it again as a string resource - just so I could pass it into
the pi call.
--
Android Academy: http://www.androidacademy.com
On Mar 22, 6:54 pm, Dianne
excellent advice, thanks:
So back to the whole issue of menu icons... if there are standard menu
icons you want to use, I recommend just copying them out of the platform
source and into your app, so you can make sure that the other icons you
design remain consistent with them.
the old UI
My goal is the draw a bitmap onto another bitmap but rotated 90
degress. whats the most efficient way to do that. My current method
is as follows which is horribly bad because it creates a new bitmap
every time.
//i am taking image and drawing it rotated onto image2
Matrix matrix =
sorry the code should be
Matrix matrix = new Matrix();
matrix.postRotate(90);
Canvas g = new Canvas(image2);
g.drawBitmap(
Bitmap.createBitmap(image, 0, 0,
image.getWidth
(), image.getHeight(), matrix, true)
, 0, 0, null);
On
i also have the same problem when I want to flip and image around, i
have to create a new bitmap. is there a way to not have to create a
new bitmap every time:
renderMatrix.preScale((xFlipPic?-1:1), (yFlipPic?-1:1));
newbitMap = Bitmap.createBitmap(image, 0, 0, image.getWidth
Hi,
Is there a way for me to get an error report from my phone (not
emulator) about why it is force closing?
Thanks,
Bob
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this
Bob wrote:
Is there a way for me to get an error report from my phone (not
emulator) about why it is force closing?
With it plugged in via the USB cable, you do it the same way you would
with the emulator -- adb logcat, DDMS, or the DDMS perspective in Eclipse.
--
Mark Murphy (a Commons Guy)
Thank you for both of your answers.
In the android source, it has:
* If you
* want to display a more complex view, look up the FrameLayout called body
* and add your view to it:
*
* pre
* FrameLayout fl = (FrameLayout) findViewById(R.id.body);
* fl.add(myView, new
On Mar 5, 11:11 am, Chronos g358279012044...@gmail.com wrote:
@Tseng: I can't find this method - are you talking about class
Activity ?
Yes, the final() method is belongs to the activity class and you can
override it and put your code there.
That's how i did it in my activity class:
I just downloaded Android source code, but I can't find the source
for Pictures app. I did see Calculator code. Anyone know where I
can find the Pictures or why it is not in the source code package?
--~--~-~--~~~---~--~~
You received this message because you are
Just to add to Mark's suggestion, jarsigner is part of JDK but not
part of JRE distributions. It may be that you downloaded the wrong
package. It can be confusing since JRE includes keytool, but not
jarsigner. You want JDK.
On Mar 22, 2:46 pm, Mark Murphy mmur...@commonsware.com wrote:
Nox
Yeah, I got my example above to work across processes with intents. I
actually managed to send the soft keyboard character sequence and
cursor position to another text edit view via a bundle in
intent.PutExtra()... So basically, I can type in one application and
have it appear in another one
You'll probably get better results asking this question on the
android-platform mailing list, as the gallery is part of the platform
distribution, and folks on that mailing list are working on apps like
that.
On Sun, Mar 22, 2009 at 4:01 PM, yves...@gmail.com yves...@gmail.com wrote:
I just
Is it possible to generate an EGL Config with an alpha buffer on
the G1? When I request a non-zero number of bits for the alpha buffer
I can get a R5G5B5A1 or R8G8B8A8 visual, but neither of them renders
correctly to the screen. I assume that's because the G1 only supports
R5G6B5 visuals.
hello,
does anybody know how to get the center latitue/lontitude on a map
after user dragged the map's center point to a new location on their
phone?
There are plenty tutorials out there to show you how to get the new
location after a user physically moved to another location, but how do
I find
hi all,
i have to develop an application using android sdk-1.1-r1 but there is
many application which i can't to test it on the emulator
( applications related to the contents), so if there is a solution
please help me on this situation.
at the end of programming these applications i want to
I am running the emulator with the Eclipse IDE.
I can't get basic persistent storage to work while running within the
emulator.
SharedPreferences mPrefs ;
OnCreate()
{
mPrefs = getPreferences(MODE_PRIVATE);
String teststring = mPrefs.getString(test, init value) ;
}
Then in
Hmmm. Honestly, I found the screamingpengiun page far more helpful,
even if it's unofficial and therefore possibly risky. The official
list of resources is so terse and lacks any imagery that I find it
mostly useless. It gives no more information than the editor's javadoc
context completion
hi
sorry if I posted this for the second time.
after a user dragged their centerpoint to another location on a map,
I would like to have an event get called immediately after the user
left their finger at the end location. How do I do that?
Thanks
Hi, All guru
I am a beginner for android development. I found my application
always
get Not granting permission warning when I install it by adb and
AppsInstaller as following.
03-18 16:01:05.882: WARN/PackageManager(56): Not granting permission
android.permission.CALL_PRIVILEGED to package
hi all,
i have to develop an application using android sdk-1.1-r1 but there is
many application which i can't to test it on the emulator
( applications related to the contents), so if there is a solution
please help me on this situation.
at the end of programming these applications i want to
Is there a chance that there may be a Android SDK for 64 bit distros?
I'm running Fedora 11 Alpha 64 now and have a hard time finding a
similar package that Ubuntu have ia32-libs as described in the
installation notes.
/Perty
--~--~-~--~~~---~--~~
You received
Hii All,
I am developing a game in android and i want to capture screen
coordinates of a view(ImageView) which is embedded in frame.
Hierarchy is
LinearLayout android android:layout_height=fill_parent
android:layout_width=fill_parent
RelativeLayout android:layout_height=fill_parent
Hii All,
I am developing a game in android and i want to capture screen
coordinates of a view(ImageView) which is embedded in frame.
Hierarchy is
LinearLayout android android:layout_height=fill_parent
android:layout_width=fill_parent
RelativeLayout android:layout_height=fill_parent
Hii All,
I am developing a game in android and i want to capture screen
coordinates of a view(ImageView) which is embedded in frame.
Hierarchy is
LinearLayout android android:layout_height=fill_parent
android:layout_width=fill_parent
RelativeLayout android:layout_height=fill_parent
Hello all,
I have more than one notification in notifications area and each of
them has the same intent with different extras in it. Once I start() a
pending intent from the notifications, first intent is handled
correctly and the extras received successfully on the next(called)
activity.
Hi, does anybody know of any good places to look for freelance Android
development jobs. I have been looking at places like
getafreelancer.com, elance.com, etc, but I haven't been having much
luck.
Thanks for any advice you can give :-)
bye.
Thanks.
On Sun, Mar 22, 2009 at 4:38 PM, Andrew Stadler stad...@gmail.com wrote:
You'll probably get better results asking this question on the
android-platform mailing list, as the gallery is part of the platform
distribution, and folks on that mailing list are working on apps like
that.
hi,
i am a student, and developp a application on android for my project in
school.I use android release 1.1 and the android emulator.I would to use the
socket in my application.I have use the package java.net.socket and
java.iobut i don't have a success.My code is below.Please help me.I
don't
Let me rephrase my question.
I have two PreferenceScreens - A and B.
In PrefScreen A, there is an option to go to B. When the user is on B,
and then leaves B and goes back to A, I would want to run a certain
method. Is there a way to do that?
Thanks,
Noam.
Noam wrote:
Let me rephrase my question.
I have two PreferenceScreens - A and B.
In PrefScreen A, there is an option to go to B. When the user is on B,
and then leaves B and goes back to A, I would want to run a certain
method. Is there a way to do that?
Implement onResume() in A.
--
Hi, i am a student and developpe an application with android.I don't
use the real phone,only the android emulator.I want to know how i can
use the GPRS with this emulator.I have tested to use the package
org.apache, but i did know how to use this package correctly.
Another thing, i have tried
I have tried that, but since both A and B are in the same java file,
then it won't work.
If I misunderstood, please clarify.
Any other suggestions?
Thanks,
Noam.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups
Noam wrote:
I have tried that, but since both A and B are in the same java file,
then it won't work.
Oh, oops. Sorry.
Have you tried overriding onContentChanged()? I'm not sure when that all
gets called, but there's a decent chance it is called when the screen
changes content. That would
Thanks for that incredible answer.
Since I'm such a noobie, I hardly understand anything from that
paragraph. Could you please show me some code so I could understand
better?
Thanks,
Noam.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Noam wrote:
Thanks for that incredible answer.
It couldn't be all that incredible. ;-)
Since I'm such a noobie, I hardly understand anything from that
paragraph. Could you please show me some code so I could understand
better?
Well, not really, because I've never tried either of them
When developing, I keep my G1 on my desk with a desk fan plus some
couple rare earth magnets I fiddle with when bored (maybe they're not
the best fiddle toy). Not surprisingly, the magnets really knock the
magnetic compass out of whack, but the desk fan does too, even at a
foot or two away. So
Those permissions are reserved for the system and aren't available to
applications.
JBQ
On Sat, Mar 21, 2009 at 10:34 PM, Ling Yun drling...@gmail.com wrote:
Hi, All guru
I am a beginner for android development. I found my application
always
get Not granting permission warning when I
Is it possible to initiate a onClickListener on a Rect?
No, you'll have to do the test yourself. You could try with a
TouchDelegate though.
Second question, how can i manually draw a button with using any xml. I
tried creating a button then setting width, height, text, and then
I have been frustrated by the lack of support for sprites, but I came
up with an idea that is backwards (literally) but might work. I
haven't tested it to make sure it works as expected or to evaluate its
speed. If you try it yourself I would be interested in the results.
Use the same key color
http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=tree;f=src/com/android/camera;h=b59e44fcf7eda59ed76597efe26ac8a25696c798;hb=8250896ab37545f4499da79f54c19af2e5018b80
On Mar 22, 8:24 pm, Yves Liu yves...@gmail.com wrote:
Thanks.
On Sun, Mar 22, 2009 at 4:38 PM, Andrew
http://www.android.com/about/
All applications are created equal Android does not differentiate between
the phone's core applications and third-party applications. They can all be
built to have equal access to a phone's capabilities providing users with a
broad spectrum of applications and
My apologies for resurrecting this thread, but is it possible now to
not display the soft keyboard when the EditText view receives an on
touch event?
I've looked at IMM code and the closest thing I can find for doing
such a thing is hideSoftInputFromWindow(IBinder windowToken) but I'm
not too
So, what we can learn from ADC I??? some forum or discussion board said got
more than 1k application/game was submitted... is it true???
for ADC I,
of course, from what we see top 20 was announced.. sure, congratulation to
those... but is those the best application ever??? as what can see
Somebody please help me,,why decodeByteArray(...) returns null
Thanxs
komal
On Mar 20, 11:45 am, Komal komal...@gmail.com wrote:
Hello,
I want to store image in sqlite database.
I tried to store it using BLOB and String, in both cases it store the
image and can retrieve it but when i
Sorry for typo.
2. Connecting BT headset always fail if the BT headset only suport
HFP/HSP profile(NO A2DP).
On 3月20日, 下午2時57分, Long henry.l...@qisda.com.tw wrote:
I meet some problem while usingcupcakebluetoothhandsfree.
1. Phone only can pair with pin BT headset automatically, but
Hi,
I am using frame animation in multiple page where in each page i am
using set of png files. First animation is
working fine but when i am trying to call second animation it showing
java.lang.OutOfMemoryError: bitmap size exceeds VM budget
Is there any way to solve this issue.Please help
On Sun, Mar 22, 2009 at 7:48 PM, Disconnect dc.disconn...@gmail.com wrote:
http://www.android.com/about/
All applications are created equal Android does not differentiate between
the phone's core applications and third-party applications. They can all be
built to have equal access to a
Hi Henry,
Our codebase moves very quickly. You will always need to supply the
details of what exact build you are running, and it is useful to
include logs or 'adb bugreport'.
1. Phone only can pair with pin BT headset automatically, but
never pair succeed with headset with pin 1234
Use less memory in your app.
On Sun, Mar 22, 2009 at 10:23 PM, Archana archana.14n...@gmail.com wrote:
Hi,
I am using frame animation in multiple page where in each page i am
using set of png files. First animation is
working fine but when i am trying to call second animation it showing
i tried with the below code but its not effecting
Settings.System.putInt(ftaContext.getContentResolver(),
Settings.System.SCREEN_BRIGHTNESS, bright);
but i got the screen brightness by the below code
IHardwareService hardware = IHardwareService.Stub.asInterface
(
Thanks for the reply,but i have to use that much png files in my app
without that it wont look nice.
can you please suggest me some other way.
On Mar 23, 10:35 am, Romain Guy romain...@google.com wrote:
Use less memory in your app.
On Sun, Mar 22, 2009 at 10:23 PM, Archana
There's no other way, you are using too much memory, that's all. Note
that you might have a memory leak somewhere though.
On Sun, Mar 22, 2009 at 10:51 PM, Archana archana.14n...@gmail.com wrote:
Thanks for the reply,but i have to use that much png files in my app
without that it wont look
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
88 matches
Mail list logo