Ok, I may be a bit vague, but say I want an utility class to do some
common stuff, including resources and shared prefs. Then I need a
context. If I put a SharedPreferenceListener into the class, I am lost
if I want to do something using a context when receiving the
callbacks.
This is how I think
Hello,
I'd like to append childs to a custom AdapterViewCursorAdapter to
fill it with data.
Can anyone help me to understand how this works? In the docs I read:
Adapter that exposes data from a Cursor to a ListView widget
(from:
How are you setting the title bar then? You set your own layout to it?
On Wed, Oct 13, 2010 at 12:13 AM, Dimitris dnkou...@gmail.com wrote:
I have a custom title bar that I would like to apply to all my
activities. I have searched online and found a few ways of doing that
however I have ran
They just make it *really* easy to hate on the Developer Console.
I have no idea what you mean. Why, just recently they were kind enough
to reset all my errors to New so that I could easily check that they
were
still fixed.
Joking aside, I've only been on the market 3 months and have seen some
I have a list activity with a cursor adapter. Cursor is retrieved by
managedQuery() method.
The docs say that the cursor returned by this method is managed by activity
life cycle: it's deactivated when activity is stopped, and is requeried when
activity restarts.
So I expect that once an activity
FYI, 3gpp/amr files are created when you are recording with the cell
phone microphone.
On Oct 12, 1:49 pm, Anil anil.r...@gmail.com wrote:
I also tried
player.setLooping(false);
On Oct 12, 1:11 pm, Anil anil.r...@gmail.com wrote:
In order to be notified when the clip
If you want to feel some real **positivity** towards the console, try
changing a paid app to a free app and then see how the rest of your
day goes when you want to change it back to paid.
DON'T DO THAT. ONCE FREE ALWAYS FREE.
It's in another thread regarding how there should be some sort of
On Tue, Oct 12, 2010 at 3:21 PM, Roman Mazur mazur.ro...@gmail.com wrote:
Because in such case activity is paused and then resumed (e.g. after
pressing a HOME button and returning) but NOT stopped and restarted.
Pressing HOME will stop and start the activity. The exact sequence is:
onPause()
I'm thinking of getting a Google TV box when it comes out in a few
weeks.
I know that there is going to be an SDK released for the box at some
point. Has anyone here heard any news about if we will be able to
connect to the Logitech device via USB in order to test our
applications, or if will
On one page of my app there are sounds.
Is there a line of code to allow the volume up/down buttons to switch
to media volume control for that page of the app only?
Or do I need to set it for the entire app, and how do I do that?
Thanks
--
You received this message because you are subscribed
I wonder if that's possible. If you can get the button press events, it's
fairly easy to do. You cannot of course set the behaviour globally, ie, your
code has to be application specific.
But I cannot find any actions related to the volume rocker buttons, so I am
guessing that you cannot really
Well, I guess, it might need specific drivers for the set top box or
TV, but we can never be sure until there's an official announcement.
Everybody is waiting for that, me too :)
On Oct 13, 12:42 am, Spiral123 cumis...@gmail.com wrote:
I'm thinking of getting a Google TV box when it comes out in
If I run my php file manually I am getting the output as follows:
=
[{org_id:39575,orgname:ARTHRITIS FOUNDATION - VIRGINIA
CHAPTER,orgcity:RICHMOND,orgstate:VA}]
The php code is as follows:
=
html
body style=background-color:#33990f
?php
// connect
On Tue, Oct 12, 2010 at 2:21 PM, Pent tas...@dinglisch.net wrote:
Joking aside, I've only been on the market 3 months and have seen some good
improvements (errors to the console, improved app protection, expanded
market countries) giving some hope that one day we'll be in good shape.
I've
On soundboard apps, as soon as the app is loaded, the volume control
buttons change to media control buttons.
Even if I have to designate my app to do this at launch, how do I code
that?
On Oct 12, 3:43 pm, ericmahlon ericmah...@hotmail.com wrote:
On one page of my app there are sounds.
Is
I use in onCreate():
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
super.onCreate(savedInstanceState);
setContentView(getContentView());
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,
R.layout.title_bar_1);
And then I have an XML
On Tue, Oct 12, 2010 at 3:51 PM, Capt Spaghetti gene_august...@msn.com wrote:
HttpPost httppost = new HttpPost(graborginfo.php);
That is not a valid URL.
HttpResponse response = httpclient.execute(httppost);
HttpEntity entity =
Thats quite easy.
Use AudioManager by getting the AUDIO_SERVICE of the system.
AudioManager has a few methods to adjust stream volume. Select your stream,
and change the volume.
On Wed, Oct 13, 2010 at 1:22 AM, ericmahlon ericmah...@hotmail.com wrote:
On soundboard apps, as soon as the app is
Oh, thanks...
And what about starting a new activity with startActivity(). Is the
starter stopped of paused?
On 12 Жов, 22:32, Mark Murphy mmur...@commonsware.com wrote:
On Tue, Oct 12, 2010 at 3:21 PM, Roman Mazur mazur.ro...@gmail.com wrote:
Because in such case activity is paused and then
Hello,
I am trying to follow a tutorial to learn how to get to a new screen
on a button click. The issue I feel I am facing is that in this
tutorial they have a file named main.java, firstly I don't have such a
file. I think I named the file as name1.java and on this screen i have
everything
Well, the problem with this approach is that it is not FOOL PROOF. I dont
think it's mentioned anywhere in the Docs that the title bar would always
contain a texview with this id.
So, the best bet I would suggest is go for a theme with no default title,
and add a custom view which looks like a
The announcements I read was an SDK isn't being released yet for the Google
TV (I also have one on order). Google is releasing the Android Market on the
revue sometime in QI of next year, so it's got to happen by then if they
want Google TV specific apps. My hope is someone will hack the system
There's nothing in names. Your class names can be anything. If you could
explain your problem more clearly, may be someone would be able to help you.
I went through the link, and it's good to go. Where are you stuck?
On Wed, Oct 13, 2010 at 1:36 AM, Varun Khanduja
On Tue, Oct 12, 2010 at 4:05 PM, Roman Mazur mazur.ro...@gmail.com wrote:
Oh, thanks...
And what about starting a new activity with startActivity(). Is the
starter stopped of paused?
Generally, it is stopped. One exception would be if the activity being
started is a dialog-themed activity --
On Tue, Oct 12, 2010 at 3:06 PM, Varun Khanduja varunkhand...@gmail.comwrote:
So tired and confused, please help
Varun, based on this and your previous posts, it seems as though you don't
yet have a solid grasp on Java. Forgive me if that's the wrong assumption.
If not though, I would highly
Also vendor extensions will be part of the system image and
will be installed under system/app.
IMHO it is a better style in my eyes to seperate your own stuff from
the rest.
On 12 Okt., 11:48, Raj raaju.pra...@gmail.com wrote:
Thanks Frank.
But the app has to be made as part of image and
Take this out of your php file:
html
body style=background-color:#33990f
And this too:
/body/html
Your php code needs to print out the JSON data array as is.
The way you have it, it's wrapped with html tags. HTML tags are for web
browsers, and are not part of JSON.
This error should go
That should work so you are saying there is no way for me to use
android:label from the manifest...correct?
On Oct 12, 1:09 pm, Kumar Bibek coomar@gmail.com wrote:
Well, the problem with this approach is that it is not FOOL PROOF. I dont
think it's mentioned anywhere in the Docs that the
Yes, you cannot do that without having to pick up the value from the
manifest and setting it to the title. Once you mention that you are using a
custom title, the default things don't work. It thinks that you will set a
custom title yourself, so it doesn't do it.
On Wed, Oct 13, 2010 at 1:54 AM,
Ok, I see. Thanks once more. Stopping activity is directly connected
with disappearing from the screen.
But I have a question about requering the cursor and list view state.
As I see requering causes the list to reset its state. But is there a
way to make the list view save its position and reload
Does anyone know the release date? I could have sworn that Amazon said it
was October 15th, but now I just see on my order - We need a little more
time to provide you with a good estimate.
On Tue, Oct 12, 2010 at 1:10 PM, Shane Isbell shane.isb...@gmail.comwrote:
The announcements I read was an
2010/10/12 Roman Mazur mazur.ro...@gmail.com:
As I see requering causes the list to reset its state. But is there a
way to make the list view save its position and reload data at the
same time?
I am not aware of any automatic way to make that work.
--
Mark Murphy (a Commons Guy)
Sounds good then! One more question, it seems that if there first time
I launch the app the default title shows up for a bit and then it gets
replaced by mine. I know because I can see the title of my app and
then it gets disappeared (via a fade animation).
Now this does not occur on any
Yes, this is the problem if you are setting it like this. You cannot avoid
that.
On Wed, Oct 13, 2010 at 2:12 AM, Dimitris dnkou...@gmail.com wrote:
Sounds good then! One more question, it seems that if there first time
I launch the app the default title shows up for a bit and then it gets
I also managed to use the android:label just by accessing ActivityInfo
programatically, I just want to guarantee no resources are wasted and
no additional layouts are inflated for no need.
On Oct 12, 1:27 pm, Kumar Bibek coomar@gmail.com wrote:
Yes, you cannot do that without having to pick
I have a TabActivity with 3 tabs. Each tab contains its own Activity.
When one of the contained Activities pops up an AlertDialog, there are
actually 3 dialogs created. The dialog has a Dismiss button and it
must be pressed 3 times to finally dismiss the 3rd dialog.
My AlertDialog code in the
As a workaround I created a static dialogOpen flag in the parent
TabActivity and test/set it in the entry to the dialog code. Then I
added onDismiss and onCancel listeners to the AlertDialog that reset
the flag. This is ugly, but it works.
--
You received this message because you are subscribed
My bad - the exception is specific to the software I am using. This
exception is thrown when a particular file is not created in the
sdcard.
The thread that writes it does not thrown an exception but simply
skips it - which means the original code does not catch it.
I will look a bit deeper on
I didn't even know what USSD code flow is. When I googled, the first few
results were google groups questions.
AFAICT, this is a carier-specific issue. I suggest you contact a carrier for
specific USSD code flow questions.
--
You received this message because you are subscribed to the Google
On Tue, Oct 12, 2010 at 5:04 PM, kypriakos demet...@ece.neu.edu wrote:
On a related note - can apps give permissions to other apps to read
write from/into their sandboxes? (/data/data/app/files?
Yes, but it is a terrible idea. As in epic fail level of terrible.
Provide some sort of managed
Is it possible to turn the flash on on an un-rooted phone (if so
equipped)? I've been looking around and can't find anything specific,
but I know it can be done...I found an app that does it.
Ken
--
You received this message because you are subscribed to the Google
Groups Android Developers
i made this
and this is the pic
http://www6.0zz0.com/2010/10/12/21/748629320.png
but i can't make an action on the table
this is the row.xml
?xml version=1.0 encoding=utf-8?
LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
I removed html from the php file as suggested by Kostya Vasilyev and
changed the approach to retrieve the information. The new Android code
is as follows:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Hi,
I am trying to locate the intent to load the call log view , does
android platform provide that out of the box? the functionality that i
am looking is just like picking a contact from address book , you can
do that by using intent.ACTION_PICK and using the people content URI
Intent intent =
Maybe if they are willing to buy the company that hosts it;)
On Oct 12, 8:54 am, Kumar Bibek coomar@gmail.com wrote:
:) Can anyone buy the Android Market?
On Tue, Oct 12, 2010 at 9:04 PM, TreKing treking...@gmail.com wrote:
On Tue, Oct 12, 2010 at 1:25 AM, Nitin Mahajan
I'm looking for a way to determine user identity so I can globally
track game scores off phone.
IMEI provides identity of the phone - not effective if phone is on-
traded or upgraded by individual.
USIM provides identity of phone carrier subscriber - assumes device is
phone, and currently has a
You can try ACTION_PICK on android.provider.CallLog.Calls.CONTENT_URI.
I do not know if it supports that particular action, but it should be
easy enough for you to try.
On Tue, Oct 12, 2010 at 5:49 PM, Muhammad Bilal se.bi...@gmail.com wrote:
Hi,
I am trying to locate the intent to load the
@kumar bibek
What i am trying to do is simple i want to embed using any video or
other tag mp4 file in android webview and want to paly it similarly to
facebook does allow with flash player to play video , i want similar
thing .
i tried it but once i pass the intent android player show up on
There isn't really a user identity. Not even with a Google account -- the
user can have multiple Google accounts, and though today there is some
concept of a primary account for implementation reasons, that is not
necessarily their real primary account (just the first one they used), and
that
I think AsyncTask is designed to provide a way to run things off the
main thread and take care of starting and ending the thread as needed,
but it's not intended to be re-used. It does it's thing in the
background and then it's done.
As for the test case, what you say makes sense. And I suppose
Most listeners/callbacks that I use are annonymous inner classes in
methods that already take a Context as a parameter. In that case I
just make the parameter final and use it from the callback method
without it having to receive a Context directly.
On Oct 13, 3:15 am, Chuck Lega
I want to scale and display images which are dynamically loaded to a
certain maximum size. The way I'm doing this is to set the
layout_width and layout_height of my ImageView to the maximum
dimensions and setting the scaleType to fitCenter.
But here's the problem. This is inside a
Hello all,
I figured out the issue. I went through this tutorial over and over
again without worrying for my project and then suddenly realized there
was nothing wrong except that I was not replacing a xml file. Sorry I
know it was not very smart of me. Thanks all
@king - I agree with you. I am
On 10/11/10 17:23, Jim Cortez wrote:
Hello all,
I am trying to send a Class object using the android.os.Messenger
capabilities. The Bundle class does not have methods for adding a
Class object and the Class object is not parcelable. Has anyone done
this before? Are there any ideas on how
If you are loading resources, you should strongly consider making this a
singleton per context. The resources you get for different contexts can
vary due to themes and such.
If your singleton is doing things you know are global to the app -- for
example loading concrete resources that can't be
I've been wrestling with the same problem.
I've decided that my approach will be to register, unseen to the user, an
anonymous account when they first need an identity on the server (eg. when
posting their first high-score). Then, after they have continued to use the
app for a time (eg. when they
I am doing recording in following way and storing byte array in a
binary file. But the binary file I am getting is not in any format.
what can be the problem?
int bufferSize = AudioRecord.getMinBufferSize(8000,
AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT);
Sounds like we are dealing with exactly the same problem Tom.
I was considering a solution similar to yours, but I wasn't going to
force a password - I really hate being forced into creating a new
account wherever I go. The sooner the world gives over to ubiquitous
OpenId the better.
I was
On Tue, Oct 12, 2010 at 6:37 PM, William Ferguson
william.ferguson...@gmail.com wrote:
Sounds like we are dealing with exactly the same problem Tom.
Anyone and everyone has this problem. I use
Settings.Secure.ANDROID_ID. When it's not present I hash something up
and save it as a preference.
Hi,
I am trying to write a program that will be able to read digital
signals from the SD card slot or SIM card. Unfortunately, the computer
I am working on is a bit slow and and I am just starting and not very
familiar with the android platform.
Does this code look right?
Thanks!
package
Thanks Dianne,
As you suggested I had planned on asking the user to tell me who they
are, after all I really only want a display name and perhaps vague
location info, whatever they are prepared to divulge globally and
associate with their scores.
The rub is in what unique identifier I can use
Hi,
I am trying to locate the intent to load the call log view , does
android platform provide that out of the box? the functionality that i
am looking is just like picking a contact from address book , you can
do that by using intent.ACTION_PICK and using the people content URI
Intent intent =
Hi,
Thanks for the reply. So is there any other method to pass some data
into the Android phone from a desktop application which will be used
by an Android application and at the same time copy some data from the
phone into the desktop application?
Thanks In Advance,
Perumal
On Oct 12, 10:47
On Tue, Oct 12, 2010 at 8:56 PM, perumal316 perumal...@gmail.com wrote:
Thanks for the reply. So is there any other method to pass some data
into the Android phone from a desktop application which will be used
by an Android application and at the same time copy some data from the
phone into
I was considering a solution similar to yours, but I wasn't going to
force a password - I really hate being forced into creating a new
account wherever I go. The sooner the world gives over to ubiquitous
OpenId the better.
I keep hovering around adopting OpenId, but I have usability concerns
Hi Mark,
Yes, wifi and Bluetooth can be used. But I am wondering if it is
possible through USB as the phone will be connected to the PC. I
method I thought is by writing to sdcard and the desktop application
can copy from it. But it is not possible to write to sdcard while it
is mounted. Is it
On Tue, Oct 12, 2010 at 9:06 PM, perumal316 perumal...@gmail.com wrote:
Yes, wifi and Bluetooth can be used. But I am wondering if it is
possible through USB as the phone will be connected to the PC.
The USB connection is not really designed for application use, unfortunately.
I
method I
Indeed I was suprised too. I found this post from an android.com
offical stating the docs are wrong and sub-folders are NOT watched.
Which does match what I'm seeing in my app. Too bad really ... that
would be an excellent feature!
You should be able to get rid of the HTML, but it's tough to give you
advice when we don't know the web server setup.
If it's causing too many problems to get rid of the HTML, you can always
do other things. I had the same problem on one of my sites, and to get
the website admin to do
below is my code to make bitmap from network-jpeg-stream whose size
is 360*288
i don't know how to handle it ,
---
private void makeImage() {
try {
Hmm, well I could've sworn I tried this before but I seem to have
fixed it. All the parents of my ImageView are set to wrap_content and
this is how I have my ImageView:
ImageView android:id=@+id/image_view
android:layout_width=wrap_content
That is an interesting question: I haven't run across any way in
Android to control the shape of the sensitive area of a button. Is it
always a rectangle, or can it be made circular, triangular, etc, by
making it conform to the shape of an image?
On Oct 11, 6:03 pm, Mark Murphy
Cant store a 16 bit sample into a byte array?
--
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
By default it is a rectangle. All the views are rectangles as well. As Mark
said, they look different because of the backgrounds.
On Wed, Oct 13, 2010 at 9:02 AM, DanH danhi...@ieee.org wrote:
That is an interesting question: I haven't run across any way in
Android to control the shape of the
I know that's the default. But other platforms have a way to modify
that default.
On Oct 12, 10:41 pm, Kumar Bibek coomar@gmail.com wrote:
By default it is a rectangle. All the views are rectangles as well. As Mark
said, they look different because of the backgrounds.
On Wed, Oct 13,
Ummm, What do you mean by modify that default? All the views take of a
rectangular estate area. This is generally the way how widgets are laid out
virtually everywhere. Even while you are designing HTML pages, everything is
a rectangle.
The boundaries of a view is always a rectangle.
On Wed, Oct
I'm guessing it has to do with the bitmap size here:
Out of memory: Heap Size=5639KB, Allocated=3134KB, Bitmap Size=18669KB
The Android has a mysterious and troublesome bitmap caching scheme,
and sometimes this requires the explicit issuance of System.gc
calls, even though the Java book says
HI!
On Tue, Oct 12, 2010 at 9:04 PM, TreKing treking...@gmail.com wrote:
On Tue, Oct 12, 2010 at 1:25 AM, Nitin Mahajan np.maha...@gmail.comwrote:
How can we develop an Android app store, to distribute apps/upgrades
specific to a product, which is a non mobile device?
Your question is
I mean, eg, provide an image of a circle, and have only the area
inside the circle (where alpha is non-zero) be sensitive.
On Oct 12, 10:58 pm, Kumar Bibek coomar@gmail.com wrote:
Ummm, What do you mean by modify that default? All the views take of a
rectangular estate area. This is
You can have that, but again, the the effective view area is still a
rectangle, isn't it?
On Wed, Oct 13, 2010 at 9:44 AM, DanH danhi...@ieee.org wrote:
I mean, eg, provide an image of a circle, and have only the area
inside the circle (where alpha is non-zero) be sensitive.
On Oct 12, 10:58
Well, I would say, that System.gc() won't help you much. Since the purpose
of yours is to stream an image from the internet, the best approach would
probably be to write that stream into a file first. When that is done, you
can create a Bitmap from this file.
On Wed, Oct 13, 2010 at 9:32 AM, DanH
I suppose the simplest thing that works is an e-commerce web site, like
those that sell software downloads.
--
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
The answer is NO.
I had to get two sdcards to be safe (as I did not get any reply). This
morning I went to the person having the device and tested. Android
reported that filesystem of sdcard (which was ext2) is unsupported.
Regards
Sarwar Erfan
On Oct 12, 5:58 pm, Sarwar Erfan
First thing I'd do is run the Android code with the debugger, breakpoint
just before the JSON code and inspect the result string.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Here's some suggestions (I used my imagination):
1) Employ tens of thousands of monkeys to do random stuff, eventually
they may serve the correct .apk file to a request made by one of the
Users of your device.
2) Put your Apps on Android Market as paid Apps. Some dodgy,
unofficial market may
hi everybody.
i'm having problems when trying to animate an ImageView. it is a
simple alpha animation.
the anim is in the xml file:
?xml version=1.0 encoding=utf-8?
alpha xmlns:android=http://schemas.android.com/apk/res/android;
android:interpolator=@android:anim/linear_interpolator
Pretty amazing imagination :)
On Wed, Oct 13, 2010 at 10:30 AM, metal mikey coref...@gmail.com wrote:
Here's some suggestions (I used my imagination):
1) Employ tens of thousands of monkeys to do random stuff, eventually
they may serve the correct .apk file to a request made by one of the
Hi,
The application is under vendor extension only and its getting
installed in system/app after building.
My problem is : While running the app it gives Unable to open or
create cache for /system/app/
test.apk (/data/dalvik-cache/sys...@a...@test@classes.dex)
Just to check the behaviour I
-- Forwarded message --
From: Babita kumari babita.permeat...@gmail.com
Date: Tue, Oct 12, 2010 at 10:55 AM
Subject: how to make center image bigger than rest images , in gallery
To: android-developers@googlegroups.com
I am designing a screen , in which I am showing a gallery
hey i am trying to get imei no of the phone..
for that i am using
telephonyManagerObject.getDeviceID()
but it is causing invocationTargetExceptioni am using it in my
MapActivity class
what is wrong with it
--
A N K ! T..
--
You received this message because you are subscribed to the
I've been using the GLWallpaperService as posted by Robert Green
(http://www.rbgrn.net/content/354-glsurfaceview-adapted-3d-live-
wallpapers), which has worked so far for the live wallpapers but I'm
hitting a wall when it comes to performance. The GL code is executing
at the expected speed when
Please dont forget the thousands of required We have all apps, only
9.99 per year!
On Oct 12, 10:02 pm, Kumar Bibek coomar@gmail.com wrote:
Pretty amazing imagination :)
On Wed, Oct 13, 2010 at 10:30 AM, metal mikey coref...@gmail.com wrote:
Here's some suggestions (I used my
101 - 192 of 192 matches
Mail list logo