Your code should work without problems. I use very similar code in my
application and it just works.
For Geocoder you need to set android.permission.INTERNET in your
manifest file. Did you do this?
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com
Active installs is relevant when you expect revenue from
advertisements I guess.
Raghav and Kostya are right; the statistics in the Developer Console
is a joke. The first week when I published my application, active
installs was higher than installs for 2 days! How about that? :-)
--
Ali
activity can start multiple
AsyncTasks just the way it can start multiple threads.
Follow the suggestions of Nikola on how to update your GUI within an
AsyncTask. If you miss that your application will consistently crash.
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered
you have something to add.
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
On Jul 2, 6:51 am, arudzki tony.rud...@gmail.com wrote:
All,
I would like to know if something is possible, and if I could get a
hint or two on how to do it. I want to use
Do you need to backup your contacts in this case? I would guess that
your contacts are also in your G-mail and once you synchronize your
phone with your G-mail again, you should automatically get them on
your phone.
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered
You need POI database which stores the location of shops selling
Dunkin Donuts, I doubt that you'll be able to get such database for
free and this group cannot help providing you with such information.
You may try to contact companies selling maps.
--
Ali Chousein
Geo-Filtered Assistant
. Calling the finish method of all
activities would ensure that they are gracefully destroyed. If there
is a better and more concise alternative, I would be happy to learn
it.
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
On Jul 1, 6:14 am, nageswara rao
information on this. Of course I
don't wish to parse _strBundle myself and hope that the framework
already provides a String2Bundle sort of a functionality.
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
--
You received this message because you
:-)
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.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 android-developers@googlegroups.com
To unsubscribe from this group, send email
Congratulations!!! I also uploaded to Youtube the most fantastic goal
I ever scored in indoor soccer. Would you like to watch it?
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
On Jun 29, 3:17 pm, July 4th fireworks joeyk@gmail.com wrote:
Hi my
Do I need iPad?
Actually you can watch it only on a system which has decent support of
multitasking. If you have a super expensive, yet not that useful
device with zillions of restrictions (and I'm not mentioning any
names), I'm afraid you cannot enjoy it.
--
Ali Chousein
Geo-Filtered
The link http://developer.android.com/reference/android/view/View.html
explains View::isFocused(). This should help you solve your problem.
How exactly it's going to help you, it depends on your situation and
you should implement your own solution.
--
Ali Chousein
Geo-Filtered Assistant
into the corresponding longitude-
latitude, then have a look at
http://developer.android.com/reference/android/location/Geocoder.html
Once again, there are plenty of examples on the internet.
If I remember it right, the books of Mark Murphy also explain both
with good examples.
--
Ali Chousein
Geo
I've never tried this, but putting them in a RelativeLayout might
work. At least, in the new application I'm developing now, I was able
to successfully put ListView with many other controls in a
RelativeLayout.
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered
the internet for 'SAX parser' to find more examples.
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
On Jun 28, 7:05 am, HariRam hariram1...@gmail.com wrote:
Hi all,
Thanks for valuable replies.
I have two node having same name with different data. i want
Probably you need to implement your own custom adapter for that.
Google for 'android custom adapter' and you'll find examples which
will guide you solve your problem.
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
--
You received this message because
Manish,
A very basic question, but did you by change forget to put @Override
before the declaration of setOnItemClickListener?
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
--
You received this message because you are subscribed to the Google
Groups
to experiment with the SDK
If you have only scripting experience and no experience with languages
like Java/C++/C# take your time to get used to Java a bit.
Good luck,
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
--
You received this message because you
try to stop the majority of the discussions. Do
it like the rest of us. If you don't have anything to say, please
don't react. It's easier. Some of the members are really newbies, but
probably eager to learn and also with talent. Don't forget, you also
used to be a newbie.
--
Ali Chousein
Geo
anybody. Period.
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.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 android-developers@googlegroups.com
To unsubscribe
anybody. Period.
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.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 android-developers@googlegroups.com
To unsubscribe
anybody. Period.
--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.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 android-developers@googlegroups.com
To unsubscribe
AFAIK, Google weather API is an undocumented API. This means they can
change it anytime based on their own needs and you'll have no reason
to complain. You may try alternative sources for weather information.
One such source which I'm investigating now is
http://www.worldweatheronline.com/
I
Hi,
I recently released an enhanced version of my free application Geo-
Filtered Assistant. More information about the application can be
found here: http://geo-filtered-assistant.blogspot.com/
For comments and suggestion please contact me.
Thank you all in advance.
-Ali
--
You received this
Please check the Facebook Graph API -
http://developers.facebook.com/docs/reference/api/
I've not used Graph API for uploading images but most probably it's
possible.
Facebook also provides an Android SDK which clearly shows how you can
use the Graph API and get started very fast.
I've successfully integrated LinkedIn in my application, Geo-Filtered
Assistant. Which library are you using for retrieving your access
token and also for signing your requests? I've used signpost. (http://
code.google.com/p/oauth-signpost/) If you also use signpost you can
follow the examples at
Hi,
The icon of my application is not displayed under Samsung Galaxy S;
the default Android icon is displayed instead. My target platform is
Google APIs 2.1-update1. Has anybody faced a similar problem before?
Cheers,
-Ali
--
You received this message because you are subscribed to the Google
You can achieve it by not making your communication synchronous. Set
aside jokes, please have a look to the link TreKing posted.
On May 30, 2:30 pm, cherry e cherry@gmail.com wrote:
Hi
I am new to Android. I want to know how would we achieve
asynchronous communication in android. for
What??? The official Facebook app has nothing to do with the app you
develop, which integrates Facebook API. Of course you need to retrieve
your app secret from Facebook and put it in the code of your
application. The official Facebook app and your app are two completely
different things.
And
Warenix,
First, it was not me who asked the question, I answered to Bob's post.
Second, it's very poor practice to make one application depend on
another. Once again, an application should be developed on a stand-
alone way; its correct execution should not depend whether a user
installed some
Like any occupation, unless you're some sort of savant you
need to spend about 2000 hours (a year) working at it to achieve basic
competence, and 10,000 hours (five years) to become an expert. If
you're not prepared to spend that sort of time working at it, then
find a different occupation.
Chris if you read the more recent messages I wrote you'll see that I'm
not evangelizing poor architectural design or poor implementation. My
experience in the industry showed me that project management
methodology and architectural design/implementation go hand in hand. I
strongly believe in the
I don't know what that parameters is about, but in general you need to
create an application at the Facebook site and you get back a key.
Using that key in your application is enough to start communicating
with Facebook.
On May 27, 12:35 am, bob b...@coolgroups.com wrote:
Can someone help me
with broken chasses, and work animals with broken backs?
I've heard some crazy statements in my day, but this one has to be near the
top of the list.
-Original Message-
From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of Ali Chousein
Sent
To eliminate misunderstandings, I would like to make the following
additions:
By iterative approach, I mean the short release cycles which also
enables you to get immediate feedback and evaluate if you are heading
on the right direction. I guess this is exactly what you mean by
Agile is
Dan, what you write is correct, but this applies in business in
general, no matter which field you function in. This fact has nothing
to do with whether a platform has been designed well or poorly.
Without the ecosystem of a company it always is and will always be
difficult, tricky and risky to
Dianne, talking about limitations, as a developer I'm not happy at all
with the fact that Android does not support an official interface for
reading SMS messages (simple, the ones that you've received and sent)
and e-mails. I don't understand why the Android designers didn't
include this in the
I understand the priorities. What I mean by extremely simple to do
is, there is the well designed ContactsContract API, which can
easily be extended to support reading SMS and e-mails as well.
However, life is life, and different people have different priorities.
It's understandable, although not
Greg, changing requirements is not a mind-set of managers, but it's a
reality of life. High-tech market is very dynamic and if you want to
adhere to original specs you'll soon go out of business. Seriously, do
you think that managers are happy when the original specs change, the
deadlines are
Dan,
It doesn't matter how many f*g years you've spent in the industry,
but it DOES matter what f*g thing(s) you've achieved. As you age
you build(!) experience, even if you are just sitting behind a desk
and surfing the internet anyway. Well, Android is one of those f*g
things which
GIMP, it's free and very powerful.
--
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
the night, some of this has been downright unprofessional, and
not something I'd want on a publicly indexed list.
Kris
On Wed, May 25, 2011 at 3:02 AM, Ali Chousein ali.chous...@gmail.comwrote:
Dan,
It doesn't matter how many f*g years you've spent in the industry,
but it DOES matter
Dan,
Religion says, My God is more good looking than your God. If you ask
the person Why?, he/she would say Because my holy book says so.
Well, you came and said Android has no legs and many people asked
you what makes you say so. You kept on saying just two things:
1. My 40+ years experience in
http://developer.android.com/sdk/index.html
Everything is explained on this web site.
Good luck and enjoy it.
--
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
Dan, you are looking from a very classical point of you. I mean the
following:
1. how much impact these 'limiting decisions' will have in the
future...
2. thanks to good initial design (or sometimes just clever
emulation), are able to advance their platforms while still
maintaining
Keep in mind that Asynctask is provided for finite tasks. If you need
to have a thread which should run forever, don't use Asynctask, but
use Thread.
-Ali
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Prabhakar,
So far I've done some programming with Android contacts. I have much
sample code except the starred contacts. However it should be
straightforward. Check the link below. Personally I found it possible
to get everything running by following the documentation of
ContactsContract. There
Wait for a couple of minutes for the emulator to start. It takes some
time. Be patient.
--
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,
Using Asynctask to download files is fine I think (given that you
handle correctly the error cases; e.g. target server might be down etc
etc).
On May 19, 2:25 pm, Hitendrasinh Gohil hitendra.virtuei...@gmail.com
wrote:
hi,
i am using thread to retrieve string data from server and asynctask to
It's strange that this and similar questions appear over and over
again in this list. Does Android support Twitter, does Android support
Facebook etc etc.
Guys, let's get it clear. Android has no reason to implement
specifically Twitter support or Facebook support. The Android
framework provides
I agree with Muhammad. Save your instance state and restore it when
necessary, instead of trying to do something against the framework.
-Ali
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Hhhmmm, maybe you should try
newUpdate(ContactsContract.Data.CONTENT_URI)
instead of
newUpdate(ContactsContract.Contacts.CONTENT_URI)
I hope it helps :-)
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email
a) Don't do time consuming calculations in the main thread. If you do,
the man thread gets blocked and your application will be killed by the
framework. If you need to do time consuming calculations, use threads
for that purpose. If you don't block the main thread, the framework is
not going to
Can you post your code?
--
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
Hhhmmm, I'm not exactly sure what is wrong with your syntax. I have
another blog which gives a full fledged example, in which newUpdate
is used. I'm sure that, the example with newUpdate in that blog
works. Maybe you may try to follow the syntax there. The address is:
Thank you Phuong, sharing information is what we do.
--
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
Please check my blog at the address
http://android-contact-id-vs-raw-contact-id.blogspot.com/
the section PROGRAMMATICALLY INSERT A CONTACT INTO A DESIRED GROUP.
With the piece of code I give there, the contact is displayed in your
contacts list. In the past I also had similar problems to yours
Hi Stefan,
I would advice you to use ContentProviderOperation because this has
the advantage of applying many operations in batch mode. It'll help
you with speed improvements. But be careful how you should use the
RAW_CONTACT_ID. If you have close look to the example, it should be
obvious I
48MB is (or better should be) good enough memory for any app. What do
you want to keep in memory? The world map with a rich set of POIs?
On Apr 22, 10:30 pm, Fabio Yasusi Yamamoto fabi...@gmail.com wrote:
Hi
I'm trying to understand why the heap size of a single application is
so small.
I
Is this possible to implement
Of course it's possible! It just needs work and hours and hours of
researching, experimenting and learning.
and if so, just give me an overall view to start this app construction
Well, anything else? How about a complete source code with your name
as the
Mohammed,
I paste a snippet from my own software. I hope it helps. If you spends
half an hour reading the documentation it should be clear actually
because the idea is very simple.
-Ali
LinearLayout m_LinLayout;
ScrollView m_Scroll;
ImageView m_Img;
TextView m_TxtCol;
m_LinLayout = new
I wrote a blog explaining a brief study I did on CONTACT_ID vs
RAW_CONTACT_ID. It can be found at the following location:
@Blogger
http://android-contact-id-vs-raw-contact-id.blogspot.com/
@Hyves
Started blogging on Android software development:
http://email-addresses-in-android-contacts.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 android-developers@googlegroups.com
To
. Use emulator commands to send location information to your
emulator.
e.g. geo fix longitude latitude
You can find more information here:
http://developer.android.com/guide/developing/tools/emulator.html#geo
Good luck,
Ali Chousein
Published apps:
- Geo-Filtered Assistant Pro
- Geo-Filtered
When you change the orientation, your ListActivity will be created
from scratch. This means that onCreate, onStart and onResume will be
called for the newly created ListActivity after the orientation
change. Did you take care of this behavior?
Ali Chousein
Published apps:
- Geo-Filtered
in the debugger to see if you are also getting the
extra call to onDestroy-onCreate pair. If yes, then you'll have to add
some extra logic in your code to take care of this dubious extra call.
Ali Chousein
Published apps:
- Geo-Filtered Assistant Pro
- Geo-Filtered Assistant Basic (free version
of LocationManager)
When you are using the GPS you need the following permission in your
manifest:
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/
Ali Chousein
Published apps:
- Geo-Filtered Assistant Pro
- Geo-Filtered Assistant Basic (free version)
--
You received this message
Hi,
For turning on GPS satellites I use the intent below. Hope that helps
you as well.
Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);
Ali Chousein
Published apps:
- Geo-Filtered Assistant Pro
- Geo-Filtered Assistant Basic (freeware version)
--
You received
of your paid app.
Good luck,
Ali Chousein
Published apps:
- Geo-Filtered Assistant Pro
- Geo-Filtered Assistant Basic (freeware version)
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android
.
Ali Chousein
Published apps:
- Geo-Filtered Assistant Pro
- Geo-Filtered Assistant Basic (free version)
--
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
Hi,
I assume that you set the right permission in your manifest file (e.g.
uses-permission android:name=android.permission.WRITE_CONTACTS /)
Ali Chousein
Published apps:
- Geo-Filtered Assistant Pro
- Geo-Filtered Assistant Basic (freeware version)
--
You received this message because you
Hi Khushi,
I developed an app which uses GPS and have been heavily using the
command geo fix longitude latitude. I've never had issues with
sending dummy location information to the emulator. Except once, when
my computer was not connected to the Internet. I don't know why, but
it seems that the
Check the MapView in the following link:
http://developer.android.com/guide/tutorials/views/index.html
--
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
Check the link below. You can do all sorts of things with the
emulator.
http://developer.android.com/guide/developing/tools/emulator.html
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
If the devices are in bluetooth range, you can send your data using
bluetooth. Otherwise you might consider sending the data through e-
mail or if you want to pay, you can use SMS as Kumar suggested. Check
the documentation, I'm sure it's easy to find our how to capture the
related events.
--
Actually I cleaned the project, but it didn't help. It's a pity that I
cannot reproduce it. Otherwise would have reported the bug.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
After studying more in detail ContactMethods, I realized that I was
using the wrong ID. Below is the code excerpt which does the job
correctly. Hope it helps someone else as well.
-Ali
.
.
private static final int PEOPLE__ID_COLUMN_INDEX = 0;
private static final int PEOPLE_NAME_COLUMN_INDEX =
This is what I was trying to do:
.
.
private static final int PEOPLE__ID_COLUMN_INDEX = 0;
private static final int PEOPLE_NAME_COLUMN_INDEX = 1;
.
.
.
String[] projectionPeople = new String[] { People._ID, People.NAME };
Cursor peopleCur = getContentResolver().query(People.CONTENT_URI,
It seems that it's a bug in Eclipse. I use 3.5. Besides the
corrupted apk, my eclipse started behaving quite weird (like
remembering the contents of the manifest file of a project I removed
and also erased from my hard disk). Anyway, I erased the instance of
eclipse from my hard drive,
No, unfortunately I don't see any related message in the logcat.
--
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
Hi,
Yes, I have both of the permissions below in the manifest file. If the
permissions are not set correctly then the application should crash
anyway.
uses-permission android:name=android.permission.READ_CONTACTS /
uses-permission android:name=android.permission.WRITE_CONTACTS /
Yes, I'm sure
Hi,
I'm surprised to see that all of a sudden I cannot sign the apk of the
newer versions of an app that I have. After some bugfixes I need to
upload an update and hence I need to sign the apk. However, when I
execute the following command:
jarsigner -verbose -keystore
Hi I'm trying to change the e-mail address info of some contacts
programmatically.
I have the following contact:
Name: John Patrick
Phone: 1234567890
ID: 15
E-mail: j...@univ.edu (The type is work e-mail)
I'm using the following code to change the e-mail address
programmatically:
Hello,
I would like to use getContentResolver().update in combination with
getContentResolver().query. For example, first I make a call to
Cursor cur = getContentResolver().query(People.CONTENT_URI, null,
null, null, null);
and then I would like to use getContentResolver().query to change for
Hi,
I've been experimenting with orientation change and have seen a
strange behavior (at least to my opinion) when I change the
orientation from landscape to portrait. To make the explanation more
concrete let's consider the following super-simple code:
1. import android.app.Activity;
2.
Hi,
Thank you for the reply. The page gives useful information. However,
it does not explain why the extra call to onCreate and onDestroy takes
place when the orientation is changed from landscape to portrait. When
the orientation is changed from portrait to landscape there is no
extra call to
Guys, thank you all for your suggestions and comprehensive
explanation. I think LinkedBlockingQueue sounds the most attractive
way to go.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
By the way, guys, below please find my code. I was trying to use
wait() inside synchronization. I have the same logic working perfectly
fine in the scenario when the main thread cancels an AsyncTask and
waits for it to finish. Whether there will be deadlock or not, depends
on the implementation
Hi,
I have two AsyncTasks running; let's say A1 and A2. A2 is manipulating
the data produced by A1 (in fact is a typical producer-consumer
scenario). It's very tempting to use wait() inside doInBackground()
implementation of A2, BUT this causes an IllegalMonitorStateException.
Is it really not
Thank you for the reply and the suggestion. Having two threads, one
waiting for the other was the best solution for my problem, but
apparently calling wait() in AsyncTask is not supported. Probably I'll
have multiple AsyncTasks, which don't wait for each other, but which
combine subsets of the
Hi,
I'm trying to query the e-mails from my Gmail account in source code.
I've tried various combinations for the URI but the cursor returned is
always null. Has anyone managed to retrieve emails programmatically
from Gmail?
Some combinations I tried for the URI are below (as I mentioned above,
Apparently it's not possible to execute the query:
Cursor cur = this.getContentResolver().query(Uri.parse(content://sms/
conversations), null, null, null, null);
I tried all sms related permissions, but always got an exception.
However, it's possible to execute the following instead:
Cursor
Hi,
I'm trying to query the sms conversations list. I execute the
following line of code:
Cursor cur = this.getContentResolver().query(Uri.parse(content://sms/
conversations), null, null, null, null);
I also set the following permission in the manifest file:
uses-permission
Hi,
Does anyone know if there is documentation explaining the SMS content
provider?
-Ali
--
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
Clear, thanks for the answer.
-Ali
--
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
Hi, thank you for the message. I came up with this approach as well.
Finally I was happy to see a decent way of configuring the icons of an
ExpandableListView. The trick lies in having a stateful Drawable for
the group indicator. When I find time I'll post a code excerpt as
well, because I
TreKing, Maka,
Thank you for your attention and messages during this discussion. I
posted a very simple example showing a decent way (at least I believe
that it's decent) of overriding the default icons of an
ExpandableListView. I pasted the location below. Hopefully it will be
useful for people
Hi,
Recently I was trying to configure the icons of an ExpandableListView.
As many people would do, I was trying to replace the default icons for
the minimized and maximized states. As it appears, doing this basic
thing it's not that straightforward as one would expect/guess. There
are not many
TreKing, thank you for your messages so far. I won't give up for some
more days and will try to make it work. If I find a way I'll share
with the group as well, because as it seems many other people
attempted doing what I try to do now and faced similar issues.
--
You received this message
Hi Maka,
Thank you for your message. Stretching is not the main problem though.
As I wrote above, changing the icon based on the state of a group is
the main problem. Anyway, finally I could find some time to sit down
to see this problem again. I'll investigate it for some more time.
Hope to come
301 - 400 of 414 matches
Mail list logo