[android-developers] Testing In App Billing with real sku but don't charge credit card

2013-03-27 Thread Kenny Wyland
I'm testing my first In App Billing code. I've tested using the static 
response skus and everything is working properly. So, I want to test with 
my real product skus.

I uploaded a new version of my app with the Billing permission, but didn't 
publish it.
I added a test account to my list of test accounts in the Google Play Dev 
Console. 
I reset my tablet and set it up again using that test account.

When I tried my first test purchase, it required that I enter Credit Card 
details. I was worried that it would actually charge my card, which is 
obviously not good when going through a development cycle because you have 
to run many tests. I asked on StackOverflow and was told that it either a) 
wouldn't charge me or b) I'd be able to refund the money.

Well, I was charged and when I tried to refund the purchase in my merchant 
account, it told me it would cancel the order but it wouldn't refund any of 
the money. So, that sucks.

How can I run test purchases with my real skus without getting constantly 
charged on my credit card?

Kenny

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Testing In App Billing with real sku but don't charge credit card

2013-03-27 Thread Kenny Wyland


 If you cancel the card is not charged at all. You can only refund 
 after it has been 
 charged. Charging takes at least a couple of hours, so if you cancel 
 before that 
 there is no credit card transaction. The only problem is that if you do 
 this 
 too often, your test account may be blocked temporarily and return some 
 weird 
 status ('you are not allowed to purchase' or some such). 

 HTH 


That is true for standard app purchases, but not for In-App purchases. 
Those purchases are charged immediately.  That's part of my problem.

What do I need to do in order to make test purchases of my real In App 
Billing SKUs without getting charged? Not only is it a problem for 
development, but my credit card company is not going to be happy about 100 
charges cancelled. 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Testing In App Billing with real sku but don't charge credit card

2013-03-27 Thread Kenny Wyland



 It's the same for both. While the 'Charge' dot in Checkout is gray, 
 the credit card has not been charged and you can cancel. Once 
 it turns green, it has been charged and you have to refund. 


When I was making the purchase as the user, it explicitly told me that I 
would not have an opportunity to change my mind and refund the purchase.

When I went to my merchant account, 90 seconds later, the charge was 
already fully green meaning it had been fully charged. 

The refund option was greyed out, the only option I had was Cancel and when 
I clicked the cancel button it explicitly said in that window the refund 
amount would be $0.00.

 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: how to send a pdf file from android to wifi printer programatically?

2011-11-30 Thread Kenny Riddile

On 11/30/2011 4:38 AM, Hrishi wrote:

Please bare if is repeated question...

I am able to connect to wifi device (printer). Now i want to print a
pdf file programatically using wifi connection. can someone tell me
how to do it because i am not getting any way to do it. I am able to
print text ,html file n images but pdf file not get printed in proper
format what is the way to send pdf file to printer in proper
format ...

Is there any API available for printing pdf file ?

Please suggest third party APIs..

Please help me !!

Thanks in advance !!!



How are you printing the text, html files, and images?  I'd really like 
to know because I haven't been able to find anything on Android 
printing.  The online documentation for Google's Cloud Print intent has 
been a dead link for months.


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 install procrank on a Android Phone which hasn't it?

2011-10-19 Thread Kenny Xiong
I have my device updated to a ROM which don't have procrank. Can I
install it myself?
In another device, when I type adb shell procrank, it says
permission denied. And I can't find procrank in /system/xbin or /
system/extras. Where is it? I can't use linux command like which or
find. I really need 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


[android-developers] License Check fails for 5-10% of legit users

2011-09-19 Thread Kenny Wyland
This is really starting to become an issue. I'm getting bad reviews
and my word of mouth recommendations for my apps are stopping because
the Google Licensing service is repeatedly denying users the first
time they start the app. I get emails from users regularly and I need
to find a solution. I'm using a ServerManagedPolicy, I'm essentially
using the example code from the dev website.

Does anyone have an example of a policy which handles some local
caching and such?

Kenny

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: retrieve resource string from plain class

2011-09-14 Thread Kenny Riddile

On 9/14/2011 3:41 PM, John Goche wrote:


Hello,

I would like to retrieve the value of a resource string from
a plain class that does not have a Context superclass. Is
this possible? I see the API:

http://developer.android.com/guide/topics/resources/string-resource.html

which do not list getString and getText as static methods.

I tried

String foo = (new Context()).getString(R.string.str_foo);

but it seems I cannot do this.

Any ideas?

John Goche

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


If this class needs a context to do its job, then pass it one in its 
constructor.


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: word wrapping

2011-09-13 Thread Kenny Riddile

On 9/13/2011 4:22 PM, bob wrote:

Is there a way to make Eclipse do word wrapping?  Do you all use word
wrapping or no?



You mean word wrapping your source code?  I've never seen anyone want to 
or do that ever in my entire development career.


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: word wrapping

2011-09-13 Thread Kenny Riddile

On 9/13/2011 4:38 PM, Tor Norbye wrote:

He's probably asking about soft wrapping. Eclipse does not support it
directly; see https://bugs.eclipse.org/bugs/show_bug.cgi?id=35779
(though from a quick skim it looks like there might be some support in
the framework and some plugins to enable it.)

-- Tor

On Tue, Sep 13, 2011 at 1:28 PM, Kenny Riddilekfridd...@gmail.com  wrote:

On 9/13/2011 4:22 PM, bob wrote:


Is there a way to make Eclipse do word wrapping?  Do you all use word
wrapping or no?



You mean word wrapping your source code?  I've never seen anyone want to or
do that ever in my entire development career.

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





Uggh...looks terrible to me.  If you have lines in your code that are 
long enough to require word-wrapping, then those lines are too long, 
especially with today's large monitors and high resolutions.  Decompose 
them and make the code more readable IMO.


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Finishing Activities

2011-06-28 Thread Kenny Riddile

On 6/28/2011 12:03 PM, Diogo Salaberri wrote:

Hi..

I have a problem, whe I start my aplication the launcher activity is
called HOME, and that HOME automatically call other activity called LOGIN.
Now, I have to finish this aplication when I click on default back
button overwriting onKeyDown. The problem is, how can I do this, a
simple finish don't solve this.

Follow my code ( onKeyDown ):

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {
finish();
return true;
}
return super.onKeyDown(keyCode, event);
}

I hope that you can help me.

Bye

--
Atenciosamente;
Diogo Bonoto Salaberri
Bacharel em Ciência da Computação - UFPel

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


What are you asking?  The default behavior of pushing the back button is 
to call finish(), so your code above does exactly what the back button 
already does.


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Spinner with added Text

2011-04-18 Thread Kenny Riddile

On 4/18/2011 1:13 PM, Kumar Bibek wrote:

You cant do that with a spinner.



Are you so sure?  I believe spinners can be populated both manually and 
from a database.  Just google android dynamic spinner content.  Here's 
one:


http://www.dcpagesapps.com/developer-resources/android/21-android-tutorial-spinners?showall=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


[android-developers] Re: Scope of Singletons

2011-03-23 Thread Kenny Riddile

On 3/23/2011 12:37 PM, Jake Colman wrote:


I use the following standard paradigm for singletons:

private static MyClass instance = null;

public static MyClass getInstance() {
   if( instance = null )
 instance = new MyClass();
   return instance;
}

If my application gets killed by Android, as can be expected, can I
reasonably assume that when the application is restarted that instance
is reinitialized to null?  In other words, when Adroid invisibly kills
and restarts my app, its behavior is the same if I had manually started
my app myself?

Thanks.



instance == null, not instance = null...right?

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Global Variables

2011-03-10 Thread Kenny Riddile

On 3/9/2011 7:35 PM, TreKing wrote:

On Wed, Mar 9, 2011 at 4:30 PM, Kenny Riddile kfridd...@gmail.com
mailto:kfridd...@gmail.com wrote:

Assuming the singleton is modifiable via its interface, then for all
intents and purposes, yes, they are.


Again, no.

Singleton is a design pattern whose purpose is to simplify and control
access to a an object for which there is and will only be one instance
of. This instance is set once and used throughout. It does not vary or
change. It is not variable.

Of course you can change the *state* of the singleton object, if that's
what you mean by modifiable, but if you change the *value* of the
object itself, as one would do with global *variables*, it is no longer
a singleton.

Even in the sense that the singleton state is modifiable, the whole
point of the singleton is to provide an interface through which this
globally accessible object, and its state, is manipulated. There is
controlled access. This is not the case with your run-of-mill, freely
accessible global variable.

On Wed, Mar 9, 2011 at 6:11 PM, David Williams
dwilli...@dtw-consulting.com mailto:dwilli...@dtw-consulting.com wrote:

Ok, trying to do this but struggling.

I created a class as follows:


If all you're doing is defining some *constants* that are not going to
change, extending Application is way overkill. Especially since casting
up to your Application type every time you need something makes your
code horrendous to look at.

You can just do this:

class Constants
{
  public static final String KEY = MyKey;
}

Then do Constants.Key where you need it. Done.

On Wed, Mar 9, 2011 at 6:11 PM, David Williams
dwilli...@dtw-consulting.com mailto:dwilli...@dtw-consulting.com wrote:

Sorry, this is just my lack of knowledge on Java here.  I was hoping
it was something like globalVars.getApiKey(), but that doesn't seem
to work.


I highly recommend you brush up on Java, reviewing static and instance
level access of functions and data in particular.
-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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


Perhaps my blanket statement was to simplistic.  Not ALL singletons 
are global variables.  Also, not all globals are variables (globally 
accessible static constants for example).  However, all STATEFUL 
singletons are globals, and all stateful singletons with mutable state 
(via methods or whatever) are essentially global variables as they 
create the same architectural issues.  Limiting my statement to stateful 
singletons is kind of irrelevant though, since there's no point in 
limiting a stateless type to one instantiation.  Just because a 
singleton's state is only mutable by using its interface doesn't change 
the fact that you are varying globally accessible state.  When I was 
first starting my career, I thought singletons were great (after all, I 
read about them in a book!), but experience has taught me that there is 
almost always a better way than using mutable global state.  Singletons 
essentially get you two things:


 - the guarantee that only one instance can exist
 - global access to that single instance

The second is bad for all the reasons that global variables are 
considered bad, and the first is unnecessary.  If you only need one 
instance of a class, then just make one.  It really is that simple. 
Then give that instance to whomever needs it, instead of letting them 
magically pull it from the ether.


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Global Variables

2011-03-10 Thread Kenny Riddile

On 3/10/2011 10:41 AM, TreKing wrote:

Hmm, perhaps this is semantics at this point. I don't think a singleton
is a global, as it's usually a private member that is statically
accessible. However, there is global access, of course.


If it's a single piece of state that's accessible globally, then to me, 
it's a global, regardless of the particular syntax or representation.



No, but in terms of clarity, readability, and ease of debugging, there
is a *huge* difference in using a singleton to modify some globally
accessible object versus a classic global.


To me, the third option of don't use either one is almost always 
better in terms of clarity, readability, and ease of debugging.



Normally, I wholeheartedly agree. However, the Android model and
intricacies of the lifecycle of an Android app present some unique
challenges with regard to managing and passing around objects that are
needed across multiple Activities. So it's not always that simple.
Sometimes, when considering ease and speed of implementation,
readability, and maintainability, a Singleton really is the best option.


I admit, I've only released one Android app of intermediate complexity. 
 It's been my experience on other platforms and languages, that any 
framework that encourages sections of your code to communicate via 
mutable global state is fundamentally flawed.  I haven't felt encouraged 
in that manner by Android thus far.


Anyways, this has gotten a bit off-topic from the OP's original 
question, and for that, I apologize :)


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Global Variables

2011-03-09 Thread Kenny Riddile

On 3/9/2011 3:41 PM, David Williams wrote:

All,

What is the best way of going about setting up global variables? There
will be like 5-6 global variables that I would like to set when my app
is launched that are then available for any code anywhere in my app.
I did something similar to this under Mojo on WebOS. I just set some
global variables during the stage-assistant.js script that could then be
used by any script.

TIA.
--


David Williams
Check out our WebOS mobile phone app for the Palm Pre and Pixi:
http://www.dtw-consulting.com/GolfCaddie Golf Caddie
http://www.dtw-consulting.com/GolfCaddie | Golf Caddie Forum
http://www.dtw-consulting.com/GolfCaddie/forum | Golf Caddie FAQ
http://www.dtw-consulting.com/GolfCaddie/faq.html by DTW-Consulting, Inc.


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


IMHO, the best way to use global variables is to not use global variables.

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Global Variables

2011-03-09 Thread Kenny Riddile

On 3/9/2011 4:26 PM, TreKing wrote:

On Wed, Mar 9, 2011 at 3:15 PM, David Williams
dwilli...@dtw-consulting.com mailto:dwilli...@dtw-consulting.com wrote:

That said, why avoid them like the plague?


Global variables are one of those things, like Singletons, that on the
surface seem to make life easier, then get abused like a step-child to
the point of making everything worse.

Used correctly, in moderation, it's often the fastest, easiest,
cleanest, and most straightforward way of doing something. Like a simple
flag indicating DEBUG vs RELEASE, for example.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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


Singletons are global variables.

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 imitate multi-touch by emulator

2011-01-04 Thread Kenny Chang
I want to test my multi-touch program, but I don't know how to do.

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


[android-developers] Can not decode high resolution picture

2011-01-04 Thread Kenny Chang
How to open a high resolution png picture, the picture is
4000x3000,but it crashed when it was decoded.

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


[android-developers] Re: How to destroy an activity immediately?

2010-12-13 Thread Kenny Chang
Fwd: How to destroy an activity immediately?


-- Forwarded message --
From: Zsolt Vasvari zvasv...@gmail.com
Date: Dec 11, 8:22 pm
Subject: How to destroy an activity immediately?
To: Android Developers


I think the system will try everything to satisfy your memory request
and that includes destroying any activities (your first one), still
hanging around.  So I don't think you need to worry about this stuff
at all.

On Dec 11, 8:13 pm, Kenny Chang eric-...@163.com wrote:







 The first activity is the welcome activity, which lets users choose a
 choice to start a new activity.
 If the second activity go straight to onDestroy, the heap resources
 that the second activity holds
 can be so much that causes OUT_OF_MEMORY ERROR when user choose a
 choice to start a new activity in the
 first activity.So...

 On Dec 11, 6:49 pm, Indicator Veritatis mej1...@yahoo.com wrote:

  So what? Why do you need it to go straight to onDestroy? Or rather, I
  should ask, why do you THINK you need it to go
  straight to onDestroy()? For I doubt your need is genuine.

  On Dec 10, 10:12 pm, Kenny Chang eric-...@163.com wrote:

   I try to call finish() in an activity in order to destroy the activity
   to free resources.
   But the Logcat shows it doesn't work immediately to call onDestroy
   instead of calling onPause and after a few seconds onDestroy is
   called.
   What I want is destory and finish the activity just after I call
   finish(). But the problem is that when I press Back button or call
   finish(), it doesn't free bitmap resources and destroy the activity
   immediately.- Hide quoted text -

 - Show quoted text -

Fwd: How to destroy an activity immediately?

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


[android-developers] Re: How to destroy an activity immediately?

2010-12-13 Thread Kenny Chang
The problem is raised by the animations started in onCreate

On Dec 11, 8:22 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 I think the system will try everything to satisfy your memory request
 and that includes destroying any activities (your first one), still
 hanging around.  So I don't think you need to worry about this stuff
 at all.

 On Dec 11, 8:13 pm, Kenny Chang eric-...@163.com wrote:







  The first activity is the welcome activity, which lets users choose a
  choice to start a new activity.
  If the second activity go straight to onDestroy, the heap resources
  that the second activity holds
  can be so much that causes OUT_OF_MEMORY ERROR when user choose a
  choice to start a new activity in the
  first activity.So...

  On Dec 11, 6:49 pm, Indicator Veritatis mej1...@yahoo.com wrote:

   So what? Why do you need it to go straight to onDestroy? Or rather, I
   should ask, why do you THINK you need it to go
   straight to onDestroy()? For I doubt your need is genuine.

   On Dec 10, 10:12 pm, Kenny Chang eric-...@163.com wrote:

I try to call finish() in an activity in order to destroy the activity
to free resources.
But the Logcat shows it doesn't work immediately to call onDestroy
instead of calling onPause and after a few seconds onDestroy is
called.
What I want is destory and finish the activity just after I call
finish(). But the problem is that when I press Back button or call
finish(), it doesn't free bitmap resources and destroy the activity
immediately.- Hide quoted text -

  - Show quoted text -

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


[android-developers] Re: How to destroy an activity immediately?

2010-12-11 Thread Kenny Chang
The first activity is the welcome activity, which lets users choose a
choice to start a new activity.
If the second activity go straight to onDestroy, the heap resources
that the second activity holds
can be so much that causes OUT_OF_MEMORY ERROR when user choose a
choice to start a new activity in the
first activity.So...

On Dec 11, 6:49 pm, Indicator Veritatis mej1...@yahoo.com wrote:
 So what? Why do you need it to go straight to onDestroy? Or rather, I
 should ask, why do you THINK you need it to go
 straight to onDestroy()? For I doubt your need is genuine.

 On Dec 10, 10:12 pm, Kenny Chang eric-...@163.com wrote:







  I try to call finish() in an activity in order to destroy the activity
  to free resources.
  But the Logcat shows it doesn't work immediately to call onDestroy
  instead of calling onPause and after a few seconds onDestroy is
  called.
  What I want is destory and finish the activity just after I call
  finish(). But the problem is that when I press Back button or call
  finish(), it doesn't free bitmap resources and destroy the activity
  immediately.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 destroy an activity immediately?

2010-12-10 Thread Kenny Chang
I try to call finish() in an activity in order to destroy the activity
to free resources.
But the Logcat shows it doesn't work immediately to call onDestroy
instead of calling onPause and after a few seconds onDestroy is
called.
What I want is destory and finish the activity just after I call
finish(). But the problem is that when I press Back button or call
finish(), it doesn't free bitmap resources and destroy the activity
immediately.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 deal with the SQLite resource that is too large?

2010-12-06 Thread Kenny Chang
My project has 3 SQLite database files, and each of them is larger
than 2M.
You know, the limit is beyond 1M in apk file.
So how to make my database files setup when the apk is installing?
And I don't want the way of downloading the database file by network.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Unable to open sync connection

2010-10-25 Thread Kenny Chang
The console shows
[2010-10-24 16:37:10 - ChinaSubway] --
[2010-10-24 16:37:10 - ChinaSubway] Android Launch!
[2010-10-24 16:37:10 - ChinaSubway] adb is running normally.
[2010-10-24 16:37:11 - ChinaSubway] Performing
com.com2us.Activity.SubwayMapActivity activity launch
[2010-10-24 16:37:11 - ChinaSubway] Automatic Target Mode: using
device '04037B8411001012'
[2010-10-24 16:37:11 - ChinaSubway] Uploading ChinaSubway.apk onto
device '04037B8411001012'
[2010-10-24 16:37:11 - ChinaSubway] Failed to upload ChinaSubway.apk
on device '04037B8411001012'
[2010-10-24 16:37:11 - ChinaSubway] java.io.IOException: Unable to
open sync connection!
[2010-10-24 16:37:11 - ChinaSubway] Launch canceled!

Any ideas? 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] How does Android determine whether to move the layout up when showing the softkeyboard?

2010-09-07 Thread Kenny Chaffin
I'm brand new at this, but was just reading about this in The Busy Coders
Guide...

You can force Pan or Resize  in you layout activity using: 

activity android:name=.IMEDemo2
android:label=@string/app_name
android:windowSoftInputMode=adjustResize

or I presume adjustPan


Kenny A. Chaffin
KAC Website Design - http://www.kacweb.com
Art: http://www.kacweb.com/pencil.html
Photo Gallery: http://www.kacweb.com/cgibin/emAlbum.cgi
Strive on with Awareness - Siddhartha Gautama

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Mathias Lin
Sent: Monday, September 06, 2010 6:49 AM
To: Android Developers
Subject: [android-developers] How does Android determine whether to move the
layout up when showing the softkeyboard?

How does Android determine whether to move the layout up when showing the
softkeyboard?

Note: I am aware that the activity property
android:windowSoftInputMode=adjustResize|adjustResize|
adjustUnspecified exists, as described here
http://developer.android.com/guide/topics/manifest/activity-element.html#wso
ft
, but in my case it doesn't seem to have any effect. This is my
problem:

I have two activities, pretty much the same layout, but the first one is
using a ListView that holds a list of buttons. The second activity holds a
scrollview with buttons. The rest is the same, same number of buttons, same
height of elements, etc. (All elements fit on the screen, so actually the
user doesn't need to scroll in the scrollview or listview.) Please see my
screenshot to get an idea: http://i.imgur.com/UNXPz.png

Now, when I press the search button to open the search input bar, in my
first activity, the entire layouts gets moved up. While on the second
activity, the layout is not being moved up but the softkeyboard just
displays on top of it. This is actually how I want it to behave.
How can I achieve the same with my activity that's using the ListView?

In my manifest, initially I didn't specify any android:windowSoftInputMode
attribute, but even if I do, it doesn't make any difference; I tried all
three values (adjustPan, adjustResize, adjustUndefined, without any
difference).

This is my layout:
http://i.imgur.com/UNXPz.png

(I'm not posting any code here for now, I'm more interested generally how
it's been exactly determined whether Android moves the layout up or just
displays they softkeyboard right on top of the existing layout without
moving it.)

I couldn't find a specific logic that's been followed. When I reduce the
number of buttons, when I even wrap the listView in a ScrollView (just for
the sake of trying to see what's happening), the layout just won't stay fix.
On the other hand then, I have activities in my app that contain only one
large ListView, and on that one the layout also remains fixed.
First I thought it's related to ListViews, but it seems not to.

btw: nowhere in my manifest am I explicitly specifying the
windowSoftInputMode attribute.

--
You received this message because you are subscribed to the Google Groups
Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] New TypeName for NetworkInfo

2010-02-03 Thread Kenny
Has anyone notice that Android 2.1 (or may be even earlier) has
additional Network Type?  Namely:

ConnectivityManager.MOBILE_MMS 2
ConnectivityManager.MOBILE_SUPL 3
ConnectivityManager.MOBILE_DUN 4
ConnectivityManager.MOBILE_HIPRI 5

In addition to the original types in the document.
MOBILE 0
WIFI 1

Does anyone know what those new types corresponds to?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Calendar Weekly View - Android 1.6 and 2.0

2010-01-07 Thread Kenny Hayes
Noticed that Android 2.0 allows you to see the text in the Calendar's
Event's Name in the WEEKLY View.

Is it possible in 1.6 as well?  Currently just a colored block and no
text.  Have to actually click each event one by one to bring up the
Event's Name.  But would like to see the entire week and be able to
read the events names all at once like in 2.0.

Any help for a novice user???
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ADC2 First Round Complete?

2009-10-18 Thread Kenny

Um... still no news eh.  How many of you want to bet that the
finalists are already contacted and we are in the Summer of Slience
equivalence of ADC1?

On Oct 7, 12:13 pm, Lance Nanek lna...@gmail.com wrote:
 I recall an email sent during the first challenge where winners of the
 first round were being given a private SDK and chance to update. It
 was frustrating because I'd spent a long time working around bugs in
 the GTalk classes and would have loved to have an updated SDK to work
 with, even if I wasn't in the winning group.

 Err, getting to the point, allowing updates at some point in the
 process isn't unprecedented. That said, I notice the terms and
 conditions say Android 1.5 or higher in all the judging sections.
 Maybe moving to 1.6 during the process was expected, but the problems
 running 1.5 apps on 1.6 weren't.

 On Oct 7, 3:07 am, String sterling.ud...@googlemail.com wrote:



  On Oct 6, 10:33 pm, CraigsRace craig...@gmail.com wrote:

   Allowing an app update would go against their own rules, so it would
   be very controversial.  Having said that, IMO, I wouldn't mind if they
   did allow it for broken apps only (which I imagine are only a select
   few).

  It could be argued that judging apps on 1.6 is also against their own
  rules:

  7. SUBMISSION PERIOD
  a. SUBMISSION OF ENTRIES: To qualify for a Prize, an Entry to the
  Challenge consists of an original application that is written using a
  version of the Android Software Development Kit (SDK) (available 
  athttp://developer.android.com) that validly executes on Android version
  1.5.

  Not being in the US, I haven't been able to test my entry against 1.6
  on an actual device yet, so I don't know if this affects me or not. I
  agree that this situation has been poorly managed, but acknowledge
  that Google is balancing competing interests here.

  IMHO, the best situation would be to allow EVERYONE in Round 2 a
  chance to update their apps. While this would obviously violate the
  TC, it's the only way that I can see to keep a level playing field.
  It also ignores the effect that 1.6 may have had on Round 1, but the
  overlap there was small enough that such effects were probably
  minimal.

  Having said that, Google has been largely silent to the other
  developer concerns about ADC2, so realistically, I don't expect that
  there will be any acknowledgement of this one either.

  String- Hide quoted text -

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



[android-developers] Re: How to override ContactsProvider like GoogleContactsProvider

2009-08-28 Thread Kenny

Reason? It sounds like very limited room for 3rd party developers to
do something.

On Aug 22, 12:56 am, Dianne Hackborn hack...@android.com wrote:
 Sorry, you can't do this.





 On Thu, Aug 20, 2009 at 11:14 PM, Kenny Yu yxw...@gmail.com wrote:

  To develop an APK, I want to modify or expand ContactsProvider
  functionality. GoogleContactsProvider is my role model. But I can't
  put my code to Android repository, like GoogleContactsProvider does.
  Mine is a 3rd party APK to develop.

 http://groups.google.com/group/android-developers/browse_thread/threa...
  was the idea.

  Just curious how to make a customized provider for Android
  ContactsProvider.

  Kenny

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

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

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



[android-developers] How to override ContactsProvider like GoogleContactsProvider

2009-08-21 Thread Kenny Yu

To develop an APK, I want to modify or expand ContactsProvider
functionality. GoogleContactsProvider is my role model. But I can't
put my code to Android repository, like GoogleContactsProvider does.
Mine is a 3rd party APK to develop.

http://groups.google.com/group/android-developers/browse_thread/thread/e149bc0212b52f8a/83f2f6070b57c69f#83f2f6070b57c69f
was the idea.

Just curious how to make a customized provider for Android
ContactsProvider.

Kenny
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: sharing database across applications

2009-08-16 Thread Kenny

How to make a custom content provider? Can you give me an example?

Now I am trying to extend ContactsProvider, because it can't give me
the approach to the last modified contact record. So I wonder if I can
create a custom contact provider.

Or anyone knows how to find out the last modified contact?

On Aug 11, 2:01 pm, Sujay Krishna Suresh sujay.coold...@gmail.com
wrote:
 My suggestion'd be to go for the custom content provider.
 That'd make things much easier for u...
 But thats me. It depends on ur application  its current architecture.





 On Tue, Aug 11, 2009 at 10:43 AM, Acchao blazin...@gmail.com wrote:

  What's the most convenient way to share a database across
  applications?
  For example, I want my application's dbadapter to query the android's
  native contact database so when a contact on the phone is deleted,
  similarly that contact is removed from my application.

  Should i use an attach statement to attach the table? Or would the
  better/more secure approach be to create a custom contentprovider
  query onCreate of my app to verify all contacts in my application
  still reside on the Contacts.db ?

  Any help or suggestions would be appreciated. Thanks in advance.

  Best,
  Acchao

 --
 Regards,
 Sujay
 Pablo Picassohttp://www.brainyquote.com/quotes/authors/p/pablo_picasso.html
 - Computers are useless. They can only give you answers.- Hide quoted text -

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



[android-developers] How to add new javascript function to webit in android

2009-07-20 Thread kenny

I'd like to add new javascript function to webkit in android,
What do you think I should do?
Is there a kind of interface like xpcom in gecko?

If we use gecko based browser (like firefox),
we can write some xpcom component to extent browser's javascript
function.
I've found some example in cupcake source, about netscape plugin
inteface.
But, it doesn't look like what I'm looking for.

Please let me know If someone know about it.

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



[android-developers] Re: Capturing HEADSET_PLUG (android.intent.action.HEADSET_PLUG)

2009-04-22 Thread Kenny

This code is good. But can I put it to AndroidManifest.xml? In case
the receiver has not run, I think AndroidManifest.xml is the way to
register the receiver class.

Thanks, Kenny

On Apr 2, 10:19 pm, Henning Schaefer henning.schae...@gmail.com
wrote:
 Sure... you need to implement two classes. One, derived from
 BroadcastReceiver, which actually captures the broadcast. And, of
 course, the service that keeps the receiver alive all the time. The
 service is the easy part. You only need to override two methods:

 @Override
         public void onCreate() {
                 /* register receiver */
             apr = new APReceiver(); /* replace this by your receiver class */
             IntentFilter inf = new IntentFilter();
             inf.addAction(android.intent.action.HEADSET_PLUG);
             registerReceiver(apr, inf);
         }

 @Override
         public void onDestroy() {
                 unregisterReceiver(apr);
         }

 Of course, apr (type of your receiver class) must be a private field
 of your service class.

 Then, you derive your receiver class from BroadcastReceiver and fill
 in the onReceive method:

 public void onReceive(Context context, Intent intent) {
                 if (intent.getExtras().getInt(state) == 0) {
                         /*HEADSETIS OR HAS BEEN DISCONNECTED */
                 }else{
                         /*HEADSETIS OR HAS BEEN CONNECTED */
                 }
         }

 However, you need to be aware that HEADSET_PLUG is a sticky event,
 every BroadcastReceiver subscribed to that event will receive it upon
 construction; I don't know if there is a possibility to determine if
 the event has captured at the exact time or been sticked for a
 while.

 I hope, this short excerpt helps ;)

 On 26 Mrz., 18:37, Gerby stephan.gerb...@googlemail.com wrote:



  hi henning

  do you have some example code for me, how to create a service to
  detect theheadset, please?

  Cheers

  On 16 Feb., 17:21, zero zeroo...@googlemail.com wrote:

   on a side note, i recommend the logcat app for such 
   momentshttp://code.google.com/p/android-random/

   On Feb 16, 5:04 pm, Henning Schaefer henning.schae...@gmail.com
   wrote:

OK, after digging into the android system code, I think I figured out
what's wrong here... the class HeadsetObserver from the base system
actually sends out this intent with its FLAG_RECEIVER_REGISTERED_ONLY
flag set... obviously, there's no way to receive this intent without
implementing a service.

On 15 Feb., 12:59, Henning Schaefer henning.schae...@gmail.com
wrote:

 Hi all,

 yesterday, I spent several hours trying to figure out how to capture
 the HEADSET_PLUG intent with a BroadcastReceiver. The manifest defines
 the receiver, with its intent-filter set to action
 android:name=android.intent.action.HEADSET_PLUG /.

 The receiver is working correctly (I verified that by changing the
 intent filter to capture things like SMS_RECEIVED including the proper
 permissions and the receiver fired as expected on receiving an SMS),
 but when listening for HEADSET_PLUG, it never fires. Debugging the
 whole thing is a bit complicated, as the emulator doesn't seem to
 support headsets and I have to disconnect my target device (a HTC
 Dream) from USB in order to attach aheadset(so there's no logfile
 viewing). Are there any special permissions required for applications
 to capture the HEADSET_PLUG intent (and if so, which? I've tried
 several, to no avail)?

 Maybe the Dream doesn't fire such an intent at all (that'd be bad luck
 for me), but I guess that it must be an issue related to application
 permissions. The documentation says extremely little (well, actually:
 nothing) about the single permissions needed to perform all the
 actions described in the API docs, so this is absolutely something to
 be improved.

 What I want to do: Upon detecting aheadset, I want to re-route the
 ringtones from the speakers to theheadset, so as not to annoy people
 in my vicinity by a harsh ringing sound (I'm used to this behaviour
 from my old phone) - by default, the speaker just keeps on ringing, no
 matter whether aheadsetis attached or not. This part is already
 working, but now I need to know how to detectheadsetattachment/
 detachment events.

 Thanks in advance,

 Henning- Hide quoted text -

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



[android-developers] Re: Scheduling a repeating task and being notified

2009-03-20 Thread Kenny

Where to find RemoteCallbackList sample code?

On Mar 19, 10:03 pm, Streets Of Boston flyingdutc...@gmail.com
wrote:
 I did something similar, however, i did not use a BroadcastReceiver to
 get callbacks back from the service.
 Instead i used the RemoteCallbackList class:

  http://developer.android.com/reference/android/os/RemoteCallbackList

 No fiddling with intents and such. Just define a callback interface
 and bind to it in your client and call it in your service and you're
 done.

 It works like a breeze :-)

 On Mar 16, 6:16 am, BoD bodl...@gmail.com wrote:



  Replying myself, for future reference.
  For the scheduling part I used AlarmManager and a Service as mentioned
  before.
  For the notification back part I ended up using sendBroadcast from
  the service and a BroadcastReceiver on my Activity (registering/
  unregistering it in onResume/onPause). It works fine.

  BoD

  On Mar 15, 7:22 pm, BoD bodl...@gmail.com wrote:

   Hi!

   I'm trying to find the correct way to do the following:

   . I have an activity with a button that starts a repeating task in the
   background. That is, if the user goes away from my activity, I want my
   task to still be scheduled and executed every x minutes.

   . I want a status TextView to be displayed on the activity, and if the
   task happens to start executing while my activity is showing, the
   TextView should be updated so the user can be aware of what's going
   on.

   So basically, is there a way to start a scheduled background repeating
   task and be notified when it is executed?

   From what I saw in the sample applications, I understand I'm supposed
   to use AlarmManager and a Service but I'm not sure about the
   notification part.

   Thanks a lot for your help.

   BoD- Hide quoted text -

  - Show quoted text -- Hide quoted text -

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



[android-developers] Re: Deleting Incoming SMS???

2009-03-20 Thread Kenny

I was looking for the solution too. It seems impossible to intercept
TEXT SMS. It will go to Inbox definitely.

Kenny

On Mar 20, 10:30 pm, Gulfam gulfa...@gmail.com wrote:
 My problem is same as MattBruce said.

 On Mar 20, 7:28 pm, Gulfam gulfa...@gmail.com wrote:

  Hi all,

  I am also facing exact same problem as said below any one can help us
  Regarding this.its very urgent for me.

  Regards,
  Gulfam

  On Feb 15, 4:57 am, Matt Bruce mbruced...@gmail.com wrote:

   I have an SMSReceiver that I built to intercept a particular type of
   SMS that would run a service.  That is all working great, however, I
   would like for this SMS to not show up in the user's inbox.  So
   ideally i would like to delete the SMS on the time of Interception.  I
   have gone through a ton of threads and having seen anyone accomplish
   this yet.

   Am I missing something or is this even possible?  I would think there
   would be some _id on the incoming SMS that i could use to run the
   delete against the SMS store.

   I am looking for any solution, and I hope someone out there has
   accomplished this.

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



[android-developers] Re: Creating Android.Jar File

2009-03-20 Thread Kenny

http://groups.google.com/group/android-developers/browse_thread/thread/0f9c17b789e2e602#
may be your question answered.

But I suggest to put the class file to the android.jar with JAR tool
manually. I feel it feasible, haven't tried.

Kenny

On Mar 20, 7:42 pm, AndRaj rajendran.b...@gmail.com wrote:
 Hi Kenny,

 But this also will generate the default android.jar file what we can
 get from the Android SDK.

 My problem is when you make the android.jar from the source code will
 it make the SDK from all the available APIs in the source code..

 For example,

 The Iwindow manager interface is not available with the default
 andorid.jar file. So when you make the jar file from your device
 direcory will it make the ja with all the API's??

 Or

 Do you know any way to use the system hidden API's. There are lot of
 API's are hidden in the Android.

 Regards,
 AndRaj

 On Mar 19, 1:42 pm, Kenny yxw...@gmail.com wrote:

  from device directory, make sdk will generate android.jar to ./out/
  host/linux-x86/sdk/android-sdk_eng.user_linux-x86/...

  Kenny

  On Mar 18, 9:55 pm, Rajendrakumar C rajendran.b...@gmail.com wrote:

   Hi all,

   I downloaded the android source code..

   Can any one tell me how to make our own jar file with all our
   available java classes in the Android source code

   If any one know please help me how to do this...- Hide quoted text -

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



[android-developers] Re: Creating Android.Jar File

2009-03-19 Thread Kenny

from device directory, make sdk will generate android.jar to ./out/
host/linux-x86/sdk/android-sdk_eng.user_linux-x86/...

Kenny

On Mar 18, 9:55 pm, Rajendrakumar C rajendran.b...@gmail.com wrote:
 Hi all,

 I downloaded the android source code..

 Can any one tell me how to make our own jar file with all our
 available java classes in the Android source code

 If any one know please help me how to do this...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Understand Broadcast and Intent with Dalvik process

2009-03-19 Thread Kenny

As no one answers, I also see similar questions with other threads. I
want to rephrase the question.

Android defines Application as components Activity, Service,
Broadcast/Intent and Content provider;
Android designs the inter-process communication - BINDER;
Usually application components send intents (Broadcast or
PendingIntent::send(), others?) as application messages;

If we look into the Android emulator using shell command ps, dozen
of Linux processes are present. Each may have one or more Dalvik JAVA
program.

# ps
USER PID   PPID  VSIZE RSS   WCHANPC NAME
...
root 231 70740 18860 c008be9c afe0c464 S zygote
...
system   4823169084 22552  afe0c33c S system_server
app_10   8023112416 19496  afe0d434 S
android.process.acore
radio8323106508 16636  afe0d434 S
com.android.phone
...

If android.process.acore gets an intent broadcast or PendingInent::send
(), can com.android.phone get the intent? Note they are in two Linux
processes with PID 80 and 83.

Kenny
On Mar 17, 10:06 pm, Kenny Yu yxw...@gmail.com wrote:
 Does anyone know if sendBroadcast(intentA) will bring intents to all
 Dalvik processes?

 For example, process android.process.acore behaves sendBroadcast(new
 intentA). Will the intentA be received in com.android.camera? We think
 android.process.acore and com.android.camera are zygoted to two Dalvik
 VMs (Linux processes).

 Same question to sendIntent(intentB). In terms of docs, sendIntent( )
 can address certain class to receive the intent. Is this behavior
 across processes?

 Kenny
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Scheduling a repeating task and being notified

2009-03-18 Thread Kenny

Sorry, my fault. I was reading PendingIntent.send(). It was what I
meant.

http://groups.google.com/group/android-developers/browse_thread/thread/e5431d6a90b91646/a0892f62e2b42495#a0892f62e2b42495
is my concern.

Dalvik process is a zygoted JVM instance within a Linux process. It's
my understanding. Feel free to correct me please.

Kenny

On Mar 17, 1:00 am, BoD bodl...@gmail.com wrote:
 They are in the same application. The Service is started by the
 AlarmManager, so I'm not sure about what you mean by the same 'Dalvik
 process'.
 I'm also not sure of what you mean by sent(d?)Intent?

 Thanks a lot!

 BoD

 On Mar 16, 2:49 pm, Kenny yxw...@gmail.com wrote:



  Besides sendBroadcast( ), how about sentIntent( )? Are your service
  and receiver in the same Dalvik JVM process?

  Kenny

  On Mar 16, 6:16 pm, BoD bodl...@gmail.com wrote:

   Replying myself, for future reference.
   For theschedulingpart I used AlarmManager and a Service as mentioned
   before.
   For the notification back part I ended up using sendBroadcast from
   the service and a BroadcastReceiver on my Activity (registering/
   unregistering it in onResume/onPause). It works fine.

   BoD

   On Mar 15, 7:22 pm, BoD bodl...@gmail.com wrote:

Hi!

I'm trying to find the correct way to do the following:

. I have an activity with a button that starts arepeatingtaskin the
background. That is, if the user goes away from my activity, I want my
   taskto still be scheduled and executed every x minutes.

. I want a status TextView to be displayed on the activity, and if the
   taskhappens to start executing while my activity is showing, the
TextView should be updated so the user can be aware of what's going
on.

So basically, is there a way to start a scheduled backgroundrepeating
   taskand be notified when it is executed?

From what I saw in the sample applications, I understand I'm supposed
to use AlarmManager and a Service but I'm not sure about the
notification part.

Thanks a lot for your help.

BoD- Hide quoted text -

   - Show quoted text -- Hide quoted text -

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



[android-developers] Understand Broadcast and Intent with Dalvik process

2009-03-17 Thread Kenny Yu

Does anyone know if sendBroadcast(intentA) will bring intents to all
Dalvik processes?

For example, process android.process.acore behaves sendBroadcast(new
intentA). Will the intentA be received in com.android.camera? We think
android.process.acore and com.android.camera are zygoted to two Dalvik
VMs (Linux processes).

Same question to sendIntent(intentB). In terms of docs, sendIntent( )
can address certain class to receive the intent. Is this behavior
across processes?

Kenny
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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.os.ServiceManager

2009-03-17 Thread Kenny

Reading the file frameworks/base/telephony/java/com/android/internal/
telephony/gsm/SMSDispatcher.java, you can find handleSendComplete( )
has a PendingIntent to send. I don't understand PendingIntent well,
only seeing the LOG code saying SMS send complete. Broadcasting
intent ...

Is this PendingIntentsendIntent interceptable? Not sure if the
PendingIntent has extra data of SMS contents. Seer, let me know your
insight.

Kenny

On Mar 17, 12:54 pm, Seer gilligan.ch...@gmail.com wrote:
 So if that is not the way you are meant to services such as alternate
 SMS gateways, what is?  Using intents will not work as most of the sms
 apps have the reply for a thread built in.  This is the only way i
 have been able to discover to capture all outgoing sms so i can either
 redirect them over the web or over the mobile network. I find it sort
 of strange that the developers of Android did not think that people
 would want to also use alternate networks and mediums to the gsm
 network for things like calls and sms.  With sms prices as high as
 they are in Australia the internet can be up to 5 times cheaper to
 send them and even with data costs that is still much cheaper.

 I know all apps are meant to be equal but some apps / services need to
 be able to do things on a much lower level or have intents or
 something for the lower level services of the phone as well.

 I am open to any ideas you have.

 On Mar 17, 3:31 pm, Dianne Hackborn hack...@android.com wrote:



  You can't do this.  Especially from the SDK, on so many levels:

  1. ServiceManager is not public.  The features it contains are not available
  in the SDK.
  2. None of the interfaces of the services published in the service manager
  are published in the SDK, so you wouldn't be able to redefine them anyway.
  3. And even if any of this were in the SDK, applications are not allowed to
  modify what is published in the service manager, and they never will be able
  to.

  On Mon, Mar 16, 2009 at 8:47 PM, Seer gilligan.ch...@gmail.com wrote:

   Is there a way to access this class in the SDK or is there another
   class that does the same thing?  I need to rename one of the services
   listed in the servicemanager so that it will call my service instead
   and then pass calls i don't handle onto the original service that i
   have renamed.

  --
  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.  All such questions should be posted on public
  forums, where I and others can see and answer them.- Hide quoted text -

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



[android-developers] Re: Intercepting outgoing sms

2009-03-17 Thread Kenny

I think check database seems not feasible. Seer, I posted a rely to
you about SMSDispatcher class. Take a look, there may be certain
intent sent there.

Kenny

On Mar 16, 9:44 pm, Kenny yxw...@gmail.com wrote:
 Sms should have provider, through which you may put your SMS to
 database, I think.

 But the topic was about intercepting/redirecting being-sent SMS. Is it
 resolved?

 On Mar 16, 12:52 pm, Seer gilligan.ch...@gmail.com wrote:



  ok i have written an app for sending the sms over the web but how do i
  insert the sms sent over the web into the list of sms sent from the
  phone?

  On Mar 6, 1:25 am, Avraham Serour tovm...@gmail.com wrote:

   not sure if you can do that, if not you could do the opposite, make the 
   user
   send sms using you app, so if the number match your criteria you use your
   gateway, if not send it using the phone regular sms service

   On Thu, Mar 5, 2009 at 5:04 AM, Seer gilligan.ch...@gmail.com wrote:

Hi,
What i want to do is intercept outgoing sms.  The reason been that i
want to redirect some sms over a web based sms sending service and
others to go over the normal mobile network.  I would really like to
do this as an invisible background process that does not need
modifications to any of the existing apps people use to send sms.

Is this possible or will i have to write my own app to send sms and
let that app decide how to send the sms?  with so many sms apps out
there i really did not want to add another to the mix and to instead
work on a lower level.

thanks

Chris- Hide quoted text -

  - Show quoted text -- Hide quoted text -

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



[android-developers] Re: How to add SMS to inbox in android programmatically?

2009-03-17 Thread Kenny

Thanks for your update. So you exactly have done two things:
1. Call SmsManager::sendTextMessage( )
2. Put the sent SMS to its database via ContentResolver::insert( )

Kenny

On Mar 17, 6:42 am, Seer gilligan.ch...@gmail.com wrote:
 i have been trying to do the same thing and just worked it out.  you
 want to do something similar to this.
 uses-permission android:name=android.permission.WRITE_SMS/

    public static final String ADDRESS = address;
    public static final String PERSON = person;
         public static final String DATE = date;
         public static final String READ = read;
         public static final String STATUS = status;
         public static final String TYPE = type;
     public static final String BODY = body;
     public static final int MESSAGE_TYPE_INBOX = 1;
     public static final int MESSAGE_TYPE_SENT = 2;

 ContentValues values = new ContentValues();
            values.put(SMSHelper.ADDRESS, +61408219690);
            values.put(SMSHelper.DATE, 1237080365055);
            values.put(SMSHelper.READ, 1);
            values.put(SMSHelper.STATUS, -1);
            values.put(SMSHelper.TYPE, 2);
            values.put(SMSHelper.BODY, SMS inserting test);
                 Uri inserted = 
 getContentResolver().insert(Uri.parse(content://
 sms), values);

 That is from a few different classes but i am sure you can work out
 how it fits.

 On Mar 13, 8:09 pm, senthil senthil...@gmail.com wrote:



  HI,
  Iam sending the sms by using the below code,
  SmsManager smsManager = SmsManager.getDefault();
  smsManager.sendTextMessage(destAddr, null, mMessageText, il, null);

  But, the same SMS message needs to be reflected in the Native sms
  inbox,
  Can anyone help me out in achieving this

  Thanks in Advance !- Hide quoted text -

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



[android-developers] Re: Keystores

2009-03-16 Thread Kenny

Not helping you, but I wonder what keystore is for? where to get some
docs? thank you very much,
Kenny

On Mar 14, 5:18 am, linkmaster_6 linkmast...@gmail.com wrote:
 Hello yes i have forgotten the password to my keystore and was
 wondring if there was anyway to retrieve this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to know SMS and Contacts update?

2009-03-16 Thread Kenny

Can anybody help? To be clear, I want to write a Android Java program
to monitor the sent-out SMS and input contacts (like SYNC caused).

Because SMS and Contacts are both stored in database, I want to know
if android.database.ContentObserver is good for this purpose. First I
wish to listen to ContentObserver::onChange(). Then I will query
database to see if SMS/Contacts were just added/updated. If this is
doable, really wish to get some sample code.

Kenny
On Mar 15, 12:09 pm, Kenny Yu yxw...@gmail.com wrote:
 Where SMS/Contacts are added/updated/deleted, how can I write an App-
 Service to know the contents change? The changes are possibly caused
 by App activities or SYNC activity, or any else.

 Any content observer or intents I should look into? Welcome your
 design suggestion.

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



[android-developers] Re: How to add SMS to inbox in android programmatically?

2009-03-16 Thread Kenny

Did you ever try to open SMS database to insert the sent SMS record?
You should use message provider to insert a database record.

But I am not sure how to let SMS inbox UI notified. Need to study.

Kenny

On Mar 13, 5:09 pm, senthil senthil...@gmail.com wrote:
 HI,
 Iam sending the sms by using the below code,
 SmsManager smsManager = SmsManager.getDefault();
 smsManager.sendTextMessage(destAddr, null, mMessageText, il, null);

 But, the same SMS message needs to be reflected in the Native sms
 inbox,
 Can anyone help me out in achieving this

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



[android-developers] Re: Contact change broadcast

2009-03-16 Thread Kenny

I'm looking for a way to know the contact update.
android.database.ContentObserver may be feasible. But I don't know the
exact implementation yet. Need to find sample code. You?

Kenny

On Mar 16, 5:59 am, LambergaR martin.s...@gmail.com wrote:
 No idea how to solve those two problems?

 On 11 mar., 17:18, LambergaR martin.s...@gmail.com wrote:



  Hello all!

  Is there a broadcast message dispached when a contact is changed or
  added in Android's native contact book?
  If not, what would be the most efficient way to check for changes?

  Secend of all, what would be the most efficient method for sending a
  file (image) using HTTP POST request?

  Thanks in advance,
  Martin- Hide quoted text -

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



[android-developers] Re: Intercepting outgoing sms

2009-03-16 Thread Kenny

Sms should have provider, through which you may put your SMS to
database, I think.

But the topic was about intercepting/redirecting being-sent SMS. Is it
resolved?

On Mar 16, 12:52 pm, Seer gilligan.ch...@gmail.com wrote:
 ok i have written an app for sending the sms over the web but how do i
 insert the sms sent over the web into the list of sms sent from the
 phone?

 On Mar 6, 1:25 am, Avraham Serour tovm...@gmail.com wrote:



  not sure if you can do that, if not you could do the opposite, make the user
  send sms using you app, so if the number match your criteria you use your
  gateway, if not send it using the phone regular sms service

  On Thu, Mar 5, 2009 at 5:04 AM, Seer gilligan.ch...@gmail.com wrote:

   Hi,
   What i want to do is intercept outgoing sms.  The reason been that i
   want to redirect some sms over a web based sms sending service and
   others to go over the normal mobile network.  I would really like to
   do this as an invisible background process that does not need
   modifications to any of the existing apps people use to send sms.

   Is this possible or will i have to write my own app to send sms and
   let that app decide how to send the sms?  with so many sms apps out
   there i really did not want to add another to the mix and to instead
   work on a lower level.

   thanks

   Chris- Hide quoted text -

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



[android-developers] Re: Scheduling a repeating task and being notified

2009-03-16 Thread Kenny

Besides sendBroadcast( ), how about sentIntent( )? Are your service
and receiver in the same Dalvik JVM process?

Kenny

On Mar 16, 6:16 pm, BoD bodl...@gmail.com wrote:
 Replying myself, for future reference.
 For the scheduling part I used AlarmManager and a Service as mentioned
 before.
 For the notification back part I ended up using sendBroadcast from
 the service and a BroadcastReceiver on my Activity (registering/
 unregistering it in onResume/onPause). It works fine.

 BoD

 On Mar 15, 7:22 pm, BoD bodl...@gmail.com wrote:



  Hi!

  I'm trying to find the correct way to do the following:

  . I have an activity with a button that starts a repeating task in the
  background. That is, if the user goes away from my activity, I want my
  task to still be scheduled and executed every x minutes.

  . I want a status TextView to be displayed on the activity, and if the
  task happens to start executing while my activity is showing, the
  TextView should be updated so the user can be aware of what's going
  on.

  So basically, is there a way to start a scheduled background repeating
  task and be notified when it is executed?

  From what I saw in the sample applications, I understand I'm supposed
  to use AlarmManager and a Service but I'm not sure about the
  notification part.

  Thanks a lot for your help.

  BoD- Hide quoted text -

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



[android-developers] How to know SMS and Contacts update?

2009-03-14 Thread Kenny Yu

Where SMS/Contacts are added/updated/deleted, how can I write an App-
Service to know the contents change? The changes are possibly caused
by App activities or SYNC activity, or any else.

Any content observer or intents I should look into? Welcome your
design suggestion.

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



[android-developers] Re: How to intercept SMS without loading SMS to UI?

2009-03-13 Thread Kenny

I didn't know how to get it on top of SDK. Any activity can override
BroadcastReceiver::onReceive() or IntentReceiver::onReceiveIntent() to
know incoming SMS. I didn't know how to stop Mms activity getting the
SMS_RECEIVE intent.

Any idea if we use internal JAVA API (not in SDK though)?

Kenny

On Mar 11, 8:33 pm, Gulfam gulfa...@gmail.com wrote:
 Hi all,

 My requirements are same as mentioned by Kenny Yu
 any one can help regarding this that How discard or delete that sms at
 interception time.

 Regards,
 Gulfam

 On Mar 11, 2:47 pm, Kenny Yu yxw...@gmail.com wrote:



  Requirement:
  1. The program must be on top of SDK only, no hacking!
  2. When a TEXT SMS is arriving to Android mobile, the program must
  intercept the TEXT SMS to analyze the SMS content (access the whole
  SMS data)
  3. In terms of the SMS content, the program determines if the SMS is
  erased as it doesn't exist. No notification, no update to Inbox UI.
  4. Power cycle the Android phone, the SMS is not seen at Notification
  or message Inbox

  Can any one help with the solution? Or which API shall we look into?

  Kenny- Hide quoted text -

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



[android-developers] How to intercept SMS without loading SMS to UI?

2009-03-11 Thread Kenny Yu

Requirement:
1. The program must be on top of SDK only, no hacking!
2. When a TEXT SMS is arriving to Android mobile, the program must
intercept the TEXT SMS to analyze the SMS content (access the whole
SMS data)
3. In terms of the SMS content, the program determines if the SMS is
erased as it doesn't exist. No notification, no update to Inbox UI.
4. Power cycle the Android phone, the SMS is not seen at Notification
or message Inbox

Can any one help with the solution? Or which API shall we look into?

Kenny
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] App launch broadcast message

2009-02-23 Thread Kenny

Is there a message for the broadcast receiver about when an app is
being launched?

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



[android-developers] API to change network settings (2G networks only)

2009-01-30 Thread Kenny

Hi All,

I've been looking around for an API which will allow me to change the
network settings of the phone.  I want to be able to tick/untick use
2G networks only via an app.  Can someone please shred me some light
or point me into the right direction as I can't find the API anywhere.

Thanks,
Kenny


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



[android-developers] Re: How to write code to uninstall apk from device/emulator?

2009-01-04 Thread Kenny Yu

Simply put the cmd to Java function:
system(adb uninstall apt_name);
I mean your code should invoke the commands exactly as 'adb' does.

Kenny

On Jan 3, 8:52 am, Dr. Tingrong Lu lutingr...@hotmail.com wrote:
 Hi,

 How to write code to uninstall apk from device/emulator? Could anyone drop a 
 sample code? 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
-~--~~~~--~~--~--~---



[android-developers] Re: How to download Android source code distribution in sync with Android SDK?

2008-12-30 Thread Kenny Yu



On Dec 30, 4:05 am, Wah mobic...@gmail.com wrote:
 I followed the instruction here to download Android SDK android-sdk-
 linux_x86-1.0_r2http://code.google.com/android/download.html

 I also followed the instruction here to download the latest source
 code release:http://source.android.com/download

 However, I found the two versions to be somewhat different. It seems
 the source code release has some added exceptions from throws clause
 in some cases. When I step through the debugger the line numbers don't
 match very well either.

 Two questions:

 Is there a way to retrieve the source code release to be in sync with
 the Sdk release?


 Is there a way to generate the SDK release out of the source code
 release?

 Wah
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: jdb attach error

2008-12-30 Thread Kenny Yu

It seems certain JAR file was not seen in your classpath? Eclipse+ADT
does this very well. Did you try it?

Kenny

On Dec 29, 1:40 pm, firstbread xue...@leadcoretech.com wrote:
 Hi all
 I got a problem when I try to debug Android with jdb. The following is
 my steps

 1、use am -e debug true ,to start a activity
 2、useadb forward tcp:8000 jdwp:472,to bind jdwp to tcp:8000
 3、use  jdb -attach localhost:8000 ,to attach jdb to tcp:8000 Then  I
 got error messages:
 java.io.IOException: shmemBase_attach failed: ??¨
 at com.sun.tools.jdi.SharedMemoryTransportService.attach0
 (Native Metho

 at com.sun.tools.jdi.SharedMemoryTransportService.attach
 (SharedMemoryT
 nsportService.java:90)
 at com.sun.tools.jdi.GenericAttachingConnector.attach
 (GenericAttaching
 nnector.java:98)
 at com.sun.tools.jdi.SharedMemoryAttachingConnector.attach
 (SharedMemor
 ttachingConnector.java:45)
 at com.sun.tools.example.debug.tty.VMConnection.attachTarget
 (VMConnect
 n.java:358)
 at com.sun.tools.example.debug.tty.VMConnection.open
 (VMConnection.java
 68)
 at com.sun.tools.example.debug.tty.Env.init(Env.java:64)
 at com.sun.tools.example.debug.tty.TTY.main(TTY.java:1010)

 致命错误:(fatal error:)
 无法连接到目标 VM。(can not connect to target vm)

 What could I do now? 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: How to download Android source code distribution in sync with Android SDK?

2008-12-30 Thread Kenny Yu



On Dec 30, 4:05 am, Wah mobic...@gmail.com wrote:
 I followed the instruction here to download Android SDK android-sdk-
 linux_x86-1.0_r2http://code.google.com/android/download.html

 I also followed the instruction here to download the latest source
 code release:http://source.android.com/download

 However, I found the two versions to be somewhat different. It seems
 the source code release has some added exceptions from throws clause
 in some cases. When I step through the debugger the line numbers don't
 match very well either.

 Two questions:

 Is there a way to retrieve the source code release to be in sync with
 the Sdk release?
under project/development (platform/development.git), you should get
the sources.

 Is there a way to generate the SDK release out of the source code
 release?
try make sdk

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



[android-developers] Re: Where could I get an ADT 0.9.0?

2008-12-27 Thread Kenny Yu

I built cupcake, which has been merged to master HEAD. The ADT is
quite OK. Can you share more info?

Kenny

On Dec 26, 11:35 am, yukinoba ckmagic...@gmail.com wrote:
 To dear all,

 Does anyone have the cupcake? The SDK in there is not applicable to
 the ADT plugin (Android Development Tools plugin) of Eclipse any more,
 and Eclipse throws a message told me I should get an updated ADT with
 version 0.9.0. However, I tried to build one in the source, and found
 that the latest version in the cupcake source code is 0.8.1 rather
 than 0.9.0.

 So, is there anyone enjoyed their cupcakes with Eclipse? I need a ADT
 0.9.0 support...

 Thx for ur help

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



[android-developers] No way to see real Debug and Test Settings on the Device

2008-12-11 Thread Kenny Yu

http://code.google.com/intl/en/android/intro/develop-and-debug.html#additionaldebugging

I can't find the exact this section within emulator, DDMS+Eclipse
menus and even ADB. No entry!

Can anyone give a favor to tell me howt to set Goldfish emulator like
the above URL?


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



[android-developers] Re: developer needed to write a theme application

2008-12-09 Thread Kenny Yu

I've been working on Motorola MING's and V8 Skinning, studying
Android. Let me know your expectation and requirements.

Kenny

On Dec 9, 3:07 am, androidinsider [EMAIL PROTECTED] wrote:
 Greetings,

 Android Insider is looking for a developer to create a theme
 application that switches between custom themes for Android OS. We
 need you to figure out current possibilities and ways of skinning
 Android OS. Unlike others, this is a paid job, and PAY IS GOOD.

 Please reply to this thread or email to [EMAIL PROTECTED]

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



[android-developers] Re: startSearch

2008-04-07 Thread Kenny

Just for clarity... this page may help.

http://code.google.com/android/reference/android/app/SearchManager.html

Kenny

On Mar 30, 2:51 pm, ScottG [EMAIL PROTECTED] wrote:
 To answer my own question, put the following in the AndroidManifest
 description of the main activity:

 !-- This metadata entry causes .app.SearchQueryResults to
 be the default context --
 !-- whenever the user invokes search while in this
 Activity. --
 meta-data android:name=android.app.default_searchable
android:value=.app.SearchQueryResults /

 On Mar 30, 2:17 pm, ScottG [EMAIL PROTECTED] wrote:

  When the SearchInvoke demo application executes startSearch the
  Android search window is immediately positioned at Search Demo (as
  opposed to Contacts, for example).  When I call startSearch the search
  window is positioned at Contacts and I have to click to my search
  window.

  How does SearchInvoke get the search window to open up immediately at
  Search Demo rather than Contacts?

  Any insight greatfully appreciated.

  Cheers, Scott
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] More than one searchable per activity

2008-04-07 Thread Kenny

Hi,

Does any one know if there is a way to define more than one searchable
for a single activity?  An example (although probably not very useful
in this case) would be allowing search for both Name and Type for the
Contact activity.  I have tried putting two meta-data tag in the
manifest, but only the last defined tag showed up in the search bar.

Kenny
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Canvas.drawArc

2008-03-26 Thread Kenny

Hi,

Has anyone successfully use the drawArc function?  or is that part of
the SDK not ready yet?

Kenny
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---