Re: [android-developers] Re: Detecting flings in a ListActivity containing non-simple views

2010-11-13 Thread Dianne Hackborn
Does this work if the layout is used outside of a list view?

On Sat, Nov 13, 2010 at 12:29 PM, FractalBob  wrote:

>
>
> On Nov 13, 11:45 am, Dianne Hackborn  wrote:
> > Where are you attaching your listeners?  Are you taking into account view
> > recycling?  This is not generally something one wants to do in a list
> view,
> > and if you do go down this path you need to be very careful about
> > understanding how list view works with recycling views and such.
> >
> I'm attaching my listeners in the getView() method of the adapter I
> use to load the list. As for view recycling, I don't see why that
> would be an issue.
> >
> >
> >
> >
> >
> >
> >
> >
> > On Sat, Nov 13, 2010 at 11:20 AM, FractalBob  wrote:
> > > Hi,
> >
> > > I have a list that contains views consisting an ImageView followed on
> > > the right by a TextView:
> >
> > > > >android:orientation="horizontal"
> > >android:layout_width="fill_parent"
> > >android:layout_height="wrap_content">
> > > > >android:layout_width="88dp"
> > >android:layout_height="66dp"
> > >android:padding="10dp" />
> > > > >android:lines="4"
> > >android:inputType="textMultiLine"
> > >android:layout_marginTop="5dp"
> > >android:text="@string/LANGKEY_headlines_unavailable"
> > >android:layout_width="fill_parent"
> > >android:layout_height="wrap_content"/>
> > >
> >
> > > I implemented fling the usual way, as follows:
> >
> > >listItemView.setOnClickListener(NewsListActivity.this);
> > >listItemView.setOnTouchListener(gestureListener);
> >
> > > where listItemView is the above view.
> >
> > > Now, if I begin the fling on the ImageView, I see it. But if I begin
> > > it in the TextView, I don't; also, mouse down on the TextView causes
> > > the tyext to disappear until the mouse is released (I don't know if
> > > that's relevant, but I thought I'd mention it). It seems that Android
> > > attaches the listeners to the first view in the layout, which looks
> > > like a bug to me. How can I get Android to recognize flings (and
> > > clicks) anywhere in the view?
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > 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
> >
> > --
> > 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
>



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

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

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

Re: [android-developers] Re: Save and continue game

2010-11-13 Thread Dianne Hackborn
Fwiw, to me a SQLite database for storing a game save is way overkill.  If
the state is simple, use SharedPreferences.  If it is more complicated, just
put it in a flat file.

On Sat, Nov 13, 2010 at 11:59 AM, TreKing  wrote:

> On Sat, Nov 13, 2010 at 10:25 AM, acr  wrote:
>
>> I have a DB setup and ready to go, but Im not sure which data to capture/
>> how to capture it, and how to restore it.
>>
>
> Which: whatever you need to save and restore.
> How: if you already have a DB setup (I assume SQLite) there's plenty of
> tutorials online on saving and restoring data from one
>
>
>> I would think I'd have to save the 49 xy positions of the graphics and
>> their types, the score and time remaining.
>>
>
> That sounds about right.
>
>
>> I cant find anything clear on this that pertains to a game state.
>>
>
> All games are different and will require saving their game states
> differently. You're not going to find one all-encompassing solution.
>
> The basic idea should be along these lines though:
>
> * Identify what data you want the user to be able to save and restore.
> * Implement a save method that writes the relevant data to your DB
> * Call this when your app is paused / stopped / destroyed
> * Implement a load method that restores your game state from the saved DB
> values
> * Call this when your app is starting up in onCreate
>
>
> -
>  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
>



-- 
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: TCP problem - hangs when reading server's response

2010-11-13 Thread bobetko
I tried:
input.read();

I also tried to read Reader the same way:
Reader in = new InputStreamReader(s.getInputStream());
in.read();

Out of desperation I tried to recompile to 2.2 (now is 2.1).

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


Re: [android-developers] Activity display over incoming call screen

2010-11-13 Thread Dianne Hackborn
What you are trying to do is simply not going to work reliably.  The
incoming call broadcast is a broadcast, and at the same time you are
handling it and doing something the system is in the process of showing the
in-call screen.  There is a race going on between you starting your activity
and the in-call screen activity being started, and which gets there *second*
(which is the the user will see barring some flicker) is effectively random.

On Sat, Nov 13, 2010 at 7:46 AM, mohammad Rukab wrote:

> Hello ,
>
> i have problem when i start activity from incoming call
> broadcastReciever, the problem is :
>
> when call is coming i start activity X with FLAG_ACTIVITY_NEW_TASK
> flag, and it is work fine when my application is not on the screen.
>
> but if my application on the screen (activity Y) and call come, when
> activity X called from braodcastReciver Activity Y cover screen over
> incoming call screen then Actvity X display, so 2 activity become over
> incoming call, although i just want activity X just display.
>
> Please an body have idea??
>
> --
> You received this message because you are subscribed to the Google
> 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: Android Market Licensing Problem

2010-11-13 Thread John Gaby
I have added some logging code and found that the raw response from
the License Service (i.e. the call back to verifyLicense in
LicenseChecker.java) has a responseCode of '0', which means
'licensed'.  This is simply not correct.  This phone does NOT have a
valid account which would generate such a response.  Can someone
please explain why this is happening.  Does this License Service
simply not work correctly on a large number of phones?  Does using the
service have any value at all?

Thanks.

On Nov 13, 3:31 am, bagelboy  wrote:
> I recently did my own LVL implementation and I can tell you that
> tracing these issues down is a real pain. First you need to put loads
> of logging into the LVL code to find out what the actual response is,
> otherwise you have no visibility, then you have to put logging into
> all the code between the response and the allow/dontallow callbacks.
>
> Basically what I found was the stock code was unworkable in many ways.
> I quickly came to the conclusion that I needed to modify it into
> something that worked for me. There's a few reasons behind why you
> should abandon the stock code:
> - if you use the stock implementation then crackers will find it very
> easy to circumvent
> - as you have found it is very hard to debug. You have to spend so
> much time figuring out how it works you may as well roll your own
> instead.
> - who's to say whether the google responses are what you want? How
> many retries do you want before it sends a dontAllow back? Maybe you
> want to treat the error responses as a retry. Do you want google to
> specify that or yourself? Do you want them to specify the time between
> checks? It's better to take control of this process so you know
> exactly what is going on and you can manage the user experience.
>
> In the system I came up with in the end all I use is the response and
> none of the extras. What I do with the response is all custom, that
> way I can use the market test responses in development without
> issues.
>
> -BB
>
> On Nov 13, 4:40 am, John Gaby  wrote:
>
> > I am using pretty much the default Android Market Licensing in my
> > application, but find that it is not working correctly on most of the
> > devices that I have tested.  I have uploaded my app to the Market but
> > not published it.  If install it on the emulator which does not have
> > any Google accounts, then I receive a 'dontAllow' from the check,
> > which is correct.
>
> > If I install it on a Motorola Droid phone (which I have in my
> > possession) that has my Market Google account associated with it, then
> > it will return 'allow' or 'don't allow' depending on how I set the
> > test market. I have also installed it on an HTC Incredible phone, and
> > it seems to work there as well.
>
> > However, I have tested 4 other phones (HTC Hero, HTC Brovo Desire, HTC
> > Droid Eris and HTC Nexus One), and on each of these phones, I get an
> > 'allow' call from the license check, even though there is no
> > authorizing account on the phone.  Can someone tell me what is going
> > on here?
>
> > 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


Re: [android-developers] Re: TCP problem - hangs when reading server's response

2010-11-13 Thread Miguel Morales
Well, you're using ReadLine() are you sure the server is actually
sending lines, as in ending with '\n'?
You might want to try using the InputStream directly with read().

On Sat, Nov 13, 2010 at 6:18 PM, bobetko  wrote:
> And one more thing,
> Encoding.UTF8 is used. Not sure if that might be important.
>
> --
> You received this message because you are subscribed to the Google
> 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



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://developingthedream.blogspot.com/,
http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
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: TCP problem - hangs when reading server's response

2010-11-13 Thread bobetko
And one more thing,
Encoding.UTF8 is used. Not sure if that might be important.

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


Re: [android-developers] Activity display over incoming call screen

2010-11-13 Thread mohammad Rukab
Thank TreKing for your response,

i run activity not from my application (BroadCastReciever) so has to se NEW_TASK


On Sun, Nov 14, 2010 at 3:00 AM, TreKing  wrote:
> On Sat, Nov 13, 2010 at 9:46 AM, mohammad Rukab 
> wrote:
>>
>> Please an body have idea??
>
> Don't use NEW_TASK if you don't want a NEW_TASK. Use one of the other flags
> what will re-use your existing activity so there's only one (SINGLE_TOP
> perhaps).
>
> -
> TreKing - Chicago transit tracking app for Android-powered devices
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] TCP problem - hangs when reading server's response

2010-11-13 Thread bobetko
I am trying to write client for Android which is supposed to
communicate with PC server application on local network.
Server app is written by my friend in C#. Currently there is an iPhone
app that is using this server application with no problems.

I have very simple code for TCP client:

1. Socket s = new Socket(server, port);
2. OutputStream out = s.getOutputStream();
3. PrintWriter output = new PrintWriter(out);
4. output.println("ACTION=Next&VALUE=0&");
5. BufferedReader input = new BufferedReader(new
InputStreamReader(s.getInputStream()));
6. String st = input.readLine();

I went through many TCP implementation examples, and they are all
similar. Pretty much like my code above.
My app freezes on line 6 when I try to read response from the server.
It doesn't cause any errors (no exceptions), nothing shows in
debugger, just timeout error after awhile. Server is supposed to
return string  after executing my action in line 4.
I don't understand why this code hangs. Input is not NULL (I've
checked it). I would expect some exception to be thrown or simply
empty string to be returned.

So? What am I missing? Could it be problem with some special
characters that server app is sending and android can't handle that?
Do I need any special permission in my manifest?

I am positive that I have correct IP address and correct port number.
I can see that on server application running on my PC.

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


Re: [android-developers] Activity display over incoming call screen

2010-11-13 Thread mohammad Rukab
Tanks Gergely,

yes exactly , that what i want, in fact i don't why my main activity
cover call screen when i run new activity, if it was on screen before
call come, but if it wasn't on screen every thing ok.

On Sat, Nov 13, 2010 at 7:39 PM, Gergely Juhász  wrote:
> Just for clarify.
> As i understand you want the activity stack to be like this: (The
> first is the top of the stack.)
>
> 1. Cover activity    - Your application
> 2. Incall activity     - Another application
> 3. Another Activity - Your application
>
> I dont know. It is even possible to do?
>
> On 13 November 2010 16:46, mohammad Rukab  wrote:
>> Hello ,
>>
>> i have problem when i start activity from incoming call
>> broadcastReciever, the problem is :
>>
>> when call is coming i start activity X with FLAG_ACTIVITY_NEW_TASK
>> flag, and it is work fine when my application is not on the screen.
>>
>> but if my application on the screen (activity Y) and call come, when
>> activity X called from braodcastReciver Activity Y cover screen over
>> incoming call screen then Actvity X display, so 2 activity become over
>> incoming call, although i just want activity X just display.
>>
>> Please an body have idea??
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: Expandable ListView (how to collapse, expand groups and remove groups)

2010-11-13 Thread TreKing
On Sat, Nov 13, 2010 at 7:04 PM, bobetko  wrote:

> ListView lv;
> lv = getExpandableListView();
>
> This worked, but I was not able to see all available methods for
> myExpandableListView.
>

Not surprising since you called getExpandableListView but assigned it to an
object of type ListView. :-)

-
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: Expandable ListView (how to collapse, expand groups and remove groups)

2010-11-13 Thread bobetko
Yes, my ELV is backed by BaseExpandableListAdapter.

I had this code in my app:

ListView lv;
lv = getExpandableListView();

This worked, but I was not able to see all available methods for
myExpandableListView.
Thanks a lot.

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


Re: [android-developers] Activity display over incoming call screen

2010-11-13 Thread TreKing
On Sat, Nov 13, 2010 at 9:46 AM, mohammad Rukab wrote:

> Please an body have idea??


Don't use NEW_TASK if you don't want a NEW_TASK. Use one of the other flags
what will re-use your existing activity so there's only one (SINGLE_TOP
perhaps).

-
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: Ajax cross domain requests

2010-11-13 Thread ff


On Nov 8, 8:32 pm, Frank Weiss  wrote:
> Not sure if you're just complainig about the error handling. I suppose you
> know that JSONP does cross-domain and is supported by jQuery.ajax.

Yep, the error handling is wrong and dangerous since the browser
actually sends the request while it shouldn't (it becomes possible to
use it for distributed dos attacks).

And while jsonp is just an hack, CORS is the standard solutions
implemented by all modern browsers...

Bye,
ff

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


RE: [android-developers] customer loses my app after install and then turn off phone

2010-11-13 Thread Tommy
I have the original moto droid now with froyo. What's the name of your app I
can see if it happens to me and see if I can help you out a bit with it if
you want. Is it free?

Tommy

Android Mobile Phone Application Developer
Database Administrator
.net Web Specialist

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of shawn
Sent: Saturday, November 13, 2010 5:50 PM
To: Android Developers
Subject: [android-developers] customer loses my app after install and then
turn off phone

With a few thousand customers, only 2 have complained of this
problem.  They install the app, then put the phone in standby/sleep
mode (i.e. turning it off, but not shutting it down).  When they turn
it back on, my app's icon is reverted to the generic green and white
android icon and the title shows as the class name of the app instead
of the title.  And, of course, the app no longer works.  I am at a
loss as to what to do.  It seems like an android bug to me.  And I
think both customers are using a Motorola Droid.

Please help!  Anybody else heard of this?  I am not sure what to
search for on Google.

-- 
You received this message because you are subscribed to the Google
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: Making window full-screen on Galaxy Tab

2010-11-13 Thread Phil Endecott
OK, I've found the  thing - it works!  Sorry for the
noise.

-- 
You received this message because you are subscribed to the Google
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] customer loses my app after install and then turn off phone

2010-11-13 Thread shawn
With a few thousand customers, only 2 have complained of this
problem.  They install the app, then put the phone in standby/sleep
mode (i.e. turning it off, but not shutting it down).  When they turn
it back on, my app's icon is reverted to the generic green and white
android icon and the title shows as the class name of the app instead
of the title.  And, of course, the app no longer works.  I am at a
loss as to what to do.  It seems like an android bug to me.  And I
think both customers are using a Motorola Droid.

Please help!  Anybody else heard of this?  I am not sure what to
search for on Google.

-- 
You received this message because you are subscribed to the Google
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] Making window full-screen on Galaxy Tab

2010-11-13 Thread Phil Endecott
Dear All,

I have a simple app that is mostly native-code OpenGL with about a
page of Java to interface to it.  On my new Galaxy Tab, it creates a
window that is about 480x800 pixels, while on other devices (including
an AC100 with a larger screen) it fills the whole screen.

Searching the web, it seems that this affects many existing apps when
they are run on this device, and there is plenty of end-user advice
about how to make apps fill the screen.  But I've failed to find any
advice about how I should do it from within the app.

My current Java code is not much more than this:

public class FooActivity extends Activity
{
  @Override
  public void onCreate(Bundle savedInstanceState)
  {
super.onCreate(savedInstanceState);
gl_view = new FooGLSurfaceView(this);
setContentView(gl_view);
  }
  ..
}

My impression is that that will generally create a full-screen view on
devices other than the Galaxy Tab.

I've experimented with passing a
ViewGroup.LayoutParams(FILL_PARENT,FILL_PARENT) as a second parameter
to setContentView, but that doesn't change anything.  From what I
understand of the docs, I should perhaps be changing the window
properties to ask for full-screen mode, but it's not obvious to me how
to do that; how do I get the current window?

Can anyone help?

Many thanks,  Phil.

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


Re: [android-developers] DatePickerDialog onDateSet crashes my code

2010-11-13 Thread TreKing
On Sat, Nov 13, 2010 at 4:18 PM, sisko  wrote:

> Please help!


Please post the stack trace from your crash.

-
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] DatePickerDialog onDateSet crashes my code

2010-11-13 Thread sisko
I am trying to get my first DatePickerDialog working but bizarrely,
the app keeps crashing just as my onDateSet() function is encountered.

My code is below:
protected Dialog onCreateDialog(int id){
//super.onCreateDialog(id);

Log.e("TRACKING", "Just outside onDateSet()");

switch(id){
case DATE_DIALOG_ID:
Log.e("TRACKING", "entering onDateSet()");
final TextView dob  =   
(TextView)findViewById(R.id.DOB);

Log.e("TRACKING", "reaching#1");

DatePickerDialog dateDialog =   
new DatePickerDialog(this, new
DatePickerDialog.OnDateSetListener() {

@Override
public void 
onDateSet(DatePicker view, int year,
int 
monthOfYear, int dayOfMonth) {
// TODO Auto-generated 
method stub

}

/*...@override
public void 
onDateSet(DatePicker view, int year, int
monthOfYear, int dayOfMonth){
Log.e("TRACKING", 
"reaching#2");
// TODO Auto-generated 
method stub
Time dateOfBirth
=   new Time();

dateOfBirth.set(dayOfMonth, monthOfYear, year);
long dtDob  
=   dateOfBirth.toMillis(true);

dob.setText(DateFormat.format(" dd ", dtDob));

Editor editor   =   
mGameSettings.edit();

editor.putLong(GAME_PREFERENCES_DOB, dtDob);
editor.commit();
}

}, 0, 0, 0);
Log.e("TRACKING", "end of onDateSet()");
return dateDialog;

//return new DatePickerDialog(this, 
mDateSetListener, 0, 0,
0);


default:
break;
}

return null;

}

As normal, I call my dialog by showDialog(DATE_DIALOG_ID);

The log message Log.e("TRACKING", "reaching#2"), is never logged.

Please help!

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


Re: [android-developers] Re: Get web page with spaces in path

2010-11-13 Thread xiaoxiong weng
Nice

On 2010-11-13 10:52 AM, "Hal"  wrote:



something like this should  work (Taken from
Jt.http.JtHttpAdapter) 

 try {
 eString = URLEncoder.encode(xmlMsg, "UTF-8");
 } catch (UnsupportedEncodingException e) {
 handleException(e);
 return (null);
 }

I hope it helps.

On Nov 12, 10:10 am, Pikoh  wrote:
>  Hi all,
>
>i'm stuck with this one. i just want to get this webpage ->
http://www.emtmalaga.es/portal/page/portal/EMT/Tiemposde espera

> into a string. I'm using HttpGet(url). First it threw me an error
> because of spaces, and i used ...

-- 
You received this message because you are subscribed to the Google
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] reading selected text ..

2010-11-13 Thread Kartik Bansal
hi..

is it possible to read the text selected by the user.. ??

is the text selected by the user automatically copied to the clipboard
bcoz then we can copy the text from clipboard manager??

is there a way to get notified when a user has selected any text ??


thanks
kartik..

-- 
You received this message because you are subscribed to the Google
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] reading selected text ..

2010-11-13 Thread Kartik Bansal
hi..

is it possible to read the text selected by the user.. ??

is the text selected by the user automatically copied to the clipboard
bcoz then we can copy the text from clipboard manager??

is there a way to get notified when a user has selected any text ??


thanks
kartik..

-- 
You received this message because you are subscribed to the Google
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: Localizing example somewhere?

2010-11-13 Thread Rutton
Thanks for all your help. I worked it out my way. Here is the code for
a getLocalizedMessage in a custom exception:

public String getLocalizedMessage() {
Context c = LearningWordsApplication.getContext();

int id = R.string.error_unknown;
switch (error) {
case ERROR_CANNOT_CREATE_DIR:
id = R.string.error_directory_cannot_be_created;
break;
case ERROR_CANNOT_CREATE_FILE:
id = R.string.error_file_cannot_be_created;
break;
case ERROR_WEIRD_WRITING:
id = R.string.error_weird_writing;
break;
case ERROR_CANNOT_READ:
id = R.string.error_cannot_read_file;
break;
case ERROR_NO_CHARSET_FOR_READER:
id = R.string.error_no_charset_for_reader;
break;
case ERROR_CANNOT_FIND_EXTERNAL_STORAGE:
id = R.string.error_cannot_find_external_storage;
break;
default:
id = R.string.error_unknown;
}

String msg = c.getResources().getString(id);
String result = null;
if (paramTwo != null && paramOne != null) {
Object[] args = { paramOne, paramTwo };
result = MessageFormat.format(msg, args);
}
else if (paramOne != null) {
Object[] args = { paramOne };
result = MessageFormat.format(msg, args);
}

return result;
 }

As you see, a R.string.* Messages uses localized files, the android
localizing method and those contain the MessageFormat for the creation
of preformatted messages.
Cheers,
R.


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


Re: [android-developers] Re: Make Software Library

2010-11-13 Thread Mark Murphy
On Sat, Nov 13, 2010 at 3:27 PM, Premier  wrote:
> My application design wants to solve follow problem:
>
> i've to create an application "template". I sell this template to my
> customers. They extend my application with their ui.
>
> My solutions are:
> - create a jar library, in this way customers can integrate my jar in
> their app. Problem is: i haven't control on their app, so if there is
> a bug in my jar library, how i can solve it for all app of all my
> customers?

Send them the replacement JAR. This model has worked reasonably well,
in various forms and technologies, for half a century.

> - create a basic app without ui, so my customers can create their app
> and use services provided by my app. In this way i can correct and
> upgrade my app, and customers haven't to upgrade their apps.

In other words, you want to force your customers to upgrade, whether
they want to or not. You will not let them discuss whether or not they
want the upgrade. You will not let them examine the security
ramifications of the upgrade. You will not let them test before
rolling out the upgrade, in case something in their application breaks
based on your changes. You will not let them distribute the upgrade
only to beta testers at the outset. You will not let them control the
timing of the upgrade, in case your upgrade comes at a bad time (e.g.,
forcing an upgrade of their World Cup application in the middle of the
World Cup). And so on.

If nothing else, offer both solutions.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
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: Detecting flings in a ListActivity containing non-simple views

2010-11-13 Thread FractalBob


On Nov 13, 11:45 am, Dianne Hackborn  wrote:
> Where are you attaching your listeners?  Are you taking into account view
> recycling?  This is not generally something one wants to do in a list view,
> and if you do go down this path you need to be very careful about
> understanding how list view works with recycling views and such.
>
I'm attaching my listeners in the getView() method of the adapter I
use to load the list. As for view recycling, I don't see why that
would be an issue.
>
>
>
>
>
>
>
>
> On Sat, Nov 13, 2010 at 11:20 AM, FractalBob  wrote:
> > Hi,
>
> > I have a list that contains views consisting an ImageView followed on
> > the right by a TextView:
>
> >     >        android:orientation="horizontal"
> >        android:layout_width="fill_parent"
> >        android:layout_height="wrap_content">
> >         >            android:layout_width="88dp"
> >            android:layout_height="66dp"
> >            android:padding="10dp" />
> >         >            android:lines="4"
> >            android:inputType="textMultiLine"
> >            android:layout_marginTop="5dp"
> >            android:text="@string/LANGKEY_headlines_unavailable"
> >            android:layout_width="fill_parent"
> >            android:layout_height="wrap_content"/>
> >    
>
> > I implemented fling the usual way, as follows:
>
> >            listItemView.setOnClickListener(NewsListActivity.this);
> >            listItemView.setOnTouchListener(gestureListener);
>
> > where listItemView is the above view.
>
> > Now, if I begin the fling on the ImageView, I see it. But if I begin
> > it in the TextView, I don't; also, mouse down on the TextView causes
> > the tyext to disappear until the mouse is released (I don't know if
> > that's relevant, but I thought I'd mention it). It seems that Android
> > attaches the listeners to the first view in the layout, which looks
> > like a bug to me. How can I get Android to recognize flings (and
> > clicks) anywhere in the view?
>
> > --
> > You received this message because you are subscribed to the Google
> > 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
>
> --
> 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: Make Software Library

2010-11-13 Thread Premier
Hello,
thank you.

My application design wants to solve follow problem:

i've to create an application "template". I sell this template to my
customers. They extend my application with their ui.

My solutions are:
- create a jar library, in this way customers can integrate my jar in
their app. Problem is: i haven't control on their app, so if there is
a bug in my jar library, how i can solve it for all app of all my
customers?
- create a basic app without ui, so my customers can create their app
and use services provided by my app. In this way i can correct and
upgrade my app, and customers haven't to upgrade their apps.

Do you have suggests?

Thanks.

On 13 Nov, 20:45, Mark Murphy  wrote:
> On Sat, Nov 13, 2010 at 2:34 PM, Bret Foreman  wrote:
> > Here's an example where they did something like what you suggest.
>
> IMHO, Locale bears little resemblance to what the OP is requesting.
>
> Locale is an application, not a library. Locale has intrinsic value to
> the end user but can be extended via integration with other
> applications -- a library has no value to the user. Many apps that
> integrate with Locale also have intrinsic value and can run without
> Locale -- apps that depend upon a library cannot.
>
> Locale *is* an excellent example of the integration possibilities of
> Android, particularly between two peer applications. It is not an
> example of a "software library", IMHO.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in London:http://bit.ly/smand1andhttp://bit.ly/smand2

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


Re: [android-developers] Re: Save and continue game

2010-11-13 Thread TreKing
On Sat, Nov 13, 2010 at 10:25 AM, acr  wrote:

> I have a DB setup and ready to go, but Im not sure which data to capture/
> how to capture it, and how to restore it.
>

Which: whatever you need to save and restore.
How: if you already have a DB setup (I assume SQLite) there's plenty of
tutorials online on saving and restoring data from one


> I would think I'd have to save the 49 xy positions of the graphics and
> their types, the score and time remaining.
>

That sounds about right.


> I cant find anything clear on this that pertains to a game state.
>

All games are different and will require saving their game states
differently. You're not going to find one all-encompassing solution.

The basic idea should be along these lines though:

* Identify what data you want the user to be able to save and restore.
* Implement a save method that writes the relevant data to your DB
* Call this when your app is paused / stopped / destroyed
* Implement a load method that restores your game state from the saved DB
values
* Call this when your app is starting up in onCreate

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

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

Re: [android-developers] Detecting flings in a ListActivity containing non-simple views

2010-11-13 Thread Dianne Hackborn
Where are you attaching your listeners?  Are you taking into account view
recycling?  This is not generally something one wants to do in a list view,
and if you do go down this path you need to be very careful about
understanding how list view works with recycling views and such.

On Sat, Nov 13, 2010 at 11:20 AM, FractalBob  wrote:

> Hi,
>
> I have a list that contains views consisting an ImageView followed on
> the right by a TextView:
>
>android:orientation="horizontal"
>android:layout_width="fill_parent"
>android:layout_height="wrap_content">
>android:layout_width="88dp"
>android:layout_height="66dp"
>android:padding="10dp" />
>android:lines="4"
>android:inputType="textMultiLine"
>android:layout_marginTop="5dp"
>android:text="@string/LANGKEY_headlines_unavailable"
>android:layout_width="fill_parent"
>android:layout_height="wrap_content"/>
>
>
> I implemented fling the usual way, as follows:
>
>listItemView.setOnClickListener(NewsListActivity.this);
>listItemView.setOnTouchListener(gestureListener);
>
> where listItemView is the above view.
>
> Now, if I begin the fling on the ImageView, I see it. But if I begin
> it in the TextView, I don't; also, mouse down on the TextView causes
> the tyext to disappear until the mouse is released (I don't know if
> that's relevant, but I thought I'd mention it). It seems that Android
> attaches the listeners to the first view in the layout, which looks
> like a bug to me. How can I get Android to recognize flings (and
> clicks) anywhere in the view?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Re: Make Software Library

2010-11-13 Thread Mark Murphy
On Sat, Nov 13, 2010 at 2:34 PM, Bret Foreman  wrote:
> Here's an example where they did something like what you suggest.

IMHO, Locale bears little resemblance to what the OP is requesting.

Locale is an application, not a library. Locale has intrinsic value to
the end user but can be extended via integration with other
applications -- a library has no value to the user. Many apps that
integrate with Locale also have intrinsic value and can run without
Locale -- apps that depend upon a library cannot.

Locale *is* an excellent example of the integration possibilities of
Android, particularly between two peer applications. It is not an
example of a "software library", IMHO.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
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: Make Software Library

2010-11-13 Thread Bret Foreman
Here's an example where they did something like what you suggest. They
have a whole framework that other apps can plug into for services.
It's not simple, but it's one of the most successful business cases on
Android so far so it's worth paying attention to.

http://www.twofortyfouram.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] Re: Localizing example somewhere?

2010-11-13 Thread letlite
You can catch and format whatever exception you are concerned about.
Use android.content.res.Resource.getString to format messages:
http://developer.android.com/reference/android/content/res/Resources.html#getString(int,
java.lang.Object...)

On Nov 12, 10:21 am, Rutton  wrote:
> Thanks for your kind explanation.
> The describing text is easy to realize, but what I wanted to really
> know is, how to deal with (custom formatted) exception messages. So,
> is it good practice to use the Exception e.getLocalizedMessage() and
> use the Java-mechanism to deal with that, perhaps in conjunction with
> the Android-string localization features.
>
> What I have is exception throwing code (that creates custom
> formatted / not just text values that can be retrieved from the res/*
> files). And I ask myself, what to do here the best. At somepoint an
> exception *may* bubble up to a error message to the user, and how to
> localize these the best way.
>
> Cheers,
> R.

-- 
You received this message because you are subscribed to the Google
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] Detecting flings in a ListActivity containing non-simple views

2010-11-13 Thread FractalBob
Hi,

I have a list that contains views consisting an ImageView followed on
the right by a TextView:






I implemented fling the usual way, as follows:

listItemView.setOnClickListener(NewsListActivity.this);
listItemView.setOnTouchListener(gestureListener);

where listItemView is the above view.

Now, if I begin the fling on the ImageView, I see it. But if I begin
it in the TextView, I don't; also, mouse down on the TextView causes
the tyext to disappear until the mouse is released (I don't know if
that's relevant, but I thought I'd mention it). It seems that Android
attaches the listeners to the first view in the layout, which looks
like a bug to me. How can I get Android to recognize flings (and
clicks) anywhere in the view?

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


Re: [android-developers] Re: adb can't find my Verizon Samsung Galaxy Tab ...

2010-11-13 Thread Gergely Juhász
as is remember i use these:
http://forum.xda-developers.com/showthread.php?t=728929


2010/11/13 Kostya Vasilyev :
> Probably need to either download Samsung's drivers for the Tab (is there
> Kies for it?) or hack upnp device id's in the standard driver's inf file.
>
> --
> Kostya Vasilyev -- http://kmansoft.wordpress.com
>
> 13.11.2010 22:09 пользователь "OldSkoolMark" 
> написал:
>
> Thanks everyone. That did the trick to set the usb debugging option.
> Bad news is that on both my Win 7 Pro 64 system and my
> XP system, I still can't get 'adb devices' to see it. Nobody needed
> drivers from Samsung? Or elsewhere?
>
> On Nov 13, 6:50 am, Kostya Vasilyev  wrote:
>> Galaxy S is the same way - you ca...
>
>> 13.11.2010 17:49 пользователь "jsdf"  написал:
>
>>
>> I had to unplug it from the computer. Then I could check the check
>> box.
>> This was on a  T-Mob...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" g...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: adb can't find my Verizon Samsung Galaxy Tab ...

2010-11-13 Thread Kostya Vasilyev
Probably need to either download Samsung's drivers for the Tab (is there
Kies for it?) or hack upnp device id's in the standard driver's inf file.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

13.11.2010 22:09 пользователь "OldSkoolMark" 
написал:

Thanks everyone. That did the trick to set the usb debugging option.
Bad news is that on both my Win 7 Pro 64 system and my
XP system, I still can't get 'adb devices' to see it. Nobody needed
drivers from Samsung? Or elsewhere?


On Nov 13, 6:50 am, Kostya Vasilyev  wrote:
> Galaxy S is the same way - you ca...
> 13.11.2010 17:49 пользователь "jsdf"  написал:

>
> I had to unplug it from the computer. Then I could check the check
> box.
> This was on a  T-Mob...

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

-- 
You received this message because you are subscribed to the Google
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: adb can't find my Verizon Samsung Galaxy Tab ...

2010-11-13 Thread OldSkoolMark
Thanks everyone. That did the trick to set the usb debugging option.
Bad news is that on both my Win 7 Pro 64 system and my
XP system, I still can't get 'adb devices' to see it. Nobody needed
drivers from Samsung? Or elsewhere?

On Nov 13, 6:50 am, Kostya Vasilyev  wrote:
> Galaxy S is the same way - you can't change this setting while USB is
> connected.
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com
>
> 13.11.2010 17:49 пользователь "jsdf"  написал:
>
> I had to unplug it from the computer. Then I could check the check
> box.
> This was on a  T-Mobile tab, your mileage may vary.
>
> On Nov 13, 12:09 am, OldSkoolMark  wrote:
>
> > The 'enable USB debugging' setti...
>
>

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


Re: [android-developers] Error when try to upload Anroid App in Android Maket

2010-11-13 Thread Marcin Orlowski
On 13 November 2010 19:50, Amit Mangal  wrote:
> Hi every one
> i am trying to upload application in android market and getting error
> message
> Market does not accept apks signed with the debug certificate. Create a new
> certificate that is valid for at least 50 years.
> Market requires that the certificate used to sign the apk be valid until at
> least October 22, 2033. Create a new certificate.
> Market requires the minSdkVersion to be set to a positive 32-bit integer in
> AndroidManifest.xml.
> Any clue ?

Read the message you quoted? Fullfil the requirements described.

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


Re: [android-developers] Error when try to upload Anroid App in Android Maket

2010-11-13 Thread Kumar Bibek
It tells you everything. :)

You need to generate a certificate first.

http://techdroid.kbeanie.com/2010/02/sign-your-android-applications-for.html

Hope it helps.

On Sun, Nov 14, 2010 at 12:20 AM, Amit Mangal
wrote:

> Hi every one
> i am trying to upload application in android market and getting error
> message
> Market does not accept apks signed with the debug certificate. Create a new
> certificate that is valid for at least 50 years.
> Market requires that the certificate used to sign the apk be valid until at
> least October 22, 2033. Create a new certificate.
> Market requires the minSdkVersion to be set to a positive 32-bit integer in
> AndroidManifest.xml.
>
> Any clue ?
>
> Thank you
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.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] Error when try to upload Anroid App in Android Maket

2010-11-13 Thread Amit Mangal
Hi every one
i am trying to upload application in android market and getting error
message
Market does not accept apks signed with the debug certificate. Create a new
certificate that is valid for at least 50 years.
Market requires that the certificate used to sign the apk be valid until at
least October 22, 2033. Create a new certificate.
Market requires the minSdkVersion to be set to a positive 32-bit integer in
AndroidManifest.xml.

Any clue ?

Thank you

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

Re: [android-developers] android.intent.action.NOTIFICATION_REMOVE not available on all devices?

2010-11-13 Thread Dianne Hackborn
There is no such intent action defined in the SDK as far as I know.  Can you
point to documentation in the SDK for this?  If not, it is not something
that you can assume exists.

The correct way to find out if a notification was cleared is this:
http://developer.android.com/reference/android/app/Notification.html#deleteIntent

On Fri, Nov 12, 2010 at 8:59 PM, Matt McMinn  wrote:

> I've got a receiver set up in my android application to catch
> android.intent.action.NOTIFICATION_REMOVE intents. On my Evo, it works
> fine - when a notification is cleared from the notification bar, I
> catch that event and can run some code. I tried running this on a
> Samsung Moment though, and it is never caught. So now I'm trying to
> figure out why, and I can't seem to find anything on Google about this
> intent action - and I set this code up a few months ago, so I don't
> remember where I even found this action, it doesn't seem to be in the
> API.
>
> The evo is running 2.2, and the moment is running 2.1-update1, so I'm
> guessing that it's undocumented, and only available in 2.2. Is there
> any other way to catch an event that a notification has been cleared?
> Note that I'm not trying to cancel a notification that I put up, or
> trying to cancel another app's notification, just catch an event when
> a notification has been cleared.
>
> Here's my receiver in AndroidManafest.xml:
>
> 
>
> android:name="android.intent.action.NOTIFICATION_REMOVE" />
>
> 
>
> Thanks
>
> Matt
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Why is the Android UI toolkit not thread-safe?

2010-11-13 Thread Dianne Hackborn
On Sat, Nov 13, 2010 at 9:03 AM, tarek attia wrote:

> As I read at many places this phrase "the Android UI toolkit is not
> thread-safe"
> Why is that,just I want to understand .
>

Because it would require a much more complex implementation with more
overhead, and make it more complicated for application developers writing
code that is part of it (such as custom views).  For in my opinion not much
benefit.

-- 
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: Google Maps API hidden maps and opengl

2010-11-13 Thread Chister Nordvik
Did you ever figure this one out? I tried to create a very simple map
application, but got the "stub" exception at startup both on device
and in emulator:
E/AndroidRuntime(  263): Caused by: java.lang.RuntimeException: stub
E/AndroidRuntime(  263):at
com.google.android.maps.MapActivity.(Unknown Source)

Followed the tutorial from here: 
http://developer.android.com/guide/tutorials/views/hello-mapview.html
with no success. Must be something with the setup?

-Christer




On Nov 2, 1:48 pm, Adam Hammer  wrote:
> That is the entire error. 2 Line stack trace, I called the function
> and I get the "Stub"
>
> I've managed to get MapView working in a activity with Opengl and
> using offscreen rendering. It's actually performing very well.
>
> I'll go back and try in a LWP once I iron out all the activity bugs.
>
> On Nov 1, 9:41 am, TreKing  wrote:
>
>
>
>
>
>
>
> > On Fri, Oct 29, 2010 at 6:00 PM, Adam Hammer  wrote:
> > > I get an error
>
> > >java.lang.RuntimeException:stub
> > >   at com.google.android.maps.MapView. (Unknown Source)
>
> > Is that really the entire error?
>
> > Regardless, read the MapView documentation. It explains where and how the
> > MapView can be used.
>
> > --- 
> > --
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices

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


Re: [android-developers] Activity display over incoming call screen

2010-11-13 Thread Gergely Juhász
Just for clarify.
As i understand you want the activity stack to be like this: (The
first is the top of the stack.)

1. Cover activity- Your application
2. Incall activity - Another application
3. Another Activity - Your application

I dont know. It is even possible to do?

On 13 November 2010 16:46, mohammad Rukab  wrote:
> Hello ,
>
> i have problem when i start activity from incoming call
> broadcastReciever, the problem is :
>
> when call is coming i start activity X with FLAG_ACTIVITY_NEW_TASK
> flag, and it is work fine when my application is not on the screen.
>
> but if my application on the screen (activity Y) and call come, when
> activity X called from braodcastReciver Activity Y cover screen over
> incoming call screen then Actvity X display, so 2 activity become over
> incoming call, although i just want activity X just display.
>
> Please an body have idea??
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Why is the Android UI toolkit not thread-safe?

2010-11-13 Thread Marcin Orlowski
On 13 November 2010 18:03, tarek attia  wrote:
> Hi all,
> As I read at many places this phrase "the Android UI toolkit is not
> thread-safe"  Why is that,just I want to understand .

http://en.wikipedia.org/wiki/Thread_safety

-- 
You received this message because you are subscribed to the Google
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] Why is the Android UI toolkit not thread-safe?

2010-11-13 Thread tarek attia
Hi all,

As I read at many places this phrase "the Android UI toolkit is not
thread-safe"

Why is that,just I want to understand .


Regards,

-- 
tarek

-- 
You received this message because you are subscribed to the Google
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: Show Progressbar while getting records from a cursor

2010-11-13 Thread Bret Foreman
This situation looks tailor made for an AsyncTask, which allows you to
manage background and foreground threads with a simple interface. And
the docs have a progress bar example that sounds like exactly what you
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: Product images for marketing materials

2010-11-13 Thread Bret Foreman
MOTODEV has fantastic developer support. Contact me directly if you
want specific names of people who have helped me.

On Nov 13, 4:42 am, Mark Murphy  wrote:
> For Motorola, use MOTODEV.
>
> I cannot comment on HTC's plans in this area, though I remain hopeful.
>
> I have nary a clue what Samsung intends to do, particularly since they
> also have bada to support.
>
> On Sat, Nov 13, 2010 at 7:28 AM, Phil Endecott
>
>
>
>  wrote:
> > On Nov 13, 1:24 am, dan raaka  wrote:
> >>http://www.samsung.com/us/support/contact
>
> > Thanks Dan.  Actually I had spent quite a long time on the phone
> > trying to find the right person at Samsung before I posted here.  The
> > closest I was able to find was their press relations team, but they
> > didn't return my calls.
>
> > The flyers are now done, but with only Apple product images.  Those of
> > you who are also iPhone developers will know that they have an artwork
> > license agreement that you print out and mail to them to get
> > permission to use the product images.  At the time I thought this was
> > a bit bureaucratic, but it's better than having nothing at all!
>
> > This raises the more general question of who our contacts with "the
> > industry" are supposed to be.  Do we talk to Google, or to the product
> > vendors?  Google do seem to have some points of contact, but my
> > (brief) research can't find any significant "developer support"
> > contacts or resources from Samsung, HTC or Motorola.  Am I looking in
> > the wrong places?
>
> > --
> > You received this message because you are subscribed to the Google
> > 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 London:http://bit.ly/smand1andhttp://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
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 Service

2010-11-13 Thread MarcoAndroid
Here's some experiences/lessons learned, maybe useful:
http://ttlnews.blogspot.com/2010/11/my-experience-with-android-market.html

On 21 sep, 13:24, gcstang  wrote:
> I figured, not a problem I just had to ask.
>
> Thank you anyways
>
> On Sep 20, 2:38 am, String  wrote:
>
>
>
>
>
>
>
> > On Sep 18, 6:46 pm, gcstang  wrote:
>
> > > Are there any examples of how you implemented it that you're willing
> > > to share?
>
> > Probably not, I'm afraid. Sorry.
>
> > The LVL blog post may seem overwhelming to a beginner, but
> > unfortunately, it's the level of detail you need.  And it does have
> > code samples, including instructions on where in your own code to put
> > the interface points.
>
> > As for the modifications I made, I'm ABSOLUTELY not going to post more
> > details about them. Not only would that give pirates a leg up on
> > cracking my own apps, the whole point is that every dev needs to make
> > their OWN modifications, so that every app will need to be cracked
> > individually.
>
> > String

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


Re: [android-developers] Re: Localizing example somewhere?

2010-11-13 Thread Gergely Juhász
I think localized error messages are not supported on Android:
http://developer.android.com/reference/java/lang/Throwable.html#getLocalizedMessage%28%29

But your custom formatted error messages could be a good idea.

On 12 November 2010 19:21, Rutton  wrote:
> Thanks for your kind explanation.
> The describing text is easy to realize, but what I wanted to really
> know is, how to deal with (custom formatted) exception messages. So,
> is it good practice to use the Exception e.getLocalizedMessage() and
> use the Java-mechanism to deal with that, perhaps in conjunction with
> the Android-string localization features.
>
> What I have is exception throwing code (that creates custom
> formatted / not just text values that can be retrieved from the res/*
> files). And I ask myself, what to do here the best. At somepoint an
> exception *may* bubble up to a error message to the user, and how to
> localize these the best way.
>
> Cheers,
> R.
>
> --
> You received this message because you are subscribed to the Google
> 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: Save and continue game

2010-11-13 Thread acr
Thanks for the replies, are there any tutorials/examples which cover
this. I have been searching and it its all still a bit unclear. I have
a DB setup and ready to go, but Im not sure which data to capture/ how
to capture it, and how to restore it.

I would think I'd have to save the 49 xy positions of the graphics and
their types, the score and time remaining.I cant find anything clear
on this that pertains to a game state. Thanks,
again

On Nov 12, 5:41 pm, TreKing  wrote:
> On Fri, Nov 12, 2010 at 4:29 PM, Frank Weiss  wrote:
> > I think it depends on the amount of state, the complexity of the app, and
> > how persistent the state is supposed to be.
>
> This smells like persistent storage to me:
>
> On Fri, Nov 12, 2010 at 10:29 AM, acr  wrote:
> > For example when someone exits I want them to be able to save and exit,
> > then come back and click continue to pick up where they left off with all of
> > the graphics in the right place, timer and score.
>
> In the Android activity model, you don't really "exit" an app. So unless the
>
> > user does a force stop, the activity will be able to restore the state via
> > saved instance state.
>
> There's no instance state if the user backs out of the application
> completely.
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


Re: [android-developers] Make Software Library

2010-11-13 Thread Mark Murphy
On Sat, Nov 13, 2010 at 11:03 AM, Premier  wrote:
> in Android Market exists Apps category named "Software library", what
> is it? is it an apk in which i can put my application common code and
> use it in other apps?

As far as the Android Market is concerned, it is a label. Frankly, I'm
not sure why it is there.

> For example i create software library to parse xml from my server, i
> called this software library "common.apk".
> Now i want to create an application with UI that uses code from
> common.apk, how i can do solve this?

First, you should seriously think about this strategy. There is no
dependency system in Android. If users download the "application with
UI" without downloading "common.apk", your "application with UI" will
not work. You will need to have a framework for detecting this case
and arranging to have the user download and install "common.apk", and
the user may or may not like this.

IMHO, while there are scenarios in which this strategy is justified,
perhaps even a good idea, a "software library to parse xml from my
server" would not seem to qualify.

All that being said, you can implement a service in "common.apk",
perhaps with an AIDL-defined remote interface, and have "application
with UI" use it.

> I want to create a separate application modules (UI and logic) so i
> can create several applications with different UI but same core.

That sounds like a better fit for an Android library project, or
perhaps a simple JAR.

> I
> can't put common code in jar because i'd like to update common.apk to
> upgrade all applications that are using it.

Harming the user experience (forcing users to download multiple APKs)
would seem to be a rather high cost to pay simply to ease your update
process, especially when you may be making your update process worse.
Please understand that you are creating for yourself the possibility
of "dependency hell":

-- What if the user elects not to update your "common.apk", but does
update "application with UI"?

-- What if you need to change the API exposed by "common.apk"? Now
either you have to work out the mechanisms in "common.apk" to support
both APIs, or you and your users are in for some serious pain.

-- What if the user uninstalls "common.apk"?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
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: Localizing example somewhere?

2010-11-13 Thread Hal
You may want want to get some ideas from the MVC Struts framework
(internationalization/Errors handling).
I realize that Struts doesn't run on Android. Perhaps you can use some
of their ideas and/or components. The latter
is probably more difficult ... Just a thought 

BTW, Struts uses Resource Bundles (key/value pairs for specific
language)

They also use standard Java mechanism

On Nov 12, 1:21 pm, Rutton  wrote:
> Thanks for your kind explanation.
> The describing text is easy to realize, but what I wanted to really
> know is, how to deal with (custom formatted) exception messages. So,
> is it good practice to use the Exception e.getLocalizedMessage() and
> use the Java-mechanism to deal with that, perhaps in conjunction with
> the Android-string localization features.
>
> What I have is exception throwing code (that creates custom
> formatted / not just text values that can be retrieved from the res/*
> files). And I ask myself, what to do here the best. At somepoint an
> exception *may* bubble up to a error message to the user, and how to
> localize these the best way.
>
> Cheers,
> R.

-- 
You received this message because you are subscribed to the Google
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] Make Software Library

2010-11-13 Thread Premier
Hello,
in Android Market exists Apps category named "Software library", what
is it? is it an apk in which i can put my application common code and
use it in other apps?

For example i create software library to parse xml from my server, i
called this software library "common.apk".
Now i want to create an application with UI that uses code from
common.apk, how i can do solve this?

I want to create a separate application modules (UI and logic) so i
can create several applications with different UI but same core. I
can't put common code in jar because i'd like to update common.apk to
upgrade all applications that are using 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: Using ServerManagedPolicy

2010-11-13 Thread MarcoAndroid
They are set by Google Market server. And they're not set when you
test with your developer account on the emulator.

On 28 okt, 04:42, John Gaby  wrote:
> I am reading the documentation for the ServerManagedPolicy of the
> AndroidMarketlicensingservice, and it refers to several "Server
> Response Extras" that are sent as part of the license response (e.g.
> the License validity timestamp, Grace period timestamp, etc).  Are
> these values settable be my on the server side, or are they set
> automatically by the GoogleMarket?
>
> 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: Get web page with spaces in path

2010-11-13 Thread Hal


something like this should  work (Taken from
Jt.http.JtHttpAdapter) 

  try {
  eString = URLEncoder.encode(xmlMsg, "UTF-8");
  } catch (UnsupportedEncodingException e) {
  handleException(e);
  return (null);
  }

I hope it helps.
On Nov 12, 10:10 am, Pikoh  wrote:
>  Hi all,
>
>    i'm stuck with this one. i just want to get this webpage 
> ->http://www.emtmalaga.es/portal/page/portal/EMT/Tiemposde espera
> into a string. I'm using HttpGet(url). First it threw me an error
> because of spaces, and i used %20 to replace them. Now it doesn't
> throw me any error, but it gets no data. I've tried also URLEncoder
> and "URL url = uri.toURL();" but still no result. Hope someone points
> me in the right direction.

-- 
You received this message because you are subscribed to the Google
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] Activity display over incoming call screen

2010-11-13 Thread mohammad Rukab
Hello ,

i have problem when i start activity from incoming call
broadcastReciever, the problem is :

when call is coming i start activity X with FLAG_ACTIVITY_NEW_TASK
flag, and it is work fine when my application is not on the screen.

but if my application on the screen (activity Y) and call come, when
activity X called from braodcastReciver Activity Y cover screen over
incoming call screen then Actvity X display, so 2 activity become over
incoming call, although i just want activity X just display.

Please an body have idea??

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


Re: [android-developers] How to change the name of an app in the application menu?

2010-11-13 Thread Mark Murphy
On Sat, Nov 13, 2010 at 9:59 AM, MobileVisuals  wrote:
> The listing name of an app in the application menu is determined by
> the "activity android:name" tagg. How can I change this name without
> changing the name of the activity class? I am making versions in
> different languages for an app and I don't want the french version to
> have an english name in the application menu.

I have no idea what "the application menu" is.

If you mean the launcher, this is controlled via the android:label
attribute, not android:name.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
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 change the name of an app in the application menu?

2010-11-13 Thread MobileVisuals
The listing name of an app in the application menu is determined by
the "activity android:name" tagg. How can I change this name without
changing the name of the activity class? I am making versions in
different languages for an app and I don't want the french version to
have an english name in the application menu.

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


Re: [android-developers] Re: adb can't find my Verizon Samsung Galaxy Tab ...

2010-11-13 Thread Kostya Vasilyev
Galaxy S is the same way - you can't change this setting while USB is
connected.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

13.11.2010 17:49 пользователь "jsdf"  написал:

I had to unplug it from the computer. Then I could check the check
box.
This was on a  T-Mobile tab, your mileage may vary.


On Nov 13, 12:09 am, OldSkoolMark  wrote:
> The 'enable USB debugging' setti...

-- 
You received this message because you are subscribed to the Google
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: adb can't find my Verizon Samsung Galaxy Tab ...

2010-11-13 Thread jsdf
I had to unplug it from the computer. Then I could check the check
box.
This was on a  T-Mobile tab, your mileage may vary.

On Nov 13, 12:09 am, OldSkoolMark  wrote:
> The 'enable USB debugging' setting is greyed out and unselectable. It
> didn't work out of the box, so I installed the Samsung Kies package.
> Still no love. Anybody having similar problems, or for that matter,
> non at all?

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


[android-developers] Updating the Call Log.

2010-11-13 Thread Anders
Hello. I'm trying to update the CalLog to change the name/cached name
of an entry. I have successfully updated a row but once i go into the
call log on my phone the displayed name is removed after a short
moment. I figured this is because the number of the incoming called is
not found in any of the contacts. But why would it then clear the
cached name that is in the Log?
If the number is not in contacts the call log should display the
cached name without trying to refresh it? Atleast that's the behaviour
I expect.

So, my question is: Is it possible to add a name to an incoming number
to display in the call log without adding the number and name to the
contact list? I've figured it should be possible to add the contact
first, then mark it as removed and thus get it displayed in the call
log but that seems like a stupid work-around.

// Anders

-- 
You received this message because you are subscribed to the Google
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: adb can't find my Verizon Samsung Galaxy Tab ...

2010-11-13 Thread Howard M. Harte
I had the same problem with my VZW Galaxy at first.  Unplug the USB
cable, then check the USB debugging box.

-Howard

On Nov 13, 4:43 am, Mark Murphy  wrote:
> On Sat, Nov 13, 2010 at 12:09 AM, OldSkoolMark  wrote:
> > The 'enable USB debugging' setting is greyed out and unselectable.
>
> Meaning it is unchecked? That should not have passed the CDD, as far
> as I understand it. Does the device have Android Market on it?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in London:http://bit.ly/smand1andhttp://bit.ly/smand2

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


Re: [android-developers] android.intent.action.NOTIFICATION_REMOVE not available on all devices?

2010-11-13 Thread Mark Murphy
On Fri, Nov 12, 2010 at 11:59 PM, Matt McMinn  wrote:
> So now I'm trying to
> figure out why, and I can't seem to find anything on Google about this
> intent action - and I set this code up a few months ago, so I don't
> remember where I even found this action, it doesn't seem to be in the
> API.

Heck, I don't even see it in the source code via Google Code Search.

> The evo is running 2.2, and the moment is running 2.1-update1, so I'm
> guessing that it's undocumented, and only available in 2.2.

I thought that Google Code Search would be indexing 2.2 by now.

> Is there
> any other way to catch an event that a notification has been cleared?

Not that I am aware of.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

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


Re: [android-developers] Re: Auto increment foreign key

2010-11-13 Thread Kostya Vasilyev

Pramod,

You do need autoincrement - but it you also need to mark the column as 
the primary key. Sorry about the confusion:


CREATE TABLE room (
_id INTEGER PRIMARY KEY AUTOINCREMENT
room_name TEXT )

CREATE TABLE equipment_in_room (
_id INTEGER PRIMARY KEY AUTOINCREMENT
switch_name TEXT
room_id INTEGER REFERENCES room (_id)   )


Each row of equipment_in_room still has its own primary key (_id), to 
identify the row in a unique way. It also has a reference to the room 
that the equipment is in. There may be multiple equipment_in_room rows 
for each room row.


For inserting, don't use execSql - as it doesn't return the primary key 
value assigned to the new row.


Use SQLiteDatabase.insert

http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#insert(java.lang.String, 
java.lang.String, android.content.ContentValues)


or DatabaseUtils.InsertHelper:

http://developer.android.com/reference/android/database/DatabaseUtils.InsertHelper.html

This way you can get the assigned primary key value (in room) and 
specify it when inserting into equipment_in_room.


ContentValues values_room = new ContentValues();
values_room.put ("room_name", "My room");
long room_id = db.insert ("room", "room_name", values_room);

Now you have the value of room_id assigned by SQLite to the new row in 
table "room".


ContentValues values_equipment = new ContentValues();
values_equipment.put ("switch_name", "Cisco Catalyst");
*values_equipment.put("room_id", room_id);*
int equipment_id = db.insert ("equipment_in_room", "switch_name", 
values_equipment);


The highlighted line above is what links the values in the two tables.

-- Kostya

13.11.2010 12:52, pramod.deore ?:

You don't need 'autoincrement', I think it's for MS SQL Server.

Just don't specify a value for the primary key when inserting, and a new
unique value will be generated for you. It is then returned by insert() to
your code, so you can use it in the 'many' table.

Actually I didn't get you. After changing code as I understand what
you are saying

sampleDB.execSQL("CREATE TABLE IF NOT EXISTS " +
SWITCH_TABLE_NAME +
 " (SwitchID integer  ,SwitchName
VARCHAR,FOREIGN KEY (SwitchID)REFERENCES roomtable (RoomID));");

sampleDB.execSQL("INSERT INTO " +
SWITCH_TABLE_NAME +
" Values ('"+s1+"');");


But now it gives me error as
11-13 15:08:21.024: ERROR/Database(773): Failure 1 (table switchtable
has 2 columns but 1 values were supplied) on 0x2f95d0 when preparing
'INSERT INTO switchtable Values ('Tube Light');'.




--
Kostya Vasilyev -- WiFi Manager + pretty widget -- 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

Re: [android-developers] adb can't find my Verizon Samsung Galaxy Tab ...

2010-11-13 Thread Mark Murphy
On Sat, Nov 13, 2010 at 12:09 AM, OldSkoolMark  wrote:
> The 'enable USB debugging' setting is greyed out and unselectable.

Meaning it is unchecked? That should not have passed the CDD, as far
as I understand it. Does the device have Android Market on it?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

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


Re: [android-developers] Re: Product images for marketing materials

2010-11-13 Thread Mark Murphy
For Motorola, use MOTODEV.

I cannot comment on HTC's plans in this area, though I remain hopeful.

I have nary a clue what Samsung intends to do, particularly since they
also have bada to support.

On Sat, Nov 13, 2010 at 7:28 AM, Phil Endecott
 wrote:
> On Nov 13, 1:24 am, dan raaka  wrote:
>> http://www.samsung.com/us/support/contact
>
> Thanks Dan.  Actually I had spent quite a long time on the phone
> trying to find the right person at Samsung before I posted here.  The
> closest I was able to find was their press relations team, but they
> didn't return my calls.
>
> The flyers are now done, but with only Apple product images.  Those of
> you who are also iPhone developers will know that they have an artwork
> license agreement that you print out and mail to them to get
> permission to use the product images.  At the time I thought this was
> a bit bureaucratic, but it's better than having nothing at all!
>
> This raises the more general question of who our contacts with "the
> industry" are supposed to be.  Do we talk to Google, or to the product
> vendors?  Google do seem to have some points of contact, but my
> (brief) research can't find any significant "developer support"
> contacts or resources from Samsung, HTC or Motorola.  Am I looking in
> the wrong places?
>
> --
> You received this message because you are subscribed to the Google
> 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/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
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: Product images for marketing materials

2010-11-13 Thread Phil Endecott
On Nov 13, 1:24 am, dan raaka  wrote:
> http://www.samsung.com/us/support/contact

Thanks Dan.  Actually I had spent quite a long time on the phone
trying to find the right person at Samsung before I posted here.  The
closest I was able to find was their press relations team, but they
didn't return my calls.

The flyers are now done, but with only Apple product images.  Those of
you who are also iPhone developers will know that they have an artwork
license agreement that you print out and mail to them to get
permission to use the product images.  At the time I thought this was
a bit bureaucratic, but it's better than having nothing at all!

This raises the more general question of who our contacts with "the
industry" are supposed to be.  Do we talk to Google, or to the product
vendors?  Google do seem to have some points of contact, but my
(brief) research can't find any significant "developer support"
contacts or resources from Samsung, HTC or Motorola.  Am I looking in
the wrong places?

-- 
You received this message because you are subscribed to the Google
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 Problem

2010-11-13 Thread bagelboy
I recently did my own LVL implementation and I can tell you that
tracing these issues down is a real pain. First you need to put loads
of logging into the LVL code to find out what the actual response is,
otherwise you have no visibility, then you have to put logging into
all the code between the response and the allow/dontallow callbacks.

Basically what I found was the stock code was unworkable in many ways.
I quickly came to the conclusion that I needed to modify it into
something that worked for me. There's a few reasons behind why you
should abandon the stock code:
- if you use the stock implementation then crackers will find it very
easy to circumvent
- as you have found it is very hard to debug. You have to spend so
much time figuring out how it works you may as well roll your own
instead.
- who's to say whether the google responses are what you want? How
many retries do you want before it sends a dontAllow back? Maybe you
want to treat the error responses as a retry. Do you want google to
specify that or yourself? Do you want them to specify the time between
checks? It's better to take control of this process so you know
exactly what is going on and you can manage the user experience.

In the system I came up with in the end all I use is the response and
none of the extras. What I do with the response is all custom, that
way I can use the market test responses in development without
issues.

-BB

On Nov 13, 4:40 am, John Gaby  wrote:
> I am using pretty much the default Android Market Licensing in my
> application, but find that it is not working correctly on most of the
> devices that I have tested.  I have uploaded my app to the Market but
> not published it.  If install it on the emulator which does not have
> any Google accounts, then I receive a 'dontAllow' from the check,
> which is correct.
>
> If I install it on a Motorola Droid phone (which I have in my
> possession) that has my Market Google account associated with it, then
> it will return 'allow' or 'don't allow' depending on how I set the
> test market. I have also installed it on an HTC Incredible phone, and
> it seems to work there as well.
>
> However, I have tested 4 other phones (HTC Hero, HTC Brovo Desire, HTC
> Droid Eris and HTC Nexus One), and on each of these phones, I get an
> 'allow' call from the license check, even though there is no
> authorizing account on the phone.  Can someone tell me what is going
> on here?
>
> 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: Auto increment foreign key

2010-11-13 Thread pramod.deore
> You don't need 'autoincrement', I think it's for MS SQL Server.
>
> Just don't specify a value for the primary key when inserting, and a new
> unique value will be generated for you. It is then returned by insert() to
> your code, so you can use it in the 'many' table.

Actually I didn't get you. After changing code as I understand what
you are saying

sampleDB.execSQL("CREATE TABLE IF NOT EXISTS " +
SWITCH_TABLE_NAME +
" (SwitchID integer  ,SwitchName
VARCHAR,FOREIGN KEY (SwitchID)REFERENCES roomtable (RoomID));");

sampleDB.execSQL("INSERT INTO " +
SWITCH_TABLE_NAME +
" Values ('"+s1+"');");


But now it gives me error as
11-13 15:08:21.024: ERROR/Database(773): Failure 1 (table switchtable
has 2 columns but 1 values were supplied) on 0x2f95d0 when preparing
'INSERT INTO switchtable Values ('Tube Light');'.

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


Re: [android-developers] Re: Auto increment foreign key

2010-11-13 Thread Kostya Vasilyev
You don't need 'autoincrement', I think it's for MS SQL Server.

Just don't specify a value for the primary key when inserting, and a new
unique value will be generated for you. It is then returned by insert() to
your code, so you can use it in the 'many' table.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

13.11.2010 11:46 пользователь "pramod.deore" 
написал:

Hi, Bibek
  But when I write a command for foreign key then it doesn't give me
any error. And I didn't find any doc which say that foreign key is not
supported in android database.

But when i add autoincrement for foreign key then it gives me error.
My query is

sampleDB.execSQL("CREATE TABLE IF NOT EXISTS " +
   SWITCH_TABLE_NAME +
   " (SwitchID integer autoincrement ,SwitchName
VARCHAR,FOREIGN KEY (SwitchID)REFERENCES roomtable (RoomID));");


and Logcat generate following error :

11-13 14:08:52.892: ERROR/Database(682): Failure 1 (near
"autoincrement": syntax error) on 0x2f95b8 when preparing 'CREATE
TABLE IF NOT EXISTS switchtable (SwitchID integer
autoincrement ,SwitchName VARCHAR,FOREIGN KEY (SwitchID)REFERENCES
roomtable (RoomID));'.
11-13 14:08:52.902: WARN/System.err(682):
android.database.sqlite.SQLiteException: near "autoincrement": syntax
error: CREATE TABLE IF NOT EXISTS switchtable (SwitchID integer
autoincrement ,SwitchName VARCHAR,FOREIGN KEY (SwitchID)REFERENCES
roomtable (RoomID));
11-13 14:08:52.914: WARN/System.err(682): at
android.database.sqlite.SQLiteDatabase.native_execSQL(Native Method)
11-13 14:08:52.924: WARN/System.err(682): at
android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:
1610)
11-13 14:08:52.933: WARN/System.err(682): at
com.monarch.home.AddSwitch.addSwitchToDatabase(AddSwitch.java:186)
11-13 14:08:52.933: WARN/System.err(682): at
com.monarch.home.AddSwitch.onCreate(AddSwitch.java:66)
11-13 14:08:52.944: WARN/System.err(682): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
11-13 14:08:52.953: WARN/System.err(682): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2459)
11-13 14:08:52.964: WARN/System.err(682): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2512)
11-13 14:08:52.964: WARN/System.err(682): at
android.app.ActivityThread.access$2200(ActivityThread.java:119)
11-13 14:08:52.964: WARN/System.err(682): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
11-13 14:08:52.983: WARN/System.err(682): at
android.os.Handler.dispatchMessage(Handler.java:99)
11-13 14:08:52.994: WARN/System.err(682): at
android.os.Looper.loop(Looper.java:123)
11-13 14:08:53.004: WARN/System.err(682): at
android.app.ActivityThread.main(ActivityThread.java:4363)
11-13 14:08:53.013: WARN/System.err(682): at
java.lang.reflect.Method.invokeNative(Native Method)
11-13 14:08:53.013: WARN/System.err(682): at
java.lang.reflect.Method.invoke(Method.java:521)
11-13 14:08:53.023: WARN/System.err(682): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
11-13 14:08:53.023: WARN/System.err(682): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
11-13 14:08:53.023: WARN/System.err(682): at
dalvik.system.NativeStart.main(Native Method)
11-13 14:08:53.614: INFO/ActivityManager(62): Displayed activity
com.monarch.home/.AddSwitch: 981 ms (total 981 ms)


On Nov 13, 12:18 pm, Kumar Bibek  wrote:
> Foreign keys are not supported on ...
> On Sat, Nov 13, 2010 at 12:31 PM, pramod.deore wrote:

>
> > Hi, can we autoincrement the foreign key in sqlite database?
> > Thanks
>
> > --
> > You recei...
> > android-developers+unsubscr...@googlegroups.com

>

> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en...
> Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com


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

-- 
You received this message because you are subscribed to the Google
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: Auto increment foreign key

2010-11-13 Thread pramod.deore
Hi, Bibek
   But when I write a command for foreign key then it doesn't give me
any error. And I didn't find any doc which say that foreign key is not
supported in android database.

But when i add autoincrement for foreign key then it gives me error.
My query is

sampleDB.execSQL("CREATE TABLE IF NOT EXISTS " +
SWITCH_TABLE_NAME +
" (SwitchID integer autoincrement ,SwitchName
VARCHAR,FOREIGN KEY (SwitchID)REFERENCES roomtable (RoomID));");


and Logcat generate following error :

11-13 14:08:52.892: ERROR/Database(682): Failure 1 (near
"autoincrement": syntax error) on 0x2f95b8 when preparing 'CREATE
TABLE IF NOT EXISTS switchtable (SwitchID integer
autoincrement ,SwitchName VARCHAR,FOREIGN KEY (SwitchID)REFERENCES
roomtable (RoomID));'.
11-13 14:08:52.902: WARN/System.err(682):
android.database.sqlite.SQLiteException: near "autoincrement": syntax
error: CREATE TABLE IF NOT EXISTS switchtable (SwitchID integer
autoincrement ,SwitchName VARCHAR,FOREIGN KEY (SwitchID)REFERENCES
roomtable (RoomID));
11-13 14:08:52.914: WARN/System.err(682): at
android.database.sqlite.SQLiteDatabase.native_execSQL(Native Method)
11-13 14:08:52.924: WARN/System.err(682): at
android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:
1610)
11-13 14:08:52.933: WARN/System.err(682): at
com.monarch.home.AddSwitch.addSwitchToDatabase(AddSwitch.java:186)
11-13 14:08:52.933: WARN/System.err(682): at
com.monarch.home.AddSwitch.onCreate(AddSwitch.java:66)
11-13 14:08:52.944: WARN/System.err(682): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
11-13 14:08:52.953: WARN/System.err(682): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2459)
11-13 14:08:52.964: WARN/System.err(682): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2512)
11-13 14:08:52.964: WARN/System.err(682): at
android.app.ActivityThread.access$2200(ActivityThread.java:119)
11-13 14:08:52.964: WARN/System.err(682): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
11-13 14:08:52.983: WARN/System.err(682): at
android.os.Handler.dispatchMessage(Handler.java:99)
11-13 14:08:52.994: WARN/System.err(682): at
android.os.Looper.loop(Looper.java:123)
11-13 14:08:53.004: WARN/System.err(682): at
android.app.ActivityThread.main(ActivityThread.java:4363)
11-13 14:08:53.013: WARN/System.err(682): at
java.lang.reflect.Method.invokeNative(Native Method)
11-13 14:08:53.013: WARN/System.err(682): at
java.lang.reflect.Method.invoke(Method.java:521)
11-13 14:08:53.023: WARN/System.err(682): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
11-13 14:08:53.023: WARN/System.err(682): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
11-13 14:08:53.023: WARN/System.err(682): at
dalvik.system.NativeStart.main(Native Method)
11-13 14:08:53.614: INFO/ActivityManager(62): Displayed activity
com.monarch.home/.AddSwitch: 981 ms (total 981 ms)

On Nov 13, 12:18 pm, Kumar Bibek  wrote:
> Foreign keys are not supported on SQlite dbs on Android.
>
> On Sat, Nov 13, 2010 at 12:31 PM, pramod.deore 
> wrote:
>
> > Hi, can we autoincrement the foreign key in sqlite database?
> > 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
>
> --
> Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.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


Re: [android-developers] power widget source code and images

2010-11-13 Thread Kostya Vasilyev

Like Dianne Hackborne wrote before, it's in the Settings app:

http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=summary

Images are here:

http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=tree;f=res/drawable-hdpi

-- Kostya

13.11.2010 0:56, Hendrik Greving ?:
Does anybody know where I can find the power widget source code that 
comes with Android and in particular the images?

--
You received this message because you are subscribed to the Google
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 



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- 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