[android-developers] Re: IMAP TLS (accept all certificated) error on Android 2.2 (Froyo)

2010-07-09 Thread tom
Hi guys,

same problem here... it doesn't seem to accept all certificates at
all... !!!

Cheers

On 3 juil, 14:27, AA  wrote:
> Hello,
>
> just got update to FRF91 on Nexus One this morning. Issue: the email
> account, which was working perfectly on former Android 2.1, is not
> working. Account is configured asIMAP,TLS(accept all certificate).
> Error I got is: "Cannot verify hostname: mydomain.com".
> I tried to both specify name (mydomain.com) or change it and insert
> concered IP address. Both cases, same error.
>
> How can that be solved from Nexus One side, i.e. without acting onIMAPserver 
> where I cannot change anything?
>
> Thanks,
> AA

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: extending media framework on android 2.2 / froyo (stagefright ?)

2010-07-09 Thread Sunil Deshpande
Hi Al,

Could you please tell me the code for the flash support in Froyo
release. I want to check the code? I heard and read in forums like
flash support is available on Froyo release.

Thanks and Regards,
Sunil

On Jun 28, 3:52 pm, "sbw.android"  wrote:
> hi,
> I am interested in adding support for some video containers not
> supported by default in a video player application.
> flash player plugin being able to play video on froyo, I suppose there
> are some api to extend the media framework.
> I've heard ofstagefrightbut didn't find much details.
>
> where can I find details on how the flash player works ? does it use
> publicly available api ? public or not, how can I access them ?
>
> 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: Any chance to deactivate the lock pattern in Froyo from code?

2010-07-09 Thread Anders
This is insane..  for Android not to support a security delay is just
beyond words. As a private user I do not want to enter my security
code any time I unlock my phone. I do on the other hand want security.

Every smartphone I've used had an option to delay security for 5min to
a couple of hours.
On my last phone (iPhone) this was covered in the OS.  Moving to
Android the app provided by lars in this thread took care of that for
me up until FroYo was released.

Due to the annoyance of entering password on every unlock, I now run
unsecured. This does not make me feel too god about neither froyo or
Android in general, but at least it makes it easy to pick up my phone
for a little play.

Google need to address this issue ASAP!
I'm sure there are loads of people running unsecured atm due to this
particular issue of not being able to delay security for at least a
few min..

Hopefully this will be solved either through Google or through some
dev utilizing root privilege and some hacks. Shame if we have to sort
to the last option to get a functioning security on our phone.

-Anders


On Jun 30, 6:29 pm, Dianne Hackborn  wrote:
> No we already have a feature request for this in our internal tracker.  I
> currently don't have a schedule for when it might be done.
>
> On Wed, Jun 30, 2010 at 5:20 AM, LeveloKment 
> wrote:
>
>
>
>
>
> > I know ;)
>
> > But this does not mean that the next Android version(s) will have to
> > lack this "balance" as well ;)
>
> > Should I open a "feature request" for this? Or will you :P
>
> > Thanks for your attention Dianne
>
> > Bye
> > Lars
>
> > On 30 Jun., 10:16, Dianne Hackborn  wrote:
> > > Sorry we currently don't support this.
>
> > > On Tue, Jun 29, 2010 at 11:37 PM, LeveloKment <
> > levelokm...@googlemail.com>wrote:
>
> > > > Hi again Dianne. ;)
>
> > > > Ok, lets keep the DeviceAdmin out off the topic for now. From what you
> > > > have described it seems to be for corporate use mainly.
>
> > > > The "problem" I've tried to fix with my app "PatternControl" was the
> > > > following:
> > > > People (private Android users) are aware that they have stored a lot
> > > > of sensible data on the smartphones, because of this some of them
> > > > would like to protect this information a little bit better... this is
> > > > where the Lock Pattern of Android (or with Froyo also the Pin or
> > > > Password) comes into the game.
>
> > > > All the basic lock features that Android provides to the users have
> > > > one disadvantage... Ones enabled, they always on. Each time you want
> > > > to use your phone you have to deal with the lock (pattern, pin or
> > > > password).
> > > > For private users this is often a bit to much and in the end they
> > > > deactivate the security pattern again.
>
> > > > What is missing from my point of view (and most likely the point of
> > > > view from thousands of users of apps like PatternControl, AutoLock
> > > > etc.), is an option like "Enable the lock only if I didn't used the
> > > > phone for xxx minutes".
>
> > > > Best regards
> > > > Lars
>
> > > > On 29 Jun., 19:15, Dianne Hackborn  wrote:
> > > > > On Tue, Jun 29, 2010 at 4:53 AM, LeveloKment <
> > levelokm...@googlemail.com
> > > > >wrote:
>
> > > > > > If I understand you right, than the only "option" to provide more
> > > > > > flexibility to the users is still an option in Android itself.
> > > > > > The DeviceManager can then disallow such temporary lowering of the
> > > > > > lock level.
>
> > > > > Sorry I am not understanding that paragraph.
>
> > > > > > From my point of view an always on security feature will often be
> > > > > > disabled (at least by private users). This lowers the security even
> > if
> > > > > > the origin intention was the other way around.
>
> > > > > Not sure I see the connection here...  the API to disable the lock
> > screen
> > > > is
> > > > > not supported when a device admin is requiring a lock screen, in
> > which
> > > > case
> > > > > there is no way for the user to go around this except to disable that
> > > > device
> > > > > admin, and thus lose all access to whatever corp server the admin is
> > > > > associated with.  And if their preference is to be able to not have a
> > > > lock
> > > > > screen at the expense of not having their corp server access...
> >  well,
> > > > that
> > > > > is fine for all.
>
> > > > > --
> > > > > Dianne Hackborn
> > > > > Android framework engineer
> > > > > hack...@android.com
>
> > > > > Note: please don't send private questions to me, as I don't have time
> > to
> > > > > provide private support, and so won't reply to such e-mails.  All
> > such
> > > > > questions should be posted on public forums, where I and others can
> > see
> > > > and
> > > > > answer them.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to
> > android-developers@googlegroups.com
> > > > To unsubscribe from thi

[android-developers] Re: File missing error while compiling Android source code

2010-07-09 Thread Ahmed El-Hassany

I had the same problem and I couldn't compile Android. But when I read
this thread http://ubuntuforums.org/showthread.php?p=9559776 , it's
saying that Android will force using 64bit if Java6 is used. What I
did is I switched to java5 and it works fine with me.

On Jul 4, 5:06 am, "Louis.Peng"  wrote:
> Hi,
>
> While compiling the android source code , I came across a very peculiar
> problem.
> I'm using Ubuntu 10.04 32bit version and JDK6.
> I downloaded the source and complied in following way,
> 1. repo init -u git://android.git.kernel.org/platform/manifest.git
> 2. repo sync
> 3. make
> 4. the compiling error trace is pasted below,
> host C: libclearsilver-jni <= external/clearsilver/java-jni/j_neo_util.c
> In file included from /usr/include/features.h:378,
> from /usr/include/string.h:26,
> from external/clearsilver/java-jni/j_neo_util.c:1:
> /usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or
> directory
> make: ***
> [out/host/linux-x86/obj/SHARED_LIBRARIES/libclearsilver-jni_intermediates/j_neo_util.o]
> Error 1
>
> I checked the /usr/include/gnu/stubs.h,
> #if __WORDSIZE == 32
> # include  //this file exists
> #elif __WORDSIZE == 64
> # include  // this file doesn't exist
> #else
> # error "unexpected value for __WORDSIZE macro"
> #endif
>
> __WORDSIZE is defined in /usr/include/bits/wordsize,
> #if defined __x86_64__
> # define __WORDSIZE 64
> # define __WORDSIZE_COMPAT32 1
> #else
> # define __WORDSIZE 32
> #endif
>
> The problem is why __x86_64__ is defined in the my 32bit Ubuntu?
> Could you please help to solve this issue?
>
> Thanks in advance!
>
> --
> Louis

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


Re: [android-developers] Re: what hardware platform do you use?

2010-07-09 Thread anshu saurabh
unsubscribe

On Fri, Jul 9, 2010 at 2:19 PM, Indicator Veritatis wrote:

> Only 20 years? I have you beat there. But more importantly, your
> "review of key points" is still seriously deficient in logic. Your
> conclusions still do not follow. Repeating conclusions that do not
> follow IS a mark of being uneducated, no matter how much experience
> you have.
>
> The G1 is not yet obsolete, nor would the OP be forced to "either
> leave the OP limited to Android 1.6 and below, or [be left] with an
> experience as painful as the experience they had with the emulator on
> the Laptop which caused them to look at getting a device in the first
> place", by choosing the G1 as his hardware platform.
>
> Furthermore, you are forgetting one of the OP's considerations: cost.
> You cannot find a phone originally released with 2.0 or 2.1 for as low
> a cost as he can find a G1.
>
> I don't know how you reached the conclusion a T-Mobile Pulse could be
> bought for the same price as a G1: I see eBay prices of $273 for the
> pulse, but I got my G1 on Craigslist for $80.
>
> On Jul 8, 10:44 pm, Al Sutton  wrote:
> > I've only been developing software for 20 years, but if you want to
> > consider me uneducated, then I guess that's your call.
> >
> > To me if you can't buy a device for the purpose you want to use it,
> > the devices firmware hasn't officially been updated for a few revision
> > of the OS it's running, and all the signs indicate it won't be, then
> > it's an obsolete device.
> >
> > Lets review a couple of key points;
> >
> > 1) You can't buy the ADP1 (i.e. the shipped as unlocked G1) through
> > Google any more. All you can buy is the ADP2. Yes, T-Mobile USA are
> > still selling the G1, but carriers will usually sell anything until
> > demand is almost non-existant.
> >
> > 2) There is no *official* support for anything beyond 1.6, and it
> > seems unlikely it ever will see an *official* update (seehttp://
> androinica.com/2010/06/29/will-the-g1-get-froyo-yes-no-maybe/
> > for the reasoning).
> >
> > 3) As you've said, even if you do get a 3rd party Android 2.x ROM it
> > is pig slow running it, making developing/testing any 2.x code with it
> > an unpleasant experience (and the OP originally said he wanted a
> > device because debugging on the emulator was too slow and painful).
> >
> > 4) eBay prices for a T-Mobile pulse (an Android 2.1 HVGA device) are
> > about the same if not cheaper than the eBay price for a G1.
> >
> > At no point did I suggest writing apps to block their use on a G1, all
> > I've done is point out that the G1 isn't the best fit for the OPs
> > situation, and in terms of being a phone for developers it's no longer
> > available for purchase as one, and using it for developing will either
> > leave the OP limited to Android 1.6 and below, or with an experience
> > as painful as the experience they had with the emulator on the Laptop
> > which caused them to look at getting a device in the first place.
> >
> > Al.
> >
> > On Jul 9, 12:20 am, Indicator Veritatis  wrote:
> >
> > > Lack of an official 2.1 update makes it 'obsolete'? Not in my book.
> > > Nor in the book of any educated software engineer. It takes a LOT more
> > > than that to make it 'obsolete', especially when Google ENCOURAGES
> > > third parties to release their own ROMs, and Cyanogen has already
> > > ported 2.1 to the G1 (
> http://androidspin.com/2010/04/29/cyanogen-ports-
> > > android-2-1-rom-in-g1-and-mytouch-3g/).
> >
> > > Of course, it is pig slow when running Cyanogen's 2.1 (compared to new
> > > 2.1 phones), and it lacks the hardware features for much of 2.1. But
> > > people are running 2.1 on the G1 already, and more want to do it.
> >
> > > The G1 is nowhere near the "bleeding edge": but it is still a good
> > > phone for testing new software against, since yet again, if it runs on
> > > the G1, and accommodates "small screens" correctly, then it will run
> > > almsot anywhere. This gets closer than JME ever got to the promise of
> > > "write once, run anywhere".
> >
> > > So don't write-off the G1 yet. You will risk locking your apps out of
> > > 1/5 the market if you do.
> >
> > > On Jul 8, 5:03 am, Al Sutton  wrote:
> >
> > > > It's highly unlikely the G1 will ever see an official update to
> > > > Android 2.x or higher, so it is obsolete.
> >
> > > > In the OPs shoes I personally would put the money towards a better
> > > > computer as it'll most likely make the whole development process more
> > > > pleasant.
> >
> > > > Al.
> >
> > > > On Jul 8, 7:32 am, Indicator Veritatis  wrote:
> >
> > > > > G1 obsolete? Well, almost. But take a look at the famous Platform
> > > > > Version 'dashboard' athttp://
> developer.android.com/resources/dashboard/platform-versions.html.
> > > > > It shows that as many as 21.3% of phones connecting to the market
> are
> > > > > still on 1.5. 45% are running 1.6 or 1.5.
> >
> > > > > So by that standard the G1 is not obsolete, since it is already on
> > > > > 1.6.
> >
> > >

[android-developers] Knowing when someone sets device to 2G only

2010-07-09 Thread Craig
I support people in my organization who use android phones - I
frequently run into people who have set their device to 2G only to
save battery and forget that they made that choice.  Then they call me
at a later date to complain that they aren't getting 3G connections.
I've been looking for a way to write an application on the device that
can pull that metric and send it to me.  I'm only able to find an api
for Network the user is currently on - does anyone know if there is a
way to determine if the user has made a preference choice for 2G
only?  It's an option in the Wireless menu but I can't seem to find a
way to see if that setting has been chosen.
Thanks for the help
Craig

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Running custom app at boot on generic hardware

2010-07-09 Thread PhilL
Hi all,

I'm trying to find out whether or not Android is suitable for a
project I'm working on, but have never touched the API.

I'd like to be able to take an off-the-shelf Android PDA/tablet, and
re-purpose it so that:

- Custom app launches at power up
- No other apps can be run (either uninstalled or unavailable)

Is there a standard way to do this, without custom firmware, or does
it depend on what the vendor has implemented?

Thanks

Phil

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


[android-developers] Re: Problem with app after update to 2.2

2010-07-09 Thread egbokalaka
I have the identical menu stack overflow problem. I'm new to Android
and Eclipse.

MacOS 10.6.4
Eclipse 3.5.2
ADT 0.9.7.v201005071
Targeting 1.5

This occurs with the notepadv1 tutorial.

On Jun 3, 8:44 am, "Mark H. Nichols"  wrote:
> On Jun 1, 2010, at 3:23 PM, Kiril Nedialkov wrote:
>
>
>
> > problem 2:
> > I have two apps in the workspace. Every time when I launch Eclipse, both 
> > projects dont have any errors. However rebuilding all projects always 
> > results in build error in the second project:
>
> > The project cannot be built until build path errors are resolved
>
> Did you update the Android preferences in Eclipse to point to the 2.2 SDK 
> properly?
>
> Mark

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

2010-07-09 Thread Joris
I had the same problem until recently. I'm new to android and not sure
whether this is the optimal way of solving it, but it's simple and
allows you to manage the sensitivity of the click.

@Override
public boolean onTouchEvent(MotionEvent event)
{
if(event.getAction() == MotionEvent.ACTION_DOWN)
{
xTouch = (int) event.getX();
yTouch = (int) event.getY();
xClickOffset = xTouch; *
yClickOffset = yTouch; 
}
else if(event.getAction() == MotionEvent.ACTION_MOVE)
{
   xOffset += xTouch - (int) event.getX(); // offsets for
scrolling the game board and other stuff here, isn't related to
clicking
   yOffset += yTouch - (int) event.getY();

   xTouch = (int) event.getX();
   yTouch = (int) event.getY();
}
else if (event.getAction() == MotionEvent.ACTION_UP)
{
if(Math.abs(event.getX() - xClickOffset) < tileSize / 2 &&
Math.abs(event.getY() - yClickOffset) < tileSize / 2)
*
{
//do click logic
}
}
return true;
}

I marked the important lines so you can see them, this is a simple
example and I'm sure you will easily adapt it for your code.
Basically, it checks whether the movement that has happened since
pressing down is very little. If it is - it's a click.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 get all the children views of a layout

2010-07-09 Thread PingoWingo
Hello,

I'm a newbie, so please excuse if this is a basic question:

Is there a way to get all the children views of a layout, from the
Java code so that I can loop through them and set an attribute?
Specifically, I'd like to set the "layout_width" based on the screen
size.  Since this "layout_width" would be the same for all the views,
I'd prefer to loop through instead of calling each individual View
separately by their id.

I've searched, but I couldn't find anything, and I'm wondering if I'm
off the track.
I'd appreciate any help.

Thanks!


The following is my main.xml:


http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">


  

  

  

  

  

  

  


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


[android-developers] Re: Problem with app after update to 2.2

2010-07-09 Thread egbokalaka
By comparing the code in my Notepadv1.java vs the supplied solution, I
found the error. in the onCreateOptionsMenu method I had:

boolean result = onCreateOptionsMenu(menu)

whereas the correct code was:

boolean result = super.onCreateOptionsMenu(menu)

The error caused my code to be called recursively, which naturally
resulted in a stack overflow.

On Jun 1, 1:23 pm, Kiril Nedialkov  wrote:
> Hi all,
>
> I recently update to 2.2 and encounter two problems:
>
> problem 1:
> My app stop working. First I thought is the changes I made, but after
> reverting to the last revision the app is still crashing.
> The app is targeted for 1.5 and it crash when I press the "menu" button with
> the following stack trace:
>
> Thread [<3> main] (Suspended (exception IndexOutOfBoundsException))
> ViewRoot.deliverKeyEventToViewHierarchy(KeyEvent, boolean) line: 2244
> ViewRoot.handleFinishedEvent(int, boolean) line: 2158
> ViewRoot.handleMessage(Message) line: 1490
> ViewRoot(Handler).dispatchMessage(Message) line: 99
> Looper.loop() line: 123
> ActivityThread.main(String[]) line: 3948
> Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean)
> line: not available [native method]
> Method.invoke(Object, Object...) line: 521
> ZygoteInit$MethodAndArgsCaller.run() line: 782
> ZygoteInit.main(String[]) line: 540
> NativeStart.main(String[]) line: not available [native method]
>
> I do have onCreateOptionsMenu and onOptionsItemSelected implemented but the
> execution never reach my code.
> I tried to uninstall the app, install it again, delete the device and
> created again - no luck.
> I tried to rebuild the project as well. That did not help, however lead to
>
> problem 2:
> I have two apps in the workspace. Every time when I launch Eclipse, both
> projects dont have any errors. However rebuilding all projects always
> results in build error in the second project:
>
> The project cannot be built until build path errors are resolved
>
> And this error will not go away unless I restart Eclipse.
>
> Ubuntu 10.4
> Eclipse 3.5.2
> Target platform Android 1.5
>
> I'm new to Java/Android so any help is appreciated.
> 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] abort()-ing HttpGet requests in ThreadSafeClientConnManager

2010-07-09 Thread Anurag Singh
Hi,

I have an http client based on multi-threaded model of apache http
components in my App. And I want to achieve spontaneous cancellation
of http get requests from my Android app.

A new executor thread is started for each http request and the Thread
and the HttpGet is saved in a thread safe queue. When abort is
requested (on pressing back on the progress dialog and when starting a
new activity) - another thread is started which goes through the queue
of Threads and HttpGet and attempts to terminate them (code below).

While the HttpGet gets aborted successfully, the Threads go into
'native' state. They only time out giving SocketTimeoutException after
a default interval. The threads end up this way on most cancellations.
Is this something to be expected or I am hitting a bug?

The issue is that And as soon as 2 threads enter this state, all
further executor threads go into wait. Only when either of the 2
blocked threads time out, other executors get a chance (this seems to
be the default behavior of http). I have have tried many different
thing but I am unable to budge the 'stuck' threads.

I think the problem can be easily overcome by increasing the total no
of threads and threads per host -- but I am not sure if this will be a
correct thing to do (because the socket resources will stay occupied
till timeout and there is nothing theoretically that can stop a user
to do infinite cancellations)? Even if this is -- for Android, what
should be the number?

Now I am also doubting if my abort strategy is flawed. Can anyone
please commentor let me know of a fool-proof abort strategy?

- - -

Run method of the abort thread is like:
public void run() {
while (!stopQueue.isEmpty()) {
final List stopRequest = 
stopQueue.remove();
HttpGet abortRequest = (HttpGet) 
stopRequest.get(0);
Thread abortThread = (Thread) 
stopRequest.get(1);

// first abort the request
if (abortRequest != null && 
!abortRequest.isAborted()) {
abortRequest.abort();
Log.d("Aborting", 
abortRequest.getURI().toString());
}

// if the thread is still stuck -- interrupt it
if (abortThread != null && 
abortThread.isAlive()) {
abortThread.interrupt();
Log.d("Interrupting", 
abortThread.getName());
}
}
}

Thanks
Anurag

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

2010-07-09 Thread martinlong1978
Hi,

The documentation does not make the interation between onUpgrade() and
onCreate() clear.

When implementing onCreate() should this create the database at
version 1, assuming that onUpgrade will apply all of the patches to
bring it up to version x (lets say version 5 for example)? Or should
onCreate build the latest version of the database, and onUpgrade is
only used to upgrade legacy clients.

I kind of prefer the first, because it effectively means that the same
SQL is executed for everybody. Whereas the second options means that
there is a potential for onCreate to build something slightly
different to the succession of patches built by onUpgrade.

I can always make onCreate call into onUpgrade, however, this is the
kind of implementation detail that should go into the javadocs...
please update!

Thanks

Martin

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

2010-07-09 Thread nonameweed
Hi, need help! : (

I'm using webcam as a emulator camera,

and I think,

emulator and nyartookit are successfully connected

(cause when I reflect the basic hiro marker, the androidboy shows up.
same to the kanji marker, the girl shows up)

but the background is all black screen

shouldn't it be showing what the webcam is seeing?

which source should I modify?

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

2010-07-09 Thread arsalank2
Youtube videos can be played by opening the appropriate URL through
intent action VIEW. The youtube video URL starts with "vnd.youtube".

On Jun 29, 2:39 pm, Ram  wrote:
> Can someone guide me in playing youtube videos in android. I have
> tried the RTSP but it fails tostreamthevideo.

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


[android-developers] Android Support for Text Correction

2010-07-09 Thread shubham patni
Hi Friend,
Is there any Support for Text Correction in Android SDK.
Like if i write something wrong in SMS Text Box ,so those word should
be highlighted or something else.


Please suggest me .
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] Changing view after softkeypad has slided in

2010-07-09 Thread Chrono
Hi everybody,

if have a layout with a variable scrollview at the top and a fixed
view at the bottom.
If the softkeypad slides in, a method will be called (after
onSizeChanged) to hide the footer view due to usability reasons.

So, my problem is to hide the footer view correctly.
If I change the visibility of the footer to Visible.GONE, the view is
indeed gone, but there remains a black space. Only changing the
scrollviews content per touchinput afterwards let the black space
disappear.

If tried a lot of different things to overcome this problem
with .invalidate(), .forceLayout(), .requestLayout() and changing size
to zero instead of GONE but nothing seems to work.

Has anyone an idea how to solve this problem?

Regards
Chrono

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Mobile Developer Research names Android as top platform in developer mindshare

2010-07-09 Thread Matos
Hi,
Just wanted to alert you to a new research examining Android & 7 more
mobile platforms, launched this Monday.

Developer Economics 2010 is a global research tracking the developer
experience from app design to market delivery & monetization, across
400+ developers and all 8 major mobile platforms (incl. Android,
iPhone, Symbian, et-al).

One of the key messages of the report is: "Android stands out as the
platform most popular with mobile developers."

The report, available for free download (at www.developereconomics.com),
reports on:
Best & worst platform aspects, app stores & time-to-market, network
operators, APIs, use and main challenges of open source & more!

Developer Economics has already been featured on TechCrunch, MocoNews,
TweetMeme, Mobile Phone Development & Phandroid.

Matos

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

2010-07-09 Thread A N K ! T
 hey am trying to disconnect the incomming call
can anybody help me in this ..
-- 
Thanks
Ankit

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

[android-developers] what is context?

2010-07-09 Thread cindy
A very silly question, What is Context? How to get it?

Context.getSystemService(TELEPHONY_SERVICE) to get access to the
TelephonyManager.

Thanks!

Cindy

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


[android-developers] Cannot find the culprit file in my android project even after expanding the main folder

2010-07-09 Thread vaibhavpandey
The side bar in eclipse shows a red cross on the title of my project
folder but there are no such signs in the directories below it in
hierarchy. In which particular file does error exist? How can I know
that

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

2010-07-09 Thread Igor
Hello,

My name is Igor and I'm from Russia. I found that there is no good
RPGs on this platphorm. So I want to create team to develop game. I
have good friend, he's roleplaying fan and writes atmosphere modules
(adventures) for his sessions. And he has ideas for computer (mobile)
RPG. As soon as on the market only 2-3 RPGs this could be idea to
create one and earn some money.

Feel free to ask any question.

Sincerely,
Igor Krasnodymov.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Installed Application Size vs APK Filesize

2010-07-09 Thread John
Hi,
  Can somebody explain to me what makes up the installed application
size? I have an apk that is about 8 MB, and often when I install I get
the INSUFFICIENT_STORAGE error. I have around 25-30 MB free space on
the phone.
  I'm doing debugging so I have to upload lots of new versions. If I
uninstall the previous version then I can install the new version. The
application manager claims that the app is taking up 22 MB.
  So back to the original question, how come the app is taking up 22
MB when it really only is 8 MB?

Thanks,
John

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

2010-07-09 Thread vineet
hi There.
i need help in mapping application which i am need to build.
I cannot use google maps api, since that does not support native
offline data.
My application will not be connected to 3g or wifi, and needs to read
data from local filesystem(like andnav)

Can some put light to this on how to implement this??

Thanks

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


[android-developers] Re: Problem in getting result from filtered list

2010-07-09 Thread Russell DuRoss
I've tried using wild card characters to see if that works, but it
doesn't seem to work.  I'm also very interested the hearing if this
can work or not.

On Jun 16, 8:00 am, Addy  wrote:
> Hi.
>
> In my application I used a custom list for displayed some country
> name.
>
> and for enable search from the list,Filterapplied on the custom
> list.
>
> Filterworks on a simply String ArrayList. And its work fine.
>
> But My problem is When I searched for any country name the search
> happend only on String's Starting letter not on the Any letter in the
> string.
>
> For example..
> my country List is
>
> List Country_List=new ArrayList();
>
> Country_List.add("Australia");
> Country_List.add("USA");
> Country_List.add("England");
> Country_List.add("China");
>
> If my searchtextfor country name is 'U'
>
> then
>
> It gives result  'USA' not ' Australia'.
>
> But I want both reasult 'USA' and 'Australia' (Country name which
> contains u letter in any position of its name)
>
> Please Help me.

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


[android-developers] WebView always appears FULLSCREEN

2010-07-09 Thread Michael powers
It appears that my WebView is ALWAYS FULL screen and doesn't respect
the layout .

Also, Activity menus are not the ones I set but the browsers.

If the URL is  www.google.com in mobile mode it appears to work ok !?!

But once you click on Classic mode or any other web site in mobile/
regular it takes up the whole screen.

It works ok with loadData.
I've tried different layouts as well as weight and gravity with no
luck.

Thanks in advance!!

Any ideas ?

Michael

I am testing on an 2.1 android emulator.

Code snippet .

setContentView(R.layout.mainactivity);
WebView webV = (WebView)findViewById(R.id.webview);
webV.setInitialScale(30);
webV.loadUrl(getString(R.string.app_url));


Layout 




http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent android:layout_height="fill_parent">



WebView xmlns:android="http://schemas.android.com/apk/res/android";
android:id="@+id/webview" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_below="@id/label"
/>



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


[android-developers] Sms hiding and deletion

2010-07-09 Thread Usama
i am currently making an application in which i require to delete an
sms. How do i go about it.
Also I may need to hide a sms i.e not visible in the inbox but i may
choose to unhide it later. How do i do that ?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] child activity does not "finish()" correctly

2010-07-09 Thread ecforu
I have a ListActivity I display from a parent activity.  When the user
selects the desired item from the list it supposed to return to the
parent activity.  Only when I call finish, the app goes away (doesn't
quit) and displays the Android Home page.  If I debug, the application
doesn't die, it just sits on an MessageQueue.Wait().

I have a break point right before the finish() call and one in the
first line of the OnActivityResult.  When I press continue from the
first, I never see the second on in onActivityResult.

I have other child activities in my app that don't display this
problem.  However this is the only ListActivity I have that I am
trying to return from.
I do call finish from onListItemClick.  I'm wondering if that is not
allowed since that is responding to a view event.  However if I don't
do it here, how can I get back to the parent activity.  Below is the
code snippet of my finish method.

@Override
protected void onListItemClick(ListView l, View v, int position,
long id)
{
   Object selectedItem = _adapter.getItem(position);
   //TODO get results back to parent activity
   Intent listIntent = new Intent();
   setResult(RESULT_OK, listIntent);
   finish();
}

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

2010-07-09 Thread Mark
My friend and I have a wireless robot dog connected to a wifi network
which our computer is plugged into.  The computer is running an
Android emulator and we are trying to send a UDP packet to the
wireless robot dog.  If the dog receives it, it should start sending
UDP packets back.  The program we wrote works outside of the emulator,
and using Wireshark, we see that the packet is sent to the correct IP
address and the correct MAC address for the robot.  When we attempt to
send the packet from the emulator, the dog does not respond how it
should if it received the packet.  In Wireshark we can see that the
emulator sends the packet to the correct IP address for the dog, but
not the correct MAC address. It is sending it to the MAC address of
the router we are plugged into.  We want to specify the packet so that
it sends to the correct MAC address but we cannot figure out how to do
this. Any help would be great

Mark

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

2010-07-09 Thread Russell DuRoss
You might have to call "notifyDataSetChanged()" whenever the content
is changed.

On May 11, 8:37 am, mudit  wrote:
> Hi..
>
> i need to create a list view that display same functionality as
> Contact App. I need to have a scroller through which i can traverse
> the list alphabetically. To achieve this i am following an example
> from API demos "com.example.android.apis.view.List1.java".  It is
> using a textfilter. When i implement this functionality on a static
> list view => it is working fine. But when i try this on a dynamic
> listview=> it is not working.
>
> Plz 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 
> athttp://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] Listview with Array Adapter - How to Change Item Data in onClick after Text Filter

2010-07-09 Thread Russell DuRoss
I have a need to change the data in my underlying array when the user
clicks on that item in the Listview.  I need this to work even when
the user has done a text filter.  I know how to get the text of the
clicked entry but I can't figure out how to change that text.  Any
ideas?

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


[android-developers] How to write Monkey Script

2010-07-09 Thread jaehyuk park
Hi. This is Park.

I am doing to wirte Monkey Script but i have no idea about it

someone have a sample script?

I searched in google so found some it. but i don't know that mean of
the script

===
type= point< how many type can i use?
count= 10
speed= 1.0
start data >>
captureDispatchPointer(5109520,5109520,0,230,358,0,0,0,0,0,0,0);
captureDispatchPointer(5109521,5109521,1,230,358,0,0,0,0,0,0,0);
delay(5000)   <-how many function can i use and type?

captureDispatchKey(5113146,5113146,0,4,0,0,0,0);
captureDispatchKey(5113146,5113146,1,4,0,0,0,0);

plz~ help me.

Thank you for reading. have a good day~

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

2010-07-09 Thread Usama
I am currently making an application that's to work as auto-theft. The
user whose mobile is stolen sends an sms to his phone and it's
intercepted by the application installed in the phone. According to
the format and instructions the phone performs the tast. I am making a
module to hide the contacts on a particular instruction. How do I go
about it. I have worked on inserting and updating contacts but how do
I hide them, such that they are not visible in the native contacts
app. They should become visible when the user sends another
instruction... that means they are not to be deleted.
and I had another query related to this ... how do we delete a
contact ?

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

2010-07-09 Thread Jonathan
All,
Just picked up the android 2.2 sdk and thought I would give it a run.  I am
doing the hello world demo by Dan Morrel on youtube and then porting to 2.2
.  I can't seem to figure out how to get from the cursor to the intent when
selecting a contact from the screen because the phone number is in a
different table? Any clues would be appreciated.  Thanks, Jonathan

package hello.android;

import android.app.ListActivity;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
//import android.provider.Contacts.
People;
//import android.provider.Contacts.Phones;
import android.provider.ContactsContract.CommonDataKinds;
import android.provider.ContactsContract.Contacts;
import android.provider.ContactsContract.PhoneLookup;

import android.view.View;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.SimpleCursorAdapter;

public class hello extends ListActivity {
/** Called when the activity is first created. */
private ListAdapter mAdapter;

@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);

// get access to some data from the content provider
// in this case issue a query to get the entries list of contacts
//Cursor c = getContentResolver().query(People.CONTENT_URI, null,
null, null, null);
Cursor c = getContentResolver().query(Contacts.CONTENT_URI, null,
null, null, null);
startManagingCursor(c);

// create a mapping for the content provider from the data source
// to the user interface
//String[] columns = new String[] {People.NAME};
String[] columns = new String[] {Contacts.DISPLAY_NAME};
int[] names = new int[] {R.id.row_entry};

// make a class that will make use of our mapping
mAdapter = new SimpleCursorAdapter(this, R.layout.main, c, columns,
names);

// set to be our current adapter
setListAdapter(mAdapter);
}

@Override
// the class that is called every time the user clicks something
protected void onListItemClick(ListView l, View v, int position, long
id) {
// TODO Auto-generated method stub
super.onListItemClick(l, v, position, id);

// the reflections of a applications intent to perform some activity
// in this case a call action to dial the phone
Intent i = new Intent(Intent.ACTION_CALL);
Cursor c = (Cursor) mAdapter.getItem(position);
//long phoneId =
c.getLong(c.getColumnIndex(People.PRIMARY_PHONE_ID));
//i.setData(Phones.CONTENT_URI.addId(phoneId));

// Causes the dialer to appear on the screen and initiate the phone
call
startActivity(i);
}
}




-- 
"If men were angels, no government would be necessary."
--Madison

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

2010-07-09 Thread Rob
In the versioning documentation (http://developer.android.com/guide/
publishing/versioning.html) it says that android:versionCode is an
integer. Is the integer a 4-byte integer with a range of
-2,147,483,648 to +2,147,483,647 or is it only a 2 byte integer with a
range of -32,768 to +32,767 ?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Get binary data from external device to Droid

2010-07-09 Thread Dan
Hello, I'm looking for some input on how to go about a problem I have.
We have a device that has binary data that it needs to send out (they
are mainly just symbols, but in a custom binary format) over ethernet.
I need to intercept this data on the phone and display the symbols
over google maps. I'm just wondering the best way to go about this, I
have a few ideas but am not sure if they are possible or feasable:

1. Is it possible for the phone to connect directly to the device if
the device had some sort of server running on it, then poll for new
data? If so, what is the protocol needed to be able to direct connect
like that?
2. Perhaps modify the device software to send data to the phone(s) in
SMS data message format? Im not sure if it is possible for software to
"spoof" an SMS to a phone when it is not a phone itself?
3. Have the device software upload all its binary data to a ftp/http
server that is sitting out there somewhere, have the phone(s) connect
to that server and poll for new data periodically?

I'm brand new to android development, basically all I want to do is
grab this binary data from the device on my phone and parse/display it
over google maps. How do any of those ideas sound, or is there a much
easier way I am overlooking? 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] Get Custom Binary Data on Phone - Best Implementation?

2010-07-09 Thread Dan
Hello, I'm looking for some input on how to go about a problem I have.
We have a device that has binary data that it needs to send out (they
are mainly just symbols, but in a custom binary format) over ethernet.
I need to intercept this data on the phone and display the symbols
over google maps. I'm just wondering the best way to go about this, I
have a few ideas but am not sure if they are possible or feasable:

1. Is it possible for the phone to connect directly to the device if
the device had some sort of server running on it, then poll for new
data? If so, what is the protocol needed to be able to direct connect
like that?
2. Perhaps modify the device software to send data to the phone(s) in
SMS data message format? Im not sure if it is possible for software to
"spoof" an SMS to a phone when it is not a phone itself?
3. Have the device software upload all its binary data to a ftp/http
server that is sitting out there somewhere, have the phone(s) connect
to that server and poll for new data periodically?

I'm brand new to android development, basically all I want to do is
grab this binary data from the device on my phone and parse/display it
over google maps. How do any of those ideas sound, or is there a much
easier way I am overlooking? Thanks!

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


Re: [android-developers] Re: about library projects

2010-07-09 Thread Deborah Falcone
Thanks for your reply!

I have not error in my progect, but when I run my application, in LogCat
file, I obtain:

*tag *
dalvikvm

*Message *
Could not find class 'org.apache.axis.client.Service', referenced from ...

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

Re: [android-developers] Re: Android Library Project

2010-07-09 Thread Deborah Falcone
Thanks for your reply! Don't worry, I will try to solve the problem ;)

I have not error in my progect, but when I run my application, in LogCat
file, I obtain:

*tag *
dalvikvm

*Message *
Could not find class 'org.apache.axis.client.
Service', referenced from ...

Regards,

Deborah

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] J'ai pas trouvé le chemin syst em/lib

2010-07-09 Thread moudav...@live.fr
Bonjour

Je suis débutant dans ce monde d'android.J'ai trouvé dans plusieurs
tuto des chemins system/lib ou system/fonts mais j'ai pas trouvé ces
chemins là sur mon windows 7.
De l'aide svp

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

2010-07-09 Thread Marek Stój
I had the same problem - couldn't play sounds using neither SoundPool
nor MediaPlayer in apps built with NetBeans. I've found a solution
though and thought I'd share.

All you need to do is set 'keepcompression' attribute to 'true' on the
'zip' tag inside 'build-impl.xml' (can be found in the 'nbproject'
subdirectory). The 'zip' task is called from the '-package-dex'
target.

The problem is that although 'aapt' doesn't compress files with
extensions such as '.mp3', '.ogg', NetBeans uses 'zip' task to update
the APK archive with 'classes.dex' file along with other files (eg.
resources) which causes all files to be compressed.

Hope it helps.

On May 25, 9:36 pm, tony obrien  wrote:
> The code:
> //this is all contained in my MainActivity.
>
>  private SoundPool soundPool;
>     private HashMap soundPoolMap;
>     public static final int SOUND_CANNON = 1;
>     public static final int SOUND_HIT = 2;
>     public static final int SOUND_MISS = 3;
>     public static final int SOUND_WOUND = 4;
>     public static final int SOUND_TAUNT = 5;
>
>     private void initSounds() {
>
>         soundPool = new SoundPool(5, AudioManager.STREAM_MUSIC, 100);
>         soundPoolMap = new HashMap();
>         try {
>         soundPoolMap.put(SOUND_CANNON, soundPool.load(this,
> R.raw.cannon, 1) );
>         } catch(Exception e) {
>             String s = new String(e.getMessage());
>
>         }
>
>         soundPoolMap.put(SOUND_HIT, soundPool.load(this, R.raw.hit,
> 1));
>         soundPoolMap.put(SOUND_MISS, soundPool.load(this, R.raw.miss,
> 1));
>         soundPoolMap.put(SOUND_WOUND, soundPool.load(this,
> R.raw.wound, 1));
>         soundPoolMap.put(SOUND_TAUNT, soundPool.load(this,
> R.raw.taunt, 1));
>
>         }
>
> The Problem:
>
> soundPool.load fails indicating that the RESOURCE CANNOT BE FOUND.
>
> The oog files cannon, hit, miss, wound, and taunt are in my res/raw
> folder (I am using NetBeans with the Android 2.x Emulator, BTW)
> As an experiment I have added a line to try to open the same resource
> (i.e. via the R.raw.xxx  ID) as an InputStream and that succeeds. So I
> am stumped as to why won't load as a soundPool resource.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ListView not refreshing on back button when cursor is changed

2010-07-09 Thread Spiral123
not sure I understand exactly what you are doing,  but have you tried
calling a .notifyDataSetChanged() on your simple cursor adapter?

On Jul 8, 3:14 pm, Connick  wrote:
> My user has a menu option to jump from a list activity to a preference
> screen which has options for filtering and/or sorting visible data in the
> aforementioned list activity. When the user hits the back button, inside
> onResume() I am calling cursor.managedQuery() with the new sort/filter
> params. The query is executing (with expected sorted results) but the
> ListView isn't updating. If I force onCreate to fire by rotating the device,
> the list updates appropriately. The only workaround I've found so far is to
> re-create the adapter onResume ...which obviously isn't the best approach as
> I lose scroll position etc.
>
> I've attempted notify change manually to no avail. (as well as requery - but
> the problem isn't data retrieval) I'm sure I'm missing something obvious. :\
>
> Stace

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


[android-developers] Android APIs

2010-07-09 Thread Deborah
Hi,

I'm new in Android! I work with Eclipse and implements some
application using the Android Emulator.

I'd like to know:

1. is it possible to extend Android APIs whit other .jar file?

2. If it's possible, how can I extend the APIs? I just have to add
libraries to the project or do I copy it to the $ANDROID_HOME/
platforms/android-8/tools/lib

Thanks in advance.

Deborah

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 make a imageview at right of linearlayout

2010-07-09 Thread Spiral123
Thanks so much for taking the time to post your solution Cindy.

I had been bugged by a similar problem for hours and just hadn't
thought of wrapping my Image views in a Linear Layout container in
order to get them aligned properly.

On Jul 7, 6:46 pm, cindy  wrote:
> Following code works:
>
> http://schemas.android.com/apk/res/
> android"
> android:layout_width="fill_parent"
> android:id="@+id/logo_block"
> android:padding="10px"
>  android:gravity="right"
>  android:layout_alignParentRight="true"
> android:layout_height="wrap_content">
>  android:layout_width="wrap_content"
> android:layout_height="fill_parent"
> android:src="@drawable/logo_poweredby"/>
> 
>
> On Jul 7, 5:12 am, Levi  wrote:
>
>
>
>
>
>
>
> > If you put one view in the layout then the  result will be the  same
>
> > 在 2010年7月7日 下午8:07,Levi 写道:
>
> > > Why not using RelativeLayout ?You can set a property
> > > android:layout_alignParentRight="true"  ,then what you want will be show
> > >  good luck!
>
> > > 2010/7/7 cindy 
>
> > > Have tried all those, none of them works. Does it mean we can't put a
> > >> imageview to right?
>
> > >> http://schemas.android.com/apk/res/
> > >> android"
> > >>android:layout_width="fill_parent"
> > >>android:id="@+id/logo_block"
> > >>android:padding="10px"
> > >>  android:gravity="right"
> > >> android:layout_height="wrap_content">
> > >> > >>android:layout_width="fill_parent"
> > >>android:layout_height="fill_parent"
> > >> android:src="@drawable/logo_poweredby"/>
> > >>
>
> > >> On Jul 6, 6:15 pm, Levi  wrote:
> > >> > Hi,try it Good Luck!
>
> > >> > http://schemas.android.com/apk/res/
> > >> > android"
> > >> >android:layout_width="fill_parent"
> > >> >android:id="@+id/logo_block"
> > >> >android:padding="10px"
> > >> >android:layout_height="wrap_content"
> > >> >android:gravity="right">
> > >> > > >> >android:layout_width="fill_parent"
> > >> >android:layout_height="fill_parent"
> > >> >android:src="@drawable/logo_poweredby"/>
> > >> >
>
> > >> > 2010/7/5 cindy 
>
> > >> > > Hi All,
>
> > >> > > In the linearlayout, I need to put the image at right. I have tried a
> > >> > > lot of method, none of them works. Can someone point out what is
> > >> > > wrong?
>
> > >> > > http://schemas.android.com/apk/res/
> > >> > > android"
> > >> > >android:layout_width="fill_parent"
> > >> > >android:id="@+id/logo_block"
> > >> > >android:padding="10px"
> > >> > >android:layout_height="wrap_content">
> > >> > > > >> > >android:layout_width="fill_parent"
> > >> > >android:layout_height="fill_parent"
> > >> > >android:gravity="right"
> > >> > >android:layout_alignParentRight="true"
> > >> > >android:src="@drawable/logo_poweredby"/>
> > >> > >
>
> > >> > > Thanks!
>
> > >> > > Cindy
>
> > >> > > --
> > >> > > You received this message because you are subscribed to the Google
> > >> > > Groups "Android Developers" group.
> > >> > > To post to this group, send email to
> > >> android-developers@googlegroups.com
> > >> > > To unsubscribe from this group, send email to
> > >> > > android-developers+unsubscr...@googlegroups.com
> > >> 
>
> > >> > > For more options, visit this group at
> > >> > >http://groups.google.com/group/android-developers?hl=en
>
> > >> --
> > >> You received this message because you are subscribed to the Google
> > >> Groups "Android Developers" group.
> > >> To post to this group, send email to android-developers@googlegroups.com
> > >> To unsubscribe from this group, send email to
> > >> android-developers+unsubscr...@googlegroups.com
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Putting a service into a .jar?

2010-07-09 Thread Boozel
Thanks i got it to work i was making an error in my entry for a
service in the manifest.
Thanks for the help

On Jul 9, 7:21 pm, Mark Murphy  wrote:
> On Fri, Jul 9, 2010 at 12:52 PM, Boozel  wrote:
> > I have created a service that works great, it is launched from an
> > activity at the moment.
> > I'm looking to package it into a .jar file so that other people can
> > add the jar to then their projects and then run the service. Can
> > anyone tell me how i can launch this service from the app that it is
> > included in?
>
> The same way they would if the code were in their own app: add an
> entry for the service in their manifest and call startService() or
> bindService().
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

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


[android-developers] android:clickable = true makes layout not clickable?

2010-07-09 Thread dxw_es
Hey everyone. I noticed something odd. I have a listview with
custom BaseAdapter, and getView() inflates a layout. On 1.6 SDK (I've
been developing on a G1), if I set android:clickable="true" on the
layout, then the item is NOT clickable (but otherwise the item is
clickable). Is this the correct behavior? It seems backwards to me.

Furthermore, no matter now matter how i set android:clickable for the
same layouts using 2.2 SDK (run using emulator), the layout always is
clickable... eh? I'm really bothered by 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: Build Error

2010-07-09 Thread folone
I actually have the same problem here.
$ ls -l /usr/lib/libz.so
says:
lrwxrwxrwx 1 root root 20 2010-07-07 17:08 /usr/lib/libz.so -> /lib/
libz.so.1.2.3.3
How do I figure out, if it is the right version of lib, and how do I
create a symlink to the right one?

On Jul 8, 5:15 am, Robert Craig  wrote:
> My first response when looking at your error was that you need to point your
> libz.so to your 32 bit version.
> I would try that first and see if that works. Try doing an 'ls -l' on
> /usr/lib/libz.so and see where that points.
> My first guess is that you need to create a symlink to the 32bit version,
> /usr/lib32/libz.so.
>
>
>
> On Wed, Jul 7, 2010 at 10:06 PM, Taewoong Kim  wrote:
> > My dev environment is ubuntu 10.04(32bit) on 64bit cpu(dual).
> > Is this problem?
>
> > 2010/7/8 Robert Craig 
>
> >> it could be a 64 bit versus 32 bit issue. what does your dev environment
> >> look like?
>
> >> On Wed, Jul 7, 2010 at 9:03 PM, Taewoong Kim  wrote:
>
> >>> I have a same problem.
>
> >>> but I could not have solution.
>
> >>> 2010/7/6 David Rhodus 
>
> >>> Anyone seen this ?
>  I feel like I'm just missing a package or something easy.
>
>  On Sun, Jul 4, 2010 at 6:24 PM, David Rhodus 
>  wrote:
>  > Any Suggestions ???
>
>  > apt-get install git-core gnupg sun-java6-jdk flex bison gperf
>  > libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl
>  > libncurses5-dev zlib1g-dev g++-multilib
>  > repo sync
>
>  > r...@myhost:/home/android# make showcommands
>  > 
>  > PLATFORM_VERSION_CODENAME=AOSP
>  > PLATFORM_VERSION=AOSP
>  > TARGET_PRODUCT=generic
>  > TARGET_BUILD_VARIANT=eng
>  > TARGET_SIMULATOR=
>  > TARGET_BUILD_TYPE=release
>  > TARGET_BUILD_APPS=
>  > TARGET_ARCH=arm
>  > HOST_ARCH=x86
>  > HOST_OS=linux
>  > HOST_BUILD_TYPE=release
>  > BUILD_ID=OPENMASTER
>  > 
>  > Install: out/host/linux-x86/framework/apicheck.jar
>  > out/host/linux-x86/bin/acp -fpt
>  > out/host/common/obj/JAVA_LIBRARIES/apicheck_intermediates/javalib.jar
>  > out/host/linux-x86/framework/apicheck.jar
>  > Install: out/host/linux-x86/framework/clearsilver.jar
>  > out/host/linux-x86/bin/acp -fpt
>
>  out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar
>  > out/host/linux-x86/framework/clearsilver.jar
>  > Install: out/host/linux-x86/framework/droiddoc.jar
>  > out/host/linux-x86/bin/acp -fpt
>  > out/host/common/obj/JAVA_LIBRARIES/droiddoc_intermediates/javalib.jar
>  > out/host/linux-x86/framework/droiddoc.jar
>  > host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so)
>  > g++ -Wl,-rpath-link=out/target/product/generic/obj/lib
>  > -Wl,-rpath,\$ORIGIN/../lib -shared -Wl,-soname,libneo_cgi.so  -m64
>  > -Lout/host/linux-x86/obj/lib
>
>  out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgiwrap.o
>  > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgi.o
>
>  out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/html.o
>
>  out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/date.o
>
>  out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/rfc2388.o
>  >    -Wl,--whole-archive   -Wl,--no-whole-archive   -lneo_util -lneo_cs
>  >  -o out/host/linux-x86/obj/lib/libneo_cgi.so  -lz
>  > /usr/bin/ld: skipping incompatible
>  > /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.so when searching for
>  > -lz
>  > /usr/bin/ld: skipping incompatible
>  > /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.a when searching for
>  > -lz
>  > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for
>  -lz
>  > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for
>  -lz
>  > /usr/bin/ld: cannot find -lz
>  > collect2: ld returned 1 exit status
>  > make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] Error 1
>  > r...@myhost:/home/android#
>
>  --
>  You received this message because you are subscribed to the Google
>  Groups "Android Developers" group.
>  To post to this group, send email to
>  android-developers@googlegroups.com
>  To unsubscribe from this group, send email to
>  android-developers+unsubscr...@googlegroups.com   cr...@googlegroups.com>
>  For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
> >>>  --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "Android Developers" group.
> >>> To post to this group, send email to android-developers@googlegroups.com
> >>> To unsubscribe from this group, send email to
> >>> android-developers+unsubscr...@googlegroups.com >>>  cr...@googlegroups.com>
> >>> For more options, visit this group at
> >>>http://gro

[android-developers] Add link to my activity in Contact's Phone Number Context Menu

2010-07-09 Thread MarcoDuff
Hi,
I want to add a link to my activity in "Contacts -> Select Contact ->
Long Click in Contact's Phone Number -> Context Menu".

Which kind of Intent Filter I must add to my activity in application
manifest?

Thanks (and sorry for my english!)

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

2010-07-09 Thread Sam
Hi All,

I have some questions about the testing of bluetooth.

I have tried the bluetooth chat and it worked pretty well on my two
Andriod 2.1 based mobile phones.

However, this test can only be done only by someone who has 2 android
phones and the version must be 2.1.

I assume this is a big issue because i looked into the CTS related to
Bluetooth topic and it doesnt explain much

about it.

The regular expectation for testing Bluetooth should be:

# Scan for other Bluetooth devices
# Query the local Bluetooth adapter for paired Bluetooth devices
# Establish RFCOMM channels
# Connect to other devices through service discovery
# Transfer data to and from other devices

In my case:

I would like to implement the application to send the file(image file,
mp3, whatever...) from my Android 2.1 mobile to any device with
Bluetooth module.

Can someone have any suggestion or experience for this problem?


Your reply will be highly appreciated.




Sam

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: build android sdk from git on ubuntu 10.04 fail

2010-07-09 Thread Brian Austin
Roll back the following patch

http://android.git.kernel.org/?p=platform/external/clearsilver.git;a=commitdiff;h=d36910a8110d8377b22301274d2b5131a732a72b

Now that Java6 is required, you need to remove the check to force 64
bit build in Clearsilver for 32bit systems

On Jul 3, 11:28 am, zyanho  wrote:
>  i getting start withhttp://source.android.com/source/download.html.
>  i use ubuntu 10.04 ,i install android step by step.
>  i type "make" at last,i get an error
>
> host C: libneo_util <= external/clearsilver/util/neo_hash.c
> host SharedLib: libneo_util (out/host/linux-x86/obj/lib/
> libneo_util.so)
> host C: libneo_cs <= external/clearsilver/cs/csparse.c
> host SharedLib: libneo_cs (out/host/linux-x86/obj/lib/libneo_cs.so)
> host C: libneo_cgi <= external/clearsilver/cgi/cgiwrap.c
> host C: libneo_cgi <= external/clearsilver/cgi/cgi.c
> host C: libneo_cgi <= external/clearsilver/cgi/html.c
> host C: libneo_cgi <= external/clearsilver/cgi/date.c
> host C: libneo_cgi <= external/clearsilver/cgi/rfc2388.c
> host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so)
> /usr/bin/ld: skippingincompatible/usr/lib/gcc/i486-linux-gnu/
> 4.4.3/../../../libz.so when searching for -lz
> /usr/bin/ld: skippingincompatible/usr/lib/gcc/i486-linux-gnu/
> 4.4.3/../../../libz.a when searching for -lz
> /usr/bin/ld: skippingincompatible/usr/lib/libz.so when searching for
> -lz
> /usr/bin/ld: skippingincompatible/usr/lib/libz.a when searching for -
> lz
> /usr/bin/ld: cannot find -lz
> collect2: ld returned 1 exit status
> make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] error 1
>
>   it look like somethings wrong withlibz,but zlib1g-dev is install .i
> try to google it all around web,but i get nothings,could anybody have
> some idea with 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: android build error : libz.so, libz.a

2010-07-09 Thread Brian Austin
You need to rollback the patch in Clearsilver that forces a 64bit
build if using java6.  now that the HEAD requires java6, it will hork
on a 32bit system.

http://android.git.kernel.org/?p=platform/external/clearsilver.git;a=commitdiff;h=d36910a8110d8377b22301274d2b5131a732a72b

I submitted the request to the mailing list to have the maintainers
roll that back now

Brian

On Jul 7, 12:12 am, brilliant winger  wrote:
> Hi
>
> I try build android full source.
>
> I have an error.
>
> Install: out/host/linux-x86/framework/apicheck.jar
> Install: out/host/linux-x86/framework/clearsilver.jar
> Install: out/host/linux-x86/framework/droiddoc.jar
> host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so)
> /usr/bin/ld: skippingincompatible/usr/lib/gcc/i486-linux-gnu/
> 4.4.3/../../../libz.so when searching for -lz
> /usr/bin/ld: skippingincompatible/usr/lib/gcc/i486-linux-gnu/
> 4.4.3/../../../libz.a when searching for -lz
> /usr/bin/ld: skippingincompatible/usr/lib/libz.so when searching for
> -lz
> /usr/bin/ld: skippingincompatible/usr/lib/libz.a when searching for -
> lz
> /usr/bin/ld: cannot find -lz
> collect2: ld returned 1 exit status
>
> what solution? help me.

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


[android-developers] Communicate between two tabs

2010-07-09 Thread Ivo Janssen
Is it possible when pressing a button on one tab, to "talk" to the
other tab activity (such as a call to a "refresh" function in the
other activity)?
When I try to give the tabhost or this (tabactivity class) to all
activities then the application crashes at startup.

Hopefully you know a good solution for this.
Thanks in advanced,
Ivo

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Example gallery style view with fling, bounce, animation, etc

2010-07-09 Thread Aga Madurska
Hi,

Many thanks for sharing. Did you manage to pin down the reason for the
original problem with the del key? I'm having a similar issue but I'm
not so keen on reimplementing the whole gallery just to solve this :)

On Jul 4, 1:32 pm, Neilz  wrote:
> Many thanks Australuke, I'll give that a go.
>
> On Jul 4, 1:21 pm, Australuke  wrote:
>
>
>
> > Hi, i only have time for a quick reply. Inflating each view will have a
> > performance hit on the fling animation; if there are only five then inflate
> > them first in onCreate and store them in an array. Then modify getView to
> > return the appropriate view from the array.
>
> > This will of course mean there will be no recycling of the views but if all
> > five are a different layout then recycling is impossible anyway.
>
> > If your gallery is going to hold a lot of views, some of which are similar
> > then you can recycle views from the array by checking the class name of the
> > view in covertView, but there will be some complexities.
>
> > Hope that helps, I can write more later.
>
> > On 4 Jul 2010 22:05, "Neilz"  wrote:
> > I'm trying to modify the example, so that I can set each view
> > according to my own xml layout file. So each of the five views will
> > have its own layout.xml file, which gets inflated with a
> > LayoutInflater and set as its view. Only three of the views are being
> > instantiated, the other two just take the views created by the first
> > two, so that they get repeated.
>
> > On Jul 2, 3:52 pm, droidful  wrote:
>
> > > HiNeilz,
>
> > > I dont quite follow the problem; if you can elaborate I would be very
> > > keen to investigate. Doe...

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

2010-07-09 Thread dmp
Hi,

I am aware that we can create our own flash files and run it on
android.
I have tried doing this and it works.

But I don't see how we can connect android data such as pictures in
sdcard or gallery or contact information, such that it can be used in
flash.
eg, some cool way of animating images in the gallery.-- using flash

I am new to flash so I am not sure how to do this.
Is this possible using flash ?
If so, can you just point me to a few starters on how this can be
done ?

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] eclipse HELIOS (3.6) Code Assist very slow

2010-07-09 Thread gDev
Code Assist very slow

any soluation for that?

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

2010-07-09 Thread folone
I did
$ file /lib/libz.so.1.2.3.3
and it said, that:
/lib/libz.so.1.2.3.3: ELF 32-bit LSB shared object, Intel 80386,
version 1 (SYSV), dynamically linked, stripped
So, it seems, everything is ok. But I still get the first error.

On Jul 8, 5:15 am, Robert Craig  wrote:
> My first response when looking at your error was that you need to point your
> libz.so to your 32 bit version.
> I would try that first and see if that works. Try doing an 'ls -l' on
> /usr/lib/libz.so and see where that points.
> My first guess is that you need to create a symlink to the 32bit version,
> /usr/lib32/libz.so.
>
>
>
> On Wed, Jul 7, 2010 at 10:06 PM, Taewoong Kim  wrote:
> > My dev environment is ubuntu 10.04(32bit) on 64bit cpu(dual).
> > Is this problem?
>
> > 2010/7/8 Robert Craig 
>
> >> it could be a 64 bit versus 32 bit issue. what does your dev environment
> >> look like?
>
> >> On Wed, Jul 7, 2010 at 9:03 PM, Taewoong Kim  wrote:
>
> >>> I have a same problem.
>
> >>> but I could not have solution.
>
> >>> 2010/7/6 David Rhodus 
>
> >>> Anyone seen this ?
>  I feel like I'm just missing a package or something easy.
>
>  On Sun, Jul 4, 2010 at 6:24 PM, David Rhodus 
>  wrote:
>  > Any Suggestions ???
>
>  > apt-get install git-core gnupg sun-java6-jdk flex bison gperf
>  > libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl
>  > libncurses5-dev zlib1g-dev g++-multilib
>  > repo sync
>
>  > r...@myhost:/home/android# make showcommands
>  > 
>  > PLATFORM_VERSION_CODENAME=AOSP
>  > PLATFORM_VERSION=AOSP
>  > TARGET_PRODUCT=generic
>  > TARGET_BUILD_VARIANT=eng
>  > TARGET_SIMULATOR=
>  > TARGET_BUILD_TYPE=release
>  > TARGET_BUILD_APPS=
>  > TARGET_ARCH=arm
>  > HOST_ARCH=x86
>  > HOST_OS=linux
>  > HOST_BUILD_TYPE=release
>  > BUILD_ID=OPENMASTER
>  > 
>  > Install: out/host/linux-x86/framework/apicheck.jar
>  > out/host/linux-x86/bin/acp -fpt
>  > out/host/common/obj/JAVA_LIBRARIES/apicheck_intermediates/javalib.jar
>  > out/host/linux-x86/framework/apicheck.jar
>  > Install: out/host/linux-x86/framework/clearsilver.jar
>  > out/host/linux-x86/bin/acp -fpt
>
>  out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar
>  > out/host/linux-x86/framework/clearsilver.jar
>  > Install: out/host/linux-x86/framework/droiddoc.jar
>  > out/host/linux-x86/bin/acp -fpt
>  > out/host/common/obj/JAVA_LIBRARIES/droiddoc_intermediates/javalib.jar
>  > out/host/linux-x86/framework/droiddoc.jar
>  > host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so)
>  > g++ -Wl,-rpath-link=out/target/product/generic/obj/lib
>  > -Wl,-rpath,\$ORIGIN/../lib -shared -Wl,-soname,libneo_cgi.so  -m64
>  > -Lout/host/linux-x86/obj/lib
>
>  out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgiwrap.o
>  > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgi.o
>
>  out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/html.o
>
>  out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/date.o
>
>  out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/rfc2388.o
>  >    -Wl,--whole-archive   -Wl,--no-whole-archive   -lneo_util -lneo_cs
>  >  -o out/host/linux-x86/obj/lib/libneo_cgi.so  -lz
>  > /usr/bin/ld: skipping incompatible
>  > /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.so when searching for
>  > -lz
>  > /usr/bin/ld: skipping incompatible
>  > /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.a when searching for
>  > -lz
>  > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for
>  -lz
>  > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for
>  -lz
>  > /usr/bin/ld: cannot find -lz
>  > collect2: ld returned 1 exit status
>  > make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] Error 1
>  > r...@myhost:/home/android#
>
>  --
>  You received this message because you are subscribed to the Google
>  Groups "Android Developers" group.
>  To post to this group, send email to
>  android-developers@googlegroups.com
>  To unsubscribe from this group, send email to
>  android-developers+unsubscr...@googlegroups.com   cr...@googlegroups.com>
>  For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
> >>>  --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "Android Developers" group.
> >>> To post to this group, send email to android-developers@googlegroups.com
> >>> To unsubscribe from this group, send email to
> >>> android-developers+unsubscr...@googlegroups.com >>>  cr...@googlegroups.com>
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/android-

[android-developers] Re: build android sdk from git on ubuntu 10.04 fail

2010-07-09 Thread folone
Same here. No solution. If anyone knows, how to fix it, please
respond.

On 8 июл, 04:04, Taewoong Kim  wrote:
> I have a same problem.
>
> but I could not have solution.
>
> 2010/7/4 zyanho 
>
>
>
> >  i getting start withhttp://source.android.com/source/download.html.
> >  i use ubuntu 10.04 ,i install android step by step.
> >  i type "make" at last,i get an error
>
> > host C: libneo_util <= external/clearsilver/util/neo_hash.c
> > host SharedLib: libneo_util (out/host/linux-x86/obj/lib/
> > libneo_util.so)
> > host C: libneo_cs <= external/clearsilver/cs/csparse.c
> > host SharedLib: libneo_cs (out/host/linux-x86/obj/lib/libneo_cs.so)
> > host C: libneo_cgi <= external/clearsilver/cgi/cgiwrap.c
> > host C: libneo_cgi <= external/clearsilver/cgi/cgi.c
> > host C: libneo_cgi <= external/clearsilver/cgi/html.c
> > host C: libneo_cgi <= external/clearsilver/cgi/date.c
> > host C: libneo_cgi <= external/clearsilver/cgi/rfc2388.c
> > host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so)
> > /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/
> > 4.4.3/../../../libz.so when searching for -lz
> > /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/
> > 4.4.3/../../../libz.a when searching for -lz
> > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for
> > -lz
> > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -
> > lz
> > /usr/bin/ld: cannot find -lz
> > collect2: ld returned 1 exit status
> > make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] error 1
>
> >  it look like somethings wrong with libz,but zlib1g-dev is install .i
> > try to google it all around web,but i get nothings,could anybody have
> > some idea with 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 > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


[android-developers] ANDROID: How to load the images from a URL in the Grid.

2010-07-09 Thread Suneel Dasari
Hi
  I have been working on a POC, where I have an activity which
displays a group of images from my local drawable folder in a Grid
view. I have created the ImageAdapter and that has actually an integer
array with the image ids and it is working fine.

But the actual problem is I have to read the image which resides in a
remote server through a URL and display it in the Grid.

Please help

Thanks
Suneel

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

2010-07-09 Thread Alimae
Hi,

I have an app wich is is a TabActivity with 3 tabs.
Each tab is an activity.

The first tab (Activity1) has a FrameLayout which contains a
GLSurfaceView. All the GL code is done in my native library (using the
ndk)/
I have put logs into the onSurfaceDestroyed (in GLSurfaceView) and the
onSurfaceCreated (in the renderer of the GLSurfaceView) methods to
know when they are called

I launch the app, the first tab (Activity1) is displayed, my GL stuff
works fine.
I switch to the second tab, Activity1 receives the onPause event, so i
call the GLSurfaceView.onPause to pause the glThread. That's works.

I 'm in the second tab, i re-switch in the first tab. Activity1
receives the onResume event, so i call the GLSurfaceView.onResume but
i see in my logs that onSurfaceCreated is called  and i have never
seen "onSurfaceDestroyed" in logs ...

If I don't call the GLSurfaceView.onPause/onResume, the switch/re-
switch works but onDrawFrame is always called.
Of course, i can use a boolean to draw nothing when the activity is
paused but the onDrawFrame is always called and official doc
recommends to call the GLSurfaceView.onPause/onResume methods.

Any ideas about that?

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


[android-developers] Error while parsing the JSON response.

2010-07-09 Thread Suneel Dasari
Hi I am getting the below error while parsing JSON.

MY CODE:

Overridden method in POJO RootCategories;

public String toString(){
return "Category ID: " + catId
 + "Category Name: " + catName
 + "Description: " + description
 + "isPP: " + isPP
 + "isRootCategory: " + isRootCategory
 + "isTerminalCategory: " + isTerminalCategory;
}

Parser in my Activity:

private List parse(String jsonString) throws Exception
{

java.lang.reflect.Type collectionType = new
TypeToken>() {
}.getType();
List rootCategories = new
Gson().fromJson(jsonString,
collectionType);
return rootCategories;
}

Please help

Thanks
Suneel


07-08 19:21:00.016: WARN/ActivityManager(69): Launch timeout has
expired, giving up wake lock!
07-08 19:21:00.367: WARN/ActivityManager(69): Activity idle timeout
for HistoryRecord{43f8ed70 com.jcp.androidpoc/.CategoryHomeActivity}
07-08 19:21:09.537: DEBUG/dalvikvm(1072):   JDWP invocation returning
with exceptObj=0x43e270c0 (Ljava/lang/NullPointerException;)
07-08 19:21:15.967: DEBUG/dalvikvm(1072): GC_FOR_MALLOC freed 2799
objects / 181800 bytes in 127ms
07-08 19:21:16.228: WARN/System.err(1072):
java.lang.NullPointerException
07-08 19:21:16.247: WARN/System.err(1072): at
org.apache.harmony.luni.lang.reflect.ListOfTypes.length(ListOfTypes.java:
47)
07-08 19:21:16.268: WARN/System.err(1072): at
org.apache.harmony.luni.lang.reflect.ImplForType.toString(ImplForType.java:
83)
07-08 19:21:16.286: WARN/System.err(1072): at
java.lang.StringBuilder.append(StringBuilder.java:203)
07-08 19:21:16.306: WARN/System.err(1072): at
com.google.gson.JsonDeserializerExceptionWrapper.deserialize(JsonDeserializerExceptionWrapper.java:
56)
07-08 19:21:16.327: WARN/System.err(1072): at
com.google.gson.JsonDeserializationVisitor.visitUsingCustomHandler(JsonDeserializationVisitor.java:
65)
07-08 19:21:16.327: WARN/System.err(1072): at
com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:96)
07-08 19:21:16.356: WARN/System.err(1072): at
com.google.gson.JsonDeserializationContextDefault.fromJsonObject(JsonDeserializationContextDefault.java:
73)
07-08 19:21:16.398: WARN/System.err(1072): at
com.google.gson.JsonDeserializationContextDefault.deserialize(JsonDeserializationContextDefault.java:
49)
07-08 19:21:16.427: WARN/System.err(1072): at
com.google.gson.Gson.fromJson(Gson.java:379)
07-08 19:21:16.457: WARN/System.err(1072): at
com.google.gson.Gson.fromJson(Gson.java:329)
07-08 19:21:16.487: WARN/System.err(1072): at
com.jcp.androidpoc.CategoryHomeActivity.parse(CategoryHomeActivity.java:
137)
07-08 19:21:16.507: WARN/System.err(1072): at
com.jcp.androidpoc.CategoryHomeActivity.onCreate(CategoryHomeActivity.java:
76)
07-08 19:21:16.547: WARN/System.err(1072): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
07-08 19:21:16.597: WARN/System.err(1072): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2627)
07-08 19:21:16.607: WARN/System.err(1072): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679)
07-08 19:21:16.648: WARN/System.err(1072): at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-08 19:21:16.677: WARN/System.err(1072): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-08 19:21:16.717: WARN/System.err(1072): at
android.os.Handler.dispatchMessage(Handler.java:99)
07-08 19:21:16.756: WARN/System.err(1072): at
android.os.Looper.loop(Looper.java:123)
07-08 19:21:16.807: WARN/System.err(1072): at
android.app.ActivityThread.main(ActivityThread.java:4627)
07-08 19:21:16.818: WARN/System.err(1072): at
java.lang.reflect.Method.invokeNative(Native Method)
07-08 19:21:16.846: WARN/System.err(1072): at
java.lang.reflect.Method.invoke(Method.java:521)
07-08 19:21:16.867: WARN/System.err(1072): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-08 19:21:16.887: WARN/System.err(1072): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-08 19:21:16.887: WARN/System.err(1072): at
dalvik.system.NativeStart.main(Native Method)

07-08 19:21:00.016: WARN/ActivityManager(69): Launch timeout has
expired, giving up wake lock!
07-08 19:21:00.367: WARN/ActivityManager(69): Activity idle timeout
for HistoryRecord{43f8ed70 com.jcp.androidpoc/.CategoryHomeActivity}
07-08 19:21:09.537: DEBUG/dalvikvm(1072):   JDWP invocation returning
with exceptObj=0x43e270c0 (Ljava/lang/NullPointerException;)
07-08 19:21:15.967: DEBUG/dalvikvm(1072): GC_FOR_MALLOC freed 2799
objects / 181800 bytes in 127ms
07-08 19:21:16.228: WARN/System.err(1072):
java.lang.NullPointerException
07-08 19:21:16.247: WARN/System.err(1072): at
org.a

Re: [android-developers] Re: Signup for C2DM ?

2010-07-09 Thread yone098
Hi, all.

Me too. no reply yet.
anybody received a response?

On Tue, May 25, 2010 at 6:38 PM, qvark
 wrote:
> Eagerly waiting here to start testing... has anybody received a
> response?
>
> On 22 mayo, 01:12, brian  wrote:
>> Filled out the form requesting access.
>> I was wondering if anyone has started to work withC2DM?
>> Has Google responded to your signup request?
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group 
>> athttp://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



-- 
Masaaki YONEBAYASHI
http://d.hatena.ne.jp/yone098
http://twitter.com/yone098

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] custom attributes in library projects

2010-07-09 Thread Vladimir Lebedev-Schmidthof
Hello,

Having custom attribute (in attrs.xml) in library project leads to
compilation fail of the project dependent of that library.

I.e.:
MyLib project (library)

AndroidManifest.xml:
http://schemas.android.com/apk/res/android";
  package="com.mycompany.test.lib"
  android:versionCode="1"
  android:versionName="1.0">
...


res/layout/main.xml:

http://schemas.android.com/apk/res/
android"
xmlns:my="http://schemas.android.com/apk/res/
com.mycompany.test.lib"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>



res/values/attrs.xml:






And there are nothing in TestApp except AndroidManifest.xml:
http://schemas.android.com/apk/res/android";
  package="com.mycompany.test.app"
  android:versionCode="1"
  android:versionName="1.0">
...


And aapt says that
res/layout/main.xml:13: error: No resource identifier found for
attribute 'customValue' in package 'com.mycompany.test.lib'

How to avoid this except for no having custom attributes in library?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Does AppWidget(On homescree) Support Touch Event?

2010-07-09 Thread 王强
Dear all,
 I'm developing an android widget on homescreen.
 I want this widget support tap operation,(press and move).and the widget's
content will scroll like a scrollview. but romoteviews does not support
scrollview.
 how can i do it?


Best regards.

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

[android-developers] Instrumentation and Activities not under test?

2010-07-09 Thread Babimag
Hi,

I have a question. When  an instrumentation is testing an activity,
does it kill other activities?

Thanks,
Chun

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


[android-developers] Re: Motorola Droid - QCIF Camera Preview and Capture

2010-07-09 Thread kao
i've faced the same issue with the droid's camera. and i think i can
add few details.

1. reboot droid and start droid's "native" camera application
preview is ok (every time after reboot)
2. exit the camera app and start modified (for QCIF) sample app
preview is bad.
3. exit the sample app and start "native" camera app again (no reboot)
preview is bad. and it stays bad until you reboot the droid.

so it seems that all we need is to force camera's reset as it happens
during droid startup. does anyone know how to do this?

On Jun 23, 6:09 am, Ignas  wrote:
> Hello,
>
> I am seeing a very annoying behavior on Motorola Droid when trying to
> do a simple camera preview at QCIF resolution. And I was wondering if
> someone experienced something similar. Is there a workaround? Am I
> doing something wrong?
>
> Let me explain the situation.
>
> Firstly, right after boot-up, using native camera application there is
> nothing out of ordinary, I see preview each time and it is all
> perfectly well for as long as needed as many times as I want.
>
> The "interesting" behavior starts when I use the slightly modified API
> Demos (full app available in Android SDK, modified file is attached).
> My goal is to preview (and later capture) video at QCIF (176 x 144)
> resolution.
>
> Using CameraPreview module in API Demos application I can start
> preview and capture normally only the first time – picture is clear,
> focused, normal colors, etc. Preview and all is nice. The second time
> I do preview I see a very over-exposed picture, I need to turn it away
> from any light source to see anything, otherwise it is all white. And
> even in the shadow, everything is grainy, as if picture is taken with
> too sensitive settings (high ISO) with too long exposure. The third
> time, it is the opposite – the preview and capture is way too dark. I
> need to point the camera directly into the light source to see even a
> faintest picture. Pointing out of the window does not help, it has to
> be straight into the lamp or sun. The effect is like taking pictures
> with much too low ISO setting – it is way too underexposed.
>
> The overexposed and underexposed sessions interchange, but it is not
> clear-cut which one appears first. So far the prevailing pattern is
> that overexposed one starts first. Now surprise comes when I try using
> native camera application. The pattern continues! It is as if hardware
> or or software (camera process) got "tainted" with the QCIF. This
> continues until I reboot the device.
>
> Another interesting point is that if I allow device to "rest",
> symptoms are much less pronounced after 10 minutes, then in 15 minutes
> they become barely visible. However, it all comes back after the first
> time I capture in QCIF. Nothing like this is visible when resolution
> is higher, say, CIF, VGA or similar. The problem is that, for my
> purposes I need it to be QCIF.
>
> This does look like a problem in HW, drivers, or somewhere around OS.
> Any ideas, workarounds, tricks?
>
> If it is not too much to ask, can somebody try the code modifications
> below to try on your device? I am curious which devices are working
> properly and which are not. Shall we have a vote?
>
> === Device Information ===
> Firmware version: 2.1-update-1
> Baseband version: C_01.3E.03P
> Kernel version: 2.6.29-omap1-g7fa8788 android-bu...@apa26 #1
> Build number: ESE81
>
> === To reproduce ===
> Open CameraPreview.java from /samples/android-7/ApiDemos/src/
> com/example/android/apis/graphics, and add the following method:
>     @Override
>     protected void onMeasure(int w, int h) {
>         super.onMeasure(w, h);
>         setMeasuredDimension(176, 144);
>     }
>
> Also in the surfaceChanged method, add the following line:
>         parameters.setPreviewFrameRate(15);

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

2010-07-09 Thread Nick
Hello,
I'm having the same problem described here:
http://groups.google.com/group/android-developers/browse_thread/thread/32545dd9501ad448/92189979e511a138?lnk=gst&q=emulator+wvga#92189979e511a138

That is that I cannot get a WVGA AVD to run with the correct
resolution.  This is completely independent of an application running
in the emulator.  I mean, open AVD manager, create a WVGA AVD for 2.2
and start it.  The resolution I get is 320x480 but in the big skin.
480x800 worked exactly twice. The first time was when I first created
a WVGA AVD.  I happened to quit the emulator and when I restarted it,
I got the big skin but the resolution is 320x480, not 480x800.  I
tried several things and couldn't get it back, then I rebooted my mac
and started the AVD and it was back to WVGA.  Now after coming home
for the day, I cannot get a WVGA AVD up and running.  I've gone so far
as to go from Eclipse 3.6 back to 3.5, delete .android and recreate
everything, etc.  I've rebooted about 25 times trying different
combination's.  I've only seen two other threads in here that show the
same problem but the only solution so far is, "reboot your computer."
I was hoping this would work when I got home this evening but it
didn't and I've been troubleshooting for a while now.  I'm thinking
there is some setting being set somewhere that isn't in the eclipse
directory or in .android that is keeping it from running at the
correct resolution.

Here's how I'm creating the AVD:
Run android from terminal
Click New to create a new AVD
Name: WVGA_2.2
Target: 2.2
Skin: Built-in WVGA800
Abstracted LCD Density: 240
Max VM application heap: 24
Create AVD
Select new AVD and click Start
No Scale, no wipe user data -> Launch

Big AVD skin starts, after bootup, I see a huge 320x480 screen, it's
like everything is zoomed.

Any thoughts on what the issue is?

Thank you,
Nick

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

2010-07-09 Thread A N K ! T
hey all...
 am new in android developement,am trying to call open();
method for database to open...from on create of service but its showing
runtime error..
.
Ankit

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 reverse engineer(create a new project) a project from a stock phone?

2010-07-09 Thread Jad0gar
How would i go about reverse engineer what i have on my phone into a
project in eclipse.
To clarify, i want to create project where i have all the source code
that was used to set up my stock phone.
Thanks.



Jad0gar

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 does forceStopPackage work in Android 2.2 (Froyo)?

2010-07-09 Thread Kid
"forceStopPackage" is equal to the "restartPackage" in Android 2.1

but in 2.2 you need
"android.Manifest.permission.FORCE_STOP_PACKAGES",  a system-
permission

so this method is not available to third party applications

On Jun 25, 10:04 pm, "Happy C."  wrote:
> Thanks Dianne's reply.
>
> What is the main difference between "killBackgroundProcesses" and
> "forceStopPackage"?
>
> or "forceStopPackage" is equal to the "restartPackage" in Android 2.1?
>
> Thanks again.
>
> On 6月25日, 上午8時26分, Dianne Hackborn  wrote:
>
>
>
> > Yes it is an internal API.
>
> > On Thu, Jun 24, 2010 at 4:13 PM, Happy C.  wrote:
> > > How does forceStopPackage work in Android 2.2 (Froyo)?
>
> > > Thanks Google released 2.2 source code.
>
> > > In this code-InstalledAppDetails.java
>
> > > It shows how android 2.2 do the "force close" function.
>
> > >private void forceStopPackage(String pkgName) {
> > >ActivityManager am = (ActivityManager)getSystemService(
> > >Context.ACTIVITY_SERVICE);
> > >am.forceStopPackage(pkgName);
> > >checkForceStop();
> > >}
>
> > > However "forceStopPackage" method is not in ActivityManager class.
> > >http://developer.android.com/reference/android/app/ActivityManager.html
>
> > > Is it a interneal API? Many Thanks.
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com > >  -cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see and
> > answer them.- 隱藏被引用文字 -
>
> > - 顯示被引用文字 -

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


[android-developers] Detect phone feature usage

2010-07-09 Thread doug
Hello,

I am looking for directions on how to detect phone feature usage in an
Android application.  For example, I want my program to be notified
when an app is using camera or microphone.  I cannot rely on the app
to notify my program via an intent because I want to detect phone
feature usage on any given app.  Android OS certainly knows about
everything an app does but I wonder if there is any hooks to get that
knowledge using the SDK.  If it is not possible to do this using SDK,
I would appreciate information on where in the OS I can add my hook.

Thanks,
doug

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


[android-developers] Re: 3D Game Development

2010-07-09 Thread Coco's Jungle
You can use OpenGL. Create a GLSurfaceView, and you can draw on it in
3D. See the Cube demo in APIApps sample program.

On Jul 6, 8:46 am, Renan Lima  wrote:
> Hey all!
>
> I´m new on Android 3D game development.
> I would like to know if there any engine/ API/ platform
> about 3D development that I could use. Or any tip which
> you could give me, like where I could start looking for.
>
> Thank you all!

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


[android-developers] How many Database we can open/access at same time from our application?

2010-07-09 Thread Rahul
I am working on one task where I have to work with multiple sqlite
database files which are downloaded from different location and then
they are merged together.  can any one tell me that how many sqlite
database I can access at a same time from my android application as
right now my current requirement is to access 8 sqlite database.

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

2010-07-09 Thread Sam
Hi All,

I am a new member in this group. Currently, i am working on the
Android framework layer.

Now focusing on Bluetooth, Wifi and GPS level. If you guys are
interested in this topic, we should discuss further.

Thanks


Regards



Sam

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Zephyr HxM BT and HTC Legend Bluetooth issues

2010-07-09 Thread Dennis Hooijmaijers
Hi,

I have bought myself a Zephyr HxM BT device and I am trying to listen to its
messages in a simple application.
I have paired the Device to my HTC Legend and I can establish a connection
but everytime I call the read() or available() method on my InputStream I
get a NullPointerException.

Has anyone succeed in getting information off this device?  I have tried to
establish the connection by reflection on the "createRfcommSocket" method
but this throws a MethodNotFound Exception on my device.
Any help would be appreciated.
Thanks,
Dennis

below is my Listener class:
HXMListener(BluetoothDevice device) {
this.device = device;
this.open = true;
if (device != null){
createSocket(device);
}
}

/**
 * @param device
 */
private void createSocket(BluetoothDevice device) {
try {

socket = device.createRfcommSocketToServiceRecord(HXM_UUID);
in = socket.getInputStream();
/**
 * BluetoothDevice hxm =
 * BluetoothAdapter.getDefaultAdapter().getRemoteDevice
 * ("00:07:80:97:62:a3"); Method m =
 * hxm.getClass().getMethod("createRfcommSocket", new
 * Class[]{int.class}); socket =
(BluetoothSocket)m.invoke(hxm,
 * Integer.valueOf(1)); socket.connect();
 */
} catch (IOException e) {
Log.d(TAG,
"Unable to open Socket streams for " + socket);
writeToHXMFile("Unable to open Socket streams for " +
socket);
// tidy up the socket
try {
if (socket != null) {
socket.close();
}
} catch (IOException e1) {
Log.d(TAG,
"Unable to close Socket for " + socket);
}
}
}

private void connectionFailed() {
Log.d(TAG, "Connection Failed");
writeToHXMFile("Connection Failed");
}

/*
 * (non-Javadoc)
 *
 * @see java.lang.Runnable#run()
 */
@Override
public void run() {
boolean connected = false;
while (!connected && open) {
try {
socket.connect();
connected = true;
} catch (IOException e) {
connectionFailed();
Log.d(TAG, "Failed", e);
// Close the socket
try {
socket.close();
} catch (IOException e2) {
Log.d(
TAG,
"unable to close() "
+ "socket during connection failure"
,e);
}

}
finally{
createSocket(device);

}
}
byte[] b = new byte[1];
while(open){
writeToHXMFile("Listening...");
try {
////FIXME in.available keeps throwing a null pointer
//while(open && in.available()<0){
//Thread.currentThread();
//Thread.sleep(10);
Log.d(TAG, "Waiting...");
//}
//now we have the message lets read it to this
String s = "";
//while(open && in.available()>0){
s+= in.read(b);
//}
//now we have read it all
Log.d(TAG+"_INPUT", s);
writeToHXMFile("COMPLETE "+ s);
} catch (IOException e) {
Log.d(TAG, "IO Exception ", e);
writeToHXMFile("IO Excep" + e);
open = false;

}


}
try {
in.close();
socket.close();
} catch (IOException e) {
in = null;
socket = null;
}
}



private void writeToHXMFile(final String string) {
runOnUiThread(new Runnable() {

@Override
public void run() {
bluetoothMessageBox.setText(string);
Log.d("SOCKET MESSAGE",string);
}
});

}

public void close() {
open = false;
}

}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...

[android-developers] Re: Unable to Install .apk

2010-07-09 Thread Dr. Mike
The app has an AndroidManifest file which specifies (usually) the
lowest level of device your app will run on. If your app is building
under 2.2 (sdk 8) and your phone is 2.0 (sdk 7) it will not install.
See http://developer.android.com/guide/appendix/api-levels.html

On Jul 4, 5:39 am, diptendu  wrote:
> Hi All I am very new to this Android..
>
> problem is my game is running in emulator but not in my Sony ericsion
> X10 Xperia , while installing i got message
>
> "XYZ_Application could not be installed on this phone"
>
> Thanks Diptendu

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

2010-07-09 Thread Vladimir Lebedev-Schmidthof
Hello Mark,

I faced the same problem with attrs.xml in Library Project. Have you
finally found the solution?


On 23 май, 23:22, Mark Carter  wrote:
> I'm sure that thelibrary.apk file error was because I had added 
> thelibraryprojectto my appprojectbuild path.
>
> The other problem, where appprojectclasses could not seelibraryprojectclasses 
> was due to something else.
>
> For some strange reason, even when the androidlibrarycompiles by
> itself (I mean, does not show any errors in eclipse), it can give
> compiler errors when used as alibraryin anotherproject. In that
> situation, it does not show up like "LibProject" in your png file.
>
> In my situation, this was caused by a problem with a custom widgets I
> had defined in mylibrary. The attrs.xml file was being ignored for
> some reason. Everything worked fine (i.e. the LibProject showed up as
> in your png file) when I removed those custom widget (I'm not talking
> about homescreen widgets)attributesfrom the relevant layout xml in
> thelibraryproject.
>
> Sorry all this is a bit vague. I'll try and come up with a clearer
> scenario but I'm right in the middle of something now.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Importing existing projects to Android

2010-07-09 Thread Coco's Jungle
Go to the problem tab and if there are messages that don't go away,
right click them and delete them. Ignore the warning about you can't
get it back. Then do a Project --> Clean, and try running the project
again.

I was getting these every time I tried to Run while I was editing an
xml file. You have to select the project under the src tab in the
Project Manager, or a java source file, then click Run.

I tried to reproduce the error I was getting, but couldn't.

On Jul 6, 10:07 pm, Demetris  wrote:
> However, the runtime (emulator startup) the IDE displays a message
> saying that the project contains errors, please fix them before running
> 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] Sending UDP's

2010-07-09 Thread Mark
Hey guys, working on a project and have run into a problem that we've
been working on for a couple of days.  We are trying to send a UDP
from the Android emulator out to a Robot dog that has a wifi card.
When we run the program as a simple java applet, it works perfectly.
The way it should work is the robot dog should receive the udp from
the emulator, and it will trigger the dog to start sending video feed
back to the emulator at about 30 fps.  each frame is a jpeg image, so
each image is sent in one UDP.  When we run the program just as a java
applet, the program runs fine and the dog starts sending back UDP
packets.  However, when we run it in the Emulator, the dog never
responds, we assume because it never gets the initial UDP packet.  We
believe this is a problem with the emulator and may have something to
do with the port, but we have been messing with port forwarding and
still have had no luck.  We have also been using Wireshark to analyze
the output of the emulator.  thanks for any tips you have.  let me
know if you need more information

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SDK 1.6 installation problem with "Install_parse_failed_no_ceritifcates"

2010-07-09 Thread androidshare
Hi, All,

Our application package can install on devices and emulator with SDK
2.0.1, but fail to install on devices and emulator with SDK 1.6. The
error messages is " Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]",


Does anybody known what cases this problem?

thanks,

Bruce.

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


[android-developers] Trace flow of method call on android for implementing for JVMTI

2010-07-09 Thread redhairspike
Dear Sirs,

We are implementing some of the event callbacks of JVMTI (
http://java.sun.com/j2se/1.5.0/docs/guide/jvmti/ ) in the Dalvik VM.
However, we are having trouble in event Method_Entry and Method_Exit.

In our current implementation, we can only intercept the Method_Entry
event of the some system initialization methods, including
java.lang.reflection.Constructor.init(),java.lang.reflect.Method.init(),android.graphics.Button.init()...
java.lang.ClassLoader.loadClass()
android.os.Binder.execTransact()
android.graphics.Canvas.finalize(),android.os.Parcel.finalize(),
...
All the methods written in Java applications are missing.

Currently, we have inserted "fprintf()" in the following places:
stack.c: dvmCallMethod()
stack.c: dvmCallMethodV()
stack.c: dvmCallMethodA()
stack.c: dvmInvokeMethod()
Interp.c: dvmInterpret()
Mterp.c: dvmMterpStd()
When these places of DVM are executed, we will print a message in our
log file. However, only the system initialization functions has
triggered our println() code. In other words, it looks like that the
execution of application methods does not go through the above places
of DVM. We don't know which part of DVM is responsible for method
execution of applications. Can anyone give us a clue?

Thank you very much!

Regards,

Spike, National Tsing Hua University, Taiwan

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

2010-07-09 Thread Greg Kuperman
I am trying to enable ad hoc networking for two android phones (ADP2/
Sapphire), and I seem to have made some progress using some of the
information posted on this message board (in particular issue 82), but
I still seem to not be having much luck.

It appears that people have done quite a bit with ad hoc networking
(android-wifi-tether), but you need Netfilter enabled. I have built
the source code successfully, but I do not know how to enable
Netfilter. Is this the best way to get ad hoc networking? How do I
enable it?

-Greg

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


[android-developers] Re: How does the Marketplace app widget use a ViewFlipper? (or a fading view)

2010-07-09 Thread Matt
> Are you talking about an actual AppWidget that sits on the users home
> screen? I was not aware there was  a widget for the market.

Yes, it is a part of the Froyo update.  It's an actual
AppWidgetProvider.

> I think it is new for 2.2. After seeing this thread, I found it on my
> N1. It does what looks like an AlphaAnimation to transition between
> apps it is promoting. Unless it is actually part of the N1's home
> screen, I have no idea how they're pulling off that effect.

I am seeing it on a myTouch with Froyo.  So it seems it is a part of
the 2.2 release.

I will look into the AlphaAnimation.  I'm just not sure how it is done
with RemoteViews.  What I suspect is that it is something new to the
2.2 SDK, which is unfortunate because we can't lock our widget to 2.2
and above.

I would still like to hear any other ideas people may have, though! :)

-Matt

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


[android-developers] Re: Regarding language support

2010-07-09 Thread Károly Holczhauser
Hi!
 I had found the solution:
http://developer.android.com/resources/tutorials/localization/index.html

On júl. 9, 19:36, Károly Holczhauser  wrote:
> Hi all!
>
>  I also interested in the chat, how can I write an application witch
> is supporting the multi language ? If we are in sweden I have to
> display in that language else I need to use the English language. I
> think, I should use the string.xml, but how ? How can I define there
> two or more language and how can I switch between them ?
>
>  thank you: Karoly

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

2010-07-09 Thread Károly Holczhauser
Hi all!

 I also interested in the chat, how can I write an application witch
is supporting the multi language ? If we are in sweden I have to
display in that language else I need to use the English language. I
think, I should use the string.xml, but how ? How can I define there
two or more language and how can I switch between them ?

 thank you: Karoly

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Putting a service into a .jar?

2010-07-09 Thread Mark Murphy
On Fri, Jul 9, 2010 at 12:52 PM, Boozel  wrote:
> I have created a service that works great, it is launched from an
> activity at the moment.
> I'm looking to package it into a .jar file so that other people can
> add the jar to then their projects and then run the service. Can
> anyone tell me how i can launch this service from the app that it is
> included in?

The same way they would if the code were in their own app: add an
entry for the service in their manifest and call startService() or
bindService().

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

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Putting a service into a .jar?

2010-07-09 Thread Boozel
I have created a service that works great, it is launched from an
activity at the moment.
I'm looking to package it into a .jar file so that other people can
add the jar to then their projects and then run the service. Can
anyone tell me how i can launch this service from the app that it is
included in?
Any help would be really appreciated.

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


Re: [android-developers] Re: Making Video files Android ready for playback over HTTP

2010-07-09 Thread Alex Xin
Thank you!! This post is very useful for me!!

On Fri, Jul 9, 2010 at 9:43 PM, Samuh  wrote:

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: getting package name in included .jar fil

2010-07-09 Thread Boozel
thanks

On Jul 9, 6:19 pm, Dianne Hackborn  wrote:
> That returns the name of the .apk the code is in.
>
>
>
>
>
> On Fri, Jul 9, 2010 at 4:37 AM, Boozel  wrote:
> > If i create a service and in it use the method
> > context.getPackageName() or context.getPackageCodePath(). If i then
> > compile that service into a .jar file and someone else includes it in
> > their app will those methods return the original package of the
> > service or that package that they have been included in?
>
> > Any help would be great,
> > 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 > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


[android-developers] Camera preview - strange on Samsung Galaxy S (2.1update1)

2010-07-09 Thread Mathias Lin
In my activity I show the camera preview on a surfaceView. It works 
perfectly fine on Nexus One (2.1update1, 2.2) and HTC Desire 
(2.1update1), but on Samsung Galaxy S (2.1update1) I see strange lines, 
weird proportions and everything three times. see the screenshot 
http://img249.imageshack.us/img249/7466/device1s.png


The issue seems to be similar to this one: 
http://stackoverflow.com/questions/2053440/camera-preview-on-androd-strange-lines-on-1-5-version-of-sdk 
but none of the comments there helped. I tried to swap height,width for 
the camera parameters, but not much of a difference.


(Side note: my activity is always in landscape mode, fixed. I have that 
fix in my manifest as screenOrientation parameters, in case that matters 
somehow).


Camera preview parameters as below:
== snip ==

private static final int IMAGE_WIDTH = 512;
private static final int IMAGE_HEIGHT = 384;
private static final String ORIENTATION = "orientation";
private static final String ROTATION = "rotation";
private static final String PORTRAIT = "portrait";
private static final String LANDSCAPE = "landscape";


camera = Camera.open();

Parameters p = camera.getParameters();
p.setPictureSize(IMAGE_WIDTH, IMAGE_HEIGHT);
p.set(ORIENTATION, PORTRAIT);
p.set(ROTATION, 90);

Camera.Size s = p.getSupportedPreviewSizes().get(0);
p.setPreviewSize( s.width,s.height );

p.setPictureFormat(PixelFormat.JPEG);
p.set("flash-mode", "auto");
camera.setParameters(p);

camera.setPreviewDisplay(surfaceHolder);
== snap ==

Full code of my SurfaceHolderCallback (the relevant inner class in my 
activity)

http://pastebin.com/YmcwEVn8

Anybody experiencing such issue on the Samsung Galaxy S as well?


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Problems while working with Android 2.2 Froyo - Need help - Thanks very much!

2010-07-09 Thread Alex Xin
Does anybody have the similar issues? Are there any guidelines about how to
solve compatibility problems while trying to let app works on different
Android platforms?

My app use Java NIO as core functions, I cannot imagine if I can't use that
class anymore..

Thanks a lot...

Alex

On Mon, Jul 5, 2010 at 4:11 PM, Alex Xin  wrote:

> *Hi,*
> *
> *
> *I have a problem while trying to run my app in new Android 2.2 Froyo
> emulator and real device Nexus One.*
> *The problem is that when I try to call
> java.nio.channels.Selector.wakeup() method, it will throw a runtime
> exception NullPointerException. But this code works very well on all
> previous releases of Android platform.*
> *
> *
> *Does anybody know why in Froyo this method doesn't work as expected?*
> *
> *
> *thanks very much*
> *
> *
> *Alex*
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] getting package name in included .jar fil

2010-07-09 Thread Dianne Hackborn
That returns the name of the .apk the code is in.

On Fri, Jul 9, 2010 at 4:37 AM, Boozel  wrote:

> If i create a service and in it use the method
> context.getPackageName() or context.getPackageCodePath(). If i then
> compile that service into a .jar file and someone else includes it in
> their app will those methods return the original package of the
> service or that package that they have been included in?
>
> Any help would be great,
> 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
>



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

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

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

[android-developers] Re: How to attach custom map on MapView? Can MapView be used when phone is offline?

2010-07-09 Thread Maps.Huge.Info (Maps API Guru)
One nifty way to do this, with a lot less effort than writing a custom
map view, is to use Google's v3 map API within a webview. I've done
this in the app "What Zip Code?" (free on the market) with a custom
overlay and it works great. For those that already understand how to
write html, JavaScript and CSS, this is a valid and fairly easy to
accomplish method.

You'll still have to use standard Android code to get your position or
access any of the sensors, but that's fairly trivial compared to
writing a custom mapview, at least in my opinion.

-John Coryat

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 attach custom map on MapView? Can MapView be used when phone is offline?

2010-07-09 Thread bobetko
I was hoping to use MapView in my application. It seems I will have to
come up with something else. Thanks for quick reply.

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


Re: [android-developers] How to attach custom map on MapView? Can MapView be used when phone is offline?

2010-07-09 Thread Mark Murphy
On Fri, Jul 9, 2010 at 11:51 AM, bobetko  wrote:
> I am trying to place my custom map (overlay) over Google map.
> For example, my MapView will be positioned to look at some building. I
> want to load custom image(s) that will show building's floor plan.
> Want to be able to pan and zoom, and place markers (for example, Room
> 1, Room 2, etc...), in other words, I would like to be able to use
> Google Map API methods. The best would be if Google map images are not
> loaded at all, since that will (I believe) slow down user's
> experience. Also, the user may be inside the building, and connection
> may be slow or non-existing.
>
> Is this possible?

It is certainly possible for a qualified programmer (or team) to
create an application that shows a building's floor plan, with pan and
zoom, place markers, etc.

It just won't use MapView, since that is for showing Google Maps.
Furthermore, MapView is proprietary, and so you cannot repurpose its
code for your own uses.

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

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 attach custom map on MapView? Can MapView be used when phone is offline?

2010-07-09 Thread bobetko
I am trying to place my custom map (overlay) over Google map.
For example, my MapView will be positioned to look at some building. I
want to load custom image(s) that will show building's floor plan.
Want to be able to pan and zoom, and place markers (for example, Room
1, Room 2, etc...), in other words, I would like to be able to use
Google Map API methods. The best would be if Google map images are not
loaded at all, since that will (I believe) slow down user's
experience. Also, the user may be inside the building, and connection
may be slow or non-existing.

Is this possible?

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: Transparent Image button, can be more transparent ?

2010-07-09 Thread Károly Holczhauser
Thank you so much!!!

On júl. 9, 12:49, YuviDroid  wrote:
> The first two chars after the '#' symbol are the opacity. So, '00' would be
> totally transparent, and 'FF' would be 100% opaque.
>
> 2010/7/9 Károly Holczhauser 
>
>
>
> > Hi!
>
> >  I have already found how can I do an ImageButton with Transparent
> > background, but I would like to ask, how can I set the effective of it ? How
> > can I do it more transparent ? My way as I do it:  > android:startColor="#aaff" android:endColor="#aaff" ...>
> >  What should I write in to the color to be more transparent ?
> >  Thank you: Karoly
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> YuviDroidhttp://android.yuvalsharon.net

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

2010-07-09 Thread Matty
This simple layout seems to work for me:


http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:gravity="center">






On Jul 9, 5:35 am, Jeruliu  wrote:
> I will have a list view on the top and a button on the bottom in the
> view.
>
> Regardless the height of the list view i would like to fix the button
> position on the bottom all the time.
>
> If the list view is too long then make it scrollable.
>
> How to do this? thanks.

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


[android-developers] Calling Activity

2010-07-09 Thread ranjan ar
Hello ,
I have a broadcast class that blocks the incoming call. I want to call that
broadcast receiver from the activity . Can any one help me fix this. I
appreciate your help.
1. Class A extends activity will call Class B that extends
BroadcastReceiver, now I want to block calls , only based on certain
requirements, which are checked in Class A, if true then call the Class B
(or block the call in short)

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

2010-07-09 Thread Maps.Huge.Info (Maps API Guru)
Question: How are you getting your location fix? Are you using
"ACCURACY_FINE" and assuming it will use the GPS? Unless you
specifically test for the provider being GPS, it might default to
network, which would give you a position with limited accuracy. I've
seen this bouncing around effect when the wireless location (network)
provider is trying to figure out where the device is, as it zeros in
on the location, it can hop all over the map.

Bottom line: Don't assume that ACCURACY_FINE will be GPS, unless you
have GPS satellites in view and the user has enabled GPS, you'll be
using the network location service instead.

-John Coryat

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


Re: [android-developers] Re: screen occasionally goes blank on Milestones

2010-07-09 Thread Kostya Vasilyev

Second that.

What's weird, is that defective light sensors get confused in _bright_ 
light.


http://kmansoft.wordpress.com/2010/05/16/motorola-milestone-light-sensor-problems/

-- Kostya

09.07.2010 18:32, Alain пишет:

This issue is not caused by your app but instead is a Milestone
problem and has been reported by many people.

On Jul 7, 3:58 pm, Brian  wrote:
   

I have an application I am currently working on for a client which is
suffering from a particularly hard to debug problem. Every so often,
the device screen will go blank, not just while running my
application, but entirely. If I press the home button, for instance,
it's still blank. This happens fairly rarely ( I myself have only seen
it once or twice in a couple of months, and unfortunately couldn't
gather log information immediately when it happened. What log info I
was able to gather seemed to show that the phone continued to run
properly - I was still seeing events in the log file - the screen was
just blank ). So far, this has only been observed while running on
Motorola Milestones ( this may or may not be coincidence - it's hard
to tell given the infrequency of occurance ). Has anyone else observed
anything similar? Any suggestions as to possible causes/ways of
debugging?

Thanks,
Brian
 
   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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


<    1   2   3   >