@Jason: thanks for your inputs again!
Any idea why does the request to acquire/allocate Graphic Buffer fail
with Bad address?
W/GraphicBufferMapper(2541): registerBuffer(0x3a2408) failed -14 (Bad
address)
W/Surface(2541): registerBuffer(...) failed -14 (Bad address)
E/Surface(2541): getBufferLock
@Jason: Thanks again for your inputs.
> >If we keep the application up for long duration of time, this issue is
> >seen more frequently.
I meant - If we use the app for a longer duration of time without
navigating out or switching to a different app we see Canvas Lock with
Bad address.
>>You orig
@Jason: thanks again for your inputs.
No we are not passing any reference. This exception is seen as part of
the ViewRoot.performTraversal() calls which is part of the standard
code flow. Essentially, this happens whenever a new window is created
for an activity and is to be registered with the Wi
@Jason: thanks for the inputs.
There are two reason for canvas lock; the other is failed to dequeue
GL buffer. THe following is written to the logs when this happens:
W/GraphicBufferMapper(2541): registerBuffer(0x3a2408) failed -14 (Bad
address)
W/Surface(2541): registerBuffer(...) failed -14 (B
Activities in our application employ use of an OpenGL Surface that is
drawn behind the main content of the activity. Every time, the
activity is "entered into" a bitmap is captured and rendered on the GL
surface and every time it is paused the bitmap is removed.
It is observed that if we keep swit
We are using four different custom fonts across our app. These files
are bundled in Assets and are opened in onCreate of every Activity.
While studying the logs of our app we keep observing the following log
from Skia decoder.
01-01 19:19:51.585: DEBUG/skia(1510): purging 197K from font cache [20
Thanks for the suggestions.
We want the user to enter the text, only that it would not be done
using the Hard/Soft keyboard. Was of the opinion that setting the
InputType to null and then using a TextWatcher/
customTransformationMethod to replace the character would help?
--
You received this me
> If there is no virtual keyboard, how would users enter their password if
> their phone doesn't have an actual keyboard?
Lets just assume, there are other methods available to do that.
The only option left is disabling that from the Settings?
--
You received this message because you are subscri
While setting setInputType(InputType.TYPE_NULL); for the password
field, the text we are inputting is visible and will not be masked by
dots which is not desirable for password field.
"InputType.TYPE_NULL | TYPE_TEXT_VARIATION_PASSWORD" will display the
keyboard.
If we try setting the content
I have an application that has a transparent background in all of its
Activities.There is a separate application(like Camera Preview) which
displays the real time feed from Camera.
Is it possible to somehow start my Application and display it atop
Camera feed?
Please note that I am not supposed t
I am working on theming my application, and I would like to add
effects to a listview item when it is selected. While I have
successfully accomplished theming the text color, I would also like to
make changes to the text size itself while pressed/selected.
What are the alternatives to do this?
Do
I am working on an Android application that needs to have a live
visual feed playing in background. All the UI elements need be drawn
atop this Surface. Though the UI is pretty basic it has several flows
and we have divided each flows as Tasks and therefore the application
has several activities.
I tried locating source code for StackView and was not able to find it
in the git repository.
--
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
I am working on an Android application that depends on a binary
executable(ELF binary for ARM-linux architecture) for its business.
There are java classes that interact with this binary.
Since the application requires this binary to be running, I was
thinking of packaging the binary inside the app
Has the source code for Honeycomb been made available for general
public yet?
I was looking for StackView.java in android.git.kernel.org but was not
able to find it.
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this g
Hi:
I am working on an Android application that depends on an ELF binary:
our Java code interacts with this binary to get things done. This
runtime needs to be started and terminated on Application startup and
application exit / on demand.
Questions:
1. I am assuming that we will be able to execu
I am working on an Android application where the requirement is to
have a vertical list of items that would scroll up and down on key
presses. The focus(item selected) should remain fixed at the center of
the screen.
AFAIK, Gallery widget does not support vertical mode and we probably
have to achi
Is it possible to animate application icons?
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers
Hi:
We are attempting to play certain live content on Android clients that
are protected using some DRM scheme. Not sure how foolproof DRM is or
will be; is it possible to restrict projection of display by blocking
USB or HDMI ports if available on device? Is this even allowed?
Are there any APIs
When I try playing open streams(not encrypted), using the
MediaPlayer_Demo in the API demos package, I get the following
messages written to the logs:
INFO/avc_utils(238): found AVC codec config (320 x 180, Main-profile
level 2.1)
INFO/ESQueue(238): found AAC codec config (48000 Hz, 1 channels)
I
>>Many thanks for your help and the bug notifications...I was wondering
>>from where you got the httplive info !! How could we guess ???
Some guy helped me with this info(see bug link). The documentation
should be updated to reflect that.
> Are the encrypted streams you are testing public ? If so
I am working on an application which is to display Time Table of some
sort to the user. The list should be scrollable horizontally,
vertically and diagonally. Sort of like panning in MapViews.
The left pane/rows will account for a fixed number of unique items.
The columns will define a time slot.
AFAIK, MMS is not supported on Android.
--
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 to
android-developers+unsubscr...@go
@Fox Mulder:
I have filed a bug:
http://code.google.com/p/android/issues/detail?id=14646&q=stars%3D2&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
hopefully, someone at google will find some time out to comment.
--
You received this message because you are subscribed to the Google
Groups
We have about 300 drawables/icons in our application and each drawable/
icon is associated with an Id meaningful within the functional context
of our app. These icons are to be displayed in a Gallery and when the
user makes a selection, the relevant "Id" for the selected icon needs
to be passed to
I know that Honeycomb Preview SDK is not the finished product but did
anyone try playing m3u8 playlist on it?
Is this even worth trying of should I wait for final version of 3.0
SDK to be released.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" g
> You should be ashamed. It's not supported on earlier devices and there
> is no indication that it will be supported by 3.0.
@Aleksandr: Thanks for your reply
I know that it was not supported earlier but a lot changed with
regards to MediaPlayer framework and there was some confusion as
regards
:shameless bump:
--
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 to
android-developers+unsubscr...@googlegroups.com
For more
I have tried playing via MediaPlayer Apple's test stream:
http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8
The emulator displayed just a black screen. A trace was written to the
logs which can also be found here: http://pastebin.com/kNXWYYhf
Questions:
1. Can someone please
I tried same code on "3.0 Preview SDK" and was unable to play Apple's
Test Stream.('http://devimages.apple.com/iphone/samples/bipbop/gear1/
prog_index.m3u8).
Following debug stmts were written to a trace file, however :
http://pastebin.com/kNXWYYhf
can please someone explain what went wrong there
I see that the relevant section of the Wikipedia page was altered by
the author it now reads:
"RTP/RTSP streaming (3GPP PSS, ISMA), HTML progressive download (HTML5
tag). Adobe Flash Streaming (RTMP) is supported through Adobe
Flash Player plugin. Apple HTTP Live Streaming is planned to be
suppor
According to the release notes, StageFright replaces the OpenCore
framework in the GingerBread release. It seems that there have been
numerous discussion that says: Apple's HTTP Live streaming is
supported by default since Android 2.3.
Even the Wikipedia page:
http://en.wikipedia.org/wiki/Android
This post [http://digital-identity.dk/2010/12/protecting-ip-in-android-
applications/] suggests that apart from obfuscation, we can try
implementing a portion of (sensitive) code natively. And then to
ensure that the native code is used/called by our application only, we
can match the digital keys
Is there a way to protect Android apk file so that the source code
cannot be regenerated? Also, there are a number of network sniffers
that allow HTTP monitoring, is there a way to bypass these such that
the incoming/outgoing network traffic could not be monitored?
I have read that code obfuscatio
> I can't say anything about which (if any) Android video players support
> RTSP, including authorization, so do your own research.
This guy here[http://justdevelopment.blogspot.com/2009/10/video-
streaming-with-android-phone.html] says streaming video over RTSP is
possible using the MediaPlayer A
We have a back end infrastructure set up to enable us do streaming
over HTTP of live video content on iPhone and iPad(the Apple HTTP Live
Streaming Standard). The stream audio is encoded using AAC format and
video in H.264 bundled together in an MPEG 2 stream which is cut into
segments (.ts) files
We have four ListViews in a FrameLayout in one of our activities. We
also have a common WebView in this Framelayout set as EmptyView for
each of these lists.
The content of this TextView is supposed to change at runtime
depending on different contexts.
As a result, we call:
1. mEmptyView.loadData(
>>I will say this again: please use real MIME types.
Done!
Thanks for your time and suggestions, Mark!
--
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
@Mark: thanks for your reply and greetings of the holiday season!
The reason I used these MIME types was that I was just wanted a
general classification of the files based on their extension, into
these four categories. And deemed them appropriate/enough.
A quick search shows that a mapping file f
We are downloading a file from a server and writing it to folder on
sdcard. As soon as the write finishes, we perform a Media Scan on that
folder. When the user tries to open the file for viewing, we try to
leverage upon the Intent mechanism of Android and raise an Intent as
follows:
Intent myInte
I should take the time out to go through the code.
I read somewhere that if the stream is at least read in full, the
connection is returned back to the pool.
I tried making almost concurrent requests from different threads and
it seems that there is only a certain thread that is blocked waiting
f
No.
Threads call a certain getResponse() function which does a
httpclient.execute() call. We do a response.getEntity().getContent()
and pass the InputStream to the caller. So, you see, the HttpEntity is
not handed over to anyone as is.
>From the Http Components documentation, I gathered that even
We are creating a ThreadSafeClient for doing the network IO in our
application using the following code:
DefaultHttpClient sClient;
final int MAX_TOTAL_CONNECTIONS = 50;
HttpParams sDefaultHttpParams = new BasicHttpParams();
ConnManagerParams.setMaxTotalConnections(sDefaultHttpParams,
MAX_TOTAL_C
We have a ListView and a WebView in a FrameLayout. The WebView is set
as empty view for the ListView.
The WebView contains some HTML text with hyperlinks. The problem is
when the List is empty and the webView is displayed, we cannot click
the links in the WebView using the touch interface. However
I am connecting to a remote server in my Android application. I have
noticed that when the device goes to sleep/standby WiFi is
disconnected and that when the device wakes up, it gets reconnected. A
check-Network-Connectivity code has been put before
httpClient.execute(..) call.
An assumption is m
If a data row of my list contains a TextView and a Button, is it
possible to format those components individually when the List row is
selected? Like change drawable of a Button, font color of the TextView
apart from the usual highlighting the background of the List row?
How can this be achieved?
:shameless bump:
--
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 to
android-developers+unsubscr...@googlegroups.com
For more
That is exactly what I thought when I saw ANR, but I am just setting
an Alarm in it. No network calls.
--
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 f
I have registered a Receiver component for ON_BOOT_COMPLETED
broadcast, in my application. The receiver does just prints a line in
its onReceive() callback. However, when I boot the emulator(by
executing Run as->Android application command from Eclipse) and unlock
the screen on start up, I get an A
Mark:
Thanks you very much for answering my questions.
> IntentService already uses a background thread for onHandleIntent().
> Hence, do not use AsyncTask -- just execute your code in
> onHandleIntent().
>
> > 2. How can such exceptions be avoided?
>
> Do not use AsyncTask -- just execute your c
:bump:
Please help.
--
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 to
android-developers+unsubscr...@googlegroups.com
For
We are starting an IntentService periodically using AlarmManager
service. The IntentService class fires a few AsyncTask from its
onHandleIntent() callback.
The setup works well for some time. But when the device is put to
sleep or if the application is exited and resumed after some time,
whenever
I wish to execute the following query on my application's
SQliteDatabase.
String sql = "Select col_1,row_id from Table1 where row_id IN(Select
row_id from Table2 where key = 'key')"
I am using the rawQuery function of the SQLiteDataBase class for the
same. The problem is when the inner query retu
We are connecting to a number of WebServices and fetching a lot of
structured data(XML). We are parsing this data and storing them into
SQLite tables. This part of the application runs periodically in the
back ground.
On the foreground, the data fetched is displayed in ListViews. We have
used Arra
We are getting a set of telephone numbers(pure numbers with no
formatting) from a remote web service. We need to display them in a
list. But before that we have to query the contacts database and show
"display name" of the contact instead of the phone number if there is
a match.
Question :
1. When
I am getting following exceptions when I try to read/delete contacts
from my application using Contacts Content Provider.
What does the following mean?
ERROR/IMemory(1349): binder=0x490f38 transaction failed
fd=-2147483647, size=0, err=-2147483646 (Unknown error: 2147483646)
ERROR/IMemory(1349): c
Is it possible to subject only a few activities of an application to
events generated by UI Monkey tool?
Thanks in advance!
--
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@googlegroup
Used an Broadcast Listener as an Anonymous Inner class of the
Activity, registered/unregistered it via Java code and let the service
Broadcast appropriate Intent.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send e
My application has an IntentService which runs periodically to
download data from a remote server. The download task is run inside an
AsyncTask which has reference to Application context only.
The data downloaded is for entire application and is displayed across
four different activities. When the
I have a helper class that contains definition of an AsyncTask(inner
class). Other classes instantiate this class and call one of its
method which in turn instantiates, the AsyncTask and starts execution.
class TaskManager{
private class SomeTask extends AsyncTask<>{}
public void performTask(){
We have an application which on start up pulls up a Terms and
Conditions screen. When the user declines these terms we have to ask
the user if he wishes to delete the package.
So, from within the application we launch the following intent:
Uri uninstallUri = Uri.parse("package:some.package.name")
:bump:
--
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 to
android-developers+unsubscr...@googlegroups.com
For more options,
Hi:
We are supposed to cache textual and audio data in our application
until device is booted or maximum of two days, whichever happens
earlier. To get a perspective on data to be cached, note that we are
to store about 200 text headers containing around 10 fields, each of
length 30 bytes and abou
A BIG thank you, Mark and Kostya for your answers and time!
A few things...
Mark>>>Do not not to poll frequently.
I am supposed to poll the server to update the client of the changes
in (almost/near) real time. The interval suggested was five minutes.
Is this too frequent?
Mark>>>No, you have to
Hi All:
I am required to work on an application which is be deployed on
devices running Android 1.5. The application is supposed to maintain a
connection with a server and regularly poll it for new data. The
server will notify the client of new data following which the client
will connect to the s
Mark:
Thank you!
--
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 to
android-developers+unsubscr...@googlegroups.com
For mor
I am working on an Android application which is supposed to play
videos over HTTP on Android devices. Before we setup a server to host
the video files just wanted a few things clarified:
As per the developer documentation, Android supports .mp4 and .3gp
container formats for video. The audio-video
What is the best way to play multiple audio files in mp3/3gp format
concurrently? These files can contain about 3-4 minutes of audio.
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-dev
:bump:
--
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 to
android-developers+unsubscr...@googlegroups.com
For more options,
There are a number of Karaoke application in Android market. I was
wondering how these could have been written?
Does Android MediaPlayer support MP3+G or .kar file formats?
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post t
Got it. ID3v1 is easy.
Use RandomAccessFile and then seekTo (File.length - 128) bytes. Rest
of the bytes is what I need.
--
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.co
I have a .mp3 track that contains song meta-data (title,lyrics,etc.)
in ID3 tags. Does Android have any support for reading this? What
would be the best way to read the tagged information?
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" g
I have put some instructions in onLowMemory() callback and want to
test the same. Is there a "direct" way to test onLowMemory function of
the application subclass?
Or will I have to just overload the phone by starting many apps and
doing memory intensive tasks?
Thanks.
--
You received this mess
I don't have an iTunes account to actually try this(hope this is not
illegal). What will happen if I browse to iTunes Store from a browser
on my phone and buy a song?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, se
Thank you Mark and Sean.
--
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 to
android-developers+unsubscr...@googlegroups.com
Is it possible to link to iTunes store from within an Android
application? The user should be able to download a song and save it to
his/her SDcard, play the file etc.?
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to thi
> Can you provide a better explanation of what you're trying to do?
sorry for being a little vague there;
I am working on a FAQ page which is to display Q&A using an
ExpandableListView. Some of the answers have bullet points (ordered
lists). I want a way to generate these lists.
In HTML, we have
I have to display an ordered list of items (expected level of nesting
= 2) in a TextView.
What is the best way to do this?
I have tried creating a string resource such as:
item 1\nitem 2\n
and then setting this text in TextView.
This just displayed the two list items one below the other without
I am embedding a MapView in my application which is used as a canvas
to pin point a location.
My question is do I need to buy a license if I publish my application
as paid app in market? What is my app is free?
Thanks.
--
You received this message because you are subscribed to the Google
Groups
> > Should I include an invisible WebView in every page and somehow make
> > it execute the JavaScript in onCreate()?
>
> That will slow down the start of your app and will consume a lot of
> memory. I doubt your users will appreciate this.
I was not comfortable with this from the start.
Not sure
I have an Android application that needs to incorporate some
JavaScript code that tracks user events inside my application and
submits feedback to an Analytics engine/service.
This code needs to run on first visit of each Activity.
Almost none of these Activities have WebViews.
What would be the
Thanks for your reply Frank.
>>1) The encoding given in the HTTP response
The charset of the response is UTF-8
>>2) The encoding given in the XML prologue
XML prolog says UTF-8
>>3) The encoding setting of the Reader underlying the XPP.
When doing a setInput on the parser I said:
parser.setInput
I am parsing a RSS2.0 feed on Android using XML Pull Parser. The
encoding for the XML is set as UTF-8. The parser fails giving invalid
token exception.
When I save the received XML feed file and open it in the
browser(FireFox), the browser cannot render the XML and spits out an
"Invalid token(unic
Hi,
I am trying to install Eclipse Galileo on my MacBook running OS X
v10.6 (Snow Leopard) and set it up with ADT plugin. I manually
downloaded 64-bit cocoa version of "Eclipse Galileo for JEE
developers" and ADT v0.9.6 from the respective offical sites. I
unzipped/untarred Eclipse on my mac at: "
I made a mistake above.
The following intent is launched for authorization:
Intent {
act=android.intent.action.VIEW dat=http://twitter.com/oauth/
authorize?
oauth_token=XXACTUAL_TOKEN_HEREXX8&oauth_callback=myapp:///tweet
cmp=com.android.browser/.BrowserActivity }
--
You received this message b
I am working on an Android application which is to serve as a simple
Twitter client. I am using OAuth for authorization and have registered
my application with Twitter as new OAuth client.
Now when the user authorizes the application, I expect to be taken to
the Callback URL(which is pointing to my
Sounds perfect!
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
F
I could try and commit the stream to the file system first and then
decode the file to create a Bitmap. That way, I can keep a check on
the size of the File assuming that File.length would yield relevant
results. I guess it would be better to display the Bitmap a little
late than throw unexpected O
> Sorry to state the obvious, but since you downloaded the file why
> don't you downsample only picture that are either :
>
> - Larger than 1024x768 in size
> - Bigger than 500 KB
>
> or a smart mix of the two ?
I guess because I was creating a Bitmap from the stream before I was
writing it to th
I have a bunch of image URLs. I have to download these images and
display them in my application one-by-one. I am saving the images in a
Collection using SoftReferences and also on Sdcard to avoid refetches
and improve user experience.
The problem is I dont know anything about the size of the bitm
Does passing BufferedInputStream/BufferedOutputStream classes to the
Bitmap functions like compress and decodeStream make these functions
run any faster? Or does the underlying code for these function take
care of wrapping a buffer around?
Which one is better or faster of the belowmentioned or does
In my application I have three buttons that are to be part of each and
every activity. These button are independent of each other and on
click do mutually exclusive things(say launch different activity).
So, in my layout XML for every screen I have a element.
As I understand, at run time, if ther
Two of my posts here on this forum got somehow copied to
"World_wide_with_god_ministry" forum. I don't know anything about this
group; never joined them, never visited their page.Now, I have them
listed under My Groups drop down. I can't find a way to unsubscribe to
this group.
Did any one else ha
As I have said, I have a requirement to create(or rather emulate)
iPhone TabBar. I am not sure if the look of TabWidget can be
customized forasmuch as to make it look like iPhone's TabBar.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To
I have a requirement to create a control similar to UITabBar in
iPhone, which is to be present on every activity of my application.
UITabBar essentially is a battery of buttons exhibiting a TAB like
behavior: every button maps to an activity.
I have two solutions for this:
1. In the layout XML for
:bump:
--
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 to
android-developers+unsubscr...@googlegroups.com
For more options,
I just skimmed through your post; my 2 cents:
- you have not verified the Intent Action in onReceieve call
- Generally, onReceive() should return immediately so you should use
threads and/or background service, if possible.
--
You received this message because you are subscribed to the Google
Gro
I have an application that is driven by a configuration XML: various
app properties are loaded at the app start-time by parsing the XML and
initializing static variables of some class. The data read from this
XML drives different Activities of the application. Presently, I have
called the "parsing
I am trying to create a treeview using expandable list view. I am able
to achieve most of the functionality; the main problem is that while
expanding and collapsing the list I want to dynamically resize the
childview(at the moment I am specifying fixed value for height of the
view). I want a single
I was reading something and came across a few statements that I failed
to understand fully:
Q1. Bitmap memory is different than heap memory.What could this
possible mean?
Q2. What is a native Bitmap?
Q3. Decoding a 64x64 .png resource will give a 64x64, 32-bit in-memory
bitmap.What is a "in-memory
1 - 100 of 116 matches
Mail list logo