Re: [android-developers] Re: searching in HUGE SQLite database

2011-01-14 Thread Frank Weiss
As I recall, there were no indexes on the table. Without indexes I would
expect most every query on a very table to be very slow.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Test case throws permission exception

2011-01-14 Thread Diego Torres Milano
You have to set the permission on the application's manifest not on
the tests' manifest.
That's what you usually do by having a main and a tests project.
Furthermore, your test should look more like:

public class AndroidDummyContactsTests extends InstrumentationTestCase
{

private static final String TESTUSER_NAME = "Test User";
private static final String TESTUSER_NUMBER = "1234568909";
private Instrumentation mInstrumentation;
private ContentResolver mContentResolver;

public AndroidDummyContactsTests(String name) {
setName(name);
}

protected void setUp() throws Exception {
super.setUp();
mInstrumentation = getInstrumentation();
mContentResolver =
mInstrumentation.getTargetContext().getContentResolver();
}

protected void tearDown() throws Exception {
super.tearDown();
}

public final void testInsertContact() {
final ContentValues values = new ContentValues();
final Uri rawContact =
mContentResolver.insert(ContactsContract.RawContacts.CONTENT_URI,
values);
assertNotNull(rawContact);
final long rawContactId = ContentUris.parseId(rawContact);
assertTrue(rawContactId > 0);

values.clear();
values.put(Data.RAW_CONTACT_ID, rawContactId);
values.put(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE);
values.put(StructuredName.DISPLAY_NAME, TESTUSER_NAME);
assertNotNull(mContentResolver.insert(Data.CONTENT_URI, 
values));

values.clear();
values.put(Data.RAW_CONTACT_ID, rawContactId);
values.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE);
values.put(Phone.NUMBER, TESTUSER_NUMBER);
assertNotNull(mContentResolver.insert(Data.CONTENT_URI, 
values));
}
}

and it works (remember that you need an app too where you grant the
permission), but as you are not using mock objects you will be
populating your contacts database with test data which is probably not
a very good idea.


On Jan 8, 2:37 pm, javaxmlsoapdev  wrote:
> I am writing a test case to for reading phone contact list
>
> public class ContactTest extends AndroidTestCase {
>
>         static final String LOG_TAG = "ContactTest";
>     static final String TESTUSER_NAME = "Test User";
>     static final String TESTUSER_NUMBER = "1234568909";
>     ContentResolver contentResolver;
>     Uri newPerson;
>
>     public void setUp() {
>         contentResolver = getContext().getContentResolver();
>
>         ContentValues person = new ContentValues();
>         person.put(ContactsContract.Contacts.DISPLAY_NAME,
> TESTUSER_NAME );
>         person.put(ContactsContract.CommonDataKinds.Phone.NUMBER,
> TESTUSER_NUMBER );
>
>         newPerson =
> contentResolver.insert(ContactsContract.Contacts.CONTENT_URI,person);
>     }
>
> In Manifest file I have following permissions defined
> 
>     
>
> But while running the test it keeps throwing following permission
> exception
> java.lang.SecurityException: Permission Denial: writing
> com.android.providers.contacts.ContactsProvider2 uri
> content://com.android.contacts/contacts from pid=343, uid=10036
> requires android.permission.WRITE_CONTACTS
> at android.os.Parcel.readException(Parcel.java:1247)
> at
> android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
> 160)
> at
> android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
> 114)
> at
> android.content.ContentProviderProxy.insert(ContentProviderNative.java:
> 408)
> at android.content.ContentResolver.insert(ContentResolver.java:587)
> at com.aes.mobile.android.test.ContactTest.setUp(ContactTest.java:32)
> at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
> at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
> at
> android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.ja 
> va:
> 520)
> at android.app.Instrumentation
> $InstrumentationThread.run(Instrumentation.java:1447)
>
> Any idea?
>
> Thanks,


--
Have you read my blog ?
http://dtmilano.blogspot.com
android junit tests ui linux cult thin clients

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

2011-01-14 Thread TreKing
On Sat, Jan 15, 2011 at 12:59 AM, Luxi  wrote:

> But no matter how I do, it still has this problem.
>

If you're trying to sign your app with the system key, you can't, for good
reason. You'll have to build your own platform.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] how to remove an item from a listView and arrayAdapter

2011-01-14 Thread TreKing
On Sat, Jan 15, 2011 at 12:48 AM, gonzobrains  wrote:

> I have a delete button for each of these items in my list, but I am not
> sure how to connect the delete button's onClick() with the original item in
> the ArrayList.
>

You have a getView() method where you build these custom items, I assume.
You could set the Tag property on each button with the index it's for, then
when you click the button just pull it out and use that to index.


> Non- sarcastic/non-condescending responses are greatly appreciated.
>

You're no fun.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: searching in HUGE SQLite database

2011-01-14 Thread Menion
Hi guys
 thanks for your big help!

so after I read all answers there is only one solution for me! Deny
users to have database bigger then 2GB!

why?
  because structure of database cannot be change. It's something like
"standart" so I have to use it as is! I just wanted to know, if exist
any SQL query, that help me to get some data with slower speed but
without crash. Nevermind, I just, when find this big database on
filesystem, I'll "Toast" user message that this is not allowed!

thank you very much!

On Jan 15, 3:29 am, DanH  wrote:
> It won't do any good to break the table into smaller tables in the
> same database.  SQLite throws all the tables into one large pool that
> it manages as a single "heap", so you still get offsets as large as
> the overall database size.
>
> You'd have to put the different tables into different database files.
>
> On Jan 14, 7:37 pm, asierra01  wrote:
>
> >   What you have is a database/dba issue not an android issue
>
> >   Lets say you have 1 database ( may be with 1 table 8G in size)
> >   BRAKE the database in
> >   1 Table that will hold some kind description (metadata) of what the
> > BIG01, BIG02, BIG03, BIG04 tables have
> >      BIG1, BIG2, BIG3...,BIG99 will have at most 100K records , lets
> > say and will potentially be as big as 100MB? 300M ? in size or less
> >      This table will have three fields (first_rec_key, last_rec_key,
> > table name)
> >      Table1->
> >           (0, 5,'BIG1')
> >           (51, 100, 'BIG2')
> >           (101, 40, 'BIG3')
> >           
> >           (80, 900, 'BIG78')
> >     you start by looking in this table that only has 100 records
> >    it will tell you the key you need is in BIG56, which is 100M,
> >    now you use your current method of finding your record, just
> > instead of looking on 2GB table
> >    you look into 100M or 300M BIG56 table.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] SMS application

2011-01-14 Thread jesse
you are right, It seems so, Someone came up with a solution that
deletes the sms from system inbox once SMS is received. but sms
notification still be displayed.

The best solution will be creating a customized ROM.


On Fri, Jan 14, 2011 at 9:19 PM, Kumar Bibek  wrote:
> You cannot block the system inbox to get new messages.
>
> Kumar Bibek
> http://techdroid.kbeanie.com
> http://www.kbeanie.com
>
>
>
> On Sat, Jan 15, 2011 at 4:05 AM, jesse  wrote:
>>
>> hi:
>>
>>  I want to build a SMS application that can intercept certain SMS
>> messages so that they won't be available to system inbox
>> or other SMS applications.
>>
>>  is there any special API to achieve this?
>>
>>  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
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

2011-01-14 Thread Luxi
Hi,

In my application's AndroidManifest.xml, i added
android:sharedUserId="android.uid.phone". But when I adb install,
Eclipse's console gave me this error. I  searched in the website and
found some ways to re-sign my apk, for example, using signapk.jar,
platform.x509, platform.pk8 to re-sign. But no matter how I do, it
still has this problem.

any ideas?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how to remove an item from a listView and arrayAdapter

2011-01-14 Thread gonzobrains
Hi,

I have a collection of items in an ArrayList.  I add them to a
customer adapter as follows:

this.m_adapter = new MyAdapter(this, R.layout.myitem,
itemCart.m_items);

I have a delete button for each of these items in my list, but I am
not sure how to connect the delete button's onClick() with the
original item in the ArrayList.  Can someone please explain how to do
this or point me to a tutorial where I can read up on this?  Non-
sarcastic/non-condescending responses are greatly appreciated.

Thanks,
gb

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Changing price in the Market

2011-01-14 Thread Kumar Bibek
Someone who owns an Android or iPhone, that's definitely cheap.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Sat, Jan 15, 2011 at 11:47 AM, Doug  wrote:

> On Jan 13, 6:04 pm, Zsolt Vasvari  wrote:
> > No offense, but you must be living in an extremely poor country if you
> > think $0.99 is not a impulse purchase.  What else can you buy for a $1
> > these days?  Honestly, I cannot think of a single thing.
>
> How about the entire Wendy's 99 cent menu, if you live in America?  Or
> anything in "dollar stores" around the US?
>
> Maybe it's an American thing, not that I'm particularly proud of that!
>
> Or maybe a can of Coke, or a Vitamin Water, if you're attempting to be
> healthy...
> In Vegas there are penny slot machines...
>
> But anyway, 99 cents is a pretty decent low bar for an app.  You just
> can't go rampaging in public about a lousy Double Bacon Cheeseburger,
> but you can certainly do so about an app.
>
> Doug
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Changing price in the Market

2011-01-14 Thread Doug
On Jan 13, 6:04 pm, Zsolt Vasvari  wrote:
> No offense, but you must be living in an extremely poor country if you
> think $0.99 is not a impulse purchase.  What else can you buy for a $1
> these days?  Honestly, I cannot think of a single thing.

How about the entire Wendy's 99 cent menu, if you live in America?  Or
anything in "dollar stores" around the US?

Maybe it's an American thing, not that I'm particularly proud of that!

Or maybe a can of Coke, or a Vitamin Water, if you're attempting to be
healthy...
In Vegas there are penny slot machines...

But anyway, 99 cents is a pretty decent low bar for an app.  You just
can't go rampaging in public about a lousy Double Bacon Cheeseburger,
but you can certainly do so about an app.

Doug

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Compatibility across versions

2011-01-14 Thread TreKing
On Fri, Jan 14, 2011 at 10:25 PM, kypriakos  wrote:

> would apps run on v1.6 run on later versions (2.1- 2.3) without
> any modifications?
>

Yes, assuming they're not using things that have changed in the newer
versions.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: XML layout vs. programmatic

2011-01-14 Thread Doug
On Jan 13, 7:04 pm, Toby  wrote:
> Ok, we've thought about MVC paradigms for our company,
> but unless you really need to hide the code from some
> "Designer" I can't see the benefits.

You must not have created a somewhat deeply nested view hierarchy yet,
nor have you tried to reuse parts of one hierarchy in another.  Nor
have you tried to maintain said hierarchy over a long stretch of time.

Or you must really like java and despise xml!

Doug

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] SMS application

2011-01-14 Thread Robin Talwar
can i create a service
in which i fwd every incoming msg?
everytime the phone recieves it

On Sat, Jan 15, 2011 at 10:49 AM, Kumar Bibek  wrote:

> You cannot block the system inbox to get new messages.
>
> Kumar Bibek
> http://techdroid.kbeanie.com
> http://www.kbeanie.com
>
>
>
>
> On Sat, Jan 15, 2011 at 4:05 AM, jesse  wrote:
>
>> hi:
>>
>>  I want to build a SMS application that can intercept certain SMS
>> messages so that they won't be available to system inbox
>> or other SMS applications.
>>
>>  is there any special API to achieve this?
>>
>>  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
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Eclipse 3.5.2 is suddenly throwing a NPE while "Initializing Java Tooling"

2011-01-14 Thread TreKing
On Fri, Jan 14, 2011 at 7:58 PM, OldSkoolMark  wrote:

> Any other suggestions?
>

Google the error.
http://www.myeclipseide.com/PNphpBB2-viewtopic-p-54108.html


-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How best to query web repeatedly.

2011-01-14 Thread Spiral123
Well50 mph is about 22 m/s - so driving at that speed in a
straight line you are firing web queries off at the rate of
approximately 1 every 2 seconds.  Running sql queries over the web on
a 3G network I'm not really surprised that the app locks up and has
lag.

Why not write a little app to fire off one of your queries every 60
seconds or so and record the round trip time for one of your typical
queries.  Then go and drive around in different locations and at
different speeds and see what sort of real life response you get?  My
guess would be that the critical point is not your app but the
network.

You could also try writing an app that just writes a timestamp every
50 meters and drive around to see how frequently your queries are
going to be run.



On Jan 14, 11:12 pm, cellurl  wrote:
> I run GPS, and query a web based mysql every 50 meters of driving.
> People tell me the app locks up and has lag, so I put each query in a
> new thread. This seems to create a backlog of threads (at least in the
> emulator).
>
>         URL url = new URL("http://www.website.org/marks.php";);
>
>         HttpURLConnection urlConn = (HttpURLConnection) url
>                 .openConnection();
>         BufferedReader in = new BufferedReader(new InputStreamReader(
>                 urlConn.getInputStream()));
>         String inputLine;
>         while ((inputLine = in.readLine()) != null)
>                 response.append( inputLine );
>
> 1. Are dozens of threads wrong? Do I just use two and leave it at
> that?
> 2. Should I keep connection open as I have heard others speak of?
> 3. Will I ultimately be forced to sqlite and the new headache of db
> synchronization?
>
> Anyone have any experience to offer?
>
> Thanks in advance,
> -cellurl

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: layout issues, is the reason minsdk=3?

2011-01-14 Thread Kumar Bibek
Well, read up a bit on Designing apps for different screen sizes and
resolutions.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



2011/1/15 Gabriel Simões 

> No help on this one? No one ever stepped on this same problem, mainly
> with htc wildfire or using minsdk=3 (even with targetsdk=4 or above)?
>
> tnx!
>
> On 13 jan, 22:28, Gabriel Simões  wrote:
> > Hello dear developers, how are you doing?
> >
> > After many months developing for android using only the emulator my
> > test device I finally got a real device. When I thought everything was
> > perfect and I was finally testing on an environment that would mimic
> > every user's device, I found out that "the world is not that
> > beautiful, at all!", hehehe.
> >
> > I´d like to ask for your help for an issue I can´t find information
> > about:
> >
> > Every layout I code I check on the emulator for android 1.5 and above.
> > There everything looks just the way I want, that´s my parameter. When
> > I started seing the app running on different devices I found out that
> > many thing do not show just like the emulator, and I´m not talking
> > about different UI components' skins  I´m talking about
> >
> > - Buttons that appear with sides "sliced"
> > - Components out of place
> > - Texts that do not appear on spinners
> > - Images blurred
> > - Etc...
> >
> > HTC wildfire seems to be one of the most problematic devices ... using
> > relative layout components show up out of place, one in front of the
> > other, etc. When I check on the emulator, everything looks great!
> > I received one complain and a tip from an android market user saying
> > that removing android 1.5 from my manifest (minsdk=4) fixes the
> > problem. On the other side I wouldn´t like to drop support to 1.5 nor
> > place the same app twice on the market (one for 1.5 and one for 1.6
> > and above).
> > Have you ever faced this problem? If so, how have you solved it?
> >
> > Thanks,
> > Gabriel Simões
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] SMS application

2011-01-14 Thread Kumar Bibek
You cannot block the system inbox to get new messages.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Sat, Jan 15, 2011 at 4:05 AM, jesse  wrote:

> hi:
>
>  I want to build a SMS application that can intercept certain SMS
> messages so that they won't be available to system inbox
> or other SMS applications.
>
>  is there any special API to achieve this?
>
>  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
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How best to query web repeatedly.

2011-01-14 Thread Kumar Bibek
Well, you have to decide what's best for your application.
1. Spawn any number of threads, but manage them properly
2. Preferably.
3. Good idea.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Sat, Jan 15, 2011 at 9:42 AM, cellurl  wrote:

> I run GPS, and query a web based mysql every 50 meters of driving.
> People tell me the app locks up and has lag, so I put each query in a
> new thread. This seems to create a backlog of threads (at least in the
> emulator).
>
>URL url = new URL("http://www.website.org/marks.php";);
>
>HttpURLConnection urlConn = (HttpURLConnection) url
>.openConnection();
>BufferedReader in = new BufferedReader(new InputStreamReader(
>urlConn.getInputStream()));
>String inputLine;
>while ((inputLine = in.readLine()) != null)
>response.append( inputLine );
>
> 1. Are dozens of threads wrong? Do I just use two and leave it at
> that?
> 2. Should I keep connection open as I have heard others speak of?
> 3. Will I ultimately be forced to sqlite and the new headache of db
> synchronization?
>
> Anyone have any experience to offer?
>
> Thanks in advance,
> -cellurl
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Creating repeating image on a canvas

2011-01-14 Thread brian purgert
I was never able to figure this out
On Jan 5, 2011 9:41 PM, "Doug"  wrote:
>
> BitmapDrawable is tileable in both x and y directions and can be
> configured in xml if you like.
>
> http://developer.android.com/guide/topics/resources/drawable-resource.html
>
> On Jan 4, 6:09 pm, brian purgert  wrote:
> > Well how do I create an image that repeats its self on a canvas, one
that I
> > will use for a background in my bike game.
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Null Pointer Exception

2011-01-14 Thread TreKing
On Fri, Jan 14, 2011 at 9:44 AM, Kumar Bibek  wrote:

> Have you declared your second activity in manifest?


Better yet, have you used your debugger to figure out what is NULL?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Is there anyway to change notification bar to a launcher?

2011-01-14 Thread TreKing
On Sun, Jan 9, 2011 at 9:33 AM, xvblack  wrote:

> just the title


The title makes no sense.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Parsing xml file - java

2011-01-14 Thread TreKing
On Thu, Jan 13, 2011 at 6:28 AM, dhatchina moorthy <
b.dhatchinamoor...@gmail.com> wrote:

> but i can't do the same in android


Why not? Explaining the actual problem you're having would help.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] exit strategy

2011-01-14 Thread TreKing
On Thu, Jan 13, 2011 at 11:35 AM, bob  wrote:

> How do most Android apps allow the user to quit, and do they have a way to
> quit my slot machine even though I forgot to code it in?
>

How did *you* quit the app when you were testing it? (You were testing it
right?)

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: calling android activity

2011-01-14 Thread TreKing
On Thu, Jan 13, 2011 at 2:01 AM, Naveen kumar <
naveen.venkatesha...@gmail.com> wrote:

>  what is the procedure to call an activity from option menu using switch
> case.


The procedure is to read the documentation:
http://developer.android.com/guide/topics/ui/menus.html#options-menu

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Blinking Images

2011-01-14 Thread TreKing
On Thu, Jan 13, 2011 at 6:51 AM, braco_  wrote:

> But if i start nothing happens how can i do that better that a image will
> blinking?
>

Use. Your. Debugger.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Compatibility across versions

2011-01-14 Thread kypriakos

Hi all,

would apps run on v1.6 run on later versions (2.1- 2.3) without any
modifications?

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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How best to query web repeatedly.

2011-01-14 Thread cellurl
I run GPS, and query a web based mysql every 50 meters of driving.
People tell me the app locks up and has lag, so I put each query in a
new thread. This seems to create a backlog of threads (at least in the
emulator).

URL url = new URL("http://www.website.org/marks.php";);

HttpURLConnection urlConn = (HttpURLConnection) url
.openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(
urlConn.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
response.append( inputLine );

1. Are dozens of threads wrong? Do I just use two and leave it at
that?
2. Should I keep connection open as I have heard others speak of?
3. Will I ultimately be forced to sqlite and the new headache of db
synchronization?

Anyone have any experience to offer?

Thanks in advance,
-cellurl

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Detect if app is installed

2011-01-14 Thread Brill Pappin
Ok, this is what I want you to try.

1) don't use the http:// for you content URL. it should be something
related to your app.
2) for your link, link to a real web page that simply has a "Launching
app..." on it.
3) when that page loads, use a javascript call to try and launch your
application and display a market link if it gets an error.

I'm not positive this will work, because I haven't researched how the
browser does it's URL linking (i.e. would it work from an ajax call?).

There are several ways you can have the browser diaplay something more
interesting than a error page, however you may need to play with it
(no, i'm not going to do that for you).
For instance you might need to change the browsers location to
activate the content URL... which might not work with ajax... in that
case an arrangement of frames might work, so that one frame can direct
the browser to the content url and if it detects an error, show
something useful like the market link.

I guess what I'm saying is stop arguing about it and actually try
something :)
If you solve the problem, post the solution and make everyone eat
their words!

- Brill Pappin

On Jan 14, 9:35 pm, ls02  wrote:
> I am not sure I follow you with "your link should be to a web page on
> your site that actually exists". The "link" to launch the app is not
> actually a real Web page link. Yes, I reuse http schema but
> com.mycompany.myapp is not a site, it is the host that my app activity
> registers to handle.
>
> On Jan 14, 6:54 pm, Dianne Hackborn  wrote:
>
>
>
>
>
>
>
> > Maybe I am missing something here, but your link should be to a web page on
> > your site that actually exists.  If the user arrives there, they don't have
> > their app installed on their device (or aren't on an Android device at all),
> > so you can tell them they need to install the app and have a link to Market.
> >  If the app already is on the device, then it is catching that URI so they
> > get the option to launch it.
>
> > Fwiw, this is essentially how things like YouTube and maps works, except of
> > course they are *often* pre-installed on devices (but not always), and the
> > "fallback" web page is actually their full web site.
>
> > There is also another Google service that does the full flow you are talking
> > about, though for the life of me I can't recall what it is.
>
> > On Fri, Jan 14, 2011 at 12:16 PM, ls02  wrote:
> > > I have something like this in the web page
>
> > > http://com.mycompany.myapp/do_very_cool_stuff";>Click to do
> > > Very Cool Stuff With The App
>
> > > My app registers http schema and com.mycompany.myapp host so if it is
> > > installed when user clicks on the link the app will be launched from
> > > the page and will detect the intent and perform "Very Cool Stuff"
> > > action.
>
> > > However if my app is not installed the browser will display "Web page
> > > not available" error
>
> > > "The web page "http://com.mycompany.myapp/do_very_cool_stuff"; might be
> > > temporarily down..."
>
> > > I want to handle this error and instead message to user to install the
> > > app.
>
> > > On Jan 14, 2:33 pm, Spiral123  wrote:
> > > > I would recommend you re-read the earlier post from Marcin.  Let your
> > > > web page detect a Mobile browser and display a market:// link to your
> > > > app.
>
> > > > If the user follows the link to the Market, it will detect if the app
> > > > is already loaded on your phone and will prompt you to either Install
> > > > it or Open itwhich is the behavior you are asking for.
>
> > > > I also don't understand how the user can try to 'launch your app if it
> > > > is not installed' - if it's not installed he won't be able to see it
> > > > let alone launch it, so he's not going to get any 'ugly error'.  Of
> > > > course, if what you are really trying to do is get your web page to
> > > > launch an app on my phone when I visit it then.please give me
> > > > the address of your web page so I know never to go there. :-)
>
> > > > On Jan 14, 2:10 pm, ls02  wrote:
>
> > > > > The app is launched from the web page to perform certain action. I do
> > > > > not want to discuss why I need to do this. I want to know how to
> > > > > detect app is installed or not and if it is not possible how to handle
> > > > > the error in the web page when user tries to launch my app and it is
> > > > > not installed. Right now the browser gives the same ugly error as
> > > > > general invalid link error.
>
> > > > > On Jan 14, 1:01 pm, TreKing  wrote:
>
> > > > > > On Fri, Jan 14, 2011 at 11:35 AM, ls02  wrote:
> > > > > > > But can I at least handle exception when user clicks on the link 
> > > > > > > to
> > > open
> > > > > > > the app and the app is not installed?
>
> > > > > > What reason do you have for trying to launch your own app from your
> > > website?
> > > > > > If the user has your app I'm sure they can figure out how to open 
> > > > > > it.
>
> > > --

Re: [android-developers] No update notification when app-title changed

2011-01-14 Thread TreKing
On Fri, Jan 14, 2011 at 7:50 PM, Marcus  wrote:

> And, what can I do now?


Submit an issue here, then pray.
http://www.google.com/support/androidmarket/bin/request.py?contact_type=publisher

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Detect if app is installed

2011-01-14 Thread Brill Pappin
Actually, I understand what hes trying to do.
He wants to launch *his* application from a link in an html page or
detect if its not there.

What he's saying is that hes registered a content URL http://com.hisappname
but if the app doesn't exist he gets a terrible error in the native
browser because the browser thinks it's looking for a website that it
can't contact.

He's got a few problem... the first one would be hijacking the http://
but this is still workable.

- Brill

On Jan 14, 6:54 pm, Dianne Hackborn  wrote:
> Maybe I am missing something here, but your link should be to a web page on
> your site that actually exists.  If the user arrives there, they don't have
> their app installed on their device (or aren't on an Android device at all),

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Detect if app is installed

2011-01-14 Thread TreKing
On Fri, Jan 14, 2011 at 8:35 PM, ls02  wrote:

> The "link" to launch the app is not actually a real Web page link.
>

Right and she's saying it *should* be. So if there's no app, it still works
to go somewhere on your site (perhaps redirecting them to the Android
Market). If there is an app, you code your app to handle that specific URL
and respond to it.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Beginning?????

2011-01-14 Thread TreKing
On Fri, Jan 14, 2011 at 4:33 AM, Vishal  wrote:

> can any body tell me what should i do next for preparing a 3d game
>

Honestly, if you have to ask, you're not ready to being a 3D game.
Start with some 2D stuff, use Google to find samples.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Amazon to Policy Android Market Place

2011-01-14 Thread Brill Pappin
@blindfold I have an experimental app that does the same thing. Luck
for us, the Xzing code can be pulled down an added to your local app.
However this is apparently a drawback to multiple app stores!

- Brill Pappin

On Jan 14, 4:26 pm, blindfold  wrote:
> My app got rejected by Amazon Appstore today because it searches for a
> third-party app (the well-known free ZXing barcode reader) 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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Detect if app is installed

2011-01-14 Thread ls02
I am not sure I follow you with "your link should be to a web page on
your site that actually exists". The "link" to launch the app is not
actually a real Web page link. Yes, I reuse http schema but
com.mycompany.myapp is not a site, it is the host that my app activity
registers to handle.


On Jan 14, 6:54 pm, Dianne Hackborn  wrote:
> Maybe I am missing something here, but your link should be to a web page on
> your site that actually exists.  If the user arrives there, they don't have
> their app installed on their device (or aren't on an Android device at all),
> so you can tell them they need to install the app and have a link to Market.
>  If the app already is on the device, then it is catching that URI so they
> get the option to launch it.
>
> Fwiw, this is essentially how things like YouTube and maps works, except of
> course they are *often* pre-installed on devices (but not always), and the
> "fallback" web page is actually their full web site.
>
> There is also another Google service that does the full flow you are talking
> about, though for the life of me I can't recall what it is.
>
>
>
>
>
> On Fri, Jan 14, 2011 at 12:16 PM, ls02  wrote:
> > I have something like this in the web page
>
> > http://com.mycompany.myapp/do_very_cool_stuff";>Click to do
> > Very Cool Stuff With The App
>
> > My app registers http schema and com.mycompany.myapp host so if it is
> > installed when user clicks on the link the app will be launched from
> > the page and will detect the intent and perform "Very Cool Stuff"
> > action.
>
> > However if my app is not installed the browser will display "Web page
> > not available" error
>
> > "The web page "http://com.mycompany.myapp/do_very_cool_stuff"; might be
> > temporarily down..."
>
> > I want to handle this error and instead message to user to install the
> > app.
>
> > On Jan 14, 2:33 pm, Spiral123  wrote:
> > > I would recommend you re-read the earlier post from Marcin.  Let your
> > > web page detect a Mobile browser and display a market:// link to your
> > > app.
>
> > > If the user follows the link to the Market, it will detect if the app
> > > is already loaded on your phone and will prompt you to either Install
> > > it or Open itwhich is the behavior you are asking for.
>
> > > I also don't understand how the user can try to 'launch your app if it
> > > is not installed' - if it's not installed he won't be able to see it
> > > let alone launch it, so he's not going to get any 'ugly error'.  Of
> > > course, if what you are really trying to do is get your web page to
> > > launch an app on my phone when I visit it then.please give me
> > > the address of your web page so I know never to go there. :-)
>
> > > On Jan 14, 2:10 pm, ls02  wrote:
>
> > > > The app is launched from the web page to perform certain action. I do
> > > > not want to discuss why I need to do this. I want to know how to
> > > > detect app is installed or not and if it is not possible how to handle
> > > > the error in the web page when user tries to launch my app and it is
> > > > not installed. Right now the browser gives the same ugly error as
> > > > general invalid link error.
>
> > > > On Jan 14, 1:01 pm, TreKing  wrote:
>
> > > > > On Fri, Jan 14, 2011 at 11:35 AM, ls02  wrote:
> > > > > > But can I at least handle exception when user clicks on the link to
> > open
> > > > > > the app and the app is not installed?
>
> > > > > What reason do you have for trying to launch your own app from your
> > website?
> > > > > If the user has your app I'm sure they can figure out how to open it.
>
> > ---
> > ­--
> > > > > TreKing  -
> > Chicago
> > > > > transit tracking app for Android-powered devices- Hide quoted text -
>
> > > - Show quoted text -
>
> > --
> > 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, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.- Hide quoted text -
>
> - Show quoted text -

-- 
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, visit this group at
http://groups.google.com/group/a

[android-developers] Re: searching in HUGE SQLite database

2011-01-14 Thread DanH
It won't do any good to break the table into smaller tables in the
same database.  SQLite throws all the tables into one large pool that
it manages as a single "heap", so you still get offsets as large as
the overall database size.

You'd have to put the different tables into different database files.

On Jan 14, 7:37 pm, asierra01  wrote:
>   What you have is a database/dba issue not an android issue
>
>   Lets say you have 1 database ( may be with 1 table 8G in size)
>   BRAKE the database in
>   1 Table that will hold some kind description (metadata) of what the
> BIG01, BIG02, BIG03, BIG04 tables have
>      BIG1, BIG2, BIG3...,BIG99 will have at most 100K records , lets
> say and will potentially be as big as 100MB? 300M ? in size or less
>      This table will have three fields (first_rec_key, last_rec_key,
> table name)
>      Table1->
>           (0, 5,'BIG1')
>           (51, 100, 'BIG2')
>           (101, 40, 'BIG3')
>           
>           (80, 900, 'BIG78')
>     you start by looking in this table that only has 100 records
>    it will tell you the key you need is in BIG56, which is 100M,
>    now you use your current method of finding your record, just
> instead of looking on 2GB table
>    you look into 100M or 300M BIG56 table.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Eclipse 3.5.2 is suddenly throwing a NPE while "Initializing Java Tooling"

2011-01-14 Thread OldSkoolMark
Eclipse is suddenly very unhappy. A project and workspace I've been
using without incident for weeks is suddenly throwing an NPE during
Eclipse initialization. The package hierarchy window doesn't appear,
and the effect of most commands is to generate errors and
corresponding log messages.

Here's the log file. This entry is actually repeated many times. I'm
wondering if switching to Helix might clear this issue. Any other
suggestions?


!ENTRY org.eclipse.jdt.ui 4 2 2011-01-14 17:22:58.217
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jdt.ui".
!STACK 0
java.lang.NullPointerException
at
com.android.sdklib.internal.project.ProjectProperties.parsePropertyFile(ProjectProperties.java:
349)
at
com.android.sdklib.internal.project.ProjectProperties.load(ProjectProperties.java:
223)
at
com.android.sdklib.internal.project.ProjectProperties.load(ProjectProperties.java:
209)
at
com.android.ide.eclipse.adt.internal.sdk.Sdk.getProjectState(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.project.AndroidClasspathContainerInitializer.allocateAndroidContainer(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.project.AndroidClasspathContainerInitializer.initialize(Unknown
Source)
at
org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:
2642)
at
org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:
1813)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:
2652)
at
org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:
2578)
at
org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:
2679)
at
org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:
1866)
at
org.eclipse.jdt.internal.core.JavaProject.buildStructure(JavaProject.java:
424)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:
258)
at
org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:
515)
at
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:
252)
at
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:
238)
at
org.eclipse.jdt.internal.core.JavaProject.getJavaProjectElementInfo(JavaProject.java:
1561)
at
org.eclipse.jdt.internal.core.JavaProject.newNameLookup(JavaProject.java:
2258)
at
org.eclipse.jdt.internal.core.SearchableEnvironment.(SearchableEnvironment.java:
57)
at
org.eclipse.jdt.internal.core.SearchableEnvironment.(SearchableEnvironment.java:
64)
at
org.eclipse.jdt.internal.core.CancelableNameEnvironment.(CancelableNameEnvironment.java:
26)
at
org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:
509)
at
org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:
931)
at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:677)
at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider
$1.run(ASTProvider.java:544)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.createAST(ASTProvider.java:
537)
at
org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.getAST(ASTProvider.java:
478)
at org.eclipse.jdt.ui.SharedASTProvider.getAST(SharedASTProvider.java:
126)
at
org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager
$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:
169)
at
org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager
$3.run(SelectionListenerWithASTManager.java:154)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] No update notification when app-title changed

2011-01-14 Thread Marcus
Hello,

I have an android app on the market for some time (7 month) that was
labeled as "Beta" in the title. Yesterday I published a new version
and thought it's time to leave the beta state. Therefore I switched
the app-title in the market backend and removed the "beta" tag.

The problem is: now, the users don't receive any update notification!
If you search for the app in the market, the red update label is shown
correctly. But in the "my apps" section, the update label and the
notification is never shown. The user doesn't see that there's an
update.

It didn't work on my two phones (both 2.2, I cleared the market cache)
and it seems like, nearly all users continue to use the old version.

So, is this a known problem? Or was it just a temporary problem on my
phone? Can anybody confirm this behaviour?

And, what can I do now? Switching the title back doesn't seem to help.

Thanks a lot

Marcus

(This question was also posted on StackOverflow
http://stackoverflow.com/questions/4686909/no-update-notification-when-app-title-changed)

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Live Wallpaper Icon

2011-01-14 Thread John Lussmyer
So, anyone have any ideas why my icon doesn't show up in the list of Live
Wallpapers (just the generic icon shows), but DOES show up in the Wallpaper
menu, Configure entry after installing the wallpaper?

On Thu, Jan 6, 2011 at 1:18 PM, John Lussmyer wrote:

> Okay, I didn't have the icon specified there.
> I've added it.
> Uninstalled from the emulator, and re-installed.
> The icon still doesn't show up in the Live Wallpapers menu, and no errors
> are displayed in logcat.
> (Sure wish my AT&T 2.1 phone supported Live Wallpapers!)
>
>
> On Thu, Jan 6, 2011 at 12:26 PM, Josh  wrote:
>
>> You generally have a file like /res/xml/MyWallpaper.xml with a
>>  tag as the root.  This is where you define the settings
>> activity and thumbnail icon, which is generally the same as your app
>> icon, but can be different.  See
>>
>> http://developer.android.com/resources/samples/CubeLiveWallpaper/res/xml/cube2.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 from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Galaxy S blocked

2011-01-14 Thread Diego N.
Guys,

My nephew was trying to unlock my Galaxy S where is the standard type and ended
upblocking everything.

Now my login is being requested for a Google account, I put it and nothing
happens. I searched the net and saw many people talking to put "null" in the
password, but to no avail.

Has anyone experienced this at the Galaxy S?

Att,

-- 
Diêgo Nunes Assunção
"Give Peace a Chance"

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: searching in HUGE SQLite database

2011-01-14 Thread asierra01

  What you have is a database/dba issue not an android issue

  Lets say you have 1 database ( may be with 1 table 8G in size)
  BRAKE the database in
  1 Table that will hold some kind description (metadata) of what the
BIG01, BIG02, BIG03, BIG04 tables have
 BIG1, BIG2, BIG3...,BIG99 will have at most 100K records , lets
say and will potentially be as big as 100MB? 300M ? in size or less
 This table will have three fields (first_rec_key, last_rec_key,
table name)
 Table1->
  (0, 5,'BIG1')
  (51, 100, 'BIG2')
  (101, 40, 'BIG3')
  
  (80, 900, 'BIG78')
you start by looking in this table that only has 100 records
   it will tell you the key you need is in BIG56, which is 100M,
   now you use your current method of finding your record, just
instead of looking on 2GB table
   you look into 100M or 300M BIG56 table.





-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] On ExpandableListViews Again

2011-01-14 Thread TreKing
On Fri, Jan 14, 2011 at 1:38 AM, Michael  wrote:

> Can anyone tell me why my group becomes unclickable? Is is because
> convertView is taking up the entire groupView so clicks can't be detected?
>

Just a guess, see if this helps:
http://developer.android.com/reference/android/view/ViewGroup.html#setDescendantFocusability(int)

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] disable hard Search button while contextmenu is on.

2011-01-14 Thread TreKing
On Fri, Jan 14, 2011 at 12:22 AM, Amritesh  wrote:

> I want when my context menu is displaying at that point when search button
> is clicked my context menu should not go away and search view should not
> come up..
>

Why? If I have your context menu up and decide I want to search, why should
you stop me?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] REQUEST

2011-01-14 Thread TreKing
On Fri, Jan 7, 2011 at 2:21 AM, Harshit Agrawal wrote:

> Please send me the complete code


HELLO SIR/MADAM

Please do your own damn work.

WITH REGARDS:
TreKing Developer

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] onCreate called on each app wake-up

2011-01-14 Thread TreKing
On Thu, Jan 13, 2011 at 8:18 AM, Felipe Monteiro de Carvalho <
felipemonteiro.carva...@gmail.com> wrote:

> Any ideas where I should change the launch action so that clicks in the
> desktop icon bring up the already created layout?
>

That should be the default behavior. Unless you're running immediately low
on memory and your app is being killed. Use your debugger and some logging
to determine what happens to your app when you press Home.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Issue in location search activity in google map

2011-01-14 Thread TreKing
On Thu, Jan 13, 2011 at 8:39 AM, Rajesh Rathod wrote:

> 3. Application is working fine emulator but ProgressDialog never disappear.
>

Use your debugger and some logging. These feats of technology will tell you
what your code is doing - much better than any of us can.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] "System" Shared UserId

2011-01-14 Thread TreKing
On Thu, Jan 13, 2011 at 11:21 AM, Lassarin  wrote:

> On the web I found that it is connected with the certificate which should
> be a "platform" certificate. However it is not clear how to sign an unsignet
> apk with the correct "platform" key and certificate, so do some of you know
> (and tried successfully) the correct procedure to sign an apk with the
> platform key???
>

You can't just sign any app with the platform key. AFAIK, you have to build
your app along with the whole platform.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Detect if app is installed

2011-01-14 Thread TreKing
On Fri, Jan 14, 2011 at 6:29 PM, Indicator Veritatis wrote:

> But be that as it may, I believe the reason he will not considers yours a
> solution is that if his application is installed but not running, or if for
> any reason it is not registered to handle the Intent, then no, it will not
> "catch that URI" when the users browses to that link using the phone's HTTP
> browser (whether that is Google's, Dolphin's or whatever).
>

Even if the user's app is not running, it will be an option to launch the
intent. If it's not, it's because the OP himself has not set up his filters
correctly or the user has already explicitly set the browser to handle it by
default, which means they were presented with the option at some point.


> Or perhaps he does not trust the built in browser to let his application
> handle the Intent first:
>

There is no "first", AFAIK. It's on option to the user.


> it always has been a little mysterious to a lot of us that sometimes, we
> click on a link and it immediately uses the current browser, but sometimes
> we get the pop-up asking us which application to use on that link.
>

If you have a default or only one thing to handle the intent, that gets
used. If you have multiple options and no default, you get a choice. If you
install a new app that can handle the intent, the default is cleared. Also,
on my Nexus, the default seems to be cleared on a reboot. Not sure if that's
a bug.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-14 Thread Indicator Veritatis
This code shows us how to get the accelerometer data from the
SensorManager, but not how to calculate the velocity correctly. The
naive formula you use is correct ONLY for a completely noiseless
signal. But all signals in the real world DO have noise, which must be
filtered out.

Filtering it out for an accelerometer is tricky because integration
already IS a low pass filter, so by simply integrating, you are
throwing away the data you need to separate signal and noise.

Google "accelerometer filter" for the variety of different approaches
that have been tried.

On Jan 13, 1:41 pm, SIDIBE Ali-Broma  wrote:
> You can use Sensor to determinate speed but you must do some
> mathematic calculat ( Cos, sinus, abs...)
> Please check this below code
>
> package org.sidibe.speedometre;
>
> /*
>  * SIDIBE Ali-Broma,malien, jahbr...@gmail.com, ENSAT Tanger
>  * Novembre 2009 Tout droit permis.
>  *
>  *
>
> import java.util.*;
> import android.app.Activity;
> import android.content.Context;
> import android.graphics.*;
> import android.hardware.Sensor;
> import android.hardware.SensorEvent;
> import android.hardware.SensorEventListener;
> import android.hardware.SensorListener;
> import android.hardware.SensorManager;
> import android.os.Bundle;
> import android.os.Handler;
> import android.view.Gravity;
> import android.widget.TextView;
>
> public class MySpeedometre extends Activity {
>
>         TextView tv;
>         SensorManager sensor;
>         SensorEventListener svls;
>         Handler myhandl= new Handler();
>         double temperature=0;
>
>         public float velocite,accel_actuel,accel_app;
>      Date last;
>
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>
>         last=new Date(System.currentTimeMillis());
>
> sensor=(SensorManager)getSystemService(Context.SENSOR_SERVICE);
>
>         sensor.registerListener(listener,
> sensor.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER),
> SensorManager.SENSOR_DELAY_FASTEST);
>
>        //Mise a jour l interface chaque seconde
>
>         Timer tim=new Timer();
>         tim.scheduleAtFixedRate(new TimerTask(){
>                 public void run () {
>                         updateGUI();
>                 }
>         },0,1000);
>
>         load();
>         setContentView(tv);
>     }
>
>         public void load()
>         {
>
>                 tv= new TextView(this);
>                 tv.setBackgroundColor(R.drawable.finals);
>             tv.setTextSize(16);
>             tv.setTextColor(Color.GREEN);
>                 tv.setSingleLine(true);
>                 tv.setTypeface(null, Typeface.BOLD);
>                 tv.setGravity(Gravity.CENTER_HORIZONTAL|Gravity.BOTTOM);
>                 tv.setGravity(Gravity.CENTER);
>
>                 }
>         public void upadatevelocite()
>         {
>
>                 // Date actuelle en milliseconde
>                 Date now= new Date(System.currentTimeMillis());
>                 // ecart en seconde entre date passe et date actuelle
>                 long ecart= ( now.getTime()-last.getTime())/1000;
>                 // Mise à jour du temps
>                   last.setTime(now.getTime());
>
>                 float ecartv=accel_app*ecart+0; /* calcule de la vitesse from 
> v=at
> +vo;*/
>
>                 // Mise à jour
>                 accel_app=accel_actuel;
>                 velocite=velocite+ecartv;
>
>                 tv.setText(String.valueOf(velocite)+"m/s");
>
>         }
>
> public final SensorEventListener listener= new SensorEventListener(){
>         @Override
>         public void onAccuracyChanged(Sensor arg0, int arg1) {
>                 // TODO Auto-generated method stub
>
>         }
>
>         @Override
>         public void onSensorChanged(SensorEvent event)
>
>         {    float evaleur[]= event.values;
>              double calibration = Double.NaN;
>
>               double x= evaleur[SensorManager.DATA_X];
>               double y= evaleur[SensorManager.DATA_Y];
>               double z= evaleur[SensorManager.DATA_Z];
>            temperature= evaleur[SensorManager.SENSOR_TEMPERATURE];
>               // Calcul du changement  acceleration en coordonnnee ca
>               double a= -1*Math.sqrt(Math.pow(x, 2)+Math.pow(y,
> 2)+Math.pow(z, 2));
>
>               if(calibration==Double.NaN){
>                   calibration=a;
>
>               }
>               else {
>                   upadatevelocite();
>               accel_actuel=(float)a;
>               }
>
>         }
>
> };
>
> public void updateGUI()
> {
>         myhandl.post(new Runnable(){
>                 public void run()
>                 {
>                         tv.setText("Vit:"+ velocite+"m/s 
> à:"+temperature+"°C\n par
> SIDIBE");
>                 }
>         });
>
> }
> }
>
> ==

-- 
You received this message because you are subscribed to the Google
Groups "Android 

[android-developers] Re: How to get screen density in pixels-per-inch or equivalent

2011-01-14 Thread Phil Endecott
On Jan 14, 5:26 pm, Dianne Hackborn  wrote:
> On Fri, Jan 14, 2011 at 8:30 AM, Phil Endecott <
>
> spam_from_goo...@chezphil.org> wrote:
> > Thanks Dianne.  What's going on with the Tab?  Its true dpi, which it
> > does accurately report in the xdpi and ydpi fields, is about 170.  I
> > could imagine that a tablet might be typically held further from the
> > face than a phone, hence the dpi that should be used to control the
> > size of graphic elements etc. might be set to a different value - but
> > surely, it should be set to a lower value, shouldn't it?

I think I got this the wrong way around.  The Tab has a higher value,
which is what you would expect for a tablet rather than a phone.

> Out of curiosity, what are you trying to do?

Two things; I have maps where I might need to show an actual "miles
per inch"-equivalent scale, though I now think that's impossible, and
also to select things like font sizes.  I appreciate that the
quantised density values are appropriate for the latter, though it is
slightly complicated by the fact that I also support iOS devices whose
density values don't align with your choice of quantisation; if I get
an Android device whose screen has the same dimensions as an iPad, I'd
rather use the iPad graphics that I already have.  So I'd like to
quantise the actual density to a slightly different set of values than
the ones you've chosen.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-14 Thread Indicator Veritatis
This code shows us how to get accelerometer readings out of the
SensorManager, but the calculation you perform neglects noise in the
accelerometer output. So if you actually try this out, you will notice
it will not compare well with the car's speedometer.

As I mentioned before: to get a realistic solution, you need to
account for the noise by viewing integration as a low pass filter
On Jan 13, 1:41 pm, SIDIBE Ali-Broma  wrote:
> You can use Sensor to determinate speed but you must do some
> mathematic calculat ( Cos, sinus, abs...)
> Please check this below code
>
> package org.sidibe.speedometre;
>
> /*
>  * SIDIBE Ali-Broma,malien, jahbr...@gmail.com, ENSAT Tanger
>  * Novembre 2009 Tout droit permis.
>  *
>  *
>
> import java.util.*;
> import android.app.Activity;
> import android.content.Context;
> import android.graphics.*;
> import android.hardware.Sensor;
> import android.hardware.SensorEvent;
> import android.hardware.SensorEventListener;
> import android.hardware.SensorListener;
> import android.hardware.SensorManager;
> import android.os.Bundle;
> import android.os.Handler;
> import android.view.Gravity;
> import android.widget.TextView;
>
> public class MySpeedometre extends Activity {
>
>         TextView tv;
>         SensorManager sensor;
>         SensorEventListener svls;
>         Handler myhandl= new Handler();
>         double temperature=0;
>
>         public float velocite,accel_actuel,accel_app;
>      Date last;
>
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>
>         last=new Date(System.currentTimeMillis());
>
> sensor=(SensorManager)getSystemService(Context.SENSOR_SERVICE);
>
>         sensor.registerListener(listener,
> sensor.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER),
> SensorManager.SENSOR_DELAY_FASTEST);
>
>        //Mise a jour l interface chaque seconde
>
>         Timer tim=new Timer();
>         tim.scheduleAtFixedRate(new TimerTask(){
>                 public void run () {
>                         updateGUI();
>                 }
>         },0,1000);
>
>         load();
>         setContentView(tv);
>     }
>
>         public void load()
>         {
>
>                 tv= new TextView(this);
>                 tv.setBackgroundColor(R.drawable.finals);
>             tv.setTextSize(16);
>             tv.setTextColor(Color.GREEN);
>                 tv.setSingleLine(true);
>                 tv.setTypeface(null, Typeface.BOLD);
>                 tv.setGravity(Gravity.CENTER_HORIZONTAL|Gravity.BOTTOM);
>                 tv.setGravity(Gravity.CENTER);
>
>                 }
>         public void upadatevelocite()
>         {
>
>                 // Date actuelle en milliseconde
>                 Date now= new Date(System.currentTimeMillis());
>                 // ecart en seconde entre date passe et date actuelle
>                 long ecart= ( now.getTime()-last.getTime())/1000;
>                 // Mise à jour du temps
>                   last.setTime(now.getTime());
>
>                 float ecartv=accel_app*ecart+0; /* calcule de la vitesse from 
> v=at
> +vo;*/
>
>                 // Mise à jour
>                 accel_app=accel_actuel;
>                 velocite=velocite+ecartv;
>
>                 tv.setText(String.valueOf(velocite)+"m/s");
>
>         }
>
> public final SensorEventListener listener= new SensorEventListener(){
>         @Override
>         public void onAccuracyChanged(Sensor arg0, int arg1) {
>                 // TODO Auto-generated method stub
>
>         }
>
>         @Override
>         public void onSensorChanged(SensorEvent event)
>
>         {    float evaleur[]= event.values;
>              double calibration = Double.NaN;
>
>               double x= evaleur[SensorManager.DATA_X];
>               double y= evaleur[SensorManager.DATA_Y];
>               double z= evaleur[SensorManager.DATA_Z];
>            temperature= evaleur[SensorManager.SENSOR_TEMPERATURE];
>               // Calcul du changement  acceleration en coordonnnee ca
>               double a= -1*Math.sqrt(Math.pow(x, 2)+Math.pow(y,
> 2)+Math.pow(z, 2));
>
>               if(calibration==Double.NaN){
>                   calibration=a;
>
>               }
>               else {
>                   upadatevelocite();
>               accel_actuel=(float)a;
>               }
>
>         }
>
> };
>
> public void updateGUI()
> {
>         myhandl.post(new Runnable(){
>                 public void run()
>                 {
>                         tv.setText("Vit:"+ velocite+"m/s 
> à:"+temperature+"°C\n par
> SIDIBE");
>                 }
>         });
>
> }
> }
>
> ==

-- 
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

Re: [android-developers] Scrolling Moves Dynamic View Items

2011-01-14 Thread TreKing
On Thu, Jan 13, 2011 at 7:53 AM, chrismanster wrote:

> It works fine until I scroll that item out of view, when I scroll that item
> back into view the star (in this case) that I made visible will have moved
> to a different item in the GridView.  If I do the same thing again, it will
> have moved back to the original item.  This seems to happen on any GridView
> where I am turning on content in an item and then scrolling it out of view.
>

Sounds like your views are being recycled and you're not handling it
correctly.

Google "adapter view recycling" or something - you should get lots of info.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Error trap webview.loadUrl

2011-01-14 Thread TreKing
On Thu, Jan 13, 2011 at 6:27 AM, Craigbtx  wrote:

> When using the Webview how do you error trap webview.loadUrl("http:// 
> MyURL.com")
> when a internet connection does not exist?
>

Maybe this:
http://developer.android.com/reference/android/webkit/WebViewClient.html#onReceivedError(android.webkit.WebView,
int, java.lang.String, java.lang.String)

From a 2 second gleam of the docs.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Code Assist still Slow

2011-01-14 Thread snpe
https://bugs.eclipse.org/bugs/show_bug.cgi?id=329288 contains patch
that fixes this issue.
Unfortunately patch is applied only in 3.7 branch.
I have patched org.eclipse.jdt.core from Helios 3.6.1 with the patch
attached in this bug and create a patched plugin.
You can replace your /plugins/
org.eclipse.jdt.core_3.6.1.v_A68_R36x.jar plugin with one from
http://adt-addons.googlecode.com/svn/patches/org.eclipse.jdt.core_3.6.1.v_A68_R36x.zip
and restart Eclipse. Content Assists will be much better. Just try it.
Don't forget backup your original plugins.

Peco

On Jan 14, 10:39 pm, Kostya Vasilyev  wrote:
> I just submitted information on the Android JavaDoc issue here for Eclipse:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=325829
>
> The same JavaDoc package, "Documentation for Android SDK", worked without a
> single hiccup with Eclipse 3.5 SR2 (same computer).
>
> -- Kostya
>
> 2011/1/15 snpe 
>
> > Kostya,
>
> > IMO, there isn't bug in Eclipse for the problem related with Javadoc
> > attachment. I can reproduce them when using javadoc from master AOSP
> > (I have trying CA for TextView.setText()).
> > It's possible that it isn't correct Javadoc, but it's bug in Helios
> > still - Helios doesn't handle correctly missing Javadoc.
> > For instance, if some method doesn't have Javadoc, Helious search
> > Javadoc contents for this method over and over again.
> > I suppose that we have create a new Eclipse bug.
>
> > Peco
>
> > PS
> > I have createdhttps://review.source.android.com/#change,20460that
> > enables removing Javadoc in Android classpath container.
>
> > On Jan 14, 8:45 pm, Kostya Vasilyev  wrote:
> > > Peco,
>
> > > Thanks for the info regarding Javadoc. I uninstalled Documentation for
> > > Android SDK using the SDK/AVD Manager and code assist does not freeze
> > > anymore.
>
> > > Would be nice to get Javadoc in CA back at some point, but for me, it's
> > not
> > > critical.
>
> > > You say that it looks like a problem in Helios - is there a bug for this
> > in
> > > Eclipse's tracker?
>
> > > -- Kostya
>
> > > 2011/1/14 snpe 
>
> > > > It looks that there is problem with Javadoc attachment in Helios.
> > > > It's very slow for some methods (View.saveHierarchyState
> > > > (SparseArray container), for instance
> > > > this method is searched again and again when CA some view's method.
> > > > Settings Javadoc to null fixes the issue (you haven't javadoc, of
> > > > course, but CA works correctly).
> > > > Unfortunately, because of bug in Android classpath container it isn't
> > > > possible to change javadoc attachment.
> > > > I have createdhttp://code.google.com/p/android/issues/detail?id=14017
>
> > > > I will try to find better workaround (something without excluding
> > > > Javadoc)
>
> > > > Regards,
> > > > Peco
>
> > > > > I am using classic Helios 3.6.1 with ADT 8.0.1 so both issues should
> > > > > be resolved.
>
> > > > > An easy way to replicate the issue is to get code assist with a
> > > > > partial entry having several possibilities, such as:
>
> > > > > WebView web;
>
> > > > > ...
>
> > > > > web.g 
> > > > > I then wait 30 seconds to two minutes.
>
> > > > > I have tried in a fresh project and a production project, both with
> > > > > the same result.
>
> > > > > I verified that I do have some components of WTP but JAX-WS proposals
> > > > > are not listed on the list. These appear to be bundled for XML
> > > > > editing.
>
> > > > > On Jan 11, 7:34 am, snpe  wrote:
>
> > > > > > There are two problems related to code assists with ADT and Helios.
>
> > > > > > 1) ADT problem related to classpath container described onhttp://
> > > > code.google.com/p/android/issues/detail?id=7850#c7
> > > > > > It is fixed in ADT 8.0.x
>
> > > > > > 2) problem with WTP Webservices context assist.  Seehttps://
> > > > bugs.eclipse.org/bugs/show_bug.cgi?id=317979
> > > > > > It isn't related to ADT.
> > > > > > Workaround
> > > > > > Open Window>Preferences>Java>Editor>Content Assist>Advanced
> > > > > > and disable JAX-WS Proposals
> > > > > > This issue is fixed in current WTP
>
> > > > > > Could you provide test case if this doesn't help ?
>
> > > > > > Regards,
> > > > > > Peco
> > > > > > On Jan 8, 12:31 am, Dan  wrote:
>
> > > > > > > After upgrading to ADT 8.0.1 with Eclipse Helios (3.6.1) I am
> > still
> > > > > > > getting freezes with code assist. Does anyone have any ideas to
> > fix
> > > > or
> > > > > > > is this still a bug?
>
> > > > --
> > > > 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, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> >

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-14 Thread Indicator Veritatis
No, because as already pointed out, a naive integration of
acceleration is too inaccurate; it is too easily corrupted by noise.

Now you can improve it somewhat by considering integration as a low
pass filter, and applying DSP techniques to enhance the accuracy, but
don't expect a dramatic improvement in accuracy. Especially if the
phone has ever been dropped:(

A better solution might be to do the above DSP, but also check it
against the GPS results whenever they ARE available. But this is
complicated.

On Jan 12, 7:22 am, cellurl  wrote:
> couldn't you use the accelerometer?
> Integrate that? Use time. s=Integral(a  dt)
> If that doesn't work, look to skyhook wireless!
> -cellurl
>
> On Jan 12, 8:20 am, Brill Pappin  wrote:
>
> > Well you pretty much need distance traveled over time to find speed,
> > so anything you can do to determine distance travelled should allow
> > you to calculate the speed.
>
> > For instance you could use cell tower location, but I wouldn't class
> > it as even remotely accurate.
> > If you want to give an actual real value, your going to need the
> > accuracy of the GPS unit.
>
> > - Brill Pappin
>
> > On Jan 11, 11:13 pm, darrinps  wrote:
>
> > > All the examples I see use GPS, and I have that working just fine but
> > > I've noticed that every time I'm in a car, that unless the phone is
> > > close to a window or the windshield the GPS does not work so...
>
> > > I thought that there should be a way using course grained location
> > > between cell towers. Does anyone know if this is possible and if so
> > > might know where I could find some sample code please?
>
> > > Thanks!
>
> > > Darrin
>
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] call .net web service from android

2011-01-14 Thread TreKing
On Thu, Jan 13, 2011 at 6:34 AM, kandroid  wrote:

> after running the code, i see only my error message. which is "pppss
> error occured..."
>

Have you debugged your own code and determined what the exception is that's
being thrown?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] calling activity from menu

2011-01-14 Thread TreKing
On Thu, Jan 13, 2011 at 12:13 AM, mithun hr wrote:

> I tried creating an Intent to start activity using the Class name but
> doesn't work.
>
> please help.
>

Please explain what "doesn't work" means.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Detect if app is installed

2011-01-14 Thread Indicator Veritatis
Well, I am afraid a lot of us are 'missing something here". But
frankly, that is because the OP does not express himself very well. So
no wonder he gets some telling him it is impossible, others telling
him how to do something somewhat different from what he wants.

But be that as it may, I believe the reason he will not considers
yours a solution is that if his application is installed but not
running, or if for any reason it is not registered to handle the
Intent, then no, it will not "catch that URI" when the users browses
to that link using the phone's HTTP browser (whether that is Google's,
Dolphin's or whatever).

Or perhaps he does not trust the built in browser to let his
application handle the Intent first: it always has been a little
mysterious to a lot of us that sometimes, we click on a link and it
immediately uses the current browser, but sometimes we get the pop-up
asking us which application to use on that link.

On Jan 14, 3:54 pm, Dianne Hackborn  wrote:
> Maybe I am missing something here, but your link should be to a web page on
> your site that actually exists.  If the user arrives there, they don't have
> their app installed on their device (or aren't on an Android device at all),
> so you can tell them they need to install the app and have a link to Market.
>  If the app already is on the device, then it is catching that URI so they
> get the option to launch it.
>
> Fwiw, this is essentially how things like YouTube and maps works, except of
> course they are *often* pre-installed on devices (but not always), and the
> "fallback" web page is actually their full web site.
>
> There is also another Google service that does the full flow you are talking
> about, though for the life of me I can't recall what it is.
>
> On Fri, Jan 14, 2011 at 12:16 PM, ls02  wrote:
> > I have something like this in the web page
>
> > http://com.mycompany.myapp/do_very_cool_stuff";>Click to do
> > Very Cool Stuff With The App
>
> > My app registers http schema and com.mycompany.myapp host so if it is
> > installed when user clicks on the link the app will be launched from
> > the page and will detect the intent and perform "Very Cool Stuff"
> > action.
>
> > However if my app is not installed the browser will display "Web page
> > not available" error
>
> > "The web page "http://com.mycompany.myapp/do_very_cool_stuff"; might be
> > temporarily down..."
>
> > I want to handle this error and instead message to user to install the
> > app.
>
> > On Jan 14, 2:33 pm, Spiral123  wrote:
> > > I would recommend you re-read the earlier post from Marcin.  Let your
> > > web page detect a Mobile browser and display a market:// link to your
> > > app.
>
> > > If the user follows the link to the Market, it will detect if the app
> > > is already loaded on your phone and will prompt you to either Install
> > > it or Open itwhich is the behavior you are asking for.
>
> > > I also don't understand how the user can try to 'launch your app if it
> > > is not installed' - if it's not installed he won't be able to see it
> > > let alone launch it, so he's not going to get any 'ugly error'.  Of
> > > course, if what you are really trying to do is get your web page to
> > > launch an app on my phone when I visit it then.please give me
> > > the address of your web page so I know never to go there. :-)
>
> > > On Jan 14, 2:10 pm, ls02  wrote:
>
> > > > The app is launched from the web page to perform certain action. I do
> > > > not want to discuss why I need to do this. I want to know how to
> > > > detect app is installed or not and if it is not possible how to handle
> > > > the error in the web page when user tries to launch my app and it is
> > > > not installed. Right now the browser gives the same ugly error as
> > > > general invalid link error.
>
> > > > On Jan 14, 1:01 pm, TreKing  wrote:
>
> > > > > On Fri, Jan 14, 2011 at 11:35 AM, ls02  wrote:
> > > > > > But can I at least handle exception when user clicks on the link to
> > open
> > > > > > the app and the app is not installed?
>
> > > > > What reason do you have for trying to launch your own app from your
> > website?
> > > > > If the user has your app I'm sure they can figure out how to open it.
>
> > ---
> > ­--
> > > > > TreKing  -
> > Chicago
> > > > > transit tracking app for Android-powered devices- Hide quoted text -
>
> > > - Show quoted text -
>
> > --
> > 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, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@and

Re: [android-developers] What happens with activity when i press BACK key on device?

2011-01-14 Thread TreKing
On Tue, Jan 11, 2011 at 8:18 AM, Radeg  wrote:

> Problem: A launch B. I do something in B and return to A with a BACK key(i
> think, B should pop from stack). After it, I leave A with BACK key and see
> again B. Why is?
>

Usually because multiple instances of your activity have been started and
they all get grouped together.


> So, what happens with activity when i press BACK key on device? What method
> call?
>

finish().

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: searching in HUGE SQLite database

2011-01-14 Thread Dianne Hackborn
Yeah it's actually very likely the problem.  Android for various reasons
defines off_t to be 32 bit, so if you want to support > 2GB files you need
to use off64_t.  That unfortunately makes it easy to have code paths that
break like this.

On Fri, Jan 14, 2011 at 9:48 AM, DanH  wrote:

> There are all sorts of possibilities.  First off, it's not unlikely
> that a 2+GB file is simply larger than Android and the Android
> implementation of Sqlite can handle.  2147483647 is the largest signed
> value that can be expressed in a 4-byte integer, and arithmetic with
> numbers on that scale is apt to experience "overflow" issues that
> confuse compare operations, etc.
>
> Additionally, if the database is not declared up front to be read-
> only, Sqlite may make copies of pages as it operates, and will almost
> definitely create a "journal" of what it's doing.  This could occupy
> enough additional space to "blow" the size of the SD card if it's not
> at least (I would guess) 4GB.  And in doing the sort of query
> described Sqlite will need considerable working storage, which could
> blow the SD card size limit.
>
> Plus there could simply be a bug in the Android "disk" access logic
> when confronted with the intense "disk" activity this query would
> generate.
>
> On Jan 14, 8:24 am, Menion  wrote:
> > Hi,
> >   this was already discussed here, but I have another problem with
> > database search.
> >
> > I'm testing on one big database, more then 2GB (stored on SD card of
> > course) with around 1 million of rows in table 'tiles'. Database
> > contain X, Y, Z coordinates as INT (map index) and byte[] image data.
> >
> > database is created with this SQLite string which cannot be changed!
> > CREATE TABLE tiles (x INTEGER,y INTEGER,z INTEGER,s INTEGER,image
> > BYTE, PRIMARY KEY (x, y, z, s));
> >
> > And all I want is to get all available Z values in database like by
> > this
> > SELECT DISTINCT z FROM tiles
> >
> > But after around 5 minutes of loading (time isn't problem here) logcat
> > return
> >   android.database.sqlite.SQLiteDiskIOException: disk I/O error
> >
> > have you please any tip how to solve this??
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Detect if app is installed

2011-01-14 Thread Dianne Hackborn
Maybe I am missing something here, but your link should be to a web page on
your site that actually exists.  If the user arrives there, they don't have
their app installed on their device (or aren't on an Android device at all),
so you can tell them they need to install the app and have a link to Market.
 If the app already is on the device, then it is catching that URI so they
get the option to launch it.

Fwiw, this is essentially how things like YouTube and maps works, except of
course they are *often* pre-installed on devices (but not always), and the
"fallback" web page is actually their full web site.

There is also another Google service that does the full flow you are talking
about, though for the life of me I can't recall what it is.

On Fri, Jan 14, 2011 at 12:16 PM, ls02  wrote:

> I have something like this in the web page
>
> http://com.mycompany.myapp/do_very_cool_stuff";>Click to do
> Very Cool Stuff With The App
>
> My app registers http schema and com.mycompany.myapp host so if it is
> installed when user clicks on the link the app will be launched from
> the page and will detect the intent and perform "Very Cool Stuff"
> action.
>
> However if my app is not installed the browser will display "Web page
> not available" error
>
> "The web page "http://com.mycompany.myapp/do_very_cool_stuff"; might be
> temporarily down..."
>
> I want to handle this error and instead message to user to install the
> app.
>
>
> On Jan 14, 2:33 pm, Spiral123  wrote:
> > I would recommend you re-read the earlier post from Marcin.  Let your
> > web page detect a Mobile browser and display a market:// link to your
> > app.
> >
> > If the user follows the link to the Market, it will detect if the app
> > is already loaded on your phone and will prompt you to either Install
> > it or Open itwhich is the behavior you are asking for.
> >
> > I also don't understand how the user can try to 'launch your app if it
> > is not installed' - if it's not installed he won't be able to see it
> > let alone launch it, so he's not going to get any 'ugly error'.  Of
> > course, if what you are really trying to do is get your web page to
> > launch an app on my phone when I visit it then.please give me
> > the address of your web page so I know never to go there. :-)
> >
> > On Jan 14, 2:10 pm, ls02  wrote:
> >
> >
> >
> > > The app is launched from the web page to perform certain action. I do
> > > not want to discuss why I need to do this. I want to know how to
> > > detect app is installed or not and if it is not possible how to handle
> > > the error in the web page when user tries to launch my app and it is
> > > not installed. Right now the browser gives the same ugly error as
> > > general invalid link error.
> >
> > > On Jan 14, 1:01 pm, TreKing  wrote:
> >
> > > > On Fri, Jan 14, 2011 at 11:35 AM, ls02  wrote:
> > > > > But can I at least handle exception when user clicks on the link to
> open
> > > > > the app and the app is not installed?
> >
> > > > What reason do you have for trying to launch your own app from your
> website?
> > > > If the user has your app I'm sure they can figure out how to open it.
> >
> > > >
> ---
> ­--
> > > > TreKing  -
> Chicago
> > > > transit tracking app for Android-powered devices- Hide quoted text -
> >
> > - Show quoted text -
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Howto? identify the inflated resource

2011-01-14 Thread Brad Gies

Brill,

Post some code... and the layout you are inflating. I use tags all the 
time to identify views, so it's definitely possible.



Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.comhttp://nocrappyapps.com
http://bistroblurb.com  http://forcethetruth.com
http://ihottonight.com
---
Everything in moderation, including abstinence (paraphrased)

Every person is born with a brain... Those who use it well are the successful 
happy ones - Brad Gies

Adversity can make or break you... It's your choice... Choose wisely - Brad Gies

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead


On 13/01/2011 10:28 AM, Brill Pappin wrote:
Ok, this is the same problem as my last post, but i'm not getting any 
traction with it, so i'm looking for another method solve the problem.


All i need to do is identify the xml resource a view was inflated 
from, in the views constructor.


I've tried android:tag which does not seem to be able to do it in this 
case (I only ever get null back from getTag()).


The situation is that I have a single java class extending view.
I inflate one of many XMLs into the view and I need to be able to 
change stylesheets based upon which xml resource i'm loading.


Does anyway one a method of doing this?

My last fallback is to use some sort of static class that I can set 
the xml resource on for the entire app, then try and look at the id to 
determine which resource I loaded. I'm reluctant to do that because 
it's kludgy and I think its far more likely to introduce bug etc. Note 
that I haven't tried to do this yet, but it should work based on how 
java behaves.


I just can't believe that there is no way to a view to know what XML 
resource it was inflated from!


- Brill Pappin
--
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, visit this group at
http://groups.google.com/group/android-developers?hl=en 


--
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Calling onUpdate() from onReceive() in AppWidgetProvider

2011-01-14 Thread Kostya Vasilyev
sendBroadcast is not how you update a widget on demand (I.e. in response to
some data or state change).

I just posted a code example of this, check recent messages, the original
question referenced Power Controls.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
14.01.2011 16:24 пользователь "joovam"  написал:
> Hi, I'm trying to update the widget whenever it receives a broadcast
> message by sending appropriate intent.
> However after receiving a broadcast message and sending intent it
> doesn't do any job implemented in onUpdate()
> Is it because I'm using the same class?
>
> Sample code looks like this:
>
> public class Example extends AppWidgetProvider {
> public void onUpdate(...) {
> ... do some job
> }
> public void onReceive(Context context, Intent intent) {
> if
> (intent.getAction().equalsIgnoreCase(Intent.ACTION_TIME_CHANGED)) {
> Intent message = new Intent();
> message.setAction(AppWidgetManager.ACTION_APPWIDGET_UPDATE);
> message.setClass(context, Example.class);
> < HERE!
> context.sendBroadcast(message);
> } else {
> super.onReceive(context, intent);
> }
> }
> }
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: InstrumentationTestRunner with Annotation

2011-01-14 Thread Diego Torres Milano
If you want to provide a different behavior for the test runner just
create your own extending it:

public class MyTestRunner extends
android.test.InstrumentationTestRunner {
  // do wathever you want
}

To do whatever you want, use android.test.InstrumentationTestRunner
source as a an inspiration.


On Jan 13, 1:47 am, Aman Bhardwaj  wrote:
> Hi,
> I have some test cases with my own defined Annotations, but
> InstrumenationTestRunner doesn't runs tests based on annotation.
> However it works if I add annotations
> from android.test.suitebuilder.annotation.
>
> Is it only supposed to work with annotations
> in android.test.suitebuilder.annotation.Smoke?
> Any suggestions how to make it work with my own annotations.
>
> Thanks,
> ~Aman

--
Have you read my blog ?
http://dtmilano.blogspot.com
android junit tests ui linux cult thin clients

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] android access to ringtones list in settings

2011-01-14 Thread TreKing
On Tue, Jan 11, 2011 at 8:53 AM, Thomas  wrote:

> id like to add is being able to set a file from the ring tones list on SD
> card as the playing music
>

Go to the documentation.
At the top right, start typing a search term, like "Ringtone".
See where that leads you.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Amazon to Policy Android Market Place

2011-01-14 Thread blindfold
Same answer as in 
http://groups.google.com/group/android-discuss/msg/b71caf66580b9cd0:

Good point. Not currently, but this I can (and will) easily fix by
checking if the Android Market app is installed, in the same way that
I check if ZXing is installed. However, doing so will AFAIK still not
suffice to comply with the Amazon Appstore requirements, because my
app would still perform a search on Android Market if the Android
Market app is installed and ZXing isn't. If Amazon only wants graceful
degradation in cases where users do not have the Android Market
installed, that is fine with me, and I'll gladly comply with that.

On Jan 14, 11:56 pm, Streets Of Boston 
wrote:
> If your app can be installed from another market than the Android
> Market, you cannot assume that the "market:" intent/scheme is handled
> on every device.
>
> If users without Android Market on their device download your app from
> Amazon Market, how would your app react if fails to find ZXing (i.e.
> if it fails the "market:" intent)? If your app fails gracefully and
> your app is still (fully) functional, Amazon shouldn't complain. But
> if your app just raises an error and, for example, quits your app,
> Amazon has a point of rejecting your app.
>
> If your app handles a lack of the "market:" scheme/intent gracefully
> but Amazon just tried it on a phone *with* Android Market installed
> and didn't like the fact that the Android Market activity was started,
> then I think Amazon is wrong. They can require apps to handle missing
> functionality gracefully, but they should not forbid any searches
> using the Android Market if Android Market is installed.
>
> On Jan 14, 4:26 pm, blindfold  wrote:
>
> > My app got rejected by Amazon Appstore today because it searches for a
> > third-party app (the well-known free ZXing barcode reader) on Android
> > Market if the user tries to launch it from my app and it is not
> > installed. The barcode reader acts as a functional extension to my
> > app, launched via an intent, and I would not even know if it will come
> > to Amazon Appstore. So I'm not pleased with the Amazon Appstore
> > restrictions, and do not know of an elegant way to deal with this use
> > case. There is a related and ongoing discussion in the android-discuss
> > thread "Amazon Market - First red 
> > flag"http://groups.google.com/group/android-discuss/browse_thread/thread/1...
>
> > On Jan 5, 11:05 pm, Leon Moreyn-Android Development
>
> >  wrote:
> > > The almighty Amazon.com feels that is should police the Android
> > > Market  for proper applications. On one hand I think this could be a
> > > good idea but on the other hand this feels took much like an Apple iOS
> > > development clone. With Amazon developing its own market place and
> > > limiting which apps can appear there you are guaranteed a visible
> > > market for your application. People who pursue amazon will know that
> > > your app may meet some sort of standard and may consider buying it.
> > > But just as good as that is, if Amazon is backed up with testing your
> > > application and like apple takes two weeks to reject your application
> > > based on some sort of merit what is to stop me from just uploading my
> > > application directly to the market place. ABSOLUTELY NOTHING. As
> > > someone who develops on both sides of the spectrum I don't see the
> > > implement of this Amazon App Market place as a good idea. I am curious
> > > as to other developers take on this and how many plan to actually
> > > develop to meet the amazon market guidelines.- Hide quoted text -
>
> > - Show quoted text -

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Sliding drawer Implementation through java code

2011-01-14 Thread TreKing
On Tue, Jan 11, 2011 at 4:02 AM, Suresh A  wrote:

> I am trying to implement the Sliding drawer using java code(with out single
> xml).


OK.


> For this how can we set the AttributeSet through xml and how can i retrieve
> the this xml to java class.


Wait ... you just said you wanted to do this without XML. Now you want to
set the AttributeSet through XML and retrieve the XML?


> Then how can i implement the sliding drawer using java cod with the
> attribute xml...


http://developer.android.com/reference/android/widget/SlidingDrawer.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Calling activity from Stub

2011-01-14 Thread Kostya Vasilyev
If you have a Context reference in this code, you can call:

myContext.startActivity(...)

Might want to set FLAG_ACTIVITY_NEW_TASK flag in the intent to avoid a
logcat warning when it's added by the framework.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
14.01.2011 16:21 пользователь "Tux"  написал:
> Hi all,
>
> I have a class extending IPackageManager.Stub (does not really matter
> here), the point is, I need to start an activity from this class.
>
> I cannot do:
>
> Intent i = new Intent();
> i.setComponent(new ComponentName(,
>  ));
> startActivity(i);
>
> as my class is not an activity.
>
> How can I do that? Btw i know I can pass the instance of the calling
> activity of the non-activity class as a parameter, but I need
> something else for design purposes.
>
> So, to be clear, How can I call an activity from a non-activity
> class?
>
>
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to access the multiple instances of the same Activity uniquely?

2011-01-14 Thread TreKing
On Tue, Jan 11, 2011 at 5:38 AM, srvaka  wrote:

> Any suggestions would be appreciated highly.


You should probably elaborate on what you're trying to do and why you need
what you need.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Amazon to Policy Android Market Place

2011-01-14 Thread Streets Of Boston
If your app can be installed from another market than the Android
Market, you cannot assume that the "market:" intent/scheme is handled
on every device.

If users without Android Market on their device download your app from
Amazon Market, how would your app react if fails to find ZXing (i.e.
if it fails the "market:" intent)? If your app fails gracefully and
your app is still (fully) functional, Amazon shouldn't complain. But
if your app just raises an error and, for example, quits your app,
Amazon has a point of rejecting your app.

If your app handles a lack of the "market:" scheme/intent gracefully
but Amazon just tried it on a phone *with* Android Market installed
and didn't like the fact that the Android Market activity was started,
then I think Amazon is wrong. They can require apps to handle missing
functionality gracefully, but they should not forbid any searches
using the Android Market if Android Market is installed.

On Jan 14, 4:26 pm, blindfold  wrote:
> My app got rejected by Amazon Appstore today because it searches for a
> third-party app (the well-known free ZXing barcode reader) on Android
> Market if the user tries to launch it from my app and it is not
> installed. The barcode reader acts as a functional extension to my
> app, launched via an intent, and I would not even know if it will come
> to Amazon Appstore. So I'm not pleased with the Amazon Appstore
> restrictions, and do not know of an elegant way to deal with this use
> case. There is a related and ongoing discussion in the android-discuss
> thread "Amazon Market - First red 
> flag"http://groups.google.com/group/android-discuss/browse_thread/thread/1...
>
> On Jan 5, 11:05 pm, Leon Moreyn-Android Development
>
>
>
>  wrote:
> > The almighty Amazon.com feels that is should police the Android
> > Market  for proper applications. On one hand I think this could be a
> > good idea but on the other hand this feels took much like an Apple iOS
> > development clone. With Amazon developing its own market place and
> > limiting which apps can appear there you are guaranteed a visible
> > market for your application. People who pursue amazon will know that
> > your app may meet some sort of standard and may consider buying it.
> > But just as good as that is, if Amazon is backed up with testing your
> > application and like apple takes two weeks to reject your application
> > based on some sort of merit what is to stop me from just uploading my
> > application directly to the market place. ABSOLUTELY NOTHING. As
> > someone who develops on both sides of the spectrum I don't see the
> > implement of this Amazon App Market place as a good idea. I am curious
> > as to other developers take on this and how many plan to actually
> > develop to meet the amazon market guidelines.- Hide quoted text -
>
> - Show quoted text -

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Creating Custom Keyboards

2011-01-14 Thread TreKing
On Tue, Jan 11, 2011 at 7:03 AM, Matt  wrote:

> Does anyone know of any useful resources available for building
> custom keyboards for android, or have any practical experience?
>

http://developer.android.com/resources/samples/SoftKeyboard/index.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Calling activity from Stub

2011-01-14 Thread TreKing
On Sat, Jan 8, 2011 at 6:48 AM, Tux  wrote:

>
> So, to be clear, How can I call an activity from a non-activity class?
>

You answered your own question:

Btw i know I can pass the instance of the calling activity of the
> non-activity class as a parameter, but I need something else for design
> purposes.


Rethink your design.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] SMS application

2011-01-14 Thread jesse
hi:

 I want to build a SMS application that can intercept certain SMS
messages so that they won't be available to system inbox
or other SMS applications.

 is there any special API to achieve this?

  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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Loader files deletion

2011-01-14 Thread Phil Endecott
On Jan 14, 1:38 pm, Andy  wrote:
> Hi,
> I have a dictionary app, and its loads all the data from the Loader
> text files (as raw files), into SQL lite database initially.

Why not ship a prepopulated SQLlite database file?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Simple compass functionality

2011-01-14 Thread Phil Endecott
It seems that Display.getOrientation() probably returns the same
constants as the new Display.getRotation(), i.e. Surface.ROTATION_n,
and that it *does* potentially return all 4 values.  Good.  It's
unfortunate that this information was removed from the docs when
getOrientation() was deprecated: could it be re-instated?  I now
cannot understand why Google Maps gets its compass pointer wrong half
the time, but I'm glad I discovered that now, rather than while
actually trying to use it for navigation!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Simple compass functionality

2011-01-14 Thread Kostya Vasilyev
This is an artifact of a continously evolving platform.

I'd say, use Java reflection to access the new methods that give you new
orientation values, and fall back on the deprecated method if running on
older platforms.

Reverse Landscape was only introduced in API level 8, so the earlier
platforms don't have this notion yet.

IMO, it's ok to use a deprecated method like this - after all, documenting
an API as obsolete because there is a newer API in the newer platform
doesn't change anything on devices with older firmware that are already out
there, or in the applications written for earlier platform versions.

The intent is to say "don't use this if you can use the newer API", but for
older platforms, there isn't anything else but the old API, so go ahead and
use it as a fallback.

-- Kostya

2011/1/14 Phil Endecott 

> On Jan 11, 5:00 pm, Phil Endecott 
> wrote:
> > There is a deprecated method Display.getOrientation().  Perhaps that
> > is what I'm supposed to use, however its docs seem to have been
> > removed when it was deprecated (Please Don't Do That!).  Googling
> > suggests that perhaps it returns values like
> > Configuration.ORIENTATION_PORTRAIT and
> > Configuration.ORIENTATION_LANDSCAPE, i.e. not including "left" or
> > "right" or "upside-down" information, making it useless.
>
> Experimenting with the Google Maps app, it seems that its compass
> arrow points the wrong way in one of the two landscape orientations.
> So my guess is that it is using Display.getOrientation(), and then
> guessing wrongly 50% of the time if the answer is "landscape".  (It
> doesn't seem to allow upside-down portrait.)
>
> Is there really no better way to 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Power Control Widget shown when my own Widget is updated by AppWidgetManager

2011-01-14 Thread Kostya Vasilyev
I went an looked at the code (TreKing is right about the image though - if
you post an image link, make sure it's accessible by anyone).

Your bug is here:

AppWidgetManager appWidgetManager =
AppWidgetManager.getInstance(getApplicationContext());
ComponentName componentName = new ComponentName(getApplicationContext(),
Widget.class);
int[] ids = appWidgetManager.getAppWidgetIds(componentName);
Intent update_widget = new Intent();
update_widget.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, ids);
update_widget.setAction(AppWidgetManager.ACTION_APPWIDGET_UPDATE);
getApplicationContext().sendBroadcast(update_widget);

What this code does is sends an update broadcast to all receivers (== all
widgets) that exist in the system at this time, but using your own set of
widget ids.

Widget ids are not unique to your application, they are assigned globally.
When other widgets see this event, they "think" that the home screen
application is asking them to update their views - in screen cells idetified
by *your* widgets. And that is what you are seeing.

To update your widgets "on demand" - as opposed to from onUpdate - do this:

AppWidgetManager manager = AppWidgetManager.getInstance(context);
ComponentName thisWidget = new ComponentName(context, YourWidget.class);
int[] widgetIds = manager.getAppWidgetIds(thisWidget);

for (int widgetId : widgetIds) {
 RemoteViews updateViews = ;
  manager.updateAppWidget(widgetId, updateViews);
}

or

manager.updateAppWidget(thisWidget, updateViews)

if all your widgets have the same visual state at any given time.

You can run this code from anywhere within your application, such as a
BroadcastReceiver that handles clicks on your widget (probably more fitting
than starting an activity without a content view, which immediately
finishes).

Actually, you can handle the PendingIntent for clicks in your
AppWidgetProvider, since it's a subclass of BroadcastReceiver.

-- Kostya

2011/1/15 TreKing 

> On Thu, Jan 6, 2011 at 7:20 PM, ChemDroid wrote:
>
>> when I manually update my widget via AppWidgetManager.updateAppWidget
>> my widget shows the power-control-widget for a short moment as seen in
>> this screenshot:
>> http://forum.xda-developers.com/attachment.php?attachmentid=474576&d=1293489008
>>
>
> Results in:
>
> You are not logged in or you do not have permission to access this page.
>> This could be due to one of several reasons:
>>
>>1. You are not logged in. Fill in the form at the bottom of this page
>>and try again.
>>
>>
>>1. You may not have sufficient privileges to access this page.
>>
>>
>>1. If you are trying to post or download, your account may be awaiting
>>activation or you may need to register.
>>
>>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Detect if app is installed

2011-01-14 Thread Kostya Vasilyev
I can understand where you're coming from.

It annoys me to see an ad for an Android app, taking up valuable screen real
estate, every time I visit the IMDB.

What would work for me as a user is a simple close box next to this
advertisement, which would be remembered between visits (saved as a cookie
in my phone's browser).

-- Kostya

2011/1/15 TreKing 

> On Fri, Jan 14, 2011 at 3:37 PM, ls02  wrote:
>
>> User may land on my Web page in external Web browser in which case I have
>> no control to inject any code from the app.
>>
>
> Correct. Which is why this is where you display the generic market URL,
> even if they're on their phones and have you app installed (which you can't
> know, as we've established).
>
>
>> Say you have a Web page that uses Flash. Do you want to mesage to
>> your customers link to install Flash EVERY SINGLE TIME they visit your
>> page instead of trying to dynamically discover if Flash is installed
>> and directing customers to install Flash ONLY if it is not installed?
>> Sounds trivial.
>>
>
> It is trivial - if the application you're are trying to detect runs in the
> same environment in which the user is running. In your example the Flash app
> runs in the browser, which is where the Flash plug-in will be. In Android
> it's fairly trivial to detect if another app is installed. However, trying
> to dynamically discover what may or may not be running in a completely
> different, unrelated environment without any "hooks" on both ends is not so
> trivial.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Widget - NO API to find out Widget is in Foreground or Background. Any other Alternative API's to achieve this Functionality

2011-01-14 Thread Kostya Vasilyev
Sam,

There is no "background" or "foreground" state for home screen widgets since
they are never allowed to overlap.

If you would like to perform an expensive (CPU or battery-wise) continuous
update, and looking for a way to optimize by checking for home screen
visibility - well, this might not be a good idea, as that's not really what
home screen widgets are for.

2011/1/15 TreKing 

> On Fri, Jan 7, 2011 at 3:39 AM, Sam CR  wrote:
>
>> How to find out Widget is in Foreground or Background. Anybody help me
>> how to find out when Widget is in Foreground or Background. As per my
>> knowledge there is NO API.
>>
>
> Explaining why you need to know this might help get you an alternate
> solution.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Detect if app is installed

2011-01-14 Thread TreKing
On Fri, Jan 14, 2011 at 3:37 PM, ls02  wrote:

> User may land on my Web page in external Web browser in which case I have
> no control to inject any code from the app.
>

Correct. Which is why this is where you display the generic market URL, even
if they're on their phones and have you app installed (which you can't know,
as we've established).


> Say you have a Web page that uses Flash. Do you want to mesage to
> your customers link to install Flash EVERY SINGLE TIME they visit your
> page instead of trying to dynamically discover if Flash is installed
> and directing customers to install Flash ONLY if it is not installed?
> Sounds trivial.
>

It is trivial - if the application you're are trying to detect runs in the
same environment in which the user is running. In your example the Flash app
runs in the browser, which is where the Flash plug-in will be. In Android
it's fairly trivial to detect if another app is installed. However, trying
to dynamically discover what may or may not be running in a completely
different, unrelated environment without any "hooks" on both ends is not so
trivial.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Power Control Widget shown when my own Widget is updated by AppWidgetManager

2011-01-14 Thread TreKing
On Thu, Jan 6, 2011 at 7:20 PM, ChemDroid  wrote:

> when I manually update my widget via AppWidgetManager.updateAppWidget
> my widget shows the power-control-widget for a short moment as seen in
> this screenshot:
> http://forum.xda-developers.com/attachment.php?attachmentid=474576&d=1293489008
>

Results in:

You are not logged in or you do not have permission to access this page.
> This could be due to one of several reasons:
>
>1. You are not logged in. Fill in the form at the bottom of this page
>and try again.
>
>
>1. You may not have sufficient privileges to access this page.
>
>
>1. If you are trying to post or download, your account may be awaiting
>activation or you may need to register.
>
>
-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Amazon to Policy Android Market Place

2011-01-14 Thread Indicator Veritatis
So do I, which is why my free app is available on SlideMe.org,
Getjar.com, but not on Google's Android Market.

On Jan 14, 7:28 am, Brill Pappin  wrote:
> What exaclty is the problem?
> I welcome them for 2 primary reasons.
> a) The Google Market is a mess of crap. Really brings thigns down for
> people who actually care about what they provide.
> b) It'll give Google a kick in the pants, because they certainly
> haven't made improving the Market a priority.
>
> Frankly I welcome the competition to Google's Market.
>
> - Brill Pappin
>
> On Jan 5, 5:05 pm, Leon Moreyn-Android Development
>
>  wrote:
> > The almighty Amazon.com feels that is should police the Android
> > Market  for proper applications. On one hand I think this could be a
> > good idea but on the other hand this feels took much like an Apple iOS
> > development clone. With Amazon developing its own market place and
> > limiting which apps can appear there you are guaranteed a visible
> > market for your application. People who pursue amazon will know that
> > your app may meet some sort of standard and may consider buying it.
> > But just as good as that is, if Amazon is backed up with testing your
> > application and like apple takes two weeks to reject your application
> > based on some sort of merit what is to stop me from just uploading my
> > application directly to the market place. ABSOLUTELY NOTHING. As
> > someone who develops on both sides of the spectrum I don't see the
> > implement of this Amazon App Market place as a good idea. I am curious
> > as to other developers take on this and how many plan to actually
> > develop to meet the amazon market guidelines.
>
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: layout issues, is the reason minsdk=3?

2011-01-14 Thread Kostya Vasilyev
Do you have supports-screens in the manifest?

2011/1/15 Gabriel Simões 

> No help on this one? No one ever stepped on this same problem, mainly
> with htc wildfire or using minsdk=3 (even with targetsdk=4 or above)?
>
> tnx!
>
> On 13 jan, 22:28, Gabriel Simões  wrote:
> > Hello dear developers, how are you doing?
> >
> > After many months developing for android using only the emulator my
> > test device I finally got a real device. When I thought everything was
> > perfect and I was finally testing on an environment that would mimic
> > every user's device, I found out that "the world is not that
> > beautiful, at all!", hehehe.
> >
> > I´d like to ask for your help for an issue I can´t find information
> > about:
> >
> > Every layout I code I check on the emulator for android 1.5 and above.
> > There everything looks just the way I want, that´s my parameter. When
> > I started seing the app running on different devices I found out that
> > many thing do not show just like the emulator, and I´m not talking
> > about different UI components' skins  I´m talking about
> >
> > - Buttons that appear with sides "sliced"
> > - Components out of place
> > - Texts that do not appear on spinners
> > - Images blurred
> > - Etc...
> >
> > HTC wildfire seems to be one of the most problematic devices ... using
> > relative layout components show up out of place, one in front of the
> > other, etc. When I check on the emulator, everything looks great!
> > I received one complain and a tip from an android market user saying
> > that removing android 1.5 from my manifest (minsdk=4) fixes the
> > problem. On the other side I wouldn´t like to drop support to 1.5 nor
> > place the same app twice on the market (one for 1.5 and one for 1.6
> > and above).
> > Have you ever faced this problem? If so, how have you solved it?
> >
> > Thanks,
> > Gabriel Simões
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Code Assist still Slow

2011-01-14 Thread Kostya Vasilyev
I just submitted information on the Android JavaDoc issue here for Eclipse:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=325829

The same JavaDoc package, "Documentation for Android SDK", worked without a
single hiccup with Eclipse 3.5 SR2 (same computer).

-- Kostya

2011/1/15 snpe 

> Kostya,
>
> IMO, there isn't bug in Eclipse for the problem related with Javadoc
> attachment. I can reproduce them when using javadoc from master AOSP
> (I have trying CA for TextView.setText()).
> It's possible that it isn't correct Javadoc, but it's bug in Helios
> still - Helios doesn't handle correctly missing Javadoc.
> For instance, if some method doesn't have Javadoc, Helious search
> Javadoc contents for this method over and over again.
> I suppose that we have create a new Eclipse bug.
>
> Peco
>
> PS
> I have created https://review.source.android.com/#change,20460 that
> enables removing Javadoc in Android classpath container.
>
> On Jan 14, 8:45 pm, Kostya Vasilyev  wrote:
> > Peco,
> >
> > Thanks for the info regarding Javadoc. I uninstalled Documentation for
> > Android SDK using the SDK/AVD Manager and code assist does not freeze
> > anymore.
> >
> > Would be nice to get Javadoc in CA back at some point, but for me, it's
> not
> > critical.
> >
> > You say that it looks like a problem in Helios - is there a bug for this
> in
> > Eclipse's tracker?
> >
> > -- Kostya
> >
> > 2011/1/14 snpe 
> >
> > > It looks that there is problem with Javadoc attachment in Helios.
> > > It's very slow for some methods (View.saveHierarchyState
> > > (SparseArray container), for instance
> > > this method is searched again and again when CA some view's method.
> > > Settings Javadoc to null fixes the issue (you haven't javadoc, of
> > > course, but CA works correctly).
> > > Unfortunately, because of bug in Android classpath container it isn't
> > > possible to change javadoc attachment.
> > > I have createdhttp://code.google.com/p/android/issues/detail?id=14017
> >
> > > I will try to find better workaround (something without excluding
> > > Javadoc)
> >
> > > Regards,
> > > Peco
> >
> > > > I am using classic Helios 3.6.1 with ADT 8.0.1 so both issues should
> > > > be resolved.
> >
> > > > An easy way to replicate the issue is to get code assist with a
> > > > partial entry having several possibilities, such as:
> >
> > > > WebView web;
> >
> > > > ...
> >
> > > > web.g 
> > > > I then wait 30 seconds to two minutes.
> >
> > > > I have tried in a fresh project and a production project, both with
> > > > the same result.
> >
> > > > I verified that I do have some components of WTP but JAX-WS proposals
> > > > are not listed on the list. These appear to be bundled for XML
> > > > editing.
> >
> > > > On Jan 11, 7:34 am, snpe  wrote:
> >
> > > > > There are two problems related to code assists with ADT and Helios.
> >
> > > > > 1) ADT problem related to classpath container described onhttp://
> > > code.google.com/p/android/issues/detail?id=7850#c7
> > > > > It is fixed in ADT 8.0.x
> >
> > > > > 2) problem with WTP Webservices context assist.  Seehttps://
> > > bugs.eclipse.org/bugs/show_bug.cgi?id=317979
> > > > > It isn't related to ADT.
> > > > > Workaround
> > > > > Open Window>Preferences>Java>Editor>Content Assist>Advanced
> > > > > and disable JAX-WS Proposals
> > > > > This issue is fixed in current WTP
> >
> > > > > Could you provide test case if this doesn't help ?
> >
> > > > > Regards,
> > > > > Peco
> > > > > On Jan 8, 12:31 am, Dan  wrote:
> >
> > > > > > After upgrading to ADT 8.0.1 with Eclipse Helios (3.6.1) I am
> still
> > > > > > getting freezes with code assist. Does anyone have any ideas to
> fix
> > > or
> > > > > > is this still a bug?
> >
> > > --
> > > 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, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: layout issues, is the reason minsdk=3?

2011-01-14 Thread Gabriel Simões
No help on this one? No one ever stepped on this same problem, mainly
with htc wildfire or using minsdk=3 (even with targetsdk=4 or above)?

tnx!

On 13 jan, 22:28, Gabriel Simões  wrote:
> Hello dear developers, how are you doing?
>
> After many months developing for android using only the emulator my
> test device I finally got a real device. When I thought everything was
> perfect and I was finally testing on an environment that would mimic
> every user's device, I found out that "the world is not that
> beautiful, at all!", hehehe.
>
> I´d like to ask for your help for an issue I can´t find information
> about:
>
> Every layout I code I check on the emulator for android 1.5 and above.
> There everything looks just the way I want, that´s my parameter. When
> I started seing the app running on different devices I found out that
> many thing do not show just like the emulator, and I´m not talking
> about different UI components' skins  I´m talking about
>
> - Buttons that appear with sides "sliced"
> - Components out of place
> - Texts that do not appear on spinners
> - Images blurred
> - Etc...
>
> HTC wildfire seems to be one of the most problematic devices ... using
> relative layout components show up out of place, one in front of the
> other, etc. When I check on the emulator, everything looks great!
> I received one complain and a tip from an android market user saying
> that removing android 1.5 from my manifest (minsdk=4) fixes the
> problem. On the other side I wouldn´t like to drop support to 1.5 nor
> place the same app twice on the market (one for 1.5 and one for 1.6
> and above).
> Have you ever faced this problem? If so, how have you solved it?
>
> Thanks,
> Gabriel Simões

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Detect if app is installed

2011-01-14 Thread ls02
User may land on my Web page in external Web browser in which case I
have no control to inject any code from the app.

Say you have a Web page that uses Flash. Do you want to mesage to your
customers link to install Flash EVERY SINGLE TIME they visit your page
instead of trying to dynamically discover if Flash is installed and
directing customers to install Flash ONLY if it is not installed?
Sounds trivial.

On Jan 14, 4:26 pm, TreKing  wrote:
> On Fri, Jan 14, 2011 at 3:13 PM, ls02  wrote:
> > I obviously do not want to show the link to Android market app install if
> > user has already app installed.
>
> As I said, if your user has your app installed, you can control the Webview,
> which includes which pages you show them, which allows you to not show them
> the page that links them back to the market, if the thought of doing so is
> so offensive to you.
>
> ---­--
> TreKing  - Chicago
> transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Detect if app is installed

2011-01-14 Thread TreKing
On Fri, Jan 14, 2011 at 3:13 PM, ls02  wrote:

> I obviously do not want to show the link to Android market app install if
> user has already app installed.
>

As I said, if your user has your app installed, you can control the Webview,
which includes which pages you show them, which allows you to not show them
the page that links them back to the market, if the thought of doing so is
so offensive to you.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Amazon to Policy Android Market Place

2011-01-14 Thread blindfold
My app got rejected by Amazon Appstore today because it searches for a
third-party app (the well-known free ZXing barcode reader) on Android
Market if the user tries to launch it from my app and it is not
installed. The barcode reader acts as a functional extension to my
app, launched via an intent, and I would not even know if it will come
to Amazon Appstore. So I'm not pleased with the Amazon Appstore
restrictions, and do not know of an elegant way to deal with this use
case. There is a related and ongoing discussion in the android-discuss
thread "Amazon Market - First red flag"
http://groups.google.com/group/android-discuss/browse_thread/thread/1879410c513b7df3/

On Jan 5, 11:05 pm, Leon Moreyn-Android Development
 wrote:
> The almighty Amazon.com feels that is should police the Android
> Market  for proper applications. On one hand I think this could be a
> good idea but on the other hand this feels took much like an Apple iOS
> development clone. With Amazon developing its own market place and
> limiting which apps can appear there you are guaranteed a visible
> market for your application. People who pursue amazon will know that
> your app may meet some sort of standard and may consider buying it.
> But just as good as that is, if Amazon is backed up with testing your
> application and like apple takes two weeks to reject your application
> based on some sort of merit what is to stop me from just uploading my
> application directly to the market place. ABSOLUTELY NOTHING. As
> someone who develops on both sides of the spectrum I don't see the
> implement of this Amazon App Market place as a good idea. I am curious
> as to other developers take on this and how many plan to actually
> develop to meet the amazon market guidelines.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Code Assist still Slow

2011-01-14 Thread snpe
Daniel,

Could you please tell us what is in your Javadoc attachment ?

Thanks,
Peco

On Jan 14, 10:03 pm, Daniel Schultze  wrote:
> Just tried View and it works well, no delay with javadoc.
>
> On Fri, Jan 14, 2011 at 12:48 PM, Kostya Vasilyev wrote:
>
> > Have you tried code-assisting a view reference?
>
> > I did the "sources" thing, and didn't have to disable JAX-WS because I
> > don't have it, but bringing up methods of a view was still slow.
>
> > Removing Docs did fix it completely.
>
> > -- Kostya
>
> > 2011/1/14 Dan 
>
> > Peco and Kostya,
>
> >> I've removed the code and added the source. I receive no delay and
> >> have javadoc. :)
>
> >> -Dan
>
> >> On Jan 14, 11:45 am, Kostya Vasilyev  wrote:
> >> > Peco,
>
> >> > Thanks for the info regarding Javadoc. I uninstalled Documentation for
> >> > Android SDK using the SDK/AVD Manager and code assist does not freeze
> >> > anymore.
>
> >> > Would be nice to get Javadoc in CA back at some point, but for me, it's
> >> not
> >> > critical.
>
> >> > You say that it looks like a problem in Helios - is there a bug for this
> >> in
> >> > Eclipse's tracker?
>
> >> > -- Kostya
>
> >> > 2011/1/14 snpe 
>
> >> > > It looks that there is problem with Javadoc attachment in Helios.
> >> > > It's very slow for some methods (View.saveHierarchyState
> >> > > (SparseArray container), for instance
> >> > > this method is searched again and again when CA some view's method.
> >> > > Settings Javadoc to null fixes the issue (you haven't javadoc, of
> >> > > course, but CA works correctly).
> >> > > Unfortunately, because of bug in Android classpath container it isn't
> >> > > possible to change javadoc attachment.
> >> > > I have createdhttp://code.google.com/p/android/issues/detail?id=14017
>
> >> > > I will try to find better workaround (something without excluding
> >> > > Javadoc)
>
> >> > > Regards,
> >> > > Peco
>
> >> > > > I am using classic Helios 3.6.1 with ADT 8.0.1 so both issues should
> >> > > > be resolved.
>
> >> > > > An easy way to replicate the issue is to get code assist with a
> >> > > > partial entry having several possibilities, such as:
>
> >> > > > WebView web;
>
> >> > > > ...
>
> >> > > > web.g 
> >> > > > I then wait 30 seconds to two minutes.
>
> >> > > > I have tried in a fresh project and a production project, both with
> >> > > > the same result.
>
> >> > > > I verified that I do have some components of WTP but JAX-WS
> >> proposals
> >> > > > are not listed on the list. These appear to be bundled for XML
> >> > > > editing.
>
> >> > > > On Jan 11, 7:34 am, snpe  wrote:
>
> >> > > > > There are two problems related to code assists with ADT and
> >> Helios.
>
> >> > > > > 1) ADT problem related to classpath container described onhttp://
> >> > > code.google.com/p/android/issues/detail?id=7850#c7
> >> > > > > It is fixed in ADT 8.0.x
>
> >> > > > > 2) problem with WTP Webservices context assist.  Seehttps://
> >> > > bugs.eclipse.org/bugs/show_bug.cgi?id=317979
> >> > > > > It isn't related to ADT.
> >> > > > > Workaround
> >> > > > > Open Window>Preferences>Java>Editor>Content Assist>Advanced
> >> > > > > and disable JAX-WS Proposals
> >> > > > > This issue is fixed in current WTP
>
> >> > > > > Could you provide test case if this doesn't help ?
>
> >> > > > > Regards,
> >> > > > > Peco
> >> > > > > On Jan 8, 12:31 am, Dan  wrote:
>
> >> > > > > > After upgrading to ADT 8.0.1 with Eclipse Helios (3.6.1) I am
> >> still
> >> > > > > > getting freezes with code assist. Does anyone have any ideas to
> >> fix
> >> > > or
> >> > > > > > is this still a bug?
>
> >> > > --
> >> > > 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 >> cr...@googlegroups.com>
> >> > > For more options, visit this group at
> >> > >http://groups.google.com/group/android-developers?hl=en
>
> >> --
> >> 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, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en
>
> >  --
> > 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, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send e

Re: [android-developers] Widget - NO API to find out Widget is in Foreground or Background. Any other Alternative API's to achieve this Functionality

2011-01-14 Thread TreKing
On Fri, Jan 7, 2011 at 3:39 AM, Sam CR  wrote:

> How to find out Widget is in Foreground or Background. Anybody help me
> how to find out when Widget is in Foreground or Background. As per my
> knowledge there is NO API.
>

Explaining why you need to know this might help get you an alternate
solution.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Detect if app is installed

2011-01-14 Thread ls02
I obviously do not want to show the link to Android market app install
if user has already app installed.

On Jan 14, 3:40 pm, TreKing  wrote:
> On Fri, Jan 14, 2011 at 2:16 PM, ls02  wrote:
> > My app registers http schema and com.mycompany.myapp host so if it
> > is installed when user clicks on the link the app will be launched from the
> > page and will detect the intent and perform "Very Cool Stuff" action.
>
> Thanks. This of course begs the questions of why you have to go through your
> website to "do very cool stuff" and not just within the app itself.
>
> Ultimately, this doesn't seem possible. My suggestion would be, as has been
> said, a market link on your site to get your app. Then in your app you
> include a WebView where you can explicitly control access to your site. Then
> you know your app is installed and can do "very cool stuff" through
> javascript bindings or something.
>
> ---­--
> TreKing  - Chicago
> transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] TableLayout TableRows do not fit into screen. ImageView auto scaling.

2011-01-14 Thread TreKing
On Fri, Jan 7, 2011 at 3:10 AM, Vadim Vohmjanin  wrote:

> Problem is for now, i have only 4 TableRows drawn with ImageViews in it.
> The last one 5th TableRow is shrinked to fit the space on the screen that
> has left after drawing first 4 TableRows. 6th and 7th TableRows are not
> drawn at all, since there is no space for them on the screen left.
>

Put your table in a ScrollView.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Code Assist still Slow

2011-01-14 Thread snpe
Kostya,

IMO, there isn't bug in Eclipse for the problem related with Javadoc
attachment. I can reproduce them when using javadoc from master AOSP
(I have trying CA for TextView.setText()).
It's possible that it isn't correct Javadoc, but it's bug in Helios
still - Helios doesn't handle correctly missing Javadoc.
For instance, if some method doesn't have Javadoc, Helious search
Javadoc contents for this method over and over again.
I suppose that we have create a new Eclipse bug.

Peco

PS
I have created https://review.source.android.com/#change,20460 that
enables removing Javadoc in Android classpath container.

On Jan 14, 8:45 pm, Kostya Vasilyev  wrote:
> Peco,
>
> Thanks for the info regarding Javadoc. I uninstalled Documentation for
> Android SDK using the SDK/AVD Manager and code assist does not freeze
> anymore.
>
> Would be nice to get Javadoc in CA back at some point, but for me, it's not
> critical.
>
> You say that it looks like a problem in Helios - is there a bug for this in
> Eclipse's tracker?
>
> -- Kostya
>
> 2011/1/14 snpe 
>
> > It looks that there is problem with Javadoc attachment in Helios.
> > It's very slow for some methods (View.saveHierarchyState
> > (SparseArray container), for instance
> > this method is searched again and again when CA some view's method.
> > Settings Javadoc to null fixes the issue (you haven't javadoc, of
> > course, but CA works correctly).
> > Unfortunately, because of bug in Android classpath container it isn't
> > possible to change javadoc attachment.
> > I have createdhttp://code.google.com/p/android/issues/detail?id=14017
>
> > I will try to find better workaround (something without excluding
> > Javadoc)
>
> > Regards,
> > Peco
>
> > > I am using classic Helios 3.6.1 with ADT 8.0.1 so both issues should
> > > be resolved.
>
> > > An easy way to replicate the issue is to get code assist with a
> > > partial entry having several possibilities, such as:
>
> > > WebView web;
>
> > > ...
>
> > > web.g 
> > > I then wait 30 seconds to two minutes.
>
> > > I have tried in a fresh project and a production project, both with
> > > the same result.
>
> > > I verified that I do have some components of WTP but JAX-WS proposals
> > > are not listed on the list. These appear to be bundled for XML
> > > editing.
>
> > > On Jan 11, 7:34 am, snpe  wrote:
>
> > > > There are two problems related to code assists with ADT and Helios.
>
> > > > 1) ADT problem related to classpath container described onhttp://
> > code.google.com/p/android/issues/detail?id=7850#c7
> > > > It is fixed in ADT 8.0.x
>
> > > > 2) problem with WTP Webservices context assist.  Seehttps://
> > bugs.eclipse.org/bugs/show_bug.cgi?id=317979
> > > > It isn't related to ADT.
> > > > Workaround
> > > > Open Window>Preferences>Java>Editor>Content Assist>Advanced
> > > > and disable JAX-WS Proposals
> > > > This issue is fixed in current WTP
>
> > > > Could you provide test case if this doesn't help ?
>
> > > > Regards,
> > > > Peco
> > > > On Jan 8, 12:31 am, Dan  wrote:
>
> > > > > After upgrading to ADT 8.0.1 with Eclipse Helios (3.6.1) I am still
> > > > > getting freezes with code assist. Does anyone have any ideas to fix
> > or
> > > > > is this still a bug?
>
> > --
> > 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, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Code Assist still Slow

2011-01-14 Thread Daniel Schultze
Just tried View and it works well, no delay with javadoc.

On Fri, Jan 14, 2011 at 12:48 PM, Kostya Vasilyev wrote:

> Have you tried code-assisting a view reference?
>
> I did the "sources" thing, and didn't have to disable JAX-WS because I
> don't have it, but bringing up methods of a view was still slow.
>
> Removing Docs did fix it completely.
>
> -- Kostya
>
> 2011/1/14 Dan 
>
> Peco and Kostya,
>>
>> I've removed the code and added the source. I receive no delay and
>> have javadoc. :)
>>
>> -Dan
>>
>> On Jan 14, 11:45 am, Kostya Vasilyev  wrote:
>> > Peco,
>> >
>> > Thanks for the info regarding Javadoc. I uninstalled Documentation for
>> > Android SDK using the SDK/AVD Manager and code assist does not freeze
>> > anymore.
>> >
>> > Would be nice to get Javadoc in CA back at some point, but for me, it's
>> not
>> > critical.
>> >
>> > You say that it looks like a problem in Helios - is there a bug for this
>> in
>> > Eclipse's tracker?
>> >
>> > -- Kostya
>> >
>> > 2011/1/14 snpe 
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > > It looks that there is problem with Javadoc attachment in Helios.
>> > > It's very slow for some methods (View.saveHierarchyState
>> > > (SparseArray container), for instance
>> > > this method is searched again and again when CA some view's method.
>> > > Settings Javadoc to null fixes the issue (you haven't javadoc, of
>> > > course, but CA works correctly).
>> > > Unfortunately, because of bug in Android classpath container it isn't
>> > > possible to change javadoc attachment.
>> > > I have createdhttp://code.google.com/p/android/issues/detail?id=14017
>> >
>> > > I will try to find better workaround (something without excluding
>> > > Javadoc)
>> >
>> > > Regards,
>> > > Peco
>> >
>> > > > I am using classic Helios 3.6.1 with ADT 8.0.1 so both issues should
>> > > > be resolved.
>> >
>> > > > An easy way to replicate the issue is to get code assist with a
>> > > > partial entry having several possibilities, such as:
>> >
>> > > > WebView web;
>> >
>> > > > ...
>> >
>> > > > web.g 
>> > > > I then wait 30 seconds to two minutes.
>> >
>> > > > I have tried in a fresh project and a production project, both with
>> > > > the same result.
>> >
>> > > > I verified that I do have some components of WTP but JAX-WS
>> proposals
>> > > > are not listed on the list. These appear to be bundled for XML
>> > > > editing.
>> >
>> > > > On Jan 11, 7:34 am, snpe  wrote:
>> >
>> > > > > There are two problems related to code assists with ADT and
>> Helios.
>> >
>> > > > > 1) ADT problem related to classpath container described onhttp://
>> > > code.google.com/p/android/issues/detail?id=7850#c7
>> > > > > It is fixed in ADT 8.0.x
>> >
>> > > > > 2) problem with WTP Webservices context assist.  Seehttps://
>> > > bugs.eclipse.org/bugs/show_bug.cgi?id=317979
>> > > > > It isn't related to ADT.
>> > > > > Workaround
>> > > > > Open Window>Preferences>Java>Editor>Content Assist>Advanced
>> > > > > and disable JAX-WS Proposals
>> > > > > This issue is fixed in current WTP
>> >
>> > > > > Could you provide test case if this doesn't help ?
>> >
>> > > > > Regards,
>> > > > > Peco
>> > > > > On Jan 8, 12:31 am, Dan  wrote:
>> >
>> > > > > > After upgrading to ADT 8.0.1 with Eclipse Helios (3.6.1) I am
>> still
>> > > > > > getting freezes with code assist. Does anyone have any ideas to
>> fix
>> > > or
>> > > > > > is this still a bug?
>> >
>> > > --
>> > > 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> cr...@googlegroups.com>
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> 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, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>  --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers

Re: [android-developers] path problems?

2011-01-14 Thread TreKing
On Thu, Jan 6, 2011 at 10:11 PM, Boyd Speer  wrote:

> neither the programmatic or the xml approach seems to work. the virtual
> device appears but the app never finishes loading. I get errors - 'Bundle
> URL not found at (a path...).


You should probably elaborate on what errors you're getting. Describe in
detail what you're seeing on the emulator, maybe with some pretty pictures
to assist.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Code Assist still Slow

2011-01-14 Thread Kostya Vasilyev
Have you tried code-assisting a view reference?

I did the "sources" thing, and didn't have to disable JAX-WS because I don't
have it, but bringing up methods of a view was still slow.

Removing Docs did fix it completely.

-- Kostya

2011/1/14 Dan 

> Peco and Kostya,
>
> I've removed the code and added the source. I receive no delay and
> have javadoc. :)
>
> -Dan
>
> On Jan 14, 11:45 am, Kostya Vasilyev  wrote:
> > Peco,
> >
> > Thanks for the info regarding Javadoc. I uninstalled Documentation for
> > Android SDK using the SDK/AVD Manager and code assist does not freeze
> > anymore.
> >
> > Would be nice to get Javadoc in CA back at some point, but for me, it's
> not
> > critical.
> >
> > You say that it looks like a problem in Helios - is there a bug for this
> in
> > Eclipse's tracker?
> >
> > -- Kostya
> >
> > 2011/1/14 snpe 
> >
> >
> >
> >
> >
> >
> >
> > > It looks that there is problem with Javadoc attachment in Helios.
> > > It's very slow for some methods (View.saveHierarchyState
> > > (SparseArray container), for instance
> > > this method is searched again and again when CA some view's method.
> > > Settings Javadoc to null fixes the issue (you haven't javadoc, of
> > > course, but CA works correctly).
> > > Unfortunately, because of bug in Android classpath container it isn't
> > > possible to change javadoc attachment.
> > > I have createdhttp://code.google.com/p/android/issues/detail?id=14017
> >
> > > I will try to find better workaround (something without excluding
> > > Javadoc)
> >
> > > Regards,
> > > Peco
> >
> > > > I am using classic Helios 3.6.1 with ADT 8.0.1 so both issues should
> > > > be resolved.
> >
> > > > An easy way to replicate the issue is to get code assist with a
> > > > partial entry having several possibilities, such as:
> >
> > > > WebView web;
> >
> > > > ...
> >
> > > > web.g 
> > > > I then wait 30 seconds to two minutes.
> >
> > > > I have tried in a fresh project and a production project, both with
> > > > the same result.
> >
> > > > I verified that I do have some components of WTP but JAX-WS proposals
> > > > are not listed on the list. These appear to be bundled for XML
> > > > editing.
> >
> > > > On Jan 11, 7:34 am, snpe  wrote:
> >
> > > > > There are two problems related to code assists with ADT and Helios.
> >
> > > > > 1) ADT problem related to classpath container described onhttp://
> > > code.google.com/p/android/issues/detail?id=7850#c7
> > > > > It is fixed in ADT 8.0.x
> >
> > > > > 2) problem with WTP Webservices context assist.  Seehttps://
> > > bugs.eclipse.org/bugs/show_bug.cgi?id=317979
> > > > > It isn't related to ADT.
> > > > > Workaround
> > > > > Open Window>Preferences>Java>Editor>Content Assist>Advanced
> > > > > and disable JAX-WS Proposals
> > > > > This issue is fixed in current WTP
> >
> > > > > Could you provide test case if this doesn't help ?
> >
> > > > > Regards,
> > > > > Peco
> > > > > On Jan 8, 12:31 am, Dan  wrote:
> >
> > > > > > After upgrading to ADT 8.0.1 with Eclipse Helios (3.6.1) I am
> still
> > > > > > getting freezes with code assist. Does anyone have any ideas to
> fix
> > > or
> > > > > > is this still a bug?
> >
> > > --
> > > 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 cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> --
> 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, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Code Assist still Slow

2011-01-14 Thread Dan
Peco and Kostya,

I've removed the code and added the source. I receive no delay and
have javadoc. :)

-Dan

On Jan 14, 11:45 am, Kostya Vasilyev  wrote:
> Peco,
>
> Thanks for the info regarding Javadoc. I uninstalled Documentation for
> Android SDK using the SDK/AVD Manager and code assist does not freeze
> anymore.
>
> Would be nice to get Javadoc in CA back at some point, but for me, it's not
> critical.
>
> You say that it looks like a problem in Helios - is there a bug for this in
> Eclipse's tracker?
>
> -- Kostya
>
> 2011/1/14 snpe 
>
>
>
>
>
>
>
> > It looks that there is problem with Javadoc attachment in Helios.
> > It's very slow for some methods (View.saveHierarchyState
> > (SparseArray container), for instance
> > this method is searched again and again when CA some view's method.
> > Settings Javadoc to null fixes the issue (you haven't javadoc, of
> > course, but CA works correctly).
> > Unfortunately, because of bug in Android classpath container it isn't
> > possible to change javadoc attachment.
> > I have createdhttp://code.google.com/p/android/issues/detail?id=14017
>
> > I will try to find better workaround (something without excluding
> > Javadoc)
>
> > Regards,
> > Peco
>
> > > I am using classic Helios 3.6.1 with ADT 8.0.1 so both issues should
> > > be resolved.
>
> > > An easy way to replicate the issue is to get code assist with a
> > > partial entry having several possibilities, such as:
>
> > > WebView web;
>
> > > ...
>
> > > web.g 
> > > I then wait 30 seconds to two minutes.
>
> > > I have tried in a fresh project and a production project, both with
> > > the same result.
>
> > > I verified that I do have some components of WTP but JAX-WS proposals
> > > are not listed on the list. These appear to be bundled for XML
> > > editing.
>
> > > On Jan 11, 7:34 am, snpe  wrote:
>
> > > > There are two problems related to code assists with ADT and Helios.
>
> > > > 1) ADT problem related to classpath container described onhttp://
> > code.google.com/p/android/issues/detail?id=7850#c7
> > > > It is fixed in ADT 8.0.x
>
> > > > 2) problem with WTP Webservices context assist.  Seehttps://
> > bugs.eclipse.org/bugs/show_bug.cgi?id=317979
> > > > It isn't related to ADT.
> > > > Workaround
> > > > Open Window>Preferences>Java>Editor>Content Assist>Advanced
> > > > and disable JAX-WS Proposals
> > > > This issue is fixed in current WTP
>
> > > > Could you provide test case if this doesn't help ?
>
> > > > Regards,
> > > > Peco
> > > > On Jan 8, 12:31 am, Dan  wrote:
>
> > > > > After upgrading to ADT 8.0.1 with Eclipse Helios (3.6.1) I am still
> > > > > getting freezes with code assist. Does anyone have any ideas to fix
> > or
> > > > > is this still a bug?
>
> > --
> > 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 > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Detect if app is installed

2011-01-14 Thread TreKing
On Fri, Jan 14, 2011 at 2:16 PM, ls02  wrote:

> My app registers http schema and com.mycompany.myapp host so if it
> is installed when user clicks on the link the app will be launched from the
> page and will detect the intent and perform "Very Cool Stuff" action.
>

Thanks. This of course begs the questions of why you have to go through your
website to "do very cool stuff" and not just within the app itself.

Ultimately, this doesn't seem possible. My suggestion would be, as has been
said, a market link on your site to get your app. Then in your app you
include a WebView where you can explicitly control access to your site. Then
you know your app is installed and can do "very cool stuff" through
javascript bindings or something.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Detect if app is installed

2011-01-14 Thread Brill Pappin
Ok, that is a much better explanation.

You can control the error your site displays to the user through your
web server.
However the error you mention looks like it comes from the client
browser anyway.
I'm sure with a little thought you can use come ajax trickery to make
this look better and give the user your market link instead.
It doesn't sound like anyone (who has answered you) is doing this, so
your going to have to invent the solution for yourself.

- Brill Pappin

On Jan 14, 3:16 pm, ls02  wrote:
> I have something like this in the web page
>
> http://com.mycompany.myapp/do_very_cool_stuff";>Click to do
> Very Cool Stuff With The App
>
> My app registers http schema and com.mycompany.myapp host so if it is
> installed when user clicks on the link the app will be launched from
> the page and will detect the intent and perform "Very Cool Stuff"
> action.
>
> However if my app is not installed the browser will display "Web page
> not available" error
>
> "The web page "http://com.mycompany.myapp/do_very_cool_stuff"; might be
> temporarily down..."
>
> I want to handle this error and instead message to user to install the
> app.
>
> On Jan 14, 2:33 pm, Spiral123  wrote:
>
>
>
>
>
>
>
> > I would recommend you re-read the earlier post from Marcin.  Let your
> > web page detect a Mobile browser and display a market:// link to your
> > app.
>
> > If the user follows the link to the Market, it will detect if the app
> > is already loaded on your phone and will prompt you to either Install
> > it or Open itwhich is the behavior you are asking for.
>
> > I also don't understand how the user can try to 'launch your app if it
> > is not installed' - if it's not installed he won't be able to see it
> > let alone launch it, so he's not going to get any 'ugly error'.  Of
> > course, if what you are really trying to do is get your web page to
> > launch an app on my phone when I visit it then.please give me
> > the address of your web page so I know never to go there. :-)
>
> > On Jan 14, 2:10 pm, ls02  wrote:
>
> > > The app is launched from the web page to perform certain action. I do
> > > not want to discuss why I need to do this. I want to know how to
> > > detect app is installed or not and if it is not possible how to handle
> > > the error in the web page when user tries to launch my app and it is
> > > not installed. Right now the browser gives the same ugly error as
> > > general invalid link error.
>
> > > On Jan 14, 1:01 pm, TreKing  wrote:
>
> > > > On Fri, Jan 14, 2011 at 11:35 AM, ls02  wrote:
> > > > > But can I at least handle exception when user clicks on the link to 
> > > > > open
> > > > > the app and the app is not installed?
>
> > > > What reason do you have for trying to launch your own app from your 
> > > > website?
> > > > If the user has your app I'm sure they can figure out how to open it.
>
> > > > ---
> > > >  ­--
> > > > TreKing  - Chicago
> > > > transit tracking app for Android-powered devices- Hide quoted text -
>
> > - Show quoted text -

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Detect if app is installed

2011-01-14 Thread Brill Pappin
I think we've pretty much said we don't think it is.

I for one don't know of any way you can do that, and if you can, I
think it's a *very* large security hole in the Android OS that I'll
submit a ticket to get fixed ASAP.

- Brill Pappin

On Jan 14, 2:10 pm, ls02  wrote:
> The app is launched from the web page to perform certain action. I do
> not want to discuss why I need to do this. I want to know how to
> detect app is installed or not and if it is not possible how to handle
> the error in the web page when user tries to launch my app and it is
> not installed. Right now the browser gives the same ugly error as
> general invalid link error.
>
> On Jan 14, 1:01 pm, TreKing  wrote:
>
>
>
>
>
>
>
> > On Fri, Jan 14, 2011 at 11:35 AM, ls02  wrote:
> > > But can I at least handle exception when user clicks on the link to open
> > > the app and the app is not installed?
>
> > What reason do you have for trying to launch your own app from your website?
> > If the user has your app I'm sure they can figure out how to open it.
>
> > --- 
> > ­--
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Detect if app is installed

2011-01-14 Thread Brill Pappin
Are you able to launch your app if its not installed now?
If you can launch an intent (which I hipe you can't) then take a look
at the zxing project. They use code so that if you try to launch with
their intent and its not installed, it prompts the user to install it.

However my guess is that is not going to work for you, because it
requires some code.
As someone else mentioned, give the user a market link.

- Brill Pappin

On Jan 14, 2:10 pm, ls02  wrote:
> The app is launched from the web page to perform certain action. I do
> not want to discuss why I need to do this. I want to know how to
> detect app is installed or not and if it is not possible how to handle
> the error in the web page when user tries to launch my app and it is
> not installed. Right now the browser gives the same ugly error as
> general invalid link error.
>
> On Jan 14, 1:01 pm, TreKing  wrote:
>
>
>
>
>
>
>
> > On Fri, Jan 14, 2011 at 11:35 AM, ls02  wrote:
> > > But can I at least handle exception when user clicks on the link to open
> > > the app and the app is not installed?
>
> > What reason do you have for trying to launch your own app from your website?
> > If the user has your app I'm sure they can figure out how to open it.
>
> > --- 
> > ­--
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


  1   2   3   4   5   >