[android-developers] Request for developers HTC G1 (T-Mobile) review

2008-11-05 Thread Droid
Hi Android developers,

Can someone make a brief review of G1 mobile from a developer point of view?

Think about:
- G1 features not working properly
- issues when uploading custom applications
- does an application running in the emulator behaves as expected in the
real mobile (G1)?
- is it a true open source OS or are there some restrictions?
- issues when compiling the Android OS source code from scratch and updating
the G1 OS
- ...

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



[android-developers] Displaying contact Email address in a List in ListActivity

2009-01-03 Thread Droid

Hello all,

Happy New Year!

I'm a newbie trying to display a list of contact details in a
ListActivity. What is the best way to retrieve the Contact Name, Email
address and phone number and display it in a ListActivity?

Here's what I have so far... (Obviously in a half-cooked form)

Cursor c = getContentResolver().query(People.CONTENT_URI, null,
null, null, null);
startManagingCursor(c);
String[] from = new String[] {People.NAME, ?EMAIL COLUMN?, 
?PHONE
COLUMN?);
int[] to = new int[]{R.id.name, R.id.email, R.id.phone};
SimpleCursorAdapter adapter  = new SimpleCursorAdapter
(this,R.layout.contact_row,c,from,to);
setListAdapter(adapter);


Any help would be much appreciated

thanks, cheers,
Rohit

--~--~-~--~~~---~--~~
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 connect android to Google App Engine

2010-08-26 Thread Droid
I have spent two days trying to decide on a way to upload and download
data to the Google App Engine.

Do I use REST or simple HTTP post/get?

Do I use JSON or XML?

Do I use java or Python.

I am thinking probably use python and probably use REST. But which one
out there?

There are so many to choose from. None seem to work out-of-the-box,
but need faffing around with bits of code from here and bits of code
from there. And is not clear at the outset what  am taking on or what
the limitations are.

Can anyone point me at a usable system for connecting my Android to
the GAE?

-- 
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: String being truncated when its long

2010-08-27 Thread Droid
I think you are hitting a capacity limit of the android and should
chunk it somehow at say 3000 chars and store the chars somewhere not
in memory.
Droid



On Aug 27, 12:13 am, Achanta  wrote:
> I Tested your suggestions by setting UTF-8 and I also tried the same
> by removing the length 8000. But it still does the same thing.
> Thank you for the response though.
>
> This thing is driving me nuts.
>
> On Aug 26, 4:58 pm, Jake Radzikowski 
> wrote:> reader = new BufferedReader(new InputStreamReader(inputStream), 
> 8000); I'm
> > gunna guess that 8000 has something to do with it :). I usually use the
> > following:
>
> > reader = new BufferedReader(new InputStreamReader(inputStream, "UTF-8"));
>
> > On Thu, Aug 26, 2010 at 3:40 PM, Achanta  wrote:
>
> > > I am trying to get a JSON response from our server and the response
> > > string seems is always being truncated when the string length reaches
> > > to around 5525 characters.
>
> > > HttpClient httpClient = new DefaultHttpClient();
> > > HttpPost post = new HttpPost(URL);
> > > ResponseHandler responseHandler= new BasicResponseHandler();
> > > String testResponse = httpClient.execute(post, responseHandler);
>
> > > I also tried this by using HttpEntity and reading the response stream.
> > > But that also truncates the string at approximately that length.
>
> > >            HttpClient httpClient = new DefaultHttpClient();
> > >            HttpPost post = new HttpPost(URL);
> > > //          HttpGet get = new HttpGet(URL);
>
> > >            HttpResponse response = null;
> > >            HttpEntity entity = null;
> > >            InputStream inputStream = null;
> > >            BufferedReader reader = null;
> > >            String result = "";
> > >            try {
> > >                response = (HttpResponse)httpClient.execute(post);
> > >                entity = response.getEntity();
> > >                if(entity != null){
> > >                    inputStream = entity.getContent();
> > >                }
> > >                reader = new BufferedReader(new
> > > InputStreamReader(inputStream), 8000);
> > >                StringBuffer builder = new StringBuffer("");
> > >                String line = reader.readLine();
> > >                while(line != null){
> > >                    Log.v(tag, "int max: "+Integer.MAX_VALUE);
> > >                    Log.v(tag, "LINE: "+line
> > > +reader.toString());
> > >                    Log.v(tag, "reader: "+reader.toString());
> > >                    builder.append(line+"\n");
> > >                    line = reader.readLine();
> > >                }
> > >                inputStream.close();
> > >                result = builder.toString();
> > >            } catch (ClientProtocolException e) {
> > >                e.printStackTrace();
> > >            } catch (IOException e) {
> > >                e.printStackTrace();
> > >            } finally{
> > >                if(inputStream != null){
> > >                    try{
> > >                        inputStream.close();
> > >                    }catch(IOException e){
> > >                        e.printStackTrace();
> > >                    }
> > >                }
> > >            }
>
> > > Please let me know how I can handle this problem. I used this post as
> > > the reference while creating this.
>
> > >http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restfu...
>
> > > I tested the link in my browser and it does return the complete JSON.
> > > So I am sure the issue is with my code in android.
>
> > > Thank you.
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com > >  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


[android-developers] Re: Popping up Toast (or something like it) from a thread

2010-08-29 Thread Droid
Are you using a message handler? they are better than spinning a naked
thread.
You may be blocking the UI thread or similar unwanted consequence.
There is loads of code around but I can put some here if you want
about
message handlers in threads.

On Aug 28, 10:45 pm, Bret Foreman  wrote:
> My user hits a button and kicks off a process that takes 3 steps in
> about 10 seconds total. I'd like to pop up Toast messages "Step 1",
> "Step 2", "Step 3", "Finished!" as the process progresses. I'm using
> the standard Java Thread interface to run the process in a thread and
> I've found that trying to pop up Toast from the thread causes an FC.
> What is the best way to report this kind of progress - step by step
> messages?

-- 
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] Lost my keystore, loads of Apps, what to do?

2010-09-03 Thread Droid
WIndows did a system restore on a crash boot-up, guess what? yes, my
keystore has gone now - for ever.
I should have backed it up. But


The problem is I have 20 Apps that I cannot now update in the Market
as it will not accept a new key signing.

Can anyone think of a clever way out for me?

-- 
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: Using eclipse

2010-09-03 Thread Droid
If you create a project from existing source, Eclipse uses the folder
wherever it is.
ie it does NOT ship them into your workspace. Means you can easily end
up with source
folders scattered far and wide.

I made the mistake of using dropbox which stores in the cloud to
create a project from.
Result? Mass confusion (I was trying & failing to use same source for
2 PCs!).

Eclipse needs careful watching and its not easy to track where your
source folders
are unless you have a good memory or check in properties, resource
every time.

All the best with it :)


On Sep 2, 3:19 pm, Paul Hartie  wrote:
> Have been using eclipse to build my first few apps without any trouble
> however recently when I try to create a new project I get the
> following 2 problems before I change anything or add any code.
>
> Project is missing required source folder gen
> The project cannot be built until build path errors are resolved
>
> I don't think I changed anything to make this happen but I could be
> wrong. I know it's probably something stupid.
>
> Any help would be appreciated.

-- 
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: The first application

2010-09-03 Thread Droid
I am guessing that you forgot to set the manifest.xml activity, intent
to LAUNCHER.

If you do not set it, the opening activity is unknown, AND  it fails
silently.

Here is what you (may) need:






:) Droid


On Sep 2, 3:24 pm, Lidoval  wrote:
> Hi All,
> this is my first contact in the forum.
>
> Well, here is the question: when I run the simple code below, instead
> the result be a string "Hello Android", I see a scream of a  phone and
> a text: "A N D R O I D _". And doesn't matter the code I do, the
> result is the same. What's wrong?
>
> package com.exemplo;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.widget.TextView;
>
> public class HelloActivity extends Activity {
>     /** Called when the activity is first created. */
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>                TextView tv = new TextView(this);
>                tv.setText("Hello, Android");
>                setContentView(tv);
>
>     }
>
>
>
> }

-- 
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 to "printf" in android development

2010-09-03 Thread Droid
Use:

Log.d("my tag" ," here we are");

System.out etc does not work in Android AFAIK.

Then look at it in DDMS (its a special debugger, but very good when
you find it).
Works in emulator and device.
Droid
:)


On Sep 2, 5:04 pm, xi developer  wrote:
> I just notice that in android app. development( I use Eclipse as my
> IDE), if I have a statement "System.out.printf("hello")", it wont show
> anywhere, either console or LogCat, How can I see the output of
> "printf" in android app. development??

-- 
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: i want to do very simple android application

2010-09-03 Thread Droid
Get one from the Android SDK in samples folder. Then File, new,
Android Project, create from sample, etc...

On Sep 2, 1:43 pm, bharani  wrote:
> Hi ,
>
> i want to do very simple android program,
>
> Refer some good tutorial ,
>
> --
> Regards

-- 
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: Need project idea

2010-09-03 Thread Droid
There is an App called Race Ace that is auto related in that it plots
a track on a race course.

There are many auto related apps possible, what do you have in mind..

On Sep 2, 8:19 am, analyst  wrote:
> Can any tell me a project related to automative industries using
> 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: How to get contacts detail on android 2.2 ?

2010-09-03 Thread Droid
This code gets contact names and phone numbers, but its easy to alter
it to get more:

package com.phone.list;


import android.app.ListActivity;
import android.database.Cursor;
import android.os.Bundle;
import android.provider.Contacts.Phones;
import android.widget.ListAdapter;
import android.widget.SimpleCursorAdapter;

public class PhoneList extends ListActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// Get a cursor with all phones
Cursor c = getContentResolver().query(Phones.CONTENT_URI,
null, null, null, null);
startManagingCursor(c);

// Map Cursor columns to views defined in
simple_list_item_2.xml
ListAdapter adapter = new SimpleCursorAdapter(this,
android.R.layout.simple_list_item_2, c,
new String[] { Phones.DISPLAY_NAME,
Phones.NUMBER },
new int[] { android.R.id.text1,
android.R.id.text2 });
setListAdapter(adapter);
}

}

On Sep 2, 10:31 am, 娃儿她爸  wrote:
> Hi all :
>
> I want to read caontacts's Notes,Nickname,Organization,IM,Postal
> address,Email,etc, to send to PC.
>
> I only know use follow code to get ID, dislpay_name, photoID. But
> don't konw how to get the other's info.
>
> who can help me? thanks..
>
> Cursor cur =
> getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,
> null, null, null, null);
> cur.moveToPosition(position);
> cur.getString(cur.getColumnIndex(ContactsContract.Contacts._ID));
> cur.getString(cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
> cur.getInt(cur.getColumnIndex(ContactsContract.Contacts.PHOTO_ID));

-- 
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: limited distribution

2010-09-03 Thread Droid
I dont think there is a limit if you just email Apps to people and
they have ticked install any App button.
Not sure exactly what you want to do though


On Sep 1, 8:53 pm, Greg  wrote:
> I want to build an android app and distribute it to a limited number
> of users, without putting the app in the Market. On how many devices
> can I install my app before I have to use the market for distribution?
>
> Greg

-- 
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: Automatic way to change versionCode (and/or versionName) in manifest

2010-09-03 Thread Droid
I doubt it, I would do like you - write a script to do it .

On Sep 2, 10:55 pm, Adal  wrote:
> Hi everybody!
>
> I feel like this one it's going to be a silly question but after asking
> google and the list, I have no answer so... there I go:
>
> Is there any way using "just eclipse" to automatic
> update android:versionCode and/or android:versionName each time I rebuild my
> app or every time I export it?
>
> How do you deal with this?
>
> As I don't know any way of doing it with eclipse, I'm thinking about making
> a build_app script that change the values and use the script before
> generating the apk file, but I feel like there should be an "really easy"
> option.
>
> Any of you know how to do it?
>
> Thank you in advance!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@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: Voice Recognition for Voice Control?

2010-09-03 Thread Droid
I write code to analyse voice recognition results. It works well, but
is quite a lot of stuff to do to make it workable.
See my free (free at present anyway) App called  Spelling in the
market.

On Sep 2, 5:16 pm, moa  wrote:
> Hi,
>
> Is it possible to use the voice recognition api in order to handle a
> known set of commands yet?
>
> For example;
>
> Text to speech prompts "Say Yes or No"
>
> User says "no"
>
> VR matches this against a specific valid vocabulary containing only
> "yes & no", and then returns "no".
>
> Can you do this yet?
>
> Last time I looked you could not. The VR would match against a full
> vocabulary and user saying "no" would come back with things like
> "snow" and so on.
>
> The other BIG problem was that if the VR got no match a "Retry" dialog
> was displayed, this needed to be dismissed by using the screen, which
> meant the the voice control process failed at this point, terminally.
>
> Is there any closer to being usable in 2.2 ?
>
> Thanks in advance for any feedback.

-- 
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: Application not running..!

2010-09-03 Thread Droid
it does not like upper case L so login.xml should work OK. :)

On Sep 2, 4:43 pm, Gold  wrote:
> Hi..All,
>
>                  I create new Project . In that I move to res ->
> layout -> create one xml file.!
>                  I gave name Login.xml but it show error (only [a-z]
> and [0-9] allowed).
>                  Then I remove the file and create new file as
> login.xml.!
>                  But It show the new Error
>
>                        "your project contain error(s) please fix them
> before running your application"
>
>                 How to I fix the error..! Please help me..!
>
> Thanks in Advance,
> Gold

-- 
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: Android Market Licensing: Now Available!

2010-09-03 Thread Droid
The sample App (android-sdk-windows\market_licensing\sample) red lines
on :

import com.android.vending.licensing.AESObfuscator;
import com.android.vending.licensing.LicenseChecker;
import com.android.vending.licensing.LicenseCheckerCallback;
import com.android.vending.licensing.ServerManagedPolicy;

in my set-up. No idea where these classes are. My fault I am sure


On Jul 28, 5:01 pm, Joseph Earl  wrote:
> Not with this system as far as I'm aware - users will have to purchase
> a new license when changing to a phone running a different OS.
> You'll have to continue using your own system if you want this kind of
> functionality.
>
> On Jul 28, 12:44 pm, sblantipodi  wrote:
>
>
>
> > Hi all...
> > When you bought my software you bought a license, this license can be
> > ported from android to other platform like Symbian, Winmob, bada,
> > JavaME, Blackberry...
>
> > Every customers who bought my license is registered on our database,
> > (email address and device id),
> > this let me generate a new activation code in case he want to switch
> > the license from android to xx platform.
>
> > Is there an easy way to update my database when a customer bought my
> > software with the email address and device id of the customer who
> > bought the software or legally activated it?
>
> > 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: Android Market Licensing: Now Available!

2010-09-03 Thread Droid
Oh, OK, found it now. I have to reference the library project to get
rid of import red squiggles.

On Sep 3, 11:15 am, Droid  wrote:
> The sample App (android-sdk-windows\market_licensing\sample) red lines
> on :
>
> import com.android.vending.licensing.AESObfuscator;
> import com.android.vending.licensing.LicenseChecker;
> import com.android.vending.licensing.LicenseCheckerCallback;
> import com.android.vending.licensing.ServerManagedPolicy;
>
> in my set-up. No idea where these classes are. My fault I am sure
>
> On Jul 28, 5:01 pm, Joseph Earl  wrote:
>
>
>
> > Not with this system as far as I'm aware - users will have to purchase
> > a new license when changing to a phone running a different OS.
> > You'll have to continue using your own system if you want this kind of
> > functionality.
>
> > On Jul 28, 12:44 pm, sblantipodi  wrote:
>
> > > Hi all...
> > > When you bought my software you bought a license, this license can be
> > > ported from android to other platform like Symbian, Winmob, bada,
> > > JavaME, Blackberry...
>
> > > Every customers who bought my license is registered on our database,
> > > (email address and device id),
> > > this let me generate a new activation code in case he want to switch
> > > the license from android to xx platform.
>
> > > Is there an easy way to update my database when a customer bought my
> > > software with the email address and device id of the customer who
> > > bought the software or legally activated it?
>
> > > 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: Developing Android app for tablet

2010-09-05 Thread Droid
And is landscape view preferred or default for these bigger screens?
Many of my apps are fixed to portrait...


On Sep 5, 1:50 pm, ytbryan  wrote:
> Hi all,
>
> do we(developer) need to alter our app to suit the android
> tablet(samsung galaxy tab)? or will them automatically run on the
> tablet?
>
> Is a documentation on developing for android tablet?
>
> thanks!
> bryan

-- 
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: Using eclipse

2010-09-05 Thread Droid
My eclipse goes out of sync very easily. I now make copy paste files
into a project to make sure they go into the workspace and do not stay
somewhere else. Its the worst thing about Eclipse IMO. Build/clean is
automatic usually, but does not always fix problems.
I have lost loads of stuff...

On Sep 3, 5:31 pm, Steve Mathews  wrote:
> I usually have to do Project -> Clean, then build again and this goes away.
>
> On Fri, Sep 3, 2010 at 2:40 AM, SREEHARI
> wrote:
>
>
>
> > Do "bulid project"... It will be fine.
>
> > Regards,
> > SREEHARI
>
> > --
> > 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


[android-developers] Place two buttons side by side

2010-09-05 Thread Droid
OK, my buttons go one under the other, but I want them side by side.

How do I place two buttons side by side?

-- 
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: Place two buttons side by side

2010-09-05 Thread Droid
Thanks, but cannot follow that page without a migraine.
Who can give me a snippet for two buttons side by side?

On Sep 5, 5:12 pm, Filip Havlicek  wrote:
> All you want is 
> herehttp://developer.android.com/reference/android/widget/LinearLayout.html
>
> 2010/9/5 Droid 
>
>
>
> > OK, my buttons go one under the other, but I want them side by side.
>
> > How do I place two buttons side by side?
>
> > --
> > 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


[android-developers] Re: Place two buttons side by side

2010-09-05 Thread Droid
I am coding continuously but have hit a brain fade time. So cannot
easily
read all that at this point. Later.

On Sep 5, 7:15 pm, Filip Havlicek  wrote:
> Did you actually tried to read it? Everything you need to know is said in a
> first few lines.
>
> Best regards,
> Filip Havlicek
>
> 2010/9/5 Droid 
>
>
>
> > Thanks, but cannot follow that page without a migraine.
> > Who can give me a snippet for two buttons side by side?
>
> > On Sep 5, 5:12 pm, Filip Havlicek  wrote:
> > > All you want is herehttp://
> > developer.android.com/reference/android/widget/LinearLayout.html
>
> > > 2010/9/5 Droid 
>
> > > > OK, my buttons go one under the other, but I want them side by side.
>
> > > > How do I place two buttons side by side?
>
> > > > --
> > > > 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> > 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 > 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


[android-developers] Re: Place two buttons side by side

2010-09-05 Thread Droid
Thanks for that easy reference, looks like its
android:layout_alignParentRight="true"
or something like that.

On Sep 5, 7:11 pm, Frank Weiss  wrote:
> Try the hello views 
> page:http://developer.android.com/intl/de/resources/tutorials/views/index
>
> And please do use the resources before asking questions :-)

-- 
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] Two buttons side by side to fill width of screen?

2010-09-06 Thread Droid
I have 2 buttons side by side in RelativeLayout (170dip each) but in
landscape view, they are too narrow - I want to increase their widths
automatically for landscape.

I need a 'fill_parent' for two buttons at once kinda thing.

Can anyone point me in the right direction.

Here is my layout:


http://schemas.android.com/apk/res/
android"
android:layout_width="fill_parent"
android:background="#00"
android:layout_height="fill_parent">

















-- 
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: OpenGL - 3D rotation from a 2D input

2010-09-06 Thread Droid
Suggest dragging for x, y and tapping for z axis movement. But its not
clear exactly what your end-game is
You could also use accelerometer for tipping (see Breakout Legend in
the App in mkt)

:) Droid


On Sep 6, 7:04 pm, Thiago Lopes Rosa  wrote:
> Hi,
>
> I have a cube on the center of the screen and the user can rotate it using
> the touchscreen.
>
> The problem:
> For example, when I rotate the cube 180 degrees (vertical), the horizontal
> rotation gets "inverted" (i mean, when moving right the cube rotates left
> and vice-versa).
>
> The issue is that I'm using 2D coordinates (touchscreen) to rotate the 3D
> cube.
> I'm always rotating around the cube's X and Y axis and never around the Z
> axis.
>
> The question is:
> How do I calculate how much and which axis to rotate from a 2D coordinate
> input?
>
> Thanks,
>
> Thiago

-- 
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: Recommendation for an Application with tons of media files

2010-09-06 Thread Droid
Yes, 160 MB cannot easily be bundled into the App Market?
I am looking at the google app engine or a server to stream chunks of
data at
the App.


On Sep 6, 8:01 pm, Filip Havlicek  wrote:
> Hi Sebastián,
>
> 160MB is a lot of data, I think it is a must to save that much to SD card
> (I'm not sure how much is the common internal phone storage, but I wouldn't
> be surprised if it would be around 256MB in common cases).
>
> Although I have to disappoint you, I think there is no way to prevent user
> from accessing the data on SD card (this link supports my 
> thoughtshttp://developer.android.com/guide/topics/data/data-storage.html#file...).
> You cypher the data somehow to prevent other applications from reading
> it
> successfully, although you are going to have to check for the data
> availability everytime you want to access it and throw an error message when
> they are not found (they actually don't have to be deleted, mounting SD card
> as mass storage to computer is enough to make them "disappear" to you).
>
> Best regards,
> Filip Havlicek
>
> 2010/9/6 Frank Weiss 
>
>
>
> > > I was thinking in using the sd card storage.
>
> > That's a good idea.
>
> > > But, I don't want the
> > > user to accidentally remove the media files. I want it to be private,
> > > not accesible to possible deletions.
>
> > How might a user accidently remove them? Why is this a concern?
>
> > --
> > 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


[android-developers] Re: Two buttons side by side to fill width of screen?

2010-09-06 Thread Droid
With LinearLayout I believe I cannot two get buttons side by side?

On Sep 6, 7:35 pm, OldSkoolMark  wrote:
> Consider LinearLayout. You can use layout_weight to achieve
> proportional sizing.
>
> On Sep 6, 12:26 am, Droid  wrote:
>
>
>
> > I have 2 buttons side by side in RelativeLayout (170dip each) but in
> > landscape view, they are too narrow - I want to increase their widths
> > automatically for landscape.
>
> > I need a 'fill_parent' for two buttons at once kinda thing.
>
> > Can anyone point me in the right direction.
>
> > Here is my layout:
>
> > 
> > http://schemas.android.com/apk/res/
> > android"
> >     android:layout_width="fill_parent"
> >     android:background="#00"
> >     android:layout_height="fill_parent">
>
> >  > android:id="@+id/Button02"
> > android:layout_centerHorizontal="true"
> > android:layout_width="170dip"
> > android:layout_alignParentLeft="true"
> > android:layout_height="wrap_content">
>
> >  > android:id="@+id/Button03"
> > android:layout_centerHorizontal="true"
> > android:layout_width="170dip"
> > android:layout_toRightOf="@id/Button02"
> > android:layout_alignTop="@id/Button02"
> > android:layout_height="wrap_content">
>
> >  > android:layout_below="@+id/Button03"    android:textColor="#ff"
> > android:textStyle="bold" android:textSize="1dip"
> > android:layout_width="wrap_content" android:layout_height="1dip"> > TextView>
> >  > android:layout_below="@+id/TextView01" android:textColor="#00"
> > android:textStyle="bold" android:textSize="20dip"
> > android:layout_width="wrap_content"
> > android:layout_height="wrap_content">
> >  > android:layout_below="@+id/TextView02"  android:textColor="#ff00ff"
> > android:textStyle="bold" android:textSize="20dip"
> > android:layout_width="wrap_content"
> > android:layout_height="wrap_content">
> >  > android:layout_below="@+id/TextView03"  android:textColor="#ff"
> > android:textStyle="bold" android:textSize="20dip"
> > android:layout_width="wrap_content"
> > android:layout_height="wrap_content">
> >  > android:layout_below="@+id/TextView04"
> > android:layout_width="wrap_content"
> > android:layout_height="wrap_content">
> >  > android:layout_below="@+id/TextView05"
> > android:layout_width="wrap_content"
> > android:layout_height="wrap_content">
> >  > android:layout_below="@+id/TextView06"
> > android:layout_width="wrap_content"
> > android:layout_height="wrap_content">
> >  > android:layout_below="@+id/TextView07"
> > android:layout_width="wrap_content"
> > android:layout_height="wrap_content">
>
> > 

-- 
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] Don't think my Apps are appearing in China - checks?

2010-09-09 Thread Droid
I have localised for China (EXCEPT) the App name. But most downloads
are from USA I believe.

Does China Android market place need more pre-requisites?

-- 
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: GeoCoding Problems

2010-09-09 Thread Droid
I had with same problem with my App in that some geocoder returns are
empty.
I can suggest two solutions

1) Do try catch exceptions  that traps a null and then starts the
method again (which it
will do until it gets a result). Seems to work for me.

2) The results come back thick and fast so use an algorithm to examine
say 10
results and then take average whilst rejecting nulls.

Please let us know what you find out...


On Sep 9, 6:39 pm, tatebn  wrote:
> I'm trying to use the GeoCoder to get the lat/lon for a couple of
> addresses.  I'm running into an error where the address list comes
> back empty sometimes.  It seems to be completely random.  I have a
> start point and an end point to draw and route.  Sometimes I can't get
> either one, sometimes I can get the start but not the end, sometimes I
> can get the end but not the start.  I never seem to be able to get
> both.  Not sure why.  Yesterday it worked fine.  Any thoughts?

-- 
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: Is anyone's active install % dropping like a rock lately?

2010-09-15 Thread Droid
If you put an update out it tempts a few (me usually) to
uninstall the App - I usually figure that its not worth my  time
updating it
and I do not want it to auto update incase it installs a nasty, so I
delete it
and figure I can always get it when I want it again.

Bill (and his thought processes)


On Sep 15, 10:43 am, Pent  wrote:
> > > Thanks for writing in. We are currently investigating this issue. So far,
> > >> this appears to be purely a reporting issue: some update events are being
> > >> inaccurately recorded as uninstalls, rather than updates, creating a 
> > >> lower
> > >> active installs percentage. However, our investigation tells us that
> > >> applications are not actually being uninstalled. We hope to have a
> > >> resolution soon.
>
> This fits, actually.
>
> I had been holding steady at around 50%. Released my first update for
> a month
> yesterday evening and now I'm down to 45%.
>
> Pent

-- 
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] Android Google Maps example force closes why?

2010-08-09 Thread Droid
Forces close on emulator and device (Nexus One) I have followed the
instructions at 
http://developer.android.com/guide/tutorials/views/hello-mapview.html
on my emulator AND Nexus 1 Froyo force closes.

Log error is: Unable to instantiate activity

I have correct libraries, using SDK 8 settings. Nothing wrong in code.
Why?

Here is my code:

package com.maps;

import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
import android.os.Bundle;
import android.widget.LinearLayout;

public class HelloGoogleMaps extends MapActivity {
LinearLayout linearLayout;
MapView mapView;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mapView = (MapView) findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
}
 @Override
protected boolean isRouteDisplayed() {
return false;
}   }

main.xml:


http://schemas.android.com/apk/res/
android"
android:id="@+id/mainlayout"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >





manifest.xml:


http://schemas.android.com/apk/res/android";
  package="com.maps"
  android:versionCode="1"
  android:versionName="1.0">














-- 
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 safe is emailing a signed App apk?

2010-08-10 Thread Droid
I have an email wanting to localise an APK. But I have to email him/
her a signed APK. Is that safe, I mean can they access my merchant
account or something horrible like that if they get my key store?

-- 
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: Is anyone's active install % dropping like a rock lately?

2010-08-17 Thread Droid
I uninstall Apps that need constant updates, a bit silly of me because
I update my own Apps all the time.


On Aug 17, 7:06 am, Mark Carter  wrote:
> On 17 August 2010 03:15, Doug  wrote:
>
> > I think user retention rate is a great ingredient to add to the
> > "special sauce" of a ranking algorithm because it's an indicator of
> > satisfied customers.  That's something you can't derive from download
> > activity.
>
> I think of a satisfied user as one who believes the app does what it is
> intended to do and does it better than any other app. Retention rate is not
> a good measure for this, IMHO.
>
> User retention rate is a measure of how useful the app is to the general
> public. Rating is a measure of the quality of the app. A user may be
> satisfied with an app but if its not as useful as their other apps then it
> will be uninstalled as soon as space runs out.
>
> I get the impression that the vast majority of downloads are from "curious"
> users. For a niche app which is high up the rankings, many users only want
> to download it to see why it's so higly ranked, They have no intention of
> using the app, so it will be uninstalled pretty quickly.
>
> For my main app, users 10 times more likely to rate pro version than free
> version, and 20 times more likely to leave a comment. Free app rated 4.5
> (50% active installs), paid app rated 4.9 (70% active installs, 10%
> refunds).

-- 
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 test Apps on a variety of devices?

2010-08-18 Thread Droid
My Apps work fine on my N1, but I have no idea what they do on other
devices. This is becoming a worry.

Any way to test them on different devices (without buying them 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


[android-developers] How to find device dropping installs

2012-05-12 Thread Droid
I have an App that is dropping installs like a stone but I do not see
which device is doing it in my Play beautiful stats. Why? Because all
the devices in the graphic are OK so it must be one below the main
list (in 'others') that my app is crashing.  Any ideas how I can find
out which device is losing installs?

-- 
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: SeekBars in ListView with crosslink/interlock

2012-11-24 Thread droid
Hi All,
 I use seek bar in list view,i try dynamic change progress (like 
seekbar.setProgress(value);) of  item position 1 in listview, but it is 
also  progress item position 10 with my interaction. can any help me solve 
this problem.
  
thankyou 
prabhu

-- 
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: voice recognition -- IVR on Android

2010-11-17 Thread Droid
I found it was hard to get the text to speech and voice recognition =
more all into one activity (needed too many calls)
so I put voice recognition into its own activity and pass intent
messages between the two.
Its a bit clunky but works.

The other problem is detecting when the text to speech is in action,
did not work as it was supposed to - ended up using a timer.

OK, just relaying my experiences.


Bruce Xia wrote:
> hi,
> I'm developing an app which needs some IVR funtionality -- play a
> prompt, wait for user to respond, do an action, and loop...
>
> Do I have to call "SpeechRecognizer.startListening(new
> Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH));" every time after I
> play the prompt? Is there a better way?
>
> Thanks,
> Bruce

-- 
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: to load image from drawable folder

2010-11-17 Thread Droid
You can actually dynamically call a new layout xml file using the well-
used set content command - it works fast.

May be useful if your one layout file gets too full and can just about
do simple animations with it.  :)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To 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] What is a 512 by 512 App icon high resolution

2010-11-27 Thread Droid
I know how to make a 512 by 512 image but what exactly is it for?

Should it have lots of shapes/trees/animals on it? or one huge App
icon like the 72 by 72 icons?

High res? - for TVs? Tabs - what will be its size when viewed in-situ?

-- 
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: Is there any android expert from Google or any other company?

2010-11-29 Thread Droid
AFIK you can use the libraries from your new voice recogniser and
simply do not call the google one.
You need to do something with the audio input too.

I saw a simpler java OS one somewhere but did not bother to add it.




On Nov 26, 9:45 am, Jerry  wrote:
> My question on "framework to integrate a new voice recognition engine"
> got no help :)
>
> Any one want to help out!
>
> TIA!

-- 
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: Display images at bottom

2010-11-29 Thread Droid
I think I used a scrollview and placed some more objects below that.
I remember it worked. Take me too long to dig it out of my sources
haystack though...

On Nov 26, 8:17 pm, Daniel  wrote:
> Hi all,
>
> I have a horizontal linear layout object that contains a row of
> ImageViews.
>
> I would like to keep this layout with the images at the bottom of the
> screen when displayed. What is the best way to do this and can you
> list some example code?
>
> I tried the following and it did work - I had a vertical linear layout
> object, added a TextView to it, and then added my other linear layout
> object with the images. In my LL object with images, I set the gravity
> to BOTTOM like this:
> optionsLayout.setGravity(Gravity.BOTTOM);
>
> However, the LL with images did not go to the bottom of the screen.
>
> Also, is there anything like a BorderLayout (Java Swing) that is
> available in Android, or example code that simulates the BorderLayout?
>
> Thank you in advance!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@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: 60% payment declined on Android Market today!

2010-12-06 Thread Droid
Yup, me too (UK). All payments declined for 2 days or so
I suppose google must know this and be working hard to fix it.


On Dec 4, 11:32 pm, webmonkey  wrote:
> What is going on today! Out of a 100 orders, more than 50 are
> declined, and it is not stopping, all I see is red payment declined
> orders.

-- 
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] Can I put a link page to my own market Apps?

2011-02-23 Thread Droid
I need to categorize my Apps and so need do build an external web page
with links to my Apps and embed it in a WebView in my Apps. But will
google let me do this? (my other Apps are in google market place)

Thanks in advance...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@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: Honeycomb orientation

2011-03-08 Thread Droid
The preview emulator for  honeycomb had that bug, so get the latest
non-preview emulator.


On Mar 8, 9:55 am, limtc  wrote:
> I encountered something strange in development using the emulator.
>
> I wanted my app to start and only work in landscape mode, but even if
> I put in the android:screenOrientation="landscape", my app still
> starts in portrait mode. I have set the minimum SDK version to 11.
>
> What could be the problem?

-- 
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: Geocoder IOException

2011-03-10 Thread Droid
One way is to capture the geocoder responses into a collection (over
time) then write an algoritm to determine the which contents of that
collection are usable.
The geocode throws bad results and nulls all thge time. Most of the
good algorithms are propietary (skyhook), but there is room for
exploration with your own exciting code.



On Mar 10, 2:34 pm, Jake Colman  wrote:
> At random times my production app will get
>
> GeoCoder error: java.io.IOException: Unable to parse response from
> server
>
> When I try to get the location name corresponding to a given
> latitude/longitude taken from a Location object.
>
> Is there anything I should be doing differently so that this doesn't
> happen?  It's random and usually clears itself up next time I try to
> update the information.  But it's annoying.
>
> Is it just that Google's sever may have been unavailable at the time of
> the request or that my phone's internet connection was temporarily
> flaky?
>
> Thanks.
>
> ...Jake
>
> --
> Jake Colman -- Android Tinkerer

-- 
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: Android manifest no longer can be found on any of my packages

2011-03-10 Thread Droid
1) I get this too in WIndows Vista. I think its from Oracles JDK
updates, so lowering the build in preferences for a project seems to
work (sometimes!)

2)  You can always take the res src and manifest files only to a
folder of its own - on your c drive and then create a new project
using them as source. It works but is time consuming and then Eclipse
keeps that odd folder you just made as source (wot an idiot!) - so I
copy the project and it ends up in workspace once again. Phew.

Let me know if there is an easier way too.



 9, 2:27 pm, Bejonesnyc  wrote:
> Forum-
>
> I have been using my Eclipse Dev enviornment for about 18 months no
> issues.  Then I tried importing a working package into my
> environment.  After this ALL of my packages reported errors about not
> being able to find resources, specifically the native library
> containing ANDROID_FRAMEWORKS
>
> Couldn't figure it out.  So I did a clean install.
> -New Eclipse (helios for mac)
> -new SDK
> -new ADT
> -new "virgin"  workspace
>
> Followed Google's documentaton regarding order of installation.
>
> Then I restarted my machine.
>
> Created a new android "hello world" package.
>
> Upon creation of package I get the following message.
>
> eclipse.buildId=M20110210-1200
> java.version=1.6.0_22
> java.vendor=Apple Inc.
> BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
> Framework arguments:  -product org.eclipse.epp.package.java.product -
> keyring /Users/bejones/.eclipse_keyring -showlocation
> Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product
> org.eclipse.epp.package.java.product -keyring /Users/
> /.eclipse_keyring -showlocation
>
> Error
> Tue Mar 08 13:20:33 EST 2011
> Unable to read /Developer_Android/Android-sdk/AndroidManifest.xml:
> java.io.FileNotFoundException: /Developer_Android/Android-sdk/
> AndroidManifest.xml (No such file or directory)
>
> Which sets of a cascade of various error messages due to this missing
> resource.
>
> I have tried Stackoverflow and a bunch of different forums regarding
> this error, This being a clean install and a new project ( as opposed
> to an import) I am at a loss.
>
> Cheers,
>
> Brian

-- 
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] Cannot find my own Apps in the Market

2011-01-27 Thread Droid
After 2.2 update I cannot find my own Apps in the android  market.

-- 
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 is your app selling on the Amazon Appstore?

2011-04-28 Thread Droid
My app was tested in India (I knew this cos of an inn app widget
giving me locations) and three weeks later appeared in Amazon market.

It is a free app and gets hardly any downloads or feedback whereas in
google market it get loads of downloads and feedback.

Not impressed with Amazon app store yet. Google market way way way
better.




-- 
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] BitmapSize exceeds VM budget out of memory error

2011-04-28 Thread Droid
I use images that often me this error: BitmapSize exceeds VM budget
out of memory error.
It depends on  the device

Can I check my devices VM budget programmatically or in technical
specs? I have no idea which devices
have good VM budgets and which have low budgets, so I cannot target.

At present I am using a try catch for programme flow, but its bad bad
programming and very clunky too.

-- 
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: Missing USB driver for WiFi Galaxy Tab?

2011-04-28 Thread Droid
I used the usb driver supplied by Samsung. Cannot remember if I went
to their website or got it from the SDK installation manager
but it works very well on my Vista machine. I remember I used about 20
minutes up to locate and install it.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To 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] Can I disable updates updating old apps?

2011-05-01 Thread Droid
I want to put an 'install to SDCard' option into an app already in the
market, but do not want to make thousands of people do an update for
such a minor thing.

Can I disable updates so that only new downloads get the new version.

This is a big problem because continual updates often annoy users.

-- 
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: Motorola xoom is xhdpi?

2011-05-02 Thread Droid
Doesnt xoom get images fron drawable-xlarge as a first choice?

On May 2, 10:17 pm, faah  wrote:
> Yes it was a typo.
>
> drawable-mdpi-v9 directory is where I have the assets.
>
> More info:
> default properties states:
> # Project target.
> target=android-11
>
> and the manifest contains:
>  
>
> On May 2, 5:13 pm, Kostya Vasilyev  wrote:
>
>
>
> > It's res/drawable, not drawables. Singular, not plural - unless your
> > message has a typo.
>
> > 03.05.2011 1:08, faah пишет:
>
> > > Thanks.
>
> > > I have assets defined in drawables-mdpi-v9 directory for status bar
> > > icons. Why are these assets not getting loaded to xoom? Xoom is
> > > running v11. v9 means all versions including and greater than 9.
>
> > > Would anybody know?
>
> > --
> > Kostya Vasilyev --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] SDCard installs - auto or preferExternal?

2011-05-04 Thread Droid
I am guessing my manifest entry is better (from the users point of
view) as:  android:installLocation="preferExternal"
Would users prefer android:installLocation="auto"?

Would app users prefer installing to their SDCard by default rather
than to internal memory?

-- 
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: SDCard installs - auto or preferExternal?

2011-05-04 Thread Droid
Yes, maybe 'auto' better, I read somewhere that a few models will fail
to install at all if install location is set to preferExternal.

-- 
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] Async Task or Spawn a Thread?

2011-05-07 Thread Droid
Seems I can use an async task OR roll my own thread to do a background
task.

Is one better than the other?

-- 
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] I need portrait only for all screen sizes except xlarge screen size which needs to be landscape only

2011-05-09 Thread Droid
I cannot seem to find a solution to fix everything in portrait except
xlarge (1275) which needs to be fixed in landscape.
I have 4 main layout xml files in four folders (small, normal, large,
xlarge). Each main layout shares an activity, so I have four
activities. This is difficult to explain let alone solve.

Maybe easy but I cannot find a solution..

-- 
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: I need portrait only for all screen sizes except xlarge screen size which needs to be landscape only

2011-05-09 Thread Droid
Answering my own question here:

The manifest attribute: android:screenOrientation="nosensor" is ideal.
What it does is fix the screen orientation to the preferred one.
This is great because Honeycomb it chooses landscape and other
phones - well whatever is the default orientation.

(I had a MOM error when orientation changed, that's why I needed it)

:)




On May 9, 2:26 pm, Droid  wrote:
> I cannot seem to find a solution to fix everything in portrait except
> xlarge (1275) which needs to be fixed in landscape.
> I have 4 main layout xml files in four folders (small, normal, large,
> xlarge). Each main layout shares an activity, so I have four
> activities. This is difficult to explain let alone solve.
>
> Maybe easy but I cannot find a solution..

-- 
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: Performance Issues

2011-05-09 Thread Droid
Probably an image is too big (too many?) (over 1800 pixels triggers
MOM in some cheaper phones) and/or the change of screen orientation
tends to trigger MOM errors for large images.
I had to switch it off with; android:screenOrientation="nosensor"


-- 
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: I need portrait only for all screen sizes except xlarge screen size which needs to be landscape only

2011-05-09 Thread Droid
I may use your suggestion if I need to specify different orientations than 
the defaults.
But the nosensors attribute fixes orientations at their best for each device 
(landscape for xoom, portrait for Nexus etc). This is just what I want.
*
*
* *
*
*

-- 
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: where to put files to be read by jni native code

2011-05-09 Thread Droid
This works for a file on the SDCard:
#include 
#include 
#include 
/* This is a trivial JNI example where we use a native method
 * to return a new VM String. See the corresponding Java source
 * file located at:
 *
 *   apps/samples/hello-jni/project/src/com/example/HelloJni/
HelloJni.java
 */
jstring
Java_com_example_hellojni_HelloJni_stringFromJNI( JNIEnv* env,
  jobject thiz )
{
FILE* file = fopen("/sdcard/hello.txt","w+");

if (file != NULL)
{
fputs("HELLO WORLD!\n", file);
fflush(file);
fclose(file);
}

return (*env)->NewStringUTF(env, "Hello from JNI (with file
io)!");
}

-- 
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: emulator too slow

2011-05-09 Thread Droid
You can reduce the screen size of the emulator - from SDK Manager and
launch button.
A small screen size is generally faster all round.

On May 10, 2:34 am, bob  wrote:
> Is there any way to make the emulator faster?  It pretty much runs
> slow as molasses on my Macbook.

-- 
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] javascript in webview to java?

2011-05-11 Thread Droid
I want to try processing text in a normal java activity from the text
output of a javascript library in webview.
 BUT how? Suppose i could write to a file and then read but that is
cumbersome.

-- 
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 draw a circle on an image

2011-05-14 Thread Droid
I have an image that needs a red circe at x,y coords. Its in an image
view. I can get x,y coords but no idea at all about how to place a red
circle?

-- 
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] Voice Recognition - cannot suppress the visual modal dialogue

2011-05-16 Thread Droid
I am trying to use google voice recognition in purely sound mode, BUT
it displays a very annoying dialogue that often requires user to tap a
'speak again' button - i.e. it cannot be sound only operated and needs
a sighted user.

I want to handle all options through sound only but there is no way to
disable that dialogue.

Any pointers for me here?

(I know about hands free software, but I am trying to use voice
recognition in my App)

-- 
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: facing problem in JSON (http) connection

2011-05-16 Thread Droid
The key part of your log is:
org.json.JSONException: End of input at character 0 of

This means it does not think its input is a JSON type format.
I had the same error and ended up using some different code
but never bothered to sort out exactly what was going wrong - sorry.

Here is my code that works for Twitter. Maybe you can see something::

private Thread checkUpdate = new Thread() {
public void run() {
try {  /
  //String Text = URLEncoder.encode("Android", "UTF-8");
//  
http://cloudcollaboration.appspot.com/SecondGetter?content=qaz
URL updateURL = new URL("http://search.twitter.com/
search.json?q="+string_from_speaker);
// Log.d("", "44" + Text);
URLConnection conn = updateURL.openConnection();
InputStream is = conn.getInputStream();
BufferedInputStream bis = new
BufferedInputStream(is);
ByteArrayBuffer baf = new ByteArrayBuffer(50);
int current = 0;
while((current = bis.read()) != -1){
baf.append((byte)current);
}
/* Convert the Bytes read to a String. */
html = new String(baf.toByteArray());
// Log.d("", "3" + html);
mHandler.post(showUpdate);
} catch (Exception e) {
tv1.setText(" having trouble getting online");
}
}
};
private Runnable showUpdate = new Runnable(){
public void run(){

try {
jObject = new JSONObject(html);
JSONArray sessions = jObject.getJSONArray("results");
for (int i = 0; i < sessions.length(); i++) {
JSONObject session = sessions.getJSONObject(i);
Tweet tweet = new Tweet();
tweet.content = session.getString("text");
tweet.author = session.getString("from_user");
tweets.add(tweet);
}

On May 16, 1:07 pm, Rocky  wrote:
> Hi all,
>
> I'm facing problem when trying to use JSON object to access the .net project
> database.
> please let me know, where i'm doing mistake, i given more than 4 days to
> rectify.
>
> logcat details -
>
> 05-16 17:32:26.132: INFO/System.out(1656): response.getProtocolVersion()
> =HTTP/1.0
> 05-16 17:32:26.132: INFO/System.out(1656):
> response.getStatusLine().getStatusCode()  =404
> 05-16 17:32:26.132: INFO/System.out(1656):
> response.getStatusLine().getReasonPhrase()  = Not Found
> 05-16 17:32:26.141: INFO/System.out(1656):
> response.getStatusLine().toString()   =HTTP/1.0 404 Not Found
> 05-16 17:32:26.141: INFO/System.out(1656): inside try 3
> 05-16 17:32:26.151: INFO/System.out(1656): connection entity.toString()=
> org.apache.http.conn.BasicManagedEntity@43ea4288
> 05-16 17:32:26.161: INFO/global(1656): Default buffer size used in
> BufferedReader constructor. It would be better to be explicit if an 8k-char
> buffer is required.
> 05-16 17:32:26.161: INFO/System.out(1656): result =
> 05-16 17:32:26.171: WARN/System.err(1656): org.json.JSONException: End of
> input at character 0 of
> 05-16 17:32:26.182: WARN/System.err(1656):     at
> org.json.JSONTokener.syntaxError(JSONTokener.java:446)
> 05-16 17:32:26.182: WARN/System.err(1656):     at
> org.json.JSONTokener.nextValue(JSONTokener.java:93)
> 05-16 17:32:26.182: WARN/System.err(1656):     at
> org.json.JSONObject.(JSONObject.java:154)
> 05-16 17:32:26.182: WARN/System.err(1656):     at
> org.json.JSONObject.(JSONObject.java:171)
> 05-16 17:32:26.182: WARN/System.err(1656):     at
> com.sst.restaurant.RestJsonClient.connect(RestJsonClient.java:75)
> 05-16 17:32:26.192: WARN/System.err(1656):     at
> com.sst.restaurant.LoginDetails.onClick(LoginDetails.java:141)
> 05-16 17:32:26.192: WARN/System.err(1656):     at
> android.view.View.performClick(View.java:2408)
> 05-16 17:32:26.192: WARN/System.err(1656):     at
> android.view.View$PerformClick.run(View.java:8816)
> 05-16 17:32:26.192: WARN/System.err(1656):     at
> android.os.Handler.handleCallback(Handler.java:587)
> 05-16 17:32:26.192: WARN/System.err(1656):     at
> android.os.Handler.dispatchMessage(Handler.java:92)
> 05-16 17:32:26.212: WARN/System.err(1656):     at
> android.os.Looper.loop(Looper.java:123)
> 05-16 17:32:26.306: DEBUG/dalvikvm(1656): GC_FOR_MALLOC freed 2764 objects /
> 179392 bytes in 92ms
> 05-16 17:32:26.306: WARN/System.err(1656):     at
> android.app.ActivityThread.main(ActivityThread.java:4627)
> 05-16 17:32:26.306: WARN/System.err(1656):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 05-16 17:32:26.311: WARN/System.err(1656):     at
> java.lang.reflect.Method.invoke(Method.java:521)
> 05-16 17:32:26.311: WARN/System.err(1656):     at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 
> 868)
> 05-16 17:32:26.311: WARN/System.err(1656):     at
> com.android.internal.os.

[android-developers] A timer thread and url fetch thread in same activity.

2011-05-19 Thread Droid
I am having problems with a timer that should fetch http results from
the web every 5 minutes.
I having problems with two threads - often I cannot even turn them off
or keep the timer going without upsetting the apple cart.

Should I start using wait() and notify(), a separate service or
continue trying to get them to be friends with each other in the same
activity. At present its all very badly behaved and I feel as though I
am juggling with marbles.

-- 
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 can I draw/move a point on screen ?!

2011-05-19 Thread Droid
I think you have to use paint() - but I have the same problem and have
not got round to it yet. :(

On May 19, 8:13 pm, Diogo Salaberri  wrote:
> Any tutorial ? Any link ?
>
> Thanks, bye.
>
> --
> Atenciosamente;
> Diogo Bonoto Salaberri
> Bacharel em Ciência da Computação - UFPel

-- 
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] Keen to do Google TV apps but I am not in USA

2011-05-25 Thread Droid
Is there any point in me making Google TV apps if I am in the UK? (I
believe its for USA TV only at this point in time)

-- 
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] iosched 2011 in zip or tar format

2011-05-27 Thread Droid
Trying to get iosched 2011 source for eclipse project in a simple zip
format. Its at http://code.google.com/p/iosched/source/browse/ but its
using hg -arrrhhh. Its a lazy request of mine I know, but I do not
have enough brain RAM to learn hg at this point. Or a github ref? Most
ioscheds on github are 2010 - arrrg.

-- 
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: iosched 2011 in zip or tar format

2011-05-27 Thread Droid
OK, OK, answering my own question. I have found it (I think) at:
https://github.com/underhilllabs/iosched2011 Looks like the right one.
Thanks to underhill.

Now to try it out.

-- 
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 know when home button pressed was pressed

2011-05-30 Thread Droid
I have a workflow of about 15 activities. When a user presses the home
button to close the whole app I cannot find a way of determining if
the home button has been actuated that would allow me to stop a timer
thread.

I have tried using life cycle methods (onStop(), OnStart() etc) to no
avail because they are always stopping and starting when the app is
running correctly anyway and I do not know the activity being viewed
at the time of actuating the home button either.

I know there are many posts about this issue, but nevertheless I
cannot seem to solve it.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To 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: any experience in time to port ios app to android

2011-06-03 Thread Droid
I suggest asking the iPhone developer to write the app out in pseudo
code and then asking an android dev to write a similar android app.
There is no software that one can simply use to translate from iPhone
to abdroid.

If the app is a web app phone gap then you have a chance, but straight
objective c? No chance of a quick translation.

On Jun 4, 3:31 am, cellurl  wrote:
> I have to port an app from ios to android.
> It contains email, pictures, xml...
>
> Anyone want to share any experiences.
> I want to ask the client how long it took him to write the ios one and
> then multiply it by X.
>
> any leads appreciated.
> -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] What is best game engine for Android?

2011-03-27 Thread Droid
I reckon that I might need to use game type of content soon,
especially with Xoom.
So which is the easiest to get started on? Is there one starting to
stand out from the crowd?
I prefer late adopting so that I get a viable game engine that I could
use into the future.

Not impressed with openGL in java - seems a bit clunky and hard to
program

-- 
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: Refreshing app

2011-04-01 Thread Droid
Set up a service that tests the data every 2 minutes. Then wake app if
data relevant.

On Apr 2, 6:58 am, Pinkesh Gupta  wrote:
> i think you need to do one thing just implement a timer on your thread event
>
> and put the dat that is coming from the server on sleep.On Fri, Apr 1, 2011 
> at 2:13 PM, prakrati  wrote:
> > My data is coming from the server and i want to refresh that data
> > every 2 minutes
> > what should i do for this? any sample code for 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


[android-developers] Fragment, how to send message from one fragment to another

2011-04-18 Thread Droid
If I click a button in one fragment, what is the best way to get a
response in another fragment?

eg click button in fragment1 which displays text in a TextView in
fragment2.

which is the best approach here?

-- 
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: Class not found exception static fragment library

2011-04-18 Thread Droid
Might be connected with different: android-support-v4.jar I think they
are different incompatible versions.

http://stackoverflow.com/questions/5561353/fragmentactivity-can-not-be-tested-via-activityinstrumentationtestcase2



On Apr 17, 7:58 am, k_day  wrote:
> Another important thing to not that I forgot: My fragments are
> inheriting from FragmentActivity, as required by the static fragment
> library.
>
> On Apr 17, 1:42 am, k_day  wrote:
>
>
>
> > I am using the static fragment library and am getting a
> > ClassNotFoundException.
>
> > android.view.InflateException: Binary XML file line #9: Error
> > inflating class fragment
> > java.lang.ClassNotFoundException: android.view.fragment in loader
> > dalvik.system.PathClassLoader[/data/app/com.kday.lil-2.apk]
>
> > Binary XML file line #9: Error inflating class fragment
>
> > Does anyone know what could be causing 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


[android-developers] Re: Class not found exception static fragment library

2011-04-18 Thread Droid
In my App I got the same error and it was the wrong path reference in
the fragment xml layout file.
Here is my error:


I had to alter the path in: com.example.android.apis.app.




On Apr 17, 7:42 am, k_day  wrote:
> I am using the static fragment library and am getting a
> ClassNotFoundException.
>
> android.view.InflateException: Binary XML file line #9: Error
> inflating class fragment
> java.lang.ClassNotFoundException: android.view.fragment in loader
> dalvik.system.PathClassLoader[/data/app/com.kday.lil-2.apk]
>
> Binary XML file line #9: Error inflating class fragment
>
> Does anyone know what could be causing 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


[android-developers] No google orders results for SDK11

2011-04-24 Thread Droid
I have done several apps that target SDK11 alone (Xoom, Acer tablets)
but I get zero downloads results in my orders pages.

I am absolutely certain that there have been downloads but there are
no results (over 5 popular apps).

Have Google switched off downloads and analytics for SDK11?

-- 
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: In Android, how to get the keyevent of 'home Key' ?

2011-06-07 Thread Droid
I need to know when the home button is pressed too (otherwise my app
returns to visibility again and again for ever).
Is there a hack? (Please don't tell me I need to design my app
'properly', I have been Android dev for over a year now)

-- 
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 can I know when the home button has been pressed?

2011-06-07 Thread Droid
I have a thread that needs specifically to be cancelled when the home
button is pressed.
But, nothing reliable gives me that information. (I have over 10
activities all in the stack)

-- 
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: In Android, how to get the keyevent of 'home Key' ?

2011-06-10 Thread Droid
  


  
  
 


Above would be really cool if it worked, but it worked not.
Still cannot detect on home button click to turn off my timer thread.
Its easy when I have only one activity but I have 10 in a workflow.

-- 
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: In Android, how to get the keyevent of 'home Key' ?

2011-06-10 Thread Droid
I think you need a holiday.

On Jun 8, 1:13 pm, Mark Murphy  wrote:
> On Wed, Jun 8, 2011 at 7:20 AM, Mark Murphy  wrote:
> > On Wed, Jun 8, 2011 at 2:31 AM,Droid wrote:
> >> I need to know when the home button is pressed too (otherwise my app
> >> returns to visibility again and again for ever).
>
> > Then fix your bug.
>
> >> (Please don't tell me I need to design my app
> >> 'properly', I have been Android dev for over a year now)
>
> > Tough. Design your app properly.
>
> I just wrote up a blog post about why you should not care about the
> HOME button and how better to solve this "problem":
>
> http://commonsware.com/blog/2011/06/08/please-ignore-home-button.html
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.0 Programming Books:http://commonsware.com/books

-- 
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 can I know when the home button has been pressed?

2011-06-10 Thread Droid
My thread is a timer thread that brings my activity back to view after
the home button is pressed. I need to cancel it when home button is
pressed.
(I have 10 activities and no idea in which activity the app was when
the home button was pressed)

On Jun 8, 1:23 pm, TreKing  wrote:
> On Wed, Jun 8, 2011 at 1:34 AM, Droid  wrote:
> > I have a thread that needs specifically to be cancelled when the
> > home button is pressed.
>
> Perhaps if you explain why you think your thread needs to be specifically
> canceled on pressing Home you can get an answer that helps you fix your
> actual problem and not hack around it.
>
> --- 
> --
> TreKing <http://sites.google.com/site/rezmobileapps/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 can I know when the home button has been pressed?

2011-06-11 Thread Droid
Thanks for your sensible suggestion. My sentence should have read 'I
have a timer thread that should not bring an activity back to view
after the home button has been pressed but it does.'

On Jun 11, 1:02 am, Indicator Veritatis  wrote:
> @Droid-
>
> You do realize, I hope, since it is the level of logic that should be
> easily expected of any programmer, that what you wrote here makes no
> sense.
>
> If, after all, on the one hand, "My thread is a timer thread that
> brings my activity back to view after
> thehome buttonis pressed". then no, it makes NO sense to "cancel it
> whenhome buttonis pressed."
>
> Besides: if it is a timer thread, shouldn't you really mean that it
> "bring your activity back to view" after the timer expires? It would
> make sense to cancel that timer when Home is pressed. And you can do
> that in onPause() or in onStop(). In fact, you should probably do that
> in onStop() no matter how you get there This would also simplify your
> code, since it is by design that the platform does not TELL you how
> you got to onStop(): it certainly does not tell you that it got there
> via a Home key.
>
> Also as has been pointed out many times now, overriding the expected
> result of the Home key is a really, REALLY bad idea. It is a good
> thing that the platform makes this difficult. It should not be done at
> all.
>
> Now I realize that some customers insist on this 'feature', even
> though it is such a bad idea. In which case, I pity you, but keep on
> slogging ahead. It is possible to get close to what you want, either
> with a custom Home application or some even more kludgy approach. But
> ignore Fung's suggestion, since he is dead wrong.
>
> On Jun 10, 8:52 am, Droid  wrote:
>
>
>
> > My thread is a timer thread that brings my activity back to view after
> > thehome buttonis pressed. I need to cancel it whenhome buttonis
> > pressed.
> > (I have 10 activities and no idea in which activity the app was when
> > thehome buttonwas pressed)
>
> > On Jun 8, 1:23 pm, TreKing  wrote:
>
> > > On Wed, Jun 8, 2011 at 1:34 AM, Droid  wrote:
> > > > I have a thread that needs specifically to be cancelled when the
> > > >home buttonis pressed.
>
> > > Perhaps if you explain why you think your thread needs to be specifically
> > > canceled on pressing Home you can get an answer that helps you fix your
> > > actual problem and not hack around it.
>
> > > ---
> > >  --
> > > TreKing <http://sites.google.com/site/rezmobileapps/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] Cannot handle exception in a thread

2011-06-14 Thread Droid
I am spinning a thread to go online and get data. But if phone is in a
network hole (no signal) it throws an exception.
In the exception I try to call Toast or finish() the activity but both
those cause a crash.

Here's the error and my code:
 error is:
06-14 11:32:01.691: ERROR/AndroidRuntime(7389):
java.lang.RuntimeException: Can't create handler inside thread that
has not called Looper.prepare()

here is the code, note the catch clause at the end which is where my
problem lies:

*
private Thread checkUpdate = new Thread() {
public void run() {
try {
URL updateURL = new URL("http://search.twitter.com/
search.json?q="+string_from_speaker);
URLConnection conn = updateURL.openConnection();
...
} catch (Exception e) {
// none of these exception handlers work becaue they are in wrong
thread!! WTF?
// NOPE tv1.setText(" having trouble getting online"); // TODO
// NOPE Toast.makeText(IconicAgain.this, "having trouble getting
online "+ e, Toast.LENGTH_LONG).show();
}
}
};


Can I at least stop this thread somehow? Or close the activity
somehow?

-- 
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: Google App engine and android

2011-06-14 Thread Droid
Its easy and works well - just post (or get) http data and have some
python or java in the app engine that picks up the data.

On Jun 14, 10:37 am, gaara  wrote:
> Hi everyone,
> Can any one has finish an application which store informations in
> google app engine via an android application, or any one have
> suggestions about this subject,,
> Peace,
> Gaara

-- 
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: Diagram of Android internals

2011-06-14 Thread Droid
Love your internals diagram  http://www.makelinux.net/android/internals/
I am trying to make it bigger and clearer -  the idea is great.
Thanks.


On Jun 13, 4:05 pm, Constantine  wrote:
> Hi Android developers,
>
> I am designing detailed diagram of Android internals. You can find it
> here:http://www.makelinux.net/android/internals/
> What do you think about it?
> Have you any ideas how to improve it?
>
> Thank you in advance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@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: Diagram of Android internals

2011-06-14 Thread Droid
ps
If you make the picture about 1400 pixels square I would put it in an
App as a lovely zoomable pic and into the Android market.
Probably just a freeby, but it would be popular I am sure. Get back to
me with a bigger pic pls.

On Jun 13, 4:05 pm, Constantine  wrote:
> Hi Android developers,
>
> I am designing detailed diagram of Android internals. You can find it
> here:http://www.makelinux.net/android/internals/
> What do you think about it?
> Have you any ideas how to improve it?
>
> Thank you in advance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@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: inflate Vs intent

2011-06-15 Thread Droid
Yes, I noticed that inflate code has not so many attributes as in xml
layout files.
I generally avoid inflate for the reasons you stated. Not really sure
what is going on behind the scenes.

On Jun 15, 6:39 pm, New Developer  wrote:
> Thanks
>
> my OnCreate()  has nothing in it.
> The only thing different is the method of calling the exact same  layout
> 1) using intent        and        2) using inflate
>
> The intent appears normal   the  the inflate appears transparent  even
> when the button is clicked, or text is select the  original highlight color 
> Orange is  gray  under  inflate.
>
> Thanks
>
> On Jun 15, 2011, at 10:47 AM, Marcin Orlowski wrote:
>
>
>
> > You do not run the layout. You do not call it nor call it with the intent. 
> > All you now comparing is bit nonsense as it is intent sent to your 
> > application vs inflating xml file. Not much comparable. Check your code in 
> > activity's onCreate() for anything extra you do there or check your code 
> > around inflate() to see if you do not miss anything you do in onCreate().
>
> > Regards,
> > Marcin Orlowski
>
> > Tray Agenda - keep you daily schedule handy...
> > Date In Tray - current date at glance...
> > WebnetMobile on Facebook and Twitter
>
> > On 15 June 2011 16:33, New Developer  wrote:
> > I have a layout with a button and EditText  fields
>
> > IF I call the layout using  intent
> > intent.setClass(getApplicationContext(), eedsClientActivity.class...
> > startActivity(
>
> > The Buttons have a light gray background neat black text
> > and the EditText a white background
>
> > IF I call the layout using  inflate
> > inflate.inflate(R.layout.client_single,    parent);
>
> > The Buttons have a dull gray background , Large white text
> > and the EditText appear transparent, almost see through background slightly 
> > grayish
>
> > Why the Difference  it is the same .xml layout ??
>
> > What additionally is called By intent  that inflate does not call ?
>
> > thanks in advance
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@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: How to force close the app when using multiple activity

2011-06-16 Thread Droid
The back button will take user to a non-finished activity - normal
behavior.
The home button should not leave an activity visible, but if you have
a non-ui thread still running then that could bring an activity back
to view.
I kill naughty threads in carefully thought out life cycle methods and
cancel thread methods.

But if you finish(); an activity when going to the next, then it
should not cone back to view unless you start it again with an intent.


On Jun 16, 8:47 am, HariRam  wrote:
> How to quit the app or force close the app when multiple activity running in
> background. I tried to give system.exit(0), but this will works only having
> single activity. In my app i have 3 activity when i tried system.exit it
> kills that particular activity and go back to previous activity. please
> guide me to solve this..
> --
> Thanks and
> Regards
> Hariram

-- 
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: inflate Vs intent

2011-06-16 Thread Droid

I think fragments can do that, but I have not got my head around them
yet.
Also, I have never changed 'part' of a layout just on its own without
redrawing all of it. Sorry I am not much help.



On Jun 16, 2:46 am, New Developer  wrote:
> create a simple layout.xml  with a Button and TextEdit
>
> Then call that layout using  intent  and  then call the same layout using 
> inflate
> and see the difference.
>
> Droid if you avoid inflate,  is there a way to call intent, but only use part 
> of the screen
> by that I mean I have a home page layout which has a framelayout as part of 
> the screen
> how can I use intent and fill just the framelayout with the new intent's 
> layout ?
>
> at present I only know that intent will change the whole screen.
>
> So
> Main layout.xml
> 
> |  layout      |    layout 2                    |
> |      1          |                                       |
> |                  |-|
> |                  |  layout 3                      |
> |                  |                                      |
> 
>
> I just want to fill layout 3  with other layouts  using intent,  is this 
> possible ??
>
> thanks in advance
>
> On Jun 15, 2011, at 8:00 PM, Dianne Hackborn wrote:
>
>
>
> > My head is now exploding.  This discussion makes no sense at all. :p
>
> > On Wed, Jun 15, 2011 at 3:34 PM, Droid  wrote:
> > Yes, I noticed that inflate code has not so many attributes as in xml
> > layout files.
> > I generally avoid inflate for the reasons you stated. Not really sure
> > what is going on behind the scenes.
>
> > On Jun 15, 6:39 pm, New Developer  wrote:
> > > Thanks
>
> > > my OnCreate()  has nothing in it.
> > > The only thing different is the method of calling the exact same  layout
> > > 1) using intent        and        2) using inflate
>
> > > The intent appears normal   the  the inflate appears transparent  even
> > > when the button is clicked, or text is select the  original highlight 
> > > color Orange is  gray  under  inflate.
>
> > > Thanks
>
> > > On Jun 15, 2011, at 10:47 AM, Marcin Orlowski wrote:
>
> > > > You do not run the layout. You do not call it nor call it with the 
> > > > intent. All you now comparing is bit nonsense as it is intent sent to 
> > > > your application vs inflating xml file. Not much comparable. Check your 
> > > > code in activity's onCreate() for anything extra you do there or check 
> > > > your code around inflate() to see if you do not miss anything you do in 
> > > > onCreate().
>
> > > > Regards,
> > > > Marcin Orlowski
>
> > > > Tray Agenda - keep you daily schedule handy...
> > > > Date In Tray - current date at glance...
> > > > WebnetMobile on Facebook and Twitter
>
> > > > On 15 June 2011 16:33, New Developer  wrote:
> > > > I have a layout with a button and EditText  fields
>
> > > > IF I call the layout using  intent
> > > > intent.setClass(getApplicationContext(), eedsClientActivity.class...
> > > > startActivity(
>
> > > > The Buttons have a light gray background neat black text
> > > > and the EditText a white background
>
> > > > IF I call the layout using  inflate
> > > > inflate.inflate(R.layout.client_single,    parent);
>
> > > > The Buttons have a dull gray background , Large white text
> > > > and the EditText appear transparent, almost see through background 
> > > > slightly grayish
>
> > > > Why the Difference  it is the same .xml layout ??
>
> > > > What additionally is called By intent  that inflate does not call ?
>
> > > > thanks in advance
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to android-developers@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 

[android-developers] Re: Cannot handle exception in a thread

2011-06-16 Thread Droid
Thanks to Murphy M for the solution to my problem. It worked like a
charm.

On Jun 14, 12:10 pm, Mark Murphy  wrote:
> Use runOnUiThread() around your code in the catch block, to have that
> stuff be done on the main application thread.
>
>
>
>
>
> On Tue, Jun 14, 2011 at 6:40 AM, Droid  wrote:
> > I am spinning a thread to go online and get data. But if phone is in a
> > network hole (no signal) it throws an exception.
> > In the exception I try to call Toast or finish() the activity but both
> > those cause a crash.
>
> > Here's the error and my code:
> >  error is:
> > 06-14 11:32:01.691: ERROR/AndroidRuntime(7389):
> > java.lang.RuntimeException: Can't create handler inside thread that
> > has not called Looper.prepare()
>
> > here is the code, note the catch clause at the end which is where my
> > problem lies:
>
> > *** 
> > **
> >    private Thread checkUpdate = new Thread() {
> >        public void run() {
> >            try {
> >                URL updateURL = new URL("http://search.twitter.com/
> > search.json?q="+string_from_speaker);
> >                URLConnection conn = updateURL.openConnection();
> >                ...
> >            } catch (Exception e) {
> > // none of these exception handlers work becaue they are in wrong
> > thread!! WTF?
> > // NOPE tv1.setText(" having trouble getting online"); // TODO
> > // NOPE Toast.makeText(IconicAgain.this, "having trouble getting
> > online "+ e, Toast.LENGTH_LONG).show();
> >            }
> >        }
> >    };
> > *** 
> > *
>
> > Can I at least stop this thread somehow? Or close the activity
> > somehow?
>
> > --
> > 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
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in NYC:http://marakana.com/training/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] Will static variables in a non-activity class remain in memory?

2011-06-20 Thread Droid
I am storing an ArrayList in a static variable in an ordinary (non
activity) java class.
It works correctly when I load it from an activity, but will it be
guaranteed to remain
in memory even when my activity is not calling it often?

Here is the class:

package com.maps.spoken;

import java.util.ArrayList;

public class NoWordRepeats {

public static ArrayList ar = new ArrayList();

}

-- 
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: Will static variables in a non-activity class remain in memory?

2011-06-20 Thread Droid
Ok thanks for that. The static ArrayList var will certainly be good
enough for what my app requires. I was worried that it might
dissappear between activities by an agressive memory clear up. :)





On Jun 20, 9:52 pm, Dianne Hackborn  wrote:
> I wouldn't say yes.  "Calling it often" does not make sure it remains in
> memory.  You are only guaranteed it will remain in memory for as long as
> your app is in the foreground, that is as long as its process is required as
> per:http://developer.android.com/guide/topics/fundamentals/processes-and-...
>
> Once your app is no longer in the foreground -- because the user pressed
> home, went to a notification, received a call, etc -- then your process may
> be killed at any point and all bets are off.
>
> On Mon, Jun 20, 2011 at 12:24 PM, Kostya Vasilyev wrote:
>
>
>
>
>
> > Yes. This data will stay in memory for as long as the process is alive.
>
> > 2011/6/20 Droid 
>
> >> I am storing an ArrayList in a static variable in an ordinary (non
> >> activity) java class.
> >> It works correctly when I load it from an activity, but will it be
> >> guaranteed to remain
> >> in memory even when my activity is not calling it often?
>
> >> Here is the class:
>
> >> package com.maps.spoken;
>
> >> import java.util.ArrayList;
>
> >> public class NoWordRepeats {
>
> >>        public static ArrayList ar = new ArrayList();
>
> >> }
>
> >> --
> >> 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
>
> --
> 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


[android-developers] Re: Speech Recognition in Android

2011-06-23 Thread Droid
The speech recogniser often makes mistakes, so you have to think about
how to handle wrong words. Otherwise its quite easy to feed voice
recognition to text.
There is lots of code on Google to do that. I have a loop that asks if
the text is correct or not. Well, it works fine, but most users do not
like using it unfortunately. I suppose because its slow.





On Jun 23, 9:30 am, khanh_qhi™  wrote:
> Hi,
> I need build a small application about Speech Recognition based-on Android
> platform, such as: port speech input to text.
> Hence, is there a way/open source that to do for this?
>
> ---
> Regards,
> Khanh.

-- 
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: Galaxy Tab and Market filtering

2011-07-08 Thread Droid
I am guessing that samsung old tab does not 'like' sdk 1.
Sdk 4 is my minimum version because I assume sdk 1 is just 'too old'.

Not very scientific but works for me. :)



On Jul 8, 7:47 am, nadam  wrote:
> The old Galaxy Tab 7" is said to be a large mdpi device but it uses
> hdpi drawables. I did an experiment to create an app with the
> following restrictions in the manifest.
>
>     
>      android:required="false" />
>
>     
>          android:screenDensity="mdpi" />
>          android:screenDensity="hdpi" />
>     
>
>            android:smallScreens="false"
>       android:normalScreens="false"
>       android:largeScreens="true"
>       android:xlargeScreens="false"
>       android:anyDensity="true"/>
>
> The Device Availability dialog in the Developer Console tells me that
> this app will not be available in Android Market for any Samsung
> device. In particular, all variations of Galaxy Tab are listed as
> unsupported. Why?

-- 
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] Min SDK is 4 but it is OK with 3.1

2011-07-12 Thread Droid
My Min SDK is 4 in the manifest but it is OK with 3.1, should I build
with the highest SDK?

I mean what if a phone running SDK 2.2 but built with an app built
with SDK 3.1?


(I should know the answer, but I don't)

-- 
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 limit outgoing email to 100 characters?

2011-07-15 Thread Droid
My bosses (big) idea is to limit outgoing app emails to 100
characters? I assume I cannot do that in the standard email dialogue?

-- 
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] Low Maturity or Everyone - Which reaches the most people?

2011-07-17 Thread Droid
Low Maturity or Everyone - Which reaches the most people?

I feel many are putting Low Maturity which imo means for children?
But their apps are in fact for everyone. I don't understand.

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