hello, I'm not sure but If my memory is good I've tried that one time. the
Java, not Android Java(?), Interface to convert Video is
javax.media.Processor it inhirits from javax.media.player in the JMF API.
bye
2008/10/26 guna [EMAIL PROTECTED]
Hi to all,
Anyone trying with media player
What about call events like dialing state, active state, would
they become public in the SDK?
There is a need to have more call information, rather than just
ofhook, ringing and idle.
On Oct 24, 10:00 pm, Justin (Google Employee) [EMAIL PROTECTED]
wrote:
No, there will no ability to intercept
I believe that this issue should be addressed by the Android team
since it is of general interest. My guess is that the virtual machine
reduces speed compared to with native code with a factor of 10 or so.
The only reasonable work-around is to do a mixed implementation where
some of the parts
Compared to the G1 the r1 SDK is missing the ability to install
non-marketplace apps via the OS (i.e. not with adb), and the unique ID
system property returns null instead of a valid value.
The first one has been an acknowledged bug and a fix has been promised
for a few weeks now.
Al.
Chris,
See following post:
http://groups.google.com/group/android-developers/browse_thread/thread/9894b3ef3415570b/defd490ab40acbf9?lnk=gstq=ddms#defd490ab40acbf9
On Oct 22, 10:54 pm, Chris A [EMAIL PROTECTED] wrote:
I apologize for the repeat -- I didn't think my original message
actually
Casey Link wrote:
Is there a
recommended/preferred/faster way of making POST/GET requests, and
parsing XML in the android?
On the XML front, the XML Pull Parser (org.xmlpull.*) is supposed to be
pretty quick.
--
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to
Are the contents of the log (the output I normally see in logcat)
available to an application running on a phone? I don't see a file
being written and I don't see an API for accessing this information.
Thanks,
Spencer
--~--~-~--~~~---~--~~
You received this
Hi all,
I have read the the source code in android.syncml, but I am not sure if it
follow OMA DS 1.2 or not. Can anyone tell me?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to
You might try another group such as android-porting:
http://groups.google.com/group/android-porting
On Oct 25, 5:05 pm, krishna devarapalli [EMAIL PROTECTED]
wrote:
Hi,
I am new to Android platform.
I would like to contribute in the bootloader and Linux kernel modules
development.
Request
Thanks Dianne - thought I was going crazy there for a minute. I look
forward to seeing the API.
On Oct 26, 11:46 am, hackbod [EMAIL PROTECTED] wrote:
The SDK API for this is not yet available. I believe we will be
providing an API that is compatible with all 1.0 devices, but I have
no idea
Hi:
Now ,I can use PhoneStateListener to listen some incoming call state
event.
here is the code:
public void onCallStateChanged(int state, String incomingNumber) {
Log.v(TAG, onCallStateChanged(), Incoming Number: +
incomingNumber);
(I'm not sure if I'm posting this in the right place. If so I
apoligize in advance.)
Hello,
I currently own a G1 and am fairly pleased with what appears to be a
promising operating system. I do have one gripe though, the SIM lock
imposed by T-Mobile. Why this was implemented on an open
Hi,
I've been trying to play videos obtained as a raw resource, here is
what I did
MediaPlayer mp = new MediaPlayer();
mp.setDisplay(getHolder());
mp.setDataSource(getContext().getResources().openRawResourceFd(R.raw.myvideo).getFileDescriptor());
mp.setAudioStreamType(2);
mp.prepare();
I have spent hours on end trying to figure out how to make a simple
HTTP request in Android. Examples and docs are outdated... nothing
works. AGGH! Please help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android
I have been trying to get the content of a web page which just has
only a string on it. I want to put the entire content of the page
into a variable so I can use it. I found some code in another thread
and tried to use it, but it isnt working for me.
public String getPrice(String symbol) {
I dont understand why google didnt give the option to change between
accounts...like for example I would like to have a different account
on the Gtalk instead of having the same account for everythingor
be able to change between accounts. No flexibility at all...COME ON
GOOGLE!!!
Edit/Delete
By it's nature DOM is memory intensive. Using the SAX parser will
allow you to possibly quickly reclaim memory but still involves quite
a bit of processing b/c these APIs were written to be quite robust.
Considering this is a mobile platform where we're encouraged to
optimize things that would
How did you install your apk ?
SDK comand ,
adb install ,
adb push ?
2008/10/26 Yoshiyuki [EMAIL PROTECTED]
This is non-modified version of my error log.
[2008-10-26 03:44:06 - Calorie2] --
[2008-10-26 03:44:06 - Calorie2] Android Launch!
[2008-10-26 03:44:06
I tried to follow the example in the API demo on custom view inside
alert dialog.
case DIALOG_EDIT_TITLE:
// This example shows how to add a custom layout to an
AlertDialog
LayoutInflater factory = LayoutInflater.from(this);
Emery wrote:
I have spent hours on end trying to figure out how to make a simple
HTTP request in Android. Examples and docs are outdated... nothing
works. AGGH! Please help
http://hc.apache.org/ is baked into Android. Examples are available on
their site:
There is also an un-official way to do this by reading the /proc filesystem.
I have not seen any official layout documentation of this (you might want to
consult the source code for Android for that), but it seems to be just what
/proc is like on any other Linux system.
So, e.g. getting the all
Hello world,
i'd like to open a popup into my application and read the selected
file.
That file is xml-file, and i want to parse it.
Now i'm using context.getAssets().open(fileName);
but it requires text file and not xml.
Help me pls.
Regards
Did you call setContentView before ?
Regards, plusminus
http://anddev.org
# Worlds largest Android Development Community / Tutorials
On 26 Okt., 03:58, akurni [EMAIL PROTECTED] wrote:
I tried to follow the example in the API demo on custom view inside
alert dialog.
case DIALOG_EDIT_TITLE:
Premier wrote:
Hello world,
i'd like to open a popup into my application and read the selected
file.
That file is xml-file, and i want to parse it.
Now i'm using context.getAssets().open(fileName);
but it requires text file and not xml.
If the file is part of your APK, make it an XML
Whether he's an easter egg or not, who is this guy in the pictures
that my emulator camera takes? My flickr test account now is full of
pics of him. I suspect he's a not so popular manager at Google?
--~--~-~--~~~---~--~~
You received this message because you
No, the file isn't inside my application, it is external, an upgrade!
I used XMLPullParser, but in this way i can't parse the file two
times.
i.e.
XmlPullParser xpp= ctx.getResources().getXml(R.xml.file);
XmlDeserializer xmlDeserializer= new XmlDeserializer(xpp);
ListBeanA listOfBeanA=
Premier wrote:
I used XMLPullParser, but in this way i can't parse the file two
times.
Yes you can.
XmlPullParser xpp= ctx.getResources().getXml(R.xml.file);
XmlDeserializer xmlDeserializer= new XmlDeserializer(xpp);
ListBeanA listOfBeanA=
I do not quite understand why you want to parse your XML file twice. Just
because you are looking for two different results does not mean that you
have to parse the whole stream twice.
I would just have two lists (your ListBeanA and ListBeanB) and whenever
there is a tag in the stream from which
I called setContentView for my main window layout, but not for my
dialog layout.
Should I called it for my dialog layout too?
On Oct 26, 7:23 am, plusminus [EMAIL PROTECTED] wrote:
Did you call setContentView before ?
Regards, plusminushttp://anddev.org
# Worlds largest Android Development
I fixed it by changing
mTitle = ((EditText)
findViewById(R.id.title_edit)).getText().toString();
to
mTitle = ((EditText)
textEntryView.findViewById(R.id.title_edit)).getText().toString();
thanks for all your help
On Oct 26, 12:58 am, akurni [EMAIL PROTECTED] wrote:
I tried to follow the
XML is text -- ???
On 26 Okt., 10:11, Premier [EMAIL PROTECTED] wrote:
Hello world,
i'd like to open a popup into my application and read the selected
file.
That file is xml-file, and i want to parse it.
Now i'm using context.getAssets().open(fileName);
but it requires text file and not
Just a question, httpmime is there, but it's not available for
developers. Is there a reason for that? Not that it's a problem,
because you can use the apache version, but then you have two copies
sitting in your android.
Christine
On Oct 26, 2:40 pm, Mark Murphy [EMAIL PROTECTED] wrote:
Emery
I could not find anything in the documentation that describes how to
catch the open/close of the phones's keyboard. I am trying to catch
this in order to avoid a stop sent to my app, and more importantly,
keep the display in portray when the user slides the display down to
close the keyboard.
Is there an API for reading existing status bar notifications sent by
other android apps? I.e. I want my app to be able to see if there are
unread emails, sms, and calender notifications waiting in the status
bar. Can anyone point me in the right direction?
Thanks
Ok i've solved with you suggest.
Is there a widget to get a file?
On Oct 26, 3:59 pm, Mark Murphy [EMAIL PROTECTED] wrote:
Premier wrote:
I used XMLPullParser, but in this way i can't parse the file two
times.
Yes you can.
XmlPullParser xpp= ctx.getResources().getXml(R.xml.file);
Current testing on an end-user's G1 suggests that the T-Mobile G1
cannot play back 11025 Hz unsigned 8 bit wav files from a resource?
There are no error messages reported for 16000 Hz unsigned 8 bit wav
files. Which types of wav files can the G1 handle? I cannot find even
a minimum required set
Thanks for your reply, Hirayama-san.
It is SDK command. I always start applications from run button of
eclipse.
On Oct 26, 2:21 pm, Hirayama Jun'ichi [EMAIL PROTECTED] wrote:
How did you install your apk ?
SDK comand ,
adb install ,
adb push ?
2008/10/26 Yoshiyuki [EMAIL PROTECTED]
this works:
String buffer = null;
HttpResponse response = client.execute(get);
entity = response.getEntity();
status = response.getStatusLine().getStatusCode();
InputStream in = entity.getContent();
for (int i = in.read(); i
I use httpClient, which is built into the Android. I see no
performance problem there. I use DOM for xml parsing, for just very
small replies from a server, no performance problems there. I would
like to have an alternative for DOM, just 'cause I don't like it.
Elsewhere I use Xstream which I
In your manifest, add this attribute to your Activity tag:
android:configChanges=keyboardHidden
http://code.google.com/android/reference/android/R.attr.html#configChanges
and override the onConfigurationChanged() method in your Activity
On Oct 24, 1:06 pm, Robert K. [EMAIL PROTECTED] wrote:
I agree, but as I have understood, freeing up memory would mean that
the particular acivity is entirely shut down. The system would do that
only if it is absolutely necessary. I doubt if the rest of the
application continues working
Is a PARTIAL_WAKE_LOCK sufficient to keep CPU, camera, audio and
sensors awake? This is what my app requires. (I do not care too much
about the screen brightness and keyboard backlight.)
Thanks
On Oct 24, 5:08 pm, Justin (Google Employee) [EMAIL PROTECTED]
wrote:
Does this
application use a
thanks for the responses.
i just fixed my YUV situation. the problem wasn't my code, seems like
i had a corrupted YUV movie for some reason. worked fine on a fresh
capture from the emulator. i had moved this functionality off the
phone, but at least now i have the option of handling the YUV
Thanks. I understand the risk in going for direct access.
On Oct 24, 1:09 am, hackbod [EMAIL PROTECTED] wrote:
Sorry, we don't currently have a high-level API for doing this. As a
hack, you can read /proc directly, but that is not something that is
part of the SDK and so you have no
jtaylor,
Did you read the example? It does not do a joint. Instead it uses a
Uri subpath notation for its child query, within the same table rather
than joining multiple tables. The references to group in the code
are not contact group membership, but rather ExpandableList parent
node/groups.
Glad it was useful. In the mean-time I managed to fully decode the
live camera preview. Funny is that whereas the SDK 1.0 r1 emulator
only shows a grayscale view, the data array in onPreviewFrame() is
actually a *color* view that looks identical to what I remember seeing
in the older SDK M5 RC15
My Android application uses HttpClient (org.apache.http.client) to
connect to a remote web service.
I want my application to play nicely with HTTP proxies. I examined
the Android SDK and
found the android.net.Proxy class.
android.net.Proxy allows my application to get the proxy host
I want to run a function when the text in an EditText is changed. How
would I do this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
http://code.google.com/android/reference/android/widget/TextView.html#addTextChangedListener(android.text.TextWatcher)
Example:
editText.addTextChangedListener(new TextWatcher() {
public void afterTextChanged(Editable s) {
//XXX do
I found the android.permission.GET_ACCOUNTS permission and there is
a Google Accounts application (in the Application Manager), so it
looks like there is support in the OS for this information. I tried
Context.getSystemService( account ) and
Context.getSystemService( accounts ) just in case it
I'm trying to detect when the screen times out and puts the phone to
sleep. There is a Broadcast Action called ACTION_SCREEN_OFF that
appears to be just what I need. However I can't seem to get it to
catch. Here's what I have in the Manifest:
receiver class=.ScreenOffReceiver
You can use the screenOrientation XML flag to force your activity into
a specific orientation. See
http://code.google.com/android/reference/android/R.styleable.html#AndroidManifestActivity_screenOrientation.
-Jeff
On Sun, Oct 26, 2008 at 9:22 AM, JP [EMAIL PROTECTED] wrote:
I could not find
This capability was in M5... guess someone changed their mind.
On Sep 9, 2:16 pm, Justin (Google Employee) [EMAIL PROTECTED] wrote:
but isn't that why you list an app's permissions before
installation (as shown in the marketplace screens)?
To some extent yes, but there are some permissions
Thanks guys - I'll check it out.
On Oct 26, 9:52 am, Jeff Hamilton [EMAIL PROTECTED] wrote:
You can use the screenOrientation XML flag to force your activity into
a specific orientation.
Seehttp://code.google.com/android/reference/android/R.styleable.html#And
-Jeff
On Sun, Oct 26,
Hello,
I'm trying to find a way to programmatically change a drawable
resource within my application so that I can display this updated icon
as a notification. Would this be possible? If not is there another way
to go about doing something like this? I figured a notification object
might be able
I thought I would try using ps with code like the one listed below.
headers for the process list are reported correctly but not much else.
When you mentioned accessing /proc directly, did you have something
else (other than ps) in mind?
Thanks.
Alex Donnini
private void getProcessList()
What I am trying to achieve is breaking a drawable down into an array
of separate bitmaps. E.g. I am passing a grid of 32x32 images (lets
say the image is 320x320 pixels and contains a grid of 10x10 smaller
bimap images) and i want to create an array of 100 bitmaps.
So I need to copy from (eg)
The first one still gives me an IOException. It forces me to add
throws or a couple of try/catch's for error handling but either way it
gets IOException. This is the code for that:
public String getPrice(String symbol) throws ClientProtocolException,
IOException {
DefaultHttpClient
Appreciate your help.
Thanks Jose.
On Sun, Oct 26, 2008 at 5:40 AM, Jose Vasconcellos [EMAIL PROTECTED] wrote:
You might try another group such as android-porting:
http://groups.google.com/group/android-porting
On Oct 25, 5:05 pm, krishna devarapalli [EMAIL PROTECTED]
wrote:
Hi,
/proc is a (virtual) file system, so you can navigate through it with the
usual File operations. For every process there is a directory /proc/pid
where pid is the processes PID. Under that directory is a whole lot of stuff
relating to that process, such as command line, actual executable, open
just for the record, your androidmanifest file does contain this line?
uses-permission android:name=android.permission.INTERNET /
otherwise, the snippets come from my program, which works fine. I
removed the try/finally block in the example, for readability.
Christine
On Oct 26, 10:34 pm,
try logging the exception itself in the error cases. just printing
IOE will get the fact that an IOException happened, but not any
detail.
my code is very similar to yours. HttpResponse = HttpClient.execute
(HttpGet), InputStream = HttpResponse.getEntity ().getContent ().
then after that i
On Oct 26, 1:50 am, Emery [EMAIL PROTECTED] wrote:
I have spent hours on end trying to figure out how to make a simple
HTTP request in Android. Examples and docs are outdated... nothing
works. AGGH! Please help
I built an Android application that uses HttpClient to send HTTP
requests to
On Oct 26, 5:17 am, Zhihong GUO [EMAIL PROTECTED] wrote:
I have read the the source code in android.syncml, but I am not sure if it
follow OMA DS 1.2 or not. Can anyone tell me?
Where did you find android.syncml code? Is this code in the Git
repository?
I looked in the Git repository and
Jason, you're right about the efficiency of appending to a string. I
use it for short messages only. I use an input stream to create a DOM
document, which probably isn't efficient either. But then, if all you
get is 200 bytes at most, who cares.
Christine
On Oct 26, 11:06 pm, Jason Proctor
As Mark noted, use the HttpClient 4 stuff, just like the HttpClient
examples demonstrate (he posted the link).
If you need more Android specifics, the NetworkExplorer sample
application from the upcoming Manning book Unlocking Android does all
sorts of HttpClient stuff (HTTP, HTTPS,
Hi, I am trying to implemente a custom suggestion provider which will
allow to promt user in selecting email addresses. Unfortunately no
matter what I do I keep getting the
'10-26 22:22:02.871: WARN/SearchDialog(565): Suggestions cursor
discarded due to missing required columns.'
message in
android.net.Proxy has four static methods:
getDefaultHost
getDefaultPort
getHost(Context)
getPort(Context)
According to the javadocs:
- (getDefaultHost, getDefaultPort) are for a carrier proxy
- (getHost, getPort) are for a user specified proxy
I'm looking for methods that
I believe the android.net.Proxy class is intended to be used for
default carrier proxies, which don't require credentials (but rather
use the fact that the device is on the private carrier network as
auth) not for connecting through your own proxy server with
authentication.
You should be able
without wishing to bang on about this --
every time you write string1 += string2, the VM will instantiate a
StringBuffer with string1, append string2 to it, and then assign the
buffer's toString() back to string1. that's at least 2 instantiations
per iteration, and instantiations are
That was it! Thanks!
On Oct 26, 6:03 pm, Christine [EMAIL PROTECTED] wrote:
just for the record, your androidmanifest file does contain this line?
uses-permission android:name=android.permission.INTERNET /
otherwise, the snippets come from my program, which works fine. I
removed the
what was that, the 100th time that was the problem? i really hope we
get more granular exceptions and better messages etc with future SDKs.
That was it! Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups
Figured it out. After grep'ing through the Android source code, found
and successfully implemented the following within my ListActivity.
BroadcastReceiver mIntentReceiver = new BroadcastReceiver() {
public void onReceive(Context context, Intent intent) {
if
On Sep 12, 1:39 pm, Zach Hobbs [EMAIL PROTECTED] wrote:
I'm able to randomly reproduce a situation that crashes my application. Does
this mean that my application is using too much memory?
Correct. All it takes are memory requests for a few large bitmaps and
you're out.
Is there any replies to this thread? or Please advice me if wrong sub-
group published...
Thanks a billion!
Bell
On Oct 24, 5:26 pm, Bell.Yao [EMAIL PROTECTED] wrote:
Hi Guys,
How are you doing?
I am a fever fan of Google Android... And I have downloaded the
Android 1.0 full source code
but I really don't know how the code of the package be used.
2008/10/27 Zhihong GUO [EMAIL PROTECTED]
http://git.source.android.com/?p=platform/frameworks/base.git;a=tree;f=core/java/android/syncml;h=c53ec87a1557aac9cdb6c49b1070062d71912428;hb=1ef4564d4ad14f2c5dcb162636875ca8aed5e4d9
Sorry about that. Major typo. NAME=username should be
OWNER=username.
On Oct 23, 10:23 pm, Wanted unique nickname [EMAIL PROTECTED]
wrote:
Wow, that totally worked. For those who are interested, here is my
complete Suse example:
Before you connect the g1 via usb
[create the udev rules
77 matches
Mail list logo