[android-developers] Issue with 5G NR NSA

2022-05-25 Thread Diego Sánchez
 

Hi everyone,

I'm trying to retrieve the ARFCN (Frequency Channel Number) that a device 
in a 5G network is currently using. The thing is that the 5G all the 
operators in my city offer is of the NSA type, thus meaning that the phone 
will always be registered to a 4G LTE network as a primary cell and will 
use a 5G NR cell as a secondary one.

To get the mentioned ARFCN one will normally use the 
PhoneStateListener.onCellInfoChanged(List 
cellInfo) 

 
method and check from the list which CellInfo 
 is 
that one the device is registered on, get the CellIdentity 
 
attached to it and then get the ARFCN. *The problem is that, aside from 
being only registerd to a CellInfoLTE (4G) there's no trace of any 
CellInfoNR (5G), registered or not*. Weird thing is I can get the 5G signal 
intensity through PhoneStateListener.onSignalStrengthsChanged(SignalStrength 
signalStrength) 

.

Any lead, piece of advice or hope is welcomed :) Thanks for reading.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/2fc28e52-7831-4fb6-9e6b-69fafa07e76an%40googlegroups.com.


[android-developers] Issue with Backward Compatibility of Application .

2022-05-25 Thread Yogender Singh Tanwar
Hey Everyone , I have doubts related to the backward compatibility of the 
our application. We have migrated our application from API 27 to 28. And 
Apps that target Android 9 (API level 28) or higher and use foreground 
services must request the FOREGROUND_SERVICE permission [Android doc 
].
 
Adding this permission breaks my application in API 27 (Android 8.1) 
devices but working fine on devices having API 28.I have attached the error 
we were getting by running application in API 27 devices.
Could anyone helps us out on how to resolve this issue and make our 
application backward compatible to API 27.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/c35360ed-d431-468e-939f-ff1cf43d03c6n%40googlegroups.com.


[android-developers] Issue Summary: Framework reboot due to native crash in zygote crash with SIGSEGV error.

2019-07-31 Thread Test Frameworks


*Issue Summary:* Framework reboot due to native crash in zygote crash with 
SIGSEGV error.

 

*Reproduction:*  Long duration test with multiple apps and reproduction 
rate – 1/100.

 

*Description:*

 

Below is the tombstone for zygote:

 

Line 56603:07-08 10:19:39.605 26565 26565 F DEBUG   : Build 
fingerprint: 
--
Line 56604: 07-08 10:19:39.605 26565 26565 F DEBUG   : Revision: '0'
Line 56605: 07-08 10:19:39.605 26565 26565 F DEBUG   : ABI: 'arm'
Line 56608: 07-08 10:19:39.606 26565 26565 F DEBUG   : pid: 652, 
tid: 26546, name: HeapTaskDaemon  >>> zygote <<<
Line 56609: 07-08 10:19:39.606 26565 26565 F DEBUG   : signal 11 
(SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x130
Line 56610: 07-08 10:19:39.606 26565 26565 F DEBUG   : Cause: null 
pointer dereference
Line 56611: 07-08 10:19:39.606 26565 26565 F DEBUG   : r0 
 dec0b000  r1  5616eb84  r2  0007  r3  
Line 56612: 07-08 10:19:39.606 26565 26565 F DEBUG   : r4 
 0130  r5  cd7929c8  r6    r7  e4fdc380
Line 56613: 07-08 10:19:39.606 26565 26565 F DEBUG   : r8 
 cd7924bc  r9    r10 0002  r11 8a0c
Line 56614: 07-08 10:19:39.607 26565 26565 F DEBUG   : ip 
 e49b8974  sp  cd7924b0  lr  e45e1507  pc  e45ec316
Line 56712: 07-08 10:19:39.730 26565 26565 F DEBUG   : 
Line 56713: 07-08 10:19:39.730 26565 26565 F DEBUG   : backtrace:
Line 56715: 07-08 10:19:39.730 26565 26565 F DEBUG   : #00 pc 
000aa316  /system/lib/libart.so (art::TimingLogger::Reset()+106)
Line 56716: 07-08 10:19:39.730 26565 26565 F DEBUG   : #01 pc 
0016663b  /system/lib/libart.so 
(art::gc::collector::GarbageCollector::Run(art::gc::GcCause, bool)+178)
Line 56717: 07-08 10:19:39.730 26565 26565 F DEBUG   : #02 pc 
0018035d  /system/lib/libart.so 
(art::gc::Heap::CollectGarbageInternal(art::gc::collector::GcType, 
art::gc::GcCause, bool)+2420)
Line 56718: 07-08 10:19:39.730 26565 26565 F DEBUG   : #03 pc 
0018dbeb  /system/lib/libart.so (art::gc::Heap::ConcurrentGC(art::Thread*, 
art::gc::GcCause, bool)+182)
Line 56719: 07-08 10:19:39.730 26565 26565 F DEBUG   : #04 pc 
00191b11  /system/lib/libart.so 
(art::gc::Heap::ConcurrentGCTask::Run(art::Thread*)+20)
Line 56720: 07-08 10:19:39.730 26565 26565 F DEBUG   : #05 pc 
001aa957  /system/lib/libart.so 
(art::gc::TaskProcessor::RunAllTasks(art::Thread*)+34)
Line 56721: 07-08 10:19:39.731 26565 26565 F DEBUG   : #06 pc 
0007463b  /system/framework/arm/boot-core-libart.oat (offset 0x73000) 
(dalvik.system.VMRuntime.clampGrowthLimit [DEDUPED]+74)
Line 56722: 07-08 10:19:39.731 26565 26565 F DEBUG   : #07 pc 
0014a85d  /system/framework/arm/boot-core-libart.oat (offset 0x73000) 
(java.lang.Daemons$HeapTaskDaemon.runInternal+172)
Line 56723: 07-08 10:19:39.731 26565 26565 F DEBUG   : #08 pc 
000ec963  /system/framework/arm/boot-core-libart.oat (offset 0x73000) 
(java.lang.Daemons$Daemon.run+66)
Line 56724: 07-08 10:19:39.731 26565 26565 F DEBUG   : #09 pc 
002151b1  /system/framework/arm/boot-core-oj.oat (offset 0x106000) 
(java.lang.Thread.run+64)
Line 56725: 07-08 10:19:39.731 26565 26565 F DEBUG   : #10 pc 
00411575  /system/lib/libart.so (art_quick_invoke_stub_internal+68)
Line 56726: 07-08 10:19:39.731 26565 26565 F DEBUG   : #11 pc 
003eb045  /system/lib/libart.so (art_quick_invoke_stub+224)
Line 56727: 07-08 10:19:39.731 26565 26565 F DEBUG   : #12 pc 
000a183d  /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, 
unsigned int*, unsigned int, art::JValue*, char const*)+136)
Line 56728: 07-08 10:19:39.731 26565 26565 F DEBUG   : #13 pc 
003498d5  /system/lib/libart.so (art::(anonymous 
namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable 
const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, 
art::JValue*, char const*)+52)
Line 56729: 07-08 10:19:39.731 26565 26565 F DEBUG   : #14 pc 
0034a62d  /system/lib/libart.so 
(art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable
 
const&, _jobject*, _jmethodID*, jvalue*)+320)
Line 56730: 07-08 10:19:39.731 26565 26565 F DEBUG   : #15 pc 
0036d0a3  /system/lib/libart.so (art::Thread::CreateCallback(void*)+866)
Line 56731: 07-08 10:19:39.731 26565 26565 F DEBUG   : #16 pc 
00072dcd  /system/lib/libc.so (__pthread_start(void*)+22)
Line 56732: 07-08 10:19:39.731 26565 26565 F DEBUG   : #17 pc 
0001e3b1  /system/lib/libc.so (__start_thread+24)

 

 

One more observation is that we saw few app crashes prior to zygote crash 
in the path of zygote forking these apps.

 

pid: 17395, tid: 17395, name: o.android.imoi  >>> zygote <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4
Cause: null pointer dereference

[android-developers] Issue with In-app billing service

2017-02-13 Thread AppsTeam
We have a app published in google play store that has some  digital 
purchases inside it for which we uses google's in-app billing service. 
Users were able to make successful purchases from the app, but few weeks 
back one user reported an issue that he was stuck at payment with a message 
"Your order could not be processed. Please try again". 

When we had a detailed test at our end. We too came across the same 
scenario for one user account and unable to move forward.

What could be the reason for this weird behaviour for only some users. 
Please help us in resolving the issue.

Expecting a quick response.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/fabd6644-b033-4b85-b906-ff4c385c7f6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Issue in GoogleApiClient implementation

2017-01-23 Thread Marina Cuello
I don't know this API, but I guess you just could use the easy route and
put a boolean flag. Manage it on your onSaveInstanceState() and
onRestoreInstanceState() to keep its state on orientation change.

Marina

On Sat, Jan 21, 2017 at 11:50 AM, Aman Pathak 
wrote:

> Hi
>
> I wanted to get the location once as soon as the app gets started.So i
> implemented GoogleApiClient in Main Activity.And i added toast to display
> the Location in onConnected() of GoogleApiClient.onConnectionCallbacks.And
> hurrah i got the Toast filled with info as soon the app gets started.But I
> observed an issue that when i change the activity (For e.g Main Activity to
> Setting Actvity or any Activity) and return back to main activity the toast
> gets displayed again. And gets displayed again and again as i change the
> activity and return back.
> And same happens if i change the orientation of device. Is there any way
> to do this? I only want that the location should be fetched only once and
> displayed only once as the app gets started not with changing the activity
> or orientation.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/android-developers/1a272635-cc6f-4f45-be0b-
> 4428f54646f9%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CACaNmX37XgpSbkd9z%2BYfmcy%3Du6xv4HvjYL5mDN%2BipLe48vEUrw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Issue on GoogleApiClient for location implementation

2017-01-21 Thread Aman Pathak
Hi

I wanted to get the location once as soon as the app gets started.So i 
implemented GoogleApiClient in Main Activity.And i added toast to display 
the Location in onConnected() of GoogleApiClient.onConnectionCallbacks.And 
hurrah i got the Toast filled with info as soon the app gets started.But I 
observed an issue that when i change the activity (For e.g Main Activity to 
Setting Actvity or any Activity) and return back to main activity the toast 
gets displayed again. And gets displayed again and again as i change the 
activity and return back.
And same happens if i change the orientation of device. Is there any way to 
do this? I only want that the location should be fetched only once and 
displayed only once as the app gets started not with changing the activity 
or orientation.It is also affecting app performance.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/5ff5da09-6a4a-47ec-a861-97f5572ec9ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Issue in GoogleApiClient implementation

2017-01-21 Thread Aman Pathak
Hi

I wanted to get the location once as soon as the app gets started.So i 
implemented GoogleApiClient in Main Activity.And i added toast to display 
the Location in onConnected() of GoogleApiClient.onConnectionCallbacks.And 
hurrah i got the Toast filled with info as soon the app gets started.But I 
observed an issue that when i change the activity (For e.g Main Activity to 
Setting Actvity or any Activity) and return back to main activity the toast 
gets displayed again. And gets displayed again and again as i change the 
activity and return back.
And same happens if i change the orientation of device. Is there any way to 
do this? I only want that the location should be fetched only once and 
displayed only once as the app gets started not with changing the activity 
or orientation.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/1a272635-cc6f-4f45-be0b-4428f54646f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Issue With License Test Response - Dev Console

2017-01-14 Thread Pete Nixon
Hi guys,

I'm having an issue testing licensing of my app which is currently in beta 
in the dev console. 

At the moment I am getting no responses from the app (no matter which test 
response I use). I have made sure my gmail account is in both the beta 
testers list and the license testing Testing Access box. I added the 
licensing using the example in the SDK, only changing what was necessary 
and the app builds fine. The only error I get is from the following bit of 
code (highlighted):

public void applicationError(int errorCode) {
if (isFinishing()) {
// Don't update UI if Activity is finishing.
return;
}
// This is a polite way of saying the developer made a mistake
// while setting up or calling the license checker library.
// Please examine the error code and fix the error.
String result = String.format(getString(R.string.application_error), 
errorCode);
displayResult(result);


More detail:
 


I'm new to programming so i don't know the relevance of this (if any).

Absolutely any and all advice would be much appreciated.

Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/4edf6746-4474-4e0f-b815-104832b8a693%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Issue with Google play search

2016-07-28 Thread b . seoph
Hi Everyone,

We are recently facing an issue with Google play search. If we search for 
our app in Google play, we are unable to find it. 

Although there is no competition, still the app is not appearing in Google 
play search.  

The app can only be seen from direct URL. 

Can you guys give insight on this issue? Is there anything else that can be 
done from our end? 

Just a note, we have not restricted the app by location or by any means. 

Thanks for your help. 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b43aedd0-db6e-4d48-95ce-698d73c4b08f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Issue with Google play search

2016-07-28 Thread revathy . philips
Hi Everyone,

We are recently facing an issue with Google play search. If we search for 
our app in Google play, we are unable to find it. 

Although there is no competition, still the app is not appearing in Google 
play search.  

The app can only be seen from direct URL. 

Can you guys give insight on this issue? Is there anything else that can be 
done from our end? 

Just a note, we have not restricted the app by location or by any means. 

Thanks for your help. 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/f3557636-9b62-415d-83ec-1845c7c4cb21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Issue with app in release mode while everything's ok in debug mode

2016-06-29 Thread Thomas Lechat
Hello,

I have a big problem with an app and I don't understand what's going on...

My app was working fine in debug mode so I decided to publish it. 
Once it was on the store O downloaded it and tested it again and noticed 
there was a huge problem : The app was crashing when trying to access the 
game center. I had an error of this type : "An error occurred in play 
games" (it's not the exact message, only a translation of the french 
message that I got).

I had a look at the console on android studio and saw this error message:

06-16 10:30:34.501 4208-4763/? E/GamesServer: Attempting to access a resource 
for another application. Check your resource IDs.
06-16 10:30:34.551 4208-4763/? E/MultiDataOperation: Attempt to access 
application  from application .


Someone adviced me to unpublish everything and to start again. That's what 
I did but there's still a problem (see the screenshot of the error message 
that I now have). 

I really don't understand what's going on and what to do to solve this 
issue. 
Could you please help me ?

Thanks a lot.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/bba4247c-1b62-409e-a7dc-1fc6c96535a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Issue With Remarketing Audience Through Google Analytics

2016-05-27 Thread Abhishek Parihar
Dear Team,

We have an Android app Called Tiger.do

We are trying to make re marketing audiences for Google Adwords Via Google 
analytic.   

and We have implemented the guidelines given here for the same.

Enable Remarketing and Advertising Reporting Features for an app

When you enable these features for an app, then Analytics collects the 
information it normally does, as well as anonymous information associated 
with mobile advertising IDs.

To enable these features for an app, you need to modify the Analytics 
tracking code that you have included in your app code. The examples below 
explain how to modify the tracking code for Android and iOS apps.
App-tracking code change for Android

To enable these features for Android, modify your Analytics tracking code 
to collect the advertising id. Call theenableAdvertisingIdCollection method 
on the tracker for which you want to enable these features. For example:

// Get tracker.
Tracker t = ((AnalyticsSampleApp) 
getActivity().getApplication()).getTracker(
TrackerName.APP_TRACKER);

// Enable Display Features.
t.enableAdvertisingIdCollection(true);

Learn more 

 about 
supporting Display Advertising on Android
App-tracking code change for iOS

To enable these features for iOS, collect the IDFA (Identifier for 
Advertisers). To enable IDFA collection, link thelibAdIdAccess.a and 
AdSupport.framework libraries to your application and set the 
allowIDFACollection to*YES* on each tracker that will collect the IDFA. For 
example:

// Assumes a tracker has already been initialized with a property ID, 
otherwise
// getDefaultTracker returns nil.
id tracker = [[GAI sharedInstance] defaultTracker];

// Enable IDFA collection.
tracker.allowIDFACollection = YES;


Even after making these changes in the app we are not able to collect any 
data in the Re marketing audience.

Can you please help us solve this issue.

If there is any paramter which needs to be passed in this code. or some 
other method.


Regards,

Abhishek 



-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/4d455e7f-d2c3-4a99-9eab-51921e46fc5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Issue with Priority Mode in Marshmallow

2016-04-20 Thread Karthick S
Hi,

I updated my mobile to Marshmallow OTA. After update, I see an issue with 
priority mode. When I choose priority mode with messages option none, it 
still rings my mobile when I receive SMS. I'm not sure whether some other 
option needs to be configured to rectify this. Anybody else facing this 
issue?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/8cf29940-1064-42a1-bd18-3ff0e8a581cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Issue 169829 - android - "Gradle project sync in progress ...

2016-04-13 Thread TreKing
On Tue, Apr 12, 2016 at 10:01 AM, Ultimate Dream  wrote:

> Now its 30 minutes over it shows me "Gradle project sync in progress .."
> How can i solve this problem...
>

Kill Android Studio and try again.

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

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScgg_sH1EvY%2BS4UifrA_zjt9Qi9-5JF9AG-hsezeuVe97_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Issue 169829 - android - "Gradle project sync in progress ...

2016-04-12 Thread Ultimate Dream


I just updated my android studio to 2.0. I just imported setting from my 
previous version 1.5. 

Now its 30 minutes over it shows me "Gradle project sync in progress .." 
How can i solve this problem... 





-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b5631316-732f-45e8-8d8f-6554c71c93df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Issue: Implementing app restrictions and Lint Errors in app_restrictions.xml

2016-02-03 Thread Surbhi Dhingra
I am working on Android MDM and have the app_restrictions.xml file under 
/src/main/res/xml/ folder. The MDM i am working on is not showing me the 
value of the restriction, not even the default value. All the steps 
mentioned in this link has been followed to set app restrictions: 
https://developer.android.com/training/enterprise/app-restrictions.html 
but i am getting Bundle[EMPTY_PARCEL]. below is the code

app_restrictions.xml

http://schemas.android.com/apk/res/android";>




The lint is showing me below errors, though i was able to suppress it in 
gradle through lint options, but just wondering if it is not the cause of 
issue i am facing. Please let me know why i am getting these errors.

Executing task ':MeetingExpert:lintVitalRelease' (up-to-date check took 0.0 
secs) due to:
  Task has not declared any outputs.
.../src/main/res/xml/app_restrictions.xml:8: Error: Missing required 
attribute android:key [ValidRestrictions]

~~
.../src/main/res/xml/app_restrictions.xml:8: Error: Missing required 
attribute android:restrictionType [ValidRestrictions]

~~
.../src/main/res/xml/app_restrictions.xml:8: Error: Missing required 
attribute android:title [ValidRestrictions]

~~

   Explanation for issues of type "ValidRestrictions":
   Ensures that an applications restrictions XML file is properly formed

  
 
https://developer.android.com/reference/android/content/RestrictionsManager.html

3 errors, 0 warnings

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/9395f949-59e2-4401-854a-2036238daf67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Issue when removing the supportV4 library

2015-12-03 Thread TreKing
On Tue, Dec 1, 2015 at 3:13 AM, Sandeep Patel <
sandeepkumar.s.pa...@gmail.com> wrote:

> Now i want to add the flip animation for few fragment transition So as per
> the android guide we need to use the animator for that


Please indicate where the documentation says you *need* to use the animator
for a flip animation.

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

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScghPMYZ3uzxg_n008eGdQoc3Lbj20gO_s1Y5EWrU1h9zpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Issue when removing the supportV4 library

2015-12-01 Thread Sandeep Patel


My app minimum version is 10 and till now i am using the support library 
for fragments

Now i want to add the flip animation for few fragment transition So as per 
the android guide we need to use the animator for that and it has support 
from the api level 11 which is no issue for me.

but also need to use the getFragmentManager instead 
getSupportFragmentManager

So i removed the support library changed my minimum version 10 to 11 errors 
are coming

because in my app i have FragmentTabhost and getChildFragmentManager(). 
FragmentTabHost only available on support library and to set FragmentManager 
using 
the getChildFragmentManager it wont allow me to do that because it requires 
api level 17

any help appreciated. Let me know if you need more details

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/21c8c09e-69de-41f7-8081-39e8c7b25842%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Issue on running avd emulator

2015-08-19 Thread saledan
Hi all,
I apologize for this cross post (I already wrote on intel forum, without 
success, https://software.intel.com/en-us/forums/topic/583938 ), but I have 
an issue and I need to use the emulator.
Please may you help me?
Thanks a lot!

I have an issue when try to launch an android emulator through AVD Manager.
I tried using only android sdk or installing full android studio.
Clicking on play button, avd try to lunch the emulator, but when the 
progress bar is complete, it disappears, but nothing happens.

>From event viewer I received the following error:

Application name that generated error: emulator-x86.exe, version: 0.0.0.0, 
timestamp: 0x5581d229
Module name that generated error: ig75icd32.dll, version: 10.18.10.4061, 
timestamp: 0x548e64f0
Exception code: 0xc005
Offset error: 0x001367ad
Process ID that generated error: 0x2234
Application startup time: 0x01d0d5ab91aeaa30
Application path: 
C:\Users\xxyyzz\AppData\Local\Android\sdk\tools\emulator-x86.exe
Module path: C:\windows\system32\ig75icd32.dll
Warning ID: ef9db8f4-419e-11e5-b516-e4ad885ba36a

Attached to this post you can found output of cmd command "sc query 
intelhaxm", CrystalCPUID screenshot.

Please may you help me to solve this issue?
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Issue on last update of Google App version 4.8.12.19

2015-07-10 Thread Carlos Ferreira
Hi,

I have apps using Google's voice recognition service 
(com.google.android.googlequicksearchbox) continuously, and since this last 
update i am having an issue when the user says something that sound is 
captured but is not recognized as a word, the recognition service now seems 
not sending any data as response.

I tried to uninstall version 4 and everything works fine in version 3.

Version 4 also has an annoying beep sound, that would be great if there was 
an option not to play it.

There is any documentation/site where i can see the changes in that version 
of Google App?

Thanks,
Carlos.

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


[android-developers] Issue in downloading ADK 2012 (Accessory Development Kit) source

2015-01-22 Thread AJ
Hi,

I am a newbie to Accessory development & am currently trying to download 
ADK sources on my Windows7 PC with Cygwin installed. I am following this 
link:

http://developer.android.com/tools/adk/adk2.html#src-download
(See under Downloading the ADK Source)

I am facing an issue in this step:

repo init -u https://android.googlesource.com/accessories/manifest


On the console I see the following error:

Get https://gerrit.googlesource.com/git-repo
fatal: unable to access 'https://gerrit.googlesource.com/git-repo/': Failed 
to connect to gerrit.googlesource.com port 443: Network is unreachable


Can anyone help me out? 

Best regards,
Ajay

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


[android-developers] Issue 81478 - android - CALL_STATE_RINGING is delivered twice for a single incoming call - Android Open Source Project - Issue Tracker - Google Project Hosting

2014-12-06 Thread mike digioia
https://code.google.com/p/android/issues/detail?id=81478#makechanges

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


[android-developers] Issue with ContentProvider streaming data to other apps

2014-07-21 Thread Vincent
Hello,

In my app the user can select files and open them in the appropriate app (using 
an ACTION_VIEW intent). I need to do some work on the data before giving it to 
the other app. So I'm using a streaming solution : I've implemented a 
ContentProvider that implements openTypedAssetFile and writeDataToPipe (this 
method fills the output ParcelFileDescriptor created by openPipeHelper).

This works : I can open .pdf files, .txt files etc. The streaming seems 
correct. I can open images usings 3-party apps. However when I open an image 
using the Gallery, it doesn't work (Gallery shows a black screen), and I get 
the following exception :

fail to open myfile.jpg
UriImage(21890): java.io.FileNotFoundException: Not a whole file
I had a look at the Gallery source (here) and I could see that the exception is 
thrown here :

try {
if (MIME_TYPE_JPEG.equalsIgnoreCase(mContentType)) {
InputStream is = mApplication.getContentResolver()
.openInputStream(mUri);
mRotation = Exif.getOrientation(is);
Utils.closeSilently(is);
}
**mFileDescriptor = mApplication.getContentResolver()
.openFileDescriptor(mUri, "r");**
if (jc.isCancelled()) return STATE_INIT;
return STATE_DOWNLOADED;
} catch (FileNotFoundException e) {
Log.w(TAG, "fail to open: " + mUri, e);
return STATE_ERROR;
}
However, once in the Gallery app, if I select "Set as wallpaper", then I can 
see my image, it is then well streamed. So the problem appears when Gallery 
opens.

After a deeper look (in the ContentResolver code etc.) I couldn't understand 
why it behaves this way. It seems that Gallery does not support streaming 
files. Is that right ? Do you have any idea ? I really lost with that right now.

Thanks

Vincent

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


Re: [android-developers] issue with google play game services

2013-12-03 Thread TreKing
On Wed, Dec 4, 2013 at 12:30 AM, Mohan Krishna <
mohankrishnayarragu...@gmail.com> wrote:

> Here is the exception shown : "This client ID is globally unique and is
> already in use.".


Did you try doing a search for that error ... ?

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

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


[android-developers] issue with google play game services

2013-12-03 Thread Mohan Krishna
Hi Everyone,

i have started using google play game services recently,

and i am facing the following error while trying to generate client id, 
please help me figure out what is the pause.

Here is the exception shown : "This client ID is globally unique and is 
already in use.".

Thanks in advance.


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


Re: [android-developers] Issue with SQLiteOpenHelper on android 2.X and 3.X

2013-07-15 Thread Michael Banzon
Maybe this SO-thread helps:
http://stackoverflow.com/questions/7647524/android-failed-to-setlocale-when-constructing-closing-the-database

On Mon, Jul 15, 2013 at 9:08 AM, Zoheb Rahman  wrote:
> So i made a big mistake of testing my code on android 4.0 + and thinking it
> would work fine on other versions. But i am facing issues with 2.X and 3.X
> with SQLiteOpenHelper.
>
> First the code :
>
>  public class HelperDB extends SQLiteOpenHelper implements BaseColumns {
>
>  public static final int DATABASE_VERSION = 2;
>  public static final String DATABASE_NAME = "MYDB.db";
>  public static final String TABLE_NAME = "MYtable";
>  public static final String TABLE_NAME_LOGO = "MYLogos";
>  public static final String COLUMN_NAME_1 = "x";
>  public static final String COLUMN_NAME_2 = "";
>  public static final String COLUMN_NAME_3 = "";
>  public static final String COLUMN_NAME_4 = "";
>  public static final String COLUMN_NAME_LOGO = "logo";
>  public static final String COLUMN_NAME_5 = "";
>  public static final String COLUMN_NAME_6 = "f";
>  public static final String COLUMN_NAME_7= "Abc";
>
> public HelperDB(Context context)
> {
> super(context, DATABASE_NAME, null, DATABASE_VERSION);
> }
>
> @Override
>  public void onCreate(SQLiteDatabase db){
>
> db.execSQL("CREATE TABLE " + TABLE_NAME + "(" + _ID + " INTEGER PRIMARY
> KEY autoincrement," + COLUMN_NAME_1 + " TEXT not null," + COLUMN_NAME_2
> + " TEXT not null," + COLUMN_NAME_3 + " TEXT not null," +
> COLUMN_NAME_4 + " LONG not null," + COLUMN_NAME_5 + " INT DEFAULT 99," +
> COLUMN_NAME_6 +" INT DEFAULT 99);");
>
>
> db.execSQL("CREATE TABLE " + TABLE_NAME_LOGO + "(" + _ID + " INTEGER
> PRIMARY KEY autoincrement," + COLUMN_NAME_6 + " TEXT not null,"  +
> COLUMN_NAME_7 + " INTERGET not null);");
>
> }
>
>   @Override
>public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)
> {
>
> }
>
>  }
> **
>
>   public class MatchesDB {
>
> private HelperDB dbHelper;
> private SQLiteDatabase dbw, dbr;
> public static int id;
>
> public MatchesDB(Context context){
>
> dbHelper = new HelperDB(context);
> dbw = dbHelper.getWritableDatabase();
> dbr = dbHelper.getReadableDatabase();
> }
>
> public void fillinfotable(){}
> And all other functions to query the database and delete etc
>
> Creating the DB by calling
>
>   MatchesDB newdb = new MatchesDB(context);
>   newdb.fillinfotable();
>
> All this is working perfectly on all 4.0 + devices. However i'm getting the
> following error when trying to run on 2.x devices
>
> 07-14 21:29:14.890: E/Database(22231): CREATE TABLE android_metadata failed
> 07-14 21:29:14.898: E/Database(22231): CREATE TABLE android_metadata failed
> 07-14 21:29:15.640: E/Database(22231): Failed to setLocale() when
> constructing, closing  the database
> 07-14 21:29:15.640: E/Database(22231):
> android.database.sqlite.SQLiteException:  database is locked
> 07-14 21:29:15.640: E/Database(22231):  at
> android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
> 07-14 21:29:15.640: E/Database(22231):  at
> android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:2000)
> 07-14 21:29:15.640: E/Database(22231):  at
> android.database.sqlite.SQLiteDatabase. (SQLiteDatabase.java:1857)
> 07-14 21:29:15.640: E/Database(22231):  at
> android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:822)
> 07-14 21:29:15.640: E/Database(22231):  at
> android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:856)
> 07-14 21:29:15.640: E/Database(22231):  at
> android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:849)
> 07-14 21:29:15.640: E/Database(22231):  at
> android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:556)
> 07-14 21:29:15.640: E/Database(22231):  at
> android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:203)
> 07-14 21:29:15.640: E/Database(22231):  at
> android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:118)
>
> Any help is Highly appreciated !! really want a quick fix as the app is
> already on the play store and i need to publish an update.
>
> I have followed the developers guide on the android website and have been
> searching for a solution and just cant seem to find anything anywhere
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it,

[android-developers] Issue regarding Device screen resolutions

2013-06-07 Thread Ansh


I have created 2 layout folders under res/layout

1) layout-hdpi-960x540 and 2) layout-sw360dp

the first folder i have created for motorola razr devices for the 
resolution of 960x540 devices. and the second folder i am using for google 
nexus device. Now the problem i am facing is that the layouts under 
layout-sw360dp folder are being rendered for motorola device i.e( 960x540 
of resolution ).

How can i get the layouts rendered from layout-hdpi-960x540 for the device 
of the resolution(960X540)?

Thanks

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




[android-developers] Issue while explorting AOSP

2013-04-22 Thread Dionisios K.
Not sure if this belongs here, however, I have difficulties exporting your 
4.2.2_r1.2 (JDQ39E) review:

Fetching projects: 100% (328/328), done.  
Syncing work tree:  78% (256/328)  error: revision 
refs/tags/android-4.2.2_r1.2  in platform/packages/apps/Mms not found

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




[android-developers] Issue with SetCustomAnimations in fragments

2013-03-12 Thread Ansh
Hi Guys 

I am having issue with the CustomAnimations setting while fragments are 
being replaced.
 here is the detailed 
question

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




Re: [android-developers] Issue Sharing Using Action_send intent

2013-02-13 Thread Kristopher Micinski
You can "prevent" your user from taking the data from Gmail, and doing
so is a pretty bad design: what happens if the user doesn't use the
GMail app?  You're going to get lots of bad rep for leaving out users
who use other apps.

If you want to do it, you can name an explicit intent target, just
target the intent at the GMail app's package name.

(Though, again, this is a bad idea, you should really just allow the
user to pick the mechanism they want to use.)

Kris

On Wed, Feb 13, 2013 at 4:04 AM, ashwini vandanapu
 wrote:
>
> Hi,
>
>  I want to share image. so i can able to share image via gmail but
> not able share through bluetooth,wifi,facebook...etc.
>
> here the snippet is below. please find and If anyone have idea share
> with me and help me out.
>
>
> Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
> shareIntent.setType("image/png");
> shareIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"Image
> Attachment");
> shareIntent.putExtra(android.content.Intent.EXTRA_TEXT,"Image Attachement");
> Uri
> pngUri=Uri.parse("android.resource://com.example.share/"+R.drawable.ic_launcher);
> shareIntent.putExtra(android.content.Intent.EXTRA_STREAM,pngUri);
> startActivity(Intent.createChooser(shareIntent , "Send image using.."));
>
>
>
> Thanks&Regards,
> Ashwini V.
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

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




[android-developers] Issue Sharing Using Action_send intent

2013-02-13 Thread ashwini vandanapu
Hi,

 I want to share image. so i can able to share image via gmail but
not able share through bluetooth,wifi,facebook...etc.

here the snippet is below. please find and If anyone have idea
share with me and help me out.


Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
shareIntent.setType("image/png");
 shareIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"Image
Attachment");
 shareIntent.putExtra(android.content.Intent.EXTRA_TEXT,"Image
Attachement");
Uri
pngUri=Uri.parse("android.resource://com.example.share/"+R.drawable.ic_launcher);
 shareIntent.putExtra(android.content.Intent.EXTRA_STREAM,pngUri);
startActivity(Intent.createChooser(shareIntent , "Send image using.."));



Thanks&Regards,
Ashwini V.

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




[android-developers] [Issue] Android diplays wrong system time

2012-11-20 Thread Dale
Hi all,

I am meeting an issue while developing ICS the android phone.
After factory reset, the phone displays system time wrong. This is the CDMA 
phone, so that the phone can update its system time from its network. 
However, the phone display the time that belongs to another timezone (in 
UK).

I cannot find where I can fix this issues,
Please give me some advices.

Thanks,
Dale

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

Re: [android-developers] issue Android NDK OpenGL ES 2.0 +VBO

2012-11-20 Thread Harri Smått
Hi,

Here's a link to Apple Dev site which shows how to generate VBOs using default 
buffers. Maybe it gives an alternative for exact vertex buffer usage;

http://developer.apple.com/library/ios/#documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/TechniquesforWorkingwithVertexData/TechniquesforWorkingwithVertexData.html

--
H

On Nov 10, 2012, at 11:19 PM, Vladimir Boichentsov  wrote:
> 
> Maybe someone has solution for resolve it. Because without VBO I can't do 
> more faster app :(
> 

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


[android-developers] issue Android NDK OpenGL ES 2.0 +VBO

2012-11-20 Thread Vladimir Boichentsov
Hi everyone!

I had a problem with VBO on OpenGL ES 2.0.

glGenVertexArraysOES, glGenVertexArrays - does not work's


Maybe someone has solution for resolve it. Because without VBO I can't do 
more faster app :(



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] Issue about the Android bluetooth secure simple pairing

2012-10-29 Thread cgha
I want to use the "Just Work Mode" in secure simple pairing because our 
customer asked this feature and our product has no display or keyboard. But 
it seems have some problems. Most of the devices seems can not connect to 
it after paired.
My device want to pair is a healthy instrument and has no capability to 
display the pair number or input something, So I must choose 
NoInputNoOutput as the IOCapability.
But the Android phone want to connect it seems always set MITM protection 
needed when connect(Authentication_Requirement =5), so it will always get 
failed because the our device will return IOCapability = NoInputNoOutput 
which has no MITM protection.  So what's the workaround?  

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

[android-developers] Issue building project which uses library project

2012-10-26 Thread Ab


I found many postings concerning this error, but none of the solutions 
worked for me.

I have project A, B, and C. Projects A and B are marked as library 
projects, project B imports project A as a library, and project C imports 
project B. When running project C from eclipse, I get the below error.
 

"java.lang.IllegalArgumentException: already added: projectA/R;"

 

Upon investigation, the generated R files for projects A and B are 
contained in the jar file create for project B, which is included in 
project C's android dependencies. Also, projects C contains R files for 
both project A and project B in its /gen folder.

I assume this is causing the error, the R files appear twice on the 
classpath because they are in the android dependencies and the gen folder. 
If this is the cause, is there any way to fix 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] Issue with touchscreen

2012-10-17 Thread Vishal Jain

Hi,
I am trying to get touchscreen functionality. I want to perform some 
actions based on whether 
user touches the screen up or down.

Here is my code for this
public class Sankhyaki extends Activity  implements OnTouchListener, 
OnKeyListener  {
 float x = 0, y = 0;
 public static final String TAG="Sankhayaki";

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_sankhyaki);
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_sankhyaki, menu);
return true;
}

public boolean onTouch(View v, MotionEvent me)
{

x = me.getX();
y = me.getY();


switch ( me.getAction()) {
case MotionEvent.ACTION_DOWN:
System.out.println("\n ACTION DOWN");
Log.i(TAG,"DOWN");
Log.i(TAG, "x = " + x + "y = " + y );
break;

case MotionEvent.ACTION_UP:
System.out.println("\n ACTION UP");
Log.i(TAG, "UP");
Log.i(TAG, "x = " + x + "y = " + y );


break;

case MotionEvent.ACTION_MOVE:
System.out.println("\n ACTION MOVE");
Log.i(TAG, "MOVE");
Log.i(TAG, "x = " + x + "y = " + y );
break;  
 
}


return false;
}

}

While running it on Emulator, When I click on the screen I
dont see any message in the LogCat or Console. I am not sure if I am doing 
any thing wrong.
just because I am not seeing any Log message in Logcat or Console,
 it looks like control is not going in the switch case.

There is no way I validate whether I am doing it right or not.

I want to put more code in the switch case only after I am
sure that control goes in the switch case which is not happening here,

Any information would be helpful.

Thanks and Regards,
Vishal




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

[android-developers] Issue while adding event on inbuit Calender application on Motorola droid razr

2012-08-31 Thread Vinay Kumar
 

Hi,

I'm trying to use Gallery and Calender (Inbuilt applications) in my android 
application. It seems to be working fine on all android devices except 
Motorola droidRazr 4.0.4 and Nexus.

Could anybody help me what is an issue with above devices 4.0.4

Thank you in advance.

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

Re: [android-developers] Issue with the basic if statement

2012-08-22 Thread Lew
Lloyd Carroll wrote:

> Use == for starters in your conditional statement.
>

As others have stated, XML doesn't have statements, conditional or 
otherwise, 
and Java comparisons often need 'equals()' rather than '=='.
 

> Waheed Rafiq wrote:
>
>> Hi guys , I am new to android development 
>>
>> for sometime I have try to resolve  the if statement issue within my code 
>> but can't seem to understand why it does not work
>>
>> here is my code that I was learning from online tutorial 
>>
>> http://schemas.android.com/apk/res/android
>> "
>>
>> xmlns:tools="http://schemas.android.com/tools";
>>
>> android:layout_width="match_parent"
>>
>> android:layout_height="match_parent" >
>>
>>
>> >
>> android:id="@+id/textView1"
>>
>> android:layout_width="wrap_content"
>>
>> android:layout_height="wrap_content"
>>
>> android:layout_centerHorizontal="true"
>>
>> android:layout_centerVertical="true"
>>
>> android:padding="@dimen/padding_medium"
>>
>> android:text="@string/hello_world"
>>
>> tools:context=".MainActivity" />
>>
>>
>> >
>> android:id="@+id/button1"
>>
>> android:layout_width="wrap_content"
>>
>> android:layout_height="wrap_content"
>>
>> android:layout_below="@+id/textView1"
>>
>> android:layout_centerHorizontal="true"
>>
>> android:layout_marginTop="59dp"
>>
>> android:text="Edit me"  // on this line I name the button Edit Me
>>
>> if(android.text="Hussian Waheed") android.text="Change Me"; // 
>> on this line I am trying to say if the button is "Edit Me" then change this 
>> to "Change Me" 
>>
>>
>> all I get is a error stating my if statment requires a equal , I just 
>> don't understand it. really would like someone to give me a better example 
>> of how to change a button name to different button name. 
>>
>>
>> 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] Issue with the basic if statement

2012-08-22 Thread Kumar Bibek
You are trying to write code in the layout xmls?

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Wed, Aug 22, 2012 at 10:35 PM, Lloyd Carroll wrote:

> Use == for starters in your conditional statement.
> On Aug 21, 2012 3:42 PM, "Waheed Rafiq"  wrote:
>
>> Hi guys , I am new to android development
>>
>> for sometime I have try to resolve  the if statement issue within my code
>> but can't seem to understand why it does not work
>>
>> here is my code that I was learning from online tutorial
>>
>> http://schemas.android.com/apk/res/android
>> "
>>
>> xmlns:tools="http://schemas.android.com/tools";
>>
>> android:layout_width="match_parent"
>>
>> android:layout_height="match_parent" >
>>
>>
>> >
>> android:id="@+id/textView1"
>>
>> android:layout_width="wrap_content"
>>
>> android:layout_height="wrap_content"
>>
>> android:layout_centerHorizontal="true"
>>
>> android:layout_centerVertical="true"
>>
>> android:padding="@dimen/padding_medium"
>>
>> android:text="@string/hello_world"
>>
>> tools:context=".MainActivity" />
>>
>>
>> >
>> android:id="@+id/button1"
>>
>> android:layout_width="wrap_content"
>>
>> android:layout_height="wrap_content"
>>
>> android:layout_below="@+id/textView1"
>>
>> android:layout_centerHorizontal="true"
>>
>> android:layout_marginTop="59dp"
>>
>> android:text="Edit me"  // on this line I name the button Edit Me
>>
>> if(android.text="Hussian Waheed") android.text="Change Me"; //
>> on this line I am trying to say if the button is "Edit Me" then change this
>> to "Change Me"
>>
>>
>> all I get is a error stating my if statment requires a equal , I just
>> don't understand it. really would like someone to give me a better example
>> of how to change a button name to different button name.
>>
>>
>> thanks
>>
>>
>>
>>
>>
>>
>>/>
>>
>>
>>
>>
>>
>> 
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Issue with the basic if statement

2012-08-22 Thread Lloyd Carroll
Use == for starters in your conditional statement.
On Aug 21, 2012 3:42 PM, "Waheed Rafiq"  wrote:

> Hi guys , I am new to android development
>
> for sometime I have try to resolve  the if statement issue within my code
> but can't seem to understand why it does not work
>
> here is my code that I was learning from online tutorial
>
> http://schemas.android.com/apk/res/android";
>
> xmlns:tools="http://schemas.android.com/tools";
>
> android:layout_width="match_parent"
>
> android:layout_height="match_parent" >
>
>
> 
> android:id="@+id/textView1"
>
> android:layout_width="wrap_content"
>
> android:layout_height="wrap_content"
>
> android:layout_centerHorizontal="true"
>
> android:layout_centerVertical="true"
>
> android:padding="@dimen/padding_medium"
>
> android:text="@string/hello_world"
>
> tools:context=".MainActivity" />
>
>
> 
> android:id="@+id/button1"
>
> android:layout_width="wrap_content"
>
> android:layout_height="wrap_content"
>
> android:layout_below="@+id/textView1"
>
> android:layout_centerHorizontal="true"
>
> android:layout_marginTop="59dp"
>
> android:text="Edit me"  // on this line I name the button Edit Me
>
> if(android.text="Hussian Waheed") android.text="Change Me"; // on
> this line I am trying to say if the button is "Edit Me" then change this to
> "Change Me"
>
>
> all I get is a error stating my if statment requires a equal , I just
> don't understand it. really would like someone to give me a better example
> of how to change a button name to different button name.
>
>
> thanks
>
>
>
>
>
>
>/>
>
>
>
>
>
> 
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Issue with the basic if statement

2012-08-22 Thread Justin Anderson
>
> On top of all that has been said before, the error message is actually
> correct.  the IF statement needs an equality operator  ( == ) , not an
> assignment operator ( = ) .
>

But in Java you aren't going to get the expected results using == on a
String object... you need to use the equals() method.

if (str1.equals(str2))
//Do something here

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Aug 22, 2012 at 10:17 AM, lbendlin  wrote:

> On top of all that has been said before, the error message is actually
> correct.  the IF statement needs an equality operator  ( == ) , not an
> assignment operator ( = ) .

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

Re: [android-developers] Issue with the basic if statement

2012-08-22 Thread lbendlin
On top of all that has been said before, the error message is actually 
correct.  the IF statement needs an equality operator  ( == ) , not an 
assignment operator ( = ) .

On Tuesday, August 21, 2012 5:34:38 PM UTC-4, Waheed Rafiq wrote:

> thank you both for guiding me in a straight path with regards to xml and 
> java , I was reading android online tutorial  , I guess i jump into the 
> deep end of newbie user section , 
> On Aug 21, 2012 10:22 PM, "Lew" > wrote:
>
>> As Kristopher said, Java source is in "*.java" files and XML is in 
>> "*.xml" files.  
>>
>> Also, Java follows Java syntax:
>>
>>   package com.foo.bar;
>>
>>   public class FooBar 
>>   {
>> public static void main(String [] args)
>> {
>>   // ... etc.
>> }
>>   }
>>
>> XML follows XML syntax:
>>
>>   
>> 
>>   content
>>   
>> 
>>   
>>
>> Now, when someone new to Java and XML runs into a question, it is good 
>> to search through the documentation for Java and for XML:
>>
>> 
>> 
>>
>> Read and study the tutorials, etc.
>>
>> -- 
>> Lew
>>
>> Waheed Rafiq wrote: 
>>>
>>> you defo got one thing right " I am confused" -:)  I actually thought I 
>>> was writing code in java ?  so this now begs the question where do I write 
>>> the code if not in MyFirstApp.main  
>>>
>>> I am new to Java and XML 
>>>
>>> thanks for your prompt reply 
>>> Kristopher Micinsk wrote:
>>>
 You seem to be quite confused... You can't write an if statement
 inside XML, it's not interactive (computation), it's just static XML.

 What you need to do is put that in your java code,

 Waheed Rafiq wrote:
 > Hi guys , I am new to android development
 >
 > for sometime I have try to resolve  the if statement issue within my 
 code
 > but can't seem to understand why it does not work
 >
 > here is my code that I was learning from online tutorial
 >
 > http://schemas.**
 android.com/apk/res/android
 "
 > 
 > xmlns:tools="http://schemas.**android.com/tools
 "
 > android:layout_width="match_**parent"
 > android:layout_height="match_**parent" >
 >
 > >>> > android:id="@+id/textView1"

>>>  
>> . . . [ snip ] . . . 
>>  
>>
>>>  > android:text="Edit me"  // on this line I name the button 
 Edit Me
 >
 > if(android.text="Hussian Waheed") android.text="Change Me"; 
 // on
 > this line I am trying to say if the button is "Edit Me" then change 
 this to
 > "Change Me"
 >
 >
 > all I get is a error stating my if statment requires a equal , I just 
 don't
 > understand it. really would like someone to give me a better example 
 of how
 > to change a button name to different button name.
 >

>>>  
>>
>>>  >/>
 >
 > 

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

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

Re: [android-developers] Issue with the basic if statement

2012-08-21 Thread Waheed Rafiq
thank you both for guiding me in a straight path with regards to xml and
java , I was reading android online tutorial  , I guess i jump into the
deep end of newbie user section ,
On Aug 21, 2012 10:22 PM, "Lew"  wrote:

> As Kristopher said, Java source is in "*.java" files and XML is in "*.xml"
> files.
>
> Also, Java follows Java syntax:
>
>   package com.foo.bar;
>
>   public class FooBar
>   {
> public static void main(String [] args)
> {
>   // ... etc.
> }
>   }
>
> XML follows XML syntax:
>
>   
> 
>   content
>   
> 
>   
>
> Now, when someone new to Java and XML runs into a question, it is good
> to search through the documentation for Java and for XML:
>
> 
> 
>
> Read and study the tutorials, etc.
>
> --
> Lew
>
> Waheed Rafiq wrote:
>>
>> you defo got one thing right " I am confused" -:)  I actually thought I
>> was writing code in java ?  so this now begs the question where do I write
>> the code if not in MyFirstApp.main
>>
>> I am new to Java and XML
>>
>> thanks for your prompt reply
>> Kristopher Micinsk wrote:
>>
>>> You seem to be quite confused... You can't write an if statement
>>> inside XML, it's not interactive (computation), it's just static XML.
>>>
>>> What you need to do is put that in your java code,
>>>
>>> Waheed Rafiq wrote:
>>> > Hi guys , I am new to android development
>>> >
>>> > for sometime I have try to resolve  the if statement issue within my
>>> code
>>> > but can't seem to understand why it does not work
>>> >
>>> > here is my code that I was learning from online tutorial
>>> >
>>> > http://schemas.**
>>> android.com/apk/res/android 
>>> "
>>> > 
>>> > xmlns:tools="http://schemas.**android.com/tools
>>> "
>>> > android:layout_width="match_**parent"
>>> > android:layout_height="match_**parent" >
>>> >
>>> > >> > android:id="@+id/textView1"
>>>
>>
> . . . [ snip ] . . .
>
>
>> > android:text="Edit me"  // on this line I name the button Edit
>>> Me
>>> >
>>> > if(android.text="Hussian Waheed") android.text="Change Me"; //
>>> on
>>> > this line I am trying to say if the button is "Edit Me" then change
>>> this to
>>> > "Change Me"
>>> >
>>> >
>>> > all I get is a error stating my if statment requires a equal , I just
>>> don't
>>> > understand it. really would like someone to give me a better example
>>> of how
>>> > to change a button name to different button name.
>>> >
>>>
>>
>
>> >/>
>>> >
>>> > 
>>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Issue with the basic if statement

2012-08-21 Thread Lew
As Kristopher said, Java source is in "*.java" files and XML is in "*.xml" 
files. 

Also, Java follows Java syntax:

  package com.foo.bar;

  public class FooBar 
  {
public static void main(String [] args)
{
  // ... etc.
}
  }

XML follows XML syntax:

  

  content
  

  

Now, when someone new to Java and XML runs into a question, it is good 
to search through the documentation for Java and for XML:




Read and study the tutorials, etc.

-- 
Lew

Waheed Rafiq wrote:
>
> you defo got one thing right " I am confused" -:)  I actually thought I 
> was writing code in java ?  so this now begs the question where do I write 
> the code if not in MyFirstApp.main  
>
> I am new to Java and XML 
>
> thanks for your prompt reply 
> Kristopher Micinsk wrote:
>
>> You seem to be quite confused... You can't write an if statement
>> inside XML, it's not interactive (computation), it's just static XML.
>>
>> What you need to do is put that in your java code,
>>
>> Waheed Rafiq wrote:
>> > Hi guys , I am new to android development
>> >
>> > for sometime I have try to resolve  the if statement issue within my 
>> code
>> > but can't seem to understand why it does not work
>> >
>> > here is my code that I was learning from online tutorial
>> >
>> > http://schemas.android.com/apk/res/android";
>> > xmlns:tools="http://schemas.android.com/tools";
>> > android:layout_width="match_parent"
>> > android:layout_height="match_parent" >
>> >
>> > > > android:id="@+id/textView1"
>>
>  
. . . [ snip ] . . . 
 

> > android:text="Edit me"  // on this line I name the button Edit Me
>> >
>> > if(android.text="Hussian Waheed") android.text="Change Me"; // 
>> on
>> > this line I am trying to say if the button is "Edit Me" then change 
>> this to
>> > "Change Me"
>> >
>> >
>> > all I get is a error stating my if statment requires a equal , I just 
>> don't
>> > understand it. really would like someone to give me a better example of 
>> how
>> > to change a button name to different button name.
>> >
>>
>  

> >/>
>> >
>> > 
>>
>

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

Re: [android-developers] Issue with the basic if statement

2012-08-21 Thread Kristopher Micinski
I would recommend following a tutorial more closely until you get the
hang of things..

The XML is only to define a layout (it is in a '.xml' file), the Java
code (in a '.java' file) defines the action your app takes.

kris

On Tue, Aug 21, 2012 at 5:06 PM, Waheed Rafiq  wrote:
> you defo got one thing right " I am confused" -:)  I actually thought I was
> writing code in java ?  so this now begs the question where do I write the
> code if not in MyFirstApp.main
>
> I am new to Java and XML
>
> thanks for your prompt reply
>
> On Aug 21, 2012 9:46 PM, "Kristopher Micinski" 
> wrote:
>>
>> You seem to be quite confused... You can't write an if statement
>> inside XML, it's not interactive (computation), it's just static XML.
>>
>> What you need to do is put that in your java code,
>>
>> kris
>>
>> On Tue, Aug 21, 2012 at 4:40 PM, Waheed Rafiq  wrote:
>> > Hi guys , I am new to android development
>> >
>> > for sometime I have try to resolve  the if statement issue within my
>> > code
>> > but can't seem to understand why it does not work
>> >
>> > here is my code that I was learning from online tutorial
>> >
>> > > > xmlns:android="http://schemas.android.com/apk/res/android";
>> >
>> > xmlns:tools="http://schemas.android.com/tools";
>> >
>> > android:layout_width="match_parent"
>> >
>> > android:layout_height="match_parent" >
>> >
>> >
>> > > >
>> > android:id="@+id/textView1"
>> >
>> > android:layout_width="wrap_content"
>> >
>> > android:layout_height="wrap_content"
>> >
>> > android:layout_centerHorizontal="true"
>> >
>> > android:layout_centerVertical="true"
>> >
>> > android:padding="@dimen/padding_medium"
>> >
>> > android:text="@string/hello_world"
>> >
>> > tools:context=".MainActivity" />
>> >
>> >
>> > > >
>> > android:id="@+id/button1"
>> >
>> > android:layout_width="wrap_content"
>> >
>> > android:layout_height="wrap_content"
>> >
>> > android:layout_below="@+id/textView1"
>> >
>> > android:layout_centerHorizontal="true"
>> >
>> > android:layout_marginTop="59dp"
>> >
>> > android:text="Edit me"  // on this line I name the button Edit
>> > Me
>> >
>> > if(android.text="Hussian Waheed") android.text="Change Me"; //
>> > on
>> > this line I am trying to say if the button is "Edit Me" then change this
>> > to
>> > "Change Me"
>> >
>> >
>> > all I get is a error stating my if statment requires a equal , I just
>> > don't
>> > understand it. really would like someone to give me a better example of
>> > how
>> > to change a button name to different button name.
>> >
>> >
>> > thanks
>> >
>> >
>> >
>> >
>> >
>> >
>> >/>
>> >
>> >
>> >
>> >
>> >
>> > 
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Issue with the basic if statement

2012-08-21 Thread Waheed Rafiq
you defo got one thing right " I am confused" -:)  I actually thought I was
writing code in java ?  so this now begs the question where do I write the
code if not in MyFirstApp.main

I am new to Java and XML

thanks for your prompt reply
On Aug 21, 2012 9:46 PM, "Kristopher Micinski" 
wrote:

> You seem to be quite confused... You can't write an if statement
> inside XML, it's not interactive (computation), it's just static XML.
>
> What you need to do is put that in your java code,
>
> kris
>
> On Tue, Aug 21, 2012 at 4:40 PM, Waheed Rafiq  wrote:
> > Hi guys , I am new to android development
> >
> > for sometime I have try to resolve  the if statement issue within my code
> > but can't seem to understand why it does not work
> >
> > here is my code that I was learning from online tutorial
> >
> > http://schemas.android.com/apk/res/android";
> >
> > xmlns:tools="http://schemas.android.com/tools";
> >
> > android:layout_width="match_parent"
> >
> > android:layout_height="match_parent" >
> >
> >
> >  >
> > android:id="@+id/textView1"
> >
> > android:layout_width="wrap_content"
> >
> > android:layout_height="wrap_content"
> >
> > android:layout_centerHorizontal="true"
> >
> > android:layout_centerVertical="true"
> >
> > android:padding="@dimen/padding_medium"
> >
> > android:text="@string/hello_world"
> >
> > tools:context=".MainActivity" />
> >
> >
> >  >
> > android:id="@+id/button1"
> >
> > android:layout_width="wrap_content"
> >
> > android:layout_height="wrap_content"
> >
> > android:layout_below="@+id/textView1"
> >
> > android:layout_centerHorizontal="true"
> >
> > android:layout_marginTop="59dp"
> >
> > android:text="Edit me"  // on this line I name the button Edit Me
> >
> > if(android.text="Hussian Waheed") android.text="Change Me"; // on
> > this line I am trying to say if the button is "Edit Me" then change this
> to
> > "Change Me"
> >
> >
> > all I get is a error stating my if statment requires a equal , I just
> don't
> > understand it. really would like someone to give me a better example of
> how
> > to change a button name to different button name.
> >
> >
> > thanks
> >
> >
> >
> >
> >
> >
> >/>
> >
> >
> >
> >
> >
> > 
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Issue with the basic if statement

2012-08-21 Thread Kristopher Micinski
You seem to be quite confused... You can't write an if statement
inside XML, it's not interactive (computation), it's just static XML.

What you need to do is put that in your java code,

kris

On Tue, Aug 21, 2012 at 4:40 PM, Waheed Rafiq  wrote:
> Hi guys , I am new to android development
>
> for sometime I have try to resolve  the if statement issue within my code
> but can't seem to understand why it does not work
>
> here is my code that I was learning from online tutorial
>
> http://schemas.android.com/apk/res/android";
>
> xmlns:tools="http://schemas.android.com/tools";
>
> android:layout_width="match_parent"
>
> android:layout_height="match_parent" >
>
>
> 
> android:id="@+id/textView1"
>
> android:layout_width="wrap_content"
>
> android:layout_height="wrap_content"
>
> android:layout_centerHorizontal="true"
>
> android:layout_centerVertical="true"
>
> android:padding="@dimen/padding_medium"
>
> android:text="@string/hello_world"
>
> tools:context=".MainActivity" />
>
>
> 
> android:id="@+id/button1"
>
> android:layout_width="wrap_content"
>
> android:layout_height="wrap_content"
>
> android:layout_below="@+id/textView1"
>
> android:layout_centerHorizontal="true"
>
> android:layout_marginTop="59dp"
>
> android:text="Edit me"  // on this line I name the button Edit Me
>
> if(android.text="Hussian Waheed") android.text="Change Me"; // on
> this line I am trying to say if the button is "Edit Me" then change this to
> "Change Me"
>
>
> all I get is a error stating my if statment requires a equal , I just don't
> understand it. really would like someone to give me a better example of how
> to change a button name to different button name.
>
>
> thanks
>
>
>
>
>
>
>/>
>
>
>
>
>
> 
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Issue with the basic if statement

2012-08-21 Thread Waheed Rafiq
Hi guys , I am new to android development 

for sometime I have try to resolve  the if statement issue within my code 
but can't seem to understand why it does not work

here is my code that I was learning from online tutorial 

http://schemas.android.com/apk/res/android";

xmlns:tools="http://schemas.android.com/tools";

android:layout_width="match_parent"

android:layout_height="match_parent" >













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

Re: [android-developers] Issue with device scaling on Nexus 7 Tablet?

2012-07-26 Thread Nicholas Campion
Not to hammer the point to much, but the images in that linked 
stackoverflow question should show that the issue is not specifically 
related to scaling the drawable. My issue is that there seems to be an 
issue with the relative layout handling the padding defined in shape.

If I create a shape in nodpi (which my understanding is disables scaling) 
and set the stroke to 1px and padding to 1px, I see the line on top and 
left but not on bottom or right:
Nexus 7 Tablet: http://cl.ly/image/0g1f1B323J3A
WXGA800-7in Emulator: http://cl.ly/image/2N1q1D3g2n0t

If I change the stroke to 2px:
Nexus 7 Tablet: http://cl.ly/image/1i03310q2j3M
WXGA800-7in Emulator: http://cl.ly/image/3Q3s3u0I0Q1b

I guess my issue is really that the emulator responds exactly as expected 
as do all devices besides the Nexus tablet. The Nexus 7 seems to be not 
respecting the padding on right and bottom when the padding is coming from 
a shape with a stroke.
 

On Thursday, July 26, 2012 1:33:13 AM UTC-5, Dianne Hackborn wrote:
>
> Take care when creating a 9-patch that the marks you use around the edges 
> are at least two pixels wide.  If you don't, when it is scaled down they 
> can disappear.
>
> Another thing to watch out for is that the graphics associated with your 
> stretchable marks have one safe pixel before or after the marks, so that if 
> the graphic is scaled you won't end up with a different color at the edge 
> of the stretchable region (that color being a mix of the original color at 
> the edge, and the color of the pixel next to it).
>
> On Wed, Jul 25, 2012 at 8:22 PM, Nicholas Campion wrote:
>
>> I am seeing some weird behavior on the Nexus 7 tablet when i set a 
>> centered relativelayout to have a background image with padding.
>>
>>
>> http://stackoverflow.com/questions/11656534/padding-issue-on-nexus-7-tablet
>>
>> I thought an SO question might help illustrate better. The gist is that 
>> my small padding is being ignored by the relativelayout on the nexus 7 and 
>> I'm not able to recreate on the emulator using the nexus 7 settings. I'm 
>> cross posting here in the hopes that someone has seen similar issues and 
>> can share his or her insight.
>>  
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> -- 
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to 
> provide private support, and so won't reply to such e-mails.  All such 
> questions should be posted on public forums, where I and others can see and 
> answer them.
>
>  

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

Re: [android-developers] Issue with device scaling on Nexus 7 Tablet?

2012-07-25 Thread Dianne Hackborn
Take care when creating a 9-patch that the marks you use around the edges
are at least two pixels wide.  If you don't, when it is scaled down they
can disappear.

Another thing to watch out for is that the graphics associated with your
stretchable marks have one safe pixel before or after the marks, so that if
the graphic is scaled you won't end up with a different color at the edge
of the stretchable region (that color being a mix of the original color at
the edge, and the color of the pixel next to it).

On Wed, Jul 25, 2012 at 8:22 PM, Nicholas Campion  wrote:

> I am seeing some weird behavior on the Nexus 7 tablet when i set a
> centered relativelayout to have a background image with padding.
>
> http://stackoverflow.com/questions/11656534/padding-issue-on-nexus-7-tablet
>
> I thought an SO question might help illustrate better. The gist is that my
> small padding is being ignored by the relativelayout on the nexus 7 and I'm
> not able to recreate on the emulator using the nexus 7 settings. I'm cross
> posting here in the hopes that someone has seen similar issues and can
> share his or her insight.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Issue with device scaling on Nexus 7 Tablet?

2012-07-25 Thread Nicholas Campion
I am seeing some weird behavior on the Nexus 7 tablet when i set a centered 
relativelayout to have a background image with padding.

http://stackoverflow.com/questions/11656534/padding-issue-on-nexus-7-tablet

I thought an SO question might help illustrate better. The gist is that my 
small padding is being ignored by the relativelayout on the nexus 7 and I'm 
not able to recreate on the emulator using the nexus 7 settings. I'm cross 
posting here in the hopes that someone has seen similar issues and can 
share his or her insight.

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

[android-developers] Issue of using HorizontalScrollView in ListView

2012-07-19 Thread Jacky Lam
Dear All,
I am implementing a listview in android. In the listview, most of the rows 
are no need scroll horizontally.
Except the first row, I add a HorizontalScrollView to it. The listview can 
construct prefectly.
However, when I scroll the first row of list view Horizontally, it 
sometimes can scroll. But, most of the time seems neglecting the "scroll 
horizontally even".

Does anyone know the solution to implement a HorizontalScrollView inside 
the listview?

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] Issue with compiling Unit tests that use Mockito

2012-07-12 Thread Yadnesh Phadke
Hi All,

I have JUnit tests for my Android project that use Mockito.  For compiling 
I needed to add the junit and mockito jars to my libs folder.  I am using 
android tools 20 and trying to compile using Ant.  I get following error 
while converting to dex

   [dx]
   [dx] UNEXPECTED TOP-LEVEL EXCEPTION:
   [dx] *java.lang.IllegalArgumentException: already added: 
Lorg/hamcrest/BaseDescription*;
   [dx] at 
com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
   [dx] at com.android.dx.dex.file.DexFile.add(DexFile.java:163)
   [dx] at 
com.android.dx.command.dexer.Main.processClass(Main.java:486)
   [dx] at 
com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
   [dx] at 
com.android.dx.command.dexer.Main.access$400(Main.java:67)
   [dx] at 
com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:394)
   [dx] at 
com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
   [dx] at 
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
   [dx] at 
com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
   [dx] at 
com.android.dx.command.dexer.Main.processOne(Main.java:418)
   [dx] at 
com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
   [dx] at com.android.dx.command.dexer.Main.run(Main.java:206)
   [dx] at com.android.dx.command.dexer.Main.main(Main.java:174)
   [dx] at com.android.dx.command.Main.main(Main.java:91)
   [dx] 1 error; aborting


The issue is because I am including 2 jars which have same class inside. 
http://www.jarfinder.com/index.php/java/info/org.hamcrest.BaseDescription
I thought that "already added" error was taken care of with the tools 17 
release.  Is the issue still there in tools 20?

Do I need to do something different to resolve this issue?

Regards,
Yadnesh

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

[android-developers] Issue with Google Cloud Messaging

2012-07-11 Thread Valdomero


Using the GCM demo project I managed to registrer a few devices (in the web 
site, running in a Tomcat server I can see them listed) but when I click on 
the Send Message button nothing happens on the client side, no message is 
received.

The Tomcat log shows this:

0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET / HTTP/1.1" 200 11444 
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET /tomcat.css HTTP/1.1" 
200 5926 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET /tomcat.png 
HTTP/1.1" 200 5103 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET 
/bg-upper.png HTTP/1.1" 200 3103 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 
+0200] "GET /bg-nav.png HTTP/1.1" 200 1401 0:0:0:0:0:0:0:1 - - 
[11/Jul/2012:11:10:57 +0200] "GET /asf-logo.png HTTP/1.1" 200 17811 
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET /bg-middle.png 
HTTP/1.1" 200 1918 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET 
/bg-button.png HTTP/1.1" 200 713 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 
+0200] "GET /favicon.ico HTTP/1.1" 200 21630 0:0:0:0:0:0:0:1 - - 
[11/Jul/2012:11:11:06 +0200] "GET /gcm HTTP/1.1" 404 974 0:0:0:0:0:0:0:1 - 
- [11/Jul/2012:11:11:30 +0200] "GET /gcm-demo HTTP/1.1" 302 - 
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:11:30 +0200] "GET /gcm-demo/ HTTP/1.1" 
200 134 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:11:30 +0200] "GET 
/gcm-demo/favicon.png HTTP/1.1" 200 949 172.20.5.53 - - 
[11/Jul/2012:11:14:27 +0200] "POST /gcm-demo/register HTTP/1.1" 200 - 
172.20.5.53 - - [11/Jul/2012:11:14:27 +0200] "POST /gcm-demo/register 
HTTP/1.1" 200 - 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:14:43 +0200] "GET 
/gcm-demo/ HTTP/1.1" 200 235 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:14:52 
+0200] "POST /gcm-demo/sendAll HTTP/1.1" 200 319 0:0:0:0:0:0:0:1 - - 
[11/Jul/2012:11:15:09 +0200] "POST /gcm-demo/sendAll HTTP/1.1" 200 319 
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:15:33 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 319 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:15:41 +0200] "POST 
/gcm-demo/sendAll HTTP/1.1" 200 319 0:0:0:0:0:0:0:1 - - 
[11/Jul/2012:11:23:35 +0200] "POST /gcm-demo/sendAll HTTP/1.1" 200 319 
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:23:56 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 319 172.20.5.53 - - [11/Jul/2012:11:28:21 +0200] "POST 
/gcm-demo/register HTTP/1.1" 200 - 172.20.5.53 - - [11/Jul/2012:11:28:21 
+0200] "POST /gcm-demo/register HTTP/1.1" 200 - 0:0:0:0:0:0:0:1 - - 
[11/Jul/2012:11:28:51 +0200] "POST /gcm-demo/sendAll HTTP/1.1" 200 403 
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:29:02 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 403 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:56:09 +0200] "POST 
/gcm-demo/sendAll HTTP/1.1" 200 403 0:0:0:0:0:0:0:1 - - 
[11/Jul/2012:12:12:21 +0200] "POST /gcm-demo/sendAll HTTP/1.1" 200 403 
0:0:0:0:0:0:0:1 - - [11/Jul/2012:12:37:13 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 403

Any clue?

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] Issue in calling JNI APIs from service

2012-06-29 Thread vamsi
Hi All,
I exported one API from JNI to call from activity and service.
The exported API call is working fine from Activity but the same call
is failing from service.

I am loading libraries using static block and load library function

01-01 01:18:53.885: E/AndroidRuntime(2553): FATAL EXCEPTION: main
01-01 01:18:53.885: E/AndroidRuntime(2553):
java.lang.UnsatisfiedLinkError: GetUserPartInfo
01-01 01:18:53.885: E/AndroidRuntime(2553): at
com.emmc.magician.OnlineBGCService.GetUserPartInfo(Native Method)
01-01 01:18:53.885: E/AndroidRuntime(2553): at
com.emmc.magician.OnlineBGCService.onStart(OnlineBGCService.java:62)
01-01 01:18:53.885: E/AndroidRuntime(2553): at
android.app.Service.onStartCommand(Service.java:438)
01-01 01:18:53.885: E/AndroidRuntime(2553): at
android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2359)
01-01 01:18:53.885: E/AndroidRuntime(2553): at
android.app.ActivityThread.access$1900(ActivityThread.java:123)
01-01 01:18:53.885: E/AndroidRuntime(2553): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
01-01 01:18:53.885: E/AndroidRuntime(2553): at
android.os.Handler.dispatchMessage(Handler.java:99)
01-01 01:18:53.885: E/AndroidRuntime(2553): at
android.os.Looper.loop(Looper.java:137)
01-01 01:18:53.885: E/AndroidRuntime(2553): at
android.app.ActivityThread.main(ActivityThread.java:4424)
01-01 01:18:53.885: E/AndroidRuntime(2553): at
java.lang.reflect.Method.invokeNative(Native Method)
01-01 01:18:53.885: E/AndroidRuntime(2553): at
java.lang.reflect.Method.invoke(Method.java:511)
01-01 01:18:53.885: E/AndroidRuntime(2553): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:784)
01-01 01:18:53.885: E/AndroidRuntime(2553): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
01-01 01:18:53.885: E/AndroidRuntime(2553): at
dalvik.system.NativeStart.main(Native Method)


Thanks
Raghu Vamsi

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


[android-developers] Issue in using a permission which is defined by an app which gets installed after my app?

2012-06-17 Thread shibz
Hi,

I'm facing an issue where my app is using a permission(using 
 tag) which is defined by a different app. The problem is 
that this app where this permission string is defined may get installed 
after my app and due to this I'm getting Security permission and permission 
is not granted.

So please let me know how can I resolve this issue. One workaround I found 
is to define the same permission string in my app also.

So my manifest file will contain both  and  tag 
for the same permission string. Is it ok to define permission of a 
different app in our manifest file? Or is there any better way to tackle 
this issue?

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

[android-developers] Issue in setting bgcolor for gridview items in android

2012-06-14 Thread kaarthick
This may be simple but i couldn't find solution for this. The problem
is setting the background color for gridview items inside the
onitemlongclicklistener method.

I have two linear layouts, one contains the textview and gridview and
another contains some buttons(I set this layout like the menubar on
top of the screen). I hide the second one from the screen using
setVisibility(View.GONE) and when ever I do itemlongclick on the
gridview item the second one will appear using
setVisibility(View.VISIBLE) at the same time I want to change the
bgcolor of the clicked/selected item.

Everything is working fine but whenever the second layout is visible
and also whenever scrolling the gridview, the clicked/selected bgcolor
is disappear.

I tried so many ways but I couldn't solve this problem. Please have
look on my coding and tell me what I did wrong.

gv.setOnItemLongClickListener(new OnItemLongClickListener() {
  public boolean onItemLongClick(AdapterView parent, View
strings,
  int position, long id) {
  final Option o = dir.get(position);
 //gv.performItemClick(gv,
position,gv.getItemIdAtPosition(position));

  /* if(pos!=-1)
  {
  gv.getChildAt(pos).setBackgroundColor(0x);

  }*/
  strings.setSelected(true);
 // TextView
tx=(TextView)strings.findViewById(R.id.grid_item_label);
//  tx.findViewById(id).setBackgroundColor(0xffff);
 /*if(!o.getData().equalsIgnoreCase("o")){


 //gv.getChildAt(position).setSelected(true);
 fill(new File(new
File(o.getPath()).getParent()),position);

  }*/
 /*try
 {
 gv.getSelectedView().setBackgroundColor(0xffcc);
 }
 catch(Exception e){
Toast.makeText(FffsdActivity.this, "ok
\n"+e,Toast.LENGTH_SHORT).show();

 }*/

 /*for(int i=0;i mobileValues;



public ImageAdapter(Context context,List fofivalues) {
this.context = context;
this.mobileValues = fofivalues;
}

public View getView(int position, View convertView, ViewGroup parent)
{

LayoutInflater inflater = (LayoutInflater) context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

View gridView;
//if (convertView == null) {

gridView = new View(context);

// get layout from mobile.xml
gridView = inflater.inflate(R.layout.mobile, null);



/*} else {
gridView = (View) convertView;
}*/
// set value into textview

TextView textView = (TextView)
gridView.findViewById(R.id.grid_item_label);
//to set the max no.of chararcters in textview
String
iname=(mobileValues.get(position).getName().length()>10)?
mobileValues.get(position).getName().substring(0,
9)+"..":mobileValues.get(position).getName();
 
if(mobileValues.get(position).getPosition()==position&&mobileValues.get(position).getPosition()!
=-1)
   {
textView.setText(iname);
textView.setTextColor(0xffff);
   }
else{
textView.setText(iname);
}

// set image based on selected text
final ImageView imageView = (ImageView)
gridView.findViewById(R.id.grid_item_image);
/*gridView.setOnLongClickListener(new
OnLongClickListener() {

public boolean onLongClick(View v) {
gridView.setBackgroundColor(0xffaa);
// TODO Auto-generated method stub
return false;
}
});*/
String mobile = mobileValues.get(position).getData();
if(mobile=="o")
{
 //do nothing
imageView.setImageResource(R.drawable.white);
}

else if(mobile=="Parent Directory")
{
imageView.setImageResource(R.drawable.parent);
}
else if (mobile=="Folder")
{
imageView.setImageResource(R.drawable.folderg);
}
else{
imageView.setImageResource(R.drawable.picicon);
}



return gridView;
}

public int getCount() {
return mobileValues.size();
}

public Object getItem(int position) {
return null;
}

public long getItemId(int position) {
return 0;
}

}


thanks in advance and if you want anything more please let me know...

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

[android-developers] [Issue] android.provider.ContactsContract.Groups.CONTENT_SUMMARY_URI

2012-06-11 Thread Hoang DN
Hi all,

   In Android 4.0.3 & later, I found a problem in Contacts application
& Contacts provider:

   In the class GroupListLoader, we used Groups.CONTENT_SUMMARY_URI to
get MEMBER_COUNT for each group. But I checked contacts provider,
CONTENT_SUMMARY_URI only joins data table and groups table. Therefore,
MEMBER_COUNT always return total of all raw_contacts even
raw_contact_id was deleted.

1. This is a bug, isn't it?
2. I thought this a bug. I'm considering to modify
ContactsDatabaseHelper.Joins.GROUP_MEMBER_COUNT to check
raw_contact_id was deleted or not. Is it best solution?

 Thanks!


Best regards,
hoangdn

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


[android-developers] Issue updating ListFragment inside ViewPager

2012-06-10 Thread NAndDev
I have a ListFragment with a custom Layout inside of a ViewPager. This
ListFragment and the custom layout performs a ListView and a Button
which calls an AsyncTask.

After work is done, this AsyncTask calls in onPostExecute the refresh
method (created inside ListFragment) in order to update the adapter
(code below). When I press this button everything works fine until an
orientation change occurs.

Then If I press the button, the list is updated but no rows are added
or deleted. So i.e if I only have one row and after updating the
adapter is empty, no changes are appreciated on List. On the other
hand, If some rows should be added to list we only notice that the
existing row has changed its content.

If after this "failed" update an orientation change happens, the list
is shown fine. So we can say that the list only updates well the
adapter's content after orientation change.

A reference to main activity is always passed to ListFragment and the
adapter is updated properly (I checked it whit Logs).

Anyone has any idea? I will appreciate so much.

Code:

http://schemas.android.com/apk/res/
android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:weightSum="10">










public class ResFragment extends ListFragment {
View view = null;
public static AdapterRes adapter;

public static ArrayList mItems = new ArrayList();
public static MyAppActivity ref ;


@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
adapter = new AdapterRes(ref, ref.result);
adapter.notifyDataSetChanged();
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup
container,
Bundle savedInstanceState) {
view = inflater.inflate(R.layout.result,null);
this.setListAdapter(adapter);

Button refresh = (Button) view.findViewById(R.id.Refresh);
refresh.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
ref.initDownloadTask();
}
});

return view;
}

public void refresh(){
mItems.clear();
adapter = new AdapterRes(ref, ref.result);
this.setListAdapter(adapter);
adapter.notifyDataSetChanged();
}

class AdapterRes extends ArrayAdapter {

  Activity context = ref;
  AdapterRes(Activity context, List objects) {
  super(context, R.layout.row_res, objects);
  this.context = ref;
  }

  @Override
  public View getView( final int position, View convertView,
ViewGroup parent)
  {
  View item = convertView;
  final ViewHolder holder;

  if(item == null)
  {
  LayoutInflater inflater =
context.getLayoutInflater();
  item = inflater.inflate(R.layout.row_res, null);

  holder =  new ViewHolder();

  holder.local = (TextView)item.findViewById(R.id.local);
  holder.resPartido =
(TextView)item.findViewById(R.id.res);
  holder.foreign =
(TextView)item.findViewById(R.id.foreign);

  item.setTag(holder);
  }
  else
  {
  holder = (ViewHolder)item.getTag();
  }
  holder.local.setText(ref.result.get(position).local);
  holder.res.setText(ref.result.get(position).res);
  holder.foreign.setText(ref.result.get(position).foreign);
  return(item);
  }

  public class ViewHolder {
  public TextView local;
  public TextView res;
  public TextView foreign;
  }

}
}

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


[android-developers] Issue 32545: Android dialog asks for pin code to pair during connect to socket, but device was already paired

2012-06-07 Thread Jim Morris
I have submitted an Android bug report: Issue 32545:Android dialog
asks for pin code to pair during connect to socket, but device was
already paired

This is a VERY serious problem for my app that is ready to go to
market. I have no workaround. Apparently nobody at Google has even
looked at my bug report in over a week.

I am dead in the water until I get a workaround or a bug fix (I would
rather have a workaround).

Google is mega company. They could hire a thousand contractors or
employees to work on bug fixes.

Why is this happening? I need a response. I need a workaround.

Does anybody at google read this forum.

Google: You have my email address. Please send me a workaround ASAP.
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


[android-developers] Issue with TabHost Without Tab activity

2012-06-06 Thread Subin Sebastian
I have an activity named *One *and the layout xml for that activity is here
:* *https://gist.github.com/2881650
And the code for this activity class is here :
https://gist.github.com/2881736
In the tabhost, I have added a tab and another activity *Two *is running
inside the tab.
The weird problem is that, I'm not able to type something in the textbox
above the Tabhost in the parent layout. I'm attaching the build for this
code
for reference as well. Someone please suggest me a solution.

Thanks & Regards
-- 
Subin Sebastian
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin 
http://facebook.com/subinsebastien

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

simple.apk
Description: application/vnd.android.package-archive


[android-developers] Issue

2012-05-28 Thread android developer
While running my app I am getting this message "GC_EXTERNAL_ALLOC freed
296K, 46% free 3251K/5959K, external 1676K/1903K, paused 51ms"
any one pls help me on this issue.

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

[android-developers] Issue with creating a custom VPN app

2012-05-24 Thread Mahendra Liya
I am almost done building a custom VPN app. The problem is that when I
connect to the VPN server, the code seems to be starting a proxy
daemon "SProxy_mtpd" and it fails giving the following error:

05-25 05:59:34.106: E/VpnService(712): onError()
05-25 05:59:34.106: E/VpnService(712): java.io.IOException: cannot
start service: mtpd
05-25 05:59:34.106: E/VpnService(712):  at
com.android.server.vpn.DaemonProxy.start(DaemonProxy.java:74)
05-25 05:59:34.106: E/VpnService(712):  at
com.android.server.vpn.VpnDaemons.startDaemon(VpnDaemons.java:106)
05-25 05:59:34.106: E/VpnService(712):  at
com.android.server.vpn.VpnDaemons.startMtpd(VpnDaemons.java:127)
05-25 05:59:34.106: E/VpnService(712):  at
com.android.server.vpn.VpnDaemons.startPptp(VpnDaemons.java:56)
05-25 05:59:34.106: E/VpnService(712):  at
com.android.server.vpn.PptpService.connect(PptpService.java:31)
05-25 05:59:34.106: E/VpnService(712):  at
com.android.server.vpn.VpnService.onConnect(VpnService.java:137)
05-25 05:59:34.106: E/VpnService(712):  at
com.android.server.vpn.VpnServiceBinder$2.run(VpnServiceBinder.java:
120)
05-25 05:59:34.106: E/VpnService(712):  at
java.lang.Thread.run(Thread.java:1096)

I know there are custom VPN apps out in the market, and so strongly
believe the concept of "Custom VPN App" is feasible.

Does anybody have any idea how to solve this error?

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


[android-developers] Issue that arose during making of Android SDK installer for Debian Linux

2012-05-06 Thread Adnan Hodzic
I'm making an Android SDK installer for Debian Linux which will 
automatically install and setup Android SDK, ADT Eclipse Plugin, add 
support for certain devices (make udev rules) and add support for MTP. 

All of these steps will be represent as separate components, however I'd 
like SDK component to always be able to install latest/current SDK version 
along with option to add support for most used Android Platform, (i.e: 
2.1). In order to accomplish this I'd need a URL which points to current 
SDK version which could be retrieved using *wget* or *curl*, AFAIK there's 
no one such URL.

So does anyone know if there's a URL which directly points to *current* version 
of Android SDK for Linux? 

i.e: Google Earth: 
http://dl.google.com/earth/client/current/GoogleEarthLinux.bin


I'm asking this because I'm a maintainer of 
googleearth-package, 
which works on a similiar principle which would be used in this script. 
Reason why I'd want current version of Android SDK instead of setting 
explicit version of same is because Android SDK reversions are released in 
a quite frequent manner, while (hypothetically speaking) Debian "stable" 
release user would be left with that version for following ~2 years until 
new version is released. Even Ubuntu user would be left with same problem 
for next ~6 months. 

Of course, new and any other version/s could be installed using Android SDK 
Manager which would act in autonomous manner, but still during the 
installation process (regardless of when it occurs) I would like if user 
could get the latest Android SDK version. 

In case there's no URL to current version of Android SDK, I guess I'll have 
to come up with an alternative solution, in this case suggestions are most 
welcome. 


Thanks,

Adnan

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

Re: [android-developers] Issue with SystemService addSystemService?

2012-04-16 Thread Dianne Hackborn
On Mon, Apr 16, 2012 at 11:24 AM, Tom  wrote:

> My issue is, in that process if I create a reference to an IBinder by
> making my own AIDL and extending the stub than call addSystemService
> with my own, unique name how can I communicate to this process? In
> another process I call getSystemService and the reference to the
> IBinder is obtained just fine, but my problem arises when I try to
> call any of its methods. I get a StackOverflowError.
>

You have a bug in your code.  Look at the stack trace and see where your
code is infinitely recursing.

Re:

- Is is possible to use SystemService without your process actually
> being a Service using Android's APIs?
>

This doesn't make sense.  A SystemService is not a Service, they are
completely separate things.  If you are writing an application, you should
be implementing it as a Service that clients access with
Context.bindService().

- If it is not possible, how can Parcelable objects be passed to and
> from separate process so that an app can leverage private/ system APIs
> using root?
>

That doesn't sound like something I'd want to help with. :)

-- 
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] Issue with SystemService addSystemService?

2012-04-16 Thread Tom
Out of curiosity I've tried creating a separate process with UID 0
(root) for rooted devices. This works our just fine, sort of like how
Input2.jar or the like are executed by the Android OS.

My issue is, in that process if I create a reference to an IBinder by
making my own AIDL and extending the stub than call addSystemService
with my own, unique name how can I communicate to this process? In
another process I call getSystemService and the reference to the
IBinder is obtained just fine, but my problem arises when I try to
call any of its methods. I get a StackOverflowError.

So my question is two-part:

- Is is possible to use SystemService without your process actually
being a Service using Android's APIs?
- If it is not possible, how can Parcelable objects be passed to and
from separate process so that an app can leverage private/ system APIs
using root?

Tom

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


[android-developers] Issue loading ImageView from InputStream obtained from web service in Android 3.0 and above

2012-04-02 Thread Girish K.N.


My app has to display an image preview from the image data obtained as 
InputStream from a web service. InputStream is decoded to Bitmap to display 
in ImageView. This entire flow is working fine in Android 2.2 and 2.3, 
whereas it's not functioning with Android 3.0 and 4.0. The bitmap decoded 
is null in the latter case whereas its fine in 2.x.

Here is the code snippet I use.

ImageView imgView = (ImageView) findViewById(R.id.image);   
String imageUrl = "my webservice url";  
HttpClient httpClient = new DefaultHttpClient();
HttpGet mHttpGetEntity = new HttpGet(imageUrl);
HttpResponse response;
try {
response = httpClient.execute(mHttpGetEntity);
InputStream is = response.getEntity().getContent();
imgView.setImageBitmap(BitmapFactory.decodeStream(is));
} catch (ClientProtocolException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}

How can I make this work even with Android 3.0 above. Please advice.

-Girish



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

[android-developers] Issue with WebView on tablets

2012-03-23 Thread BoostHungry
I'm designing an application for tablets that utilizes a WebView in a 
fragment on half of the screen, but I am having issues with the WebView 
when videos attempt to play.  Let me first state that the WebView is 
capable of displaying videos, hardware acceleration is on and the WebView 
has the correct settings to play videos.  The issue is that because the 
size of the WebView is reduced, videos do not play.  It appears that the 
canvas of the video is as if the video was playing from the top left corner 
as opposed to it's location in the WebView.

I have tried to set the size of the WebView statically, I have tried to 
override onMeasure, I tried to tell the canvas where to draw, I have tried 
to set setLoadWithOverviewMode and setUseWideViewPort to true, I have tried 
using different layouts, I have tried not using fragments, I have tried to 
simplify my issue every way possible with no luck. It does not appear that 
I have control over the videos canvas.  Is the Android WebView telling the 
page incorrect size and location information?

An example of my source code can be found on StackOverflow here: 
http://stackoverflow.com/​questions/9659677/reduced-​size-webview-not-showing-​videos-correctly-in-android
 

A screenshot of my issue can be seen here (Notice the apparent canvas of 
the video relative to the screen):
http://imageshack.us/photo/my-images/515/device20120323001322.png/

Can anyone help me with this issue so my WebView can display videos 
correctly?  I'm not opposed to setting static sizes and locations if 
dynamic sizing is not possible, although I would love to be able to use the 
standard Android sizing standards, I just want the videos to play in their 
correct locations.

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

Re: [android-developers] issue in upload

2012-03-20 Thread Rocky
thanks for reply,

yes i published it, now it showing. thanks
plz looked it once now it is in beta version.

https://play.google.com/store/apps/details?id=com.sst.device&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5zc3QuZGV2aWNlIl0
.

Apps name - I missed my mobile phone at home.


On Tue, Mar 20, 2012 at 3:16 PM, David Olsson  wrote:

> Are you sure you published it or just saved it?
>
> On Tue, Mar 20, 2012 at 9:59 AM, Rocky  wrote:
>
>> Hi,
>>
>> I uploaded my apps to market yesterday but still it is not showing in
>> market, is it any rules or delay time.
>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Rakesh Kumar Jha
>> Android Developer, Trainer and Mentor
>> Bangalore
>> Skype - rkjhaw
>> (O) +918050753516
>> (R) +919886336619
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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




-- 
Thanks & Regards

Rakesh Kumar Jha
Android Developer, Trainer and Mentor
Bangalore
Skype - rkjhaw
(O) +918050753516
(R) +919886336619

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

Re: [android-developers] issue in upload

2012-03-20 Thread David Olsson
Are you sure you published it or just saved it?

On Tue, Mar 20, 2012 at 9:59 AM, Rocky  wrote:

> Hi,
>
> I uploaded my apps to market yesterday but still it is not showing in
> market, is it any rules or delay time.
>
>
> --
> Thanks & Regards
>
> Rakesh Kumar Jha
> Android Developer, Trainer and Mentor
> Bangalore
> Skype - rkjhaw
> (O) +918050753516
> (R) +919886336619
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] issue in upload

2012-03-20 Thread Rocky
Hi,

I uploaded my apps to market yesterday but still it is not showing in
market, is it any rules or delay time.


-- 
Thanks & Regards

Rakesh Kumar Jha
Android Developer, Trainer and Mentor
Bangalore
Skype - rkjhaw
(O) +918050753516
(R) +919886336619

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

Re: [android-developers] Issue with OnClick

2012-02-25 Thread YuviDroid
If you use a Dialog (e.g. AlertDialog) then you need to use
DialogInterface.OnClickListener (
http://developer.android.com/reference/android/content/DialogInterface.OnClickListener.html
).
If you use a View then it's View.OnClickListener (
http://developer.android.com/reference/android/view/View.OnClickListener.html
 ).

Check also your imports and look if you see some odd/wrong ones. (sometimes
it happens that you import the wrong class...it happened a lot to me with
the various LayoutParams classes).


On Sat, Feb 25, 2012 at 10:20 AM, Michal Šanda  wrote:

> Hello, I am trying to do this
>
>  public void onClick(View v) {
>// TODO Auto-generated method stub
>if(v==findViewById(R.id.Button1)){
>
>Intent intent = new Intent(this,OknoActivity.class);
>
>startActivityForResult(intent,ACTIVITY_INTENT_OKNOACTIVITY);
>}
>
> but eclipse says this error
>
> Description ResourcePathLocationType
> The type Android_testActivity must implement the inherited abstract
> method DialogInterface.OnClickListener.onClick(DialogInterface, int)
> Android_testActivity.java   /Android_test/src/cz/msanda/test
>  line 13
> Java Problem
>
> Eclipse offers fix, but its this
> public void onClick(DialogInterface arg0, int arg1) {
> ..
> ..
> ..
> ---
>
> What's wrong? I read a lot of examples but I don't see any problem
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
YuviDroid
Check out Launch-X  (a widget
to quickly access your favorite apps and contacts!)
http://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] Issue with OnClick

2012-02-25 Thread Michal Šanda
Hello, I am trying to do this

 public void onClick(View v) {
// TODO Auto-generated method stub
if(v==findViewById(R.id.Button1)){

Intent intent = new Intent(this,OknoActivity.class);

startActivityForResult(intent,ACTIVITY_INTENT_OKNOACTIVITY);
}

but eclipse says this error

Description ResourcePathLocationType
The type Android_testActivity must implement the inherited abstract
method DialogInterface.OnClickListener.onClick(DialogInterface, int)
Android_testActivity.java   /Android_test/src/cz/msanda/testline 13
Java Problem

Eclipse offers fix, but its this
public void onClick(DialogInterface arg0, int arg1) {
..
..
..
---

What's wrong? I read a lot of examples but I don't see any problem

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


Re: [android-developers] Issue with adding multiple menu option.

2012-02-03 Thread TreKing
On Thu, Feb 2, 2012 at 12:16 AM, Damodaran  wrote:

> i am trying to use option menus for my application. when i add 4
> menuitem it shown in double row, but i need in one row (single row)
>

Only add 3 items.

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

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

[android-developers] Issue with adding multiple menu option.

2012-02-03 Thread Damodaran
i am trying to use option menus for my application. when i add 4
menuitem it shown in double row, but i need in one row (single row) .
pls suggest 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] Issue in playing m3u8 file in android 3.2

2012-01-26 Thread titus t
I am trying to play apple test stream video(.m3u8) in android

this is the link: 
http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8

But i am not able to play in android 3.2.

This is the code i have used to play the video

 void playvideo(String url)
{
  MediaController mc = new MediaController(this);
  mc.setMediaPlayer(videoview);
  videoview.setMediaController(mc);
 videoview.setVideoURI(Uri.parse("http://devimages.apple.com/iphone/
samples/bipbop/gear1/prog_index.m3u8"));
  videoview.requestFocus();
  videoview.start();

 }
Please suggest me the way to play m3u8 file in different android
versions

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


Re: [android-developers] ISSUE

2012-01-13 Thread James Black
Can you have them on a website and retrieve them to place on the SD card?
On Jan 13, 2012 3:05 AM, "arun kumar"  wrote:

> Hi
>
> I am developing an application for android phone, In this I need to use at
> least 100 audio file which can be played for some respective texts, Now my
> question is which is the optimized way to do this.. One solution is putting
> all the audio files in the resource folder and referring from there, this
> will never be a feasible solution as the application size will increase. Is
> there any way to convert the audio file into some format and dump into the
> SQLite database and retrieve flexibly.
>
> --
> WITH REGARDS
> ARUN KUMAR P D
> +91-9663471079
>
>
>
>
> --
> WITH REGARDS
> ARUN KUMAR P D
> +91-9663471079
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] ISSUE

2012-01-13 Thread arun kumar
Hi

I am developing an application for android phone, In this I need to use at
least 100 audio file which can be played for some respective texts, Now my
question is which is the optimized way to do this.. One solution is putting
all the audio files in the resource folder and referring from there, this
will never be a feasible solution as the application size will increase. Is
there any way to convert the audio file into some format and dump into the
SQLite database and retrieve flexibly.

-- 
WITH REGARDS
ARUN KUMAR P D
+91-9663471079




-- 
WITH REGARDS
ARUN KUMAR P D
+91-9663471079

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

[android-developers] Issue running eclipse with android sdk

2012-01-11 Thread Zafar Khan
Hi,

I have installed eclipse+android  on my windows.My eclipse is
installed at D:\eclipse and android sdk at D:\android-sdk-platform. To
install I followed this video tutorial on youtube
http://www.youtube.com/watch?v=xtsyrKdPZVw&feature=related . When I
run eclipse I get this error since  I installed i.e. yesterday and it
is not working. Here is the error:

[2012-01-10 20:52:09 - ddms] Checking 'D:\android-sdk-windows\platform-
tools\adb.exe version'
[2012-01-10 20:52:12 - adb] Failed to parse the output of 'adb
version'

To solve this problem I followed below links but none work for me.

http://stackoverflow.com/questions/8415034/failed-to-parse-the-output-of-adb-version
http://forum.xda-developers.com/showthread.php?t=1001858
http://stackoverflow.com/questions/2260118/failed-to-parse-the-output-of-adb-version
http://stackoverflow.com/questions/2994062/eclipse-adb-error-message-in-vista-failed-to-parse-the-output-of-adb-version

I even asked this same question on stackoverflow. Here is the link for
this post
http://stackoverflow.com/questions/8795377/failed-to-parse-the-output-of-adb-version-with-android-sdk-and-eclipse

I really need help please help.

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


[android-developers] Issue with my download

2011-12-27 Thread Chris Kehl
My device gives me an error "Download failed, A memory card is needed
for file download, please insert one and try again.

Here is my code.  I'm a little new to this, is there a line needed to
specify the download path?


package com.HelloWebView;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.webkit.WebView;



public class HelloWebView extends Activity {

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

Uri uri = Uri.parse("http://usacac.army.mil/cac2/WOCC/repository/
2011_Welcome_Letter.pdf");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);


}
}

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


Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-24 Thread John Goche
Thank you all for your replies, they were really helpful.
I think I am going to launch an intent just before calling
setContentView() the first time the application starts up
followed by finish(), and call setContentView() all other
times.

Regards,

John Goche

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

Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Miguel Morales
Oh yes that's right.  You can simply have a splash screen launch activity
and have your logic there.  Or still have your own application subclass and
have your launch logic in the application onCreate.  Mostly a matter of
taste on how you do it though.

2011/12/23 Kostya Vasilyev 

> The application object is not an entry point into an Android package.
> There is no UI for the user to launch the application object.
>
> Activities is what users launch, and is that what they see in the launcher.
> 24.12.2011 3:49 пользователь "Miguel Morales" 
> написал:
>
> I haven't done this myself but I *think* you dont have to set a default
>> activity.
>> You might then be able to subclass the Application class and override
>> onStart() and launch an intent there.
>> Again, not even sure if this is possible but might be a bit cleaner.
>>
>> 2011/12/23 Kostya Vasilyev 
>>
>>> Set configuration activity as the launcher entry point in the manifest,
>>> check your flags, start the main activity, call finish. Do it all inside
>>> onCreate before setContentView.
>>>
>>> Method 2, exactly opposite: set main activity as the entry point, check
>>> flags, call startActivityForResult for the config activity.
>>>  24.12.2011 3:31 пользователь "John Goche" 
>>> написал:
>>>
>>>
 Hello,

 I am having the following issue. In my application I need to display
 activity A the first time the application is launched so that the user
 can configure some parameters on a form. When the user completes
 the form a preference is set so that every other time the user starts
 the application the application starts directly with activity B.

 Now I am having some trouble coding this behavior because the
 android manifest file does not seem to allow for this conditional
 launching. It is always the same activity which seems must be
 launched first.

 How can I solve this issue? I hope I have explained the problem
 clearly. Any help would be sincerely appreciated.

 Thanks,

 John Goche

 --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>>
>>
>> --
>> ~ Jeremiah:9:23-24
>> Android 2D MMORPG: http://solrpg.com/,
>> http://www.youtube.com/user/revoltingx
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Kostya Vasilyev
The application object is not an entry point into an Android package. There
is no UI for the user to launch the application object.

Activities is what users launch, and is that what they see in the launcher.
24.12.2011 3:49 пользователь "Miguel Morales" 
написал:

> I haven't done this myself but I *think* you dont have to set a default
> activity.
> You might then be able to subclass the Application class and override
> onStart() and launch an intent there.
> Again, not even sure if this is possible but might be a bit cleaner.
>
> 2011/12/23 Kostya Vasilyev 
>
>> Set configuration activity as the launcher entry point in the manifest,
>> check your flags, start the main activity, call finish. Do it all inside
>> onCreate before setContentView.
>>
>> Method 2, exactly opposite: set main activity as the entry point, check
>> flags, call startActivityForResult for the config activity.
>>  24.12.2011 3:31 пользователь "John Goche" 
>> написал:
>>
>>
>>> Hello,
>>>
>>> I am having the following issue. In my application I need to display
>>> activity A the first time the application is launched so that the user
>>> can configure some parameters on a form. When the user completes
>>> the form a preference is set so that every other time the user starts
>>> the application the application starts directly with activity B.
>>>
>>> Now I am having some trouble coding this behavior because the
>>> android manifest file does not seem to allow for this conditional
>>> launching. It is always the same activity which seems must be
>>> launched first.
>>>
>>> How can I solve this issue? I hope I have explained the problem
>>> clearly. Any help would be sincerely appreciated.
>>>
>>> Thanks,
>>>
>>> John Goche
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> ~ Jeremiah:9:23-24
> Android 2D MMORPG: http://solrpg.com/,
> http://www.youtube.com/user/revoltingx
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Miguel Morales
I haven't done this myself but I *think* you dont have to set a default
activity.
You might then be able to subclass the Application class and override
onStart() and launch an intent there.
Again, not even sure if this is possible but might be a bit cleaner.

2011/12/23 Kostya Vasilyev 

> Set configuration activity as the launcher entry point in the manifest,
> check your flags, start the main activity, call finish. Do it all inside
> onCreate before setContentView.
>
> Method 2, exactly opposite: set main activity as the entry point, check
> flags, call startActivityForResult for the config activity.
>  24.12.2011 3:31 пользователь "John Goche" 
> написал:
>
>
>> Hello,
>>
>> I am having the following issue. In my application I need to display
>> activity A the first time the application is launched so that the user
>> can configure some parameters on a form. When the user completes
>> the form a preference is set so that every other time the user starts
>> the application the application starts directly with activity B.
>>
>> Now I am having some trouble coding this behavior because the
>> android manifest file does not seem to allow for this conditional
>> launching. It is always the same activity which seems must be
>> launched first.
>>
>> How can I solve this issue? I hope I have explained the problem
>> clearly. Any help would be sincerely appreciated.
>>
>> Thanks,
>>
>> John Goche
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Kostya Vasilyev
Set configuration activity as the launcher entry point in the manifest,
check your flags, start the main activity, call finish. Do it all inside
onCreate before setContentView.

Method 2, exactly opposite: set main activity as the entry point, check
flags, call startActivityForResult for the config activity.
 24.12.2011 3:31 пользователь "John Goche" 
написал:

>
> Hello,
>
> I am having the following issue. In my application I need to display
> activity A the first time the application is launched so that the user
> can configure some parameters on a form. When the user completes
> the form a preference is set so that every other time the user starts
> the application the application starts directly with activity B.
>
> Now I am having some trouble coding this behavior because the
> android manifest file does not seem to allow for this conditional
> launching. It is always the same activity which seems must be
> launched first.
>
> How can I solve this issue? I hope I have explained the problem
> clearly. Any help would be sincerely appreciated.
>
> Thanks,
>
> John Goche
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread Mark Murphy
On Fri, Dec 23, 2011 at 6:31 PM, John Goche  wrote:
> I am having the following issue. In my application I need to display
> activity A the first time the application is launched so that the user
> can configure some parameters on a form. When the user completes
> the form a preference is set so that every other time the user starts
> the application the application starts directly with activity B.
>
> Now I am having some trouble coding this behavior because the
> android manifest file does not seem to allow for this conditional
> launching. It is always the same activity which seems must be
> launched first.
>
> How can I solve this issue?

In onCreate() of Activity A, before you call setContentView(), make
the determination of whether A really needs to be shown. If not, call
startActivity() for B, followed by finish() to get rid of your
unnecessary A.

Or, create Activity C that is your actual launcher entry point, with
android:theme="@android:style/Theme.NoDisplay" in its 
element. It makes the choice of whether to call startActivity() on A
or B to route the user to the right spot, and then calls finish().

Or, have the launcher be Activity B. B, in onCreate(), before you call
setContentView(), see if you need the user to see A instead. If so,
call startActivity() on A, or possibly even startActivityForResult().

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

Android 4.0 Programming Books: http://commonsware.com/books

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


[android-developers] issue with conditionally choosing first activity to be displayed

2011-12-23 Thread John Goche
Hello,

I am having the following issue. In my application I need to display
activity A the first time the application is launched so that the user
can configure some parameters on a form. When the user completes
the form a preference is set so that every other time the user starts
the application the application starts directly with activity B.

Now I am having some trouble coding this behavior because the
android manifest file does not seem to allow for this conditional
launching. It is always the same activity which seems must be
launched first.

How can I solve this issue? I hope I have explained the problem
clearly. Any help would be sincerely appreciated.

Thanks,

John Goche

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

Re: [android-developers] Issue with SDK installation

2011-12-22 Thread Jagadeesh Koganti
Sorry I meant version 16. Its the latest version available in Andriod
website. Let me know if you have any solution for this issue.

On Wed, Dec 21, 2011 at 10:08 PM, Michael Leung wrote:

>
> 1.6 is too old, please try to install the latest one.
>  On Thu, Dec 22, 2011 at 5:48 AM, Jagadeesh Koganti <
> jagadeesh.koga...@gmail.com> wrote:
>
>>  Hello,
>>
>> I have observed that this is a known issue. But still trying to resolve
>> it. I have successfully installed Andriod SDK 1.6 and also plugged in the
>> required software ito my compatible eclipse.
>> But still I am getting an issue saying " SDK Platform Tools component is
>> missing. Please use the SDK Manager to install it".
>>
>> I have seen several forums and followed all the things, but could not
>> succeed. Please could somebody let me know the right procedure to get this
>> error resolved.
>> This is blocking me to start any development activity.
>>
>> --
>>
>> Regards,
>> Jagadeesh
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Regards,
> Michael Leung
> http://www.itblogs.info - My IT Blog
> http://diary.skynovel.info - My Blog
> http://www.michaelleung.info - My Homepage
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 

Regards,
Jagadeesh

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

Re: [android-developers] Issue with SDK installation

2011-12-21 Thread Michael Leung
1.6 is too old, please try to install the latest one.
On Thu, Dec 22, 2011 at 5:48 AM, Jagadeesh Koganti <
jagadeesh.koga...@gmail.com> wrote:

> Hello,
>
> I have observed that this is a known issue. But still trying to resolve
> it. I have successfully installed Andriod SDK 1.6 and also plugged in the
> required software ito my compatible eclipse.
> But still I am getting an issue saying " SDK Platform Tools component is
> missing. Please use the SDK Manager to install it".
>
> I have seen several forums and followed all the things, but could not
> succeed. Please could somebody let me know the right procedure to get this
> error resolved.
> This is blocking me to start any development activity.
>
> --
>
> Regards,
> Jagadeesh
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Regards,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

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

[android-developers] Issue with SDK installation

2011-12-21 Thread Jagadeesh Koganti
Hello,

I have observed that this is a known issue. But still trying to resolve it.
I have successfully installed Andriod SDK 1.6 and also plugged in the
required software ito my compatible eclipse.
But still I am getting an issue saying " SDK Platform Tools component is
missing. Please use the SDK Manager to install it".

I have seen several forums and followed all the things, but could not
succeed. Please could somebody let me know the right procedure to get this
error resolved.
This is blocking me to start any development activity.

-- 

Regards,
Jagadeesh

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

[android-developers] Issue with InCallScreen updation after "Add Call"

2011-12-14 Thread channa kad
Hi

I see the following issue
1) Make a MO call
2) After it becomes active, do "Add Call"
3) DialPad opens up, enter the number & press Dial

Expected result: InCallScreen should be shown with both the calls.
Actual Result: InCallScreen shows up with 1st call details.

If we go out of InCallScreen & then launch the phone again, InCallScreen is
updated with both the calls.

Is this a known issue on 4.0 SDK release?

-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] issue with table row not showing up in table layout

2011-11-29 Thread TreKing
On Sun, Nov 27, 2011 at 9:05 AM, therekz  wrote:

> Any suggestions?


Few people are going to look through and debug your code. Fewer people
would be able to tell you what's wrong simply from looking at it.

Comment out all of your code and add back bit by bit of the core
functionality that should do what you expect. If it doesn't, debug it.

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

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

[android-developers] issue with table row not showing up in table layout

2011-11-28 Thread therekz
I have the following code:

HashMap tip = venue.tips.get(j);
TableRow tr = new TableRow(this);
tr.setLayoutParams(new TableRow.LayoutParams

(TableRow.LayoutParams.WRAP_CONTENT,TableRow.LayoutParams.WRAP_CONTENT));

LinearLayout ll = new LinearLayout(this);
ll.setLayoutParams(new
LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT));

TextView tips = new TextView(this);
tips.setText(tip.get("text"));
Log.v("TIPS TEXT", tip.get("text"));
tips.setLayoutParams(new LayoutParams(
 LayoutParams.FILL_PARENT,
 LayoutParams.WRAP_CONTENT));

ImageView avatar = new ImageView(this);

avatar.setImageBitmap(getBitmapFromURL(tip.get("photo")));
Log.v("PHOTO URL", tip.get("photo"));
avatar.setLayoutParams(new 
LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT));

ll.addView(tips);
ll.addView(avatar);

tr.addView(ll);

View v = new View(this);
v.setLayoutParams(new
TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, 1));
v.setBackgroundColor(Color.rgb(51, 51, 51));

tipsTable.addView(tr,new TableLayout.LayoutParams(
  LayoutParams.WRAP_CONTENT,
  LayoutParams.WRAP_CONTENT));
tipsTable.addView(v);


I am not sure why I can't see any TableRow being added to the
TableLayout. Any suggestions?

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


[android-developers] Issue with taking photo

2011-11-24 Thread limtc
Hi,

I have an issue with photo taking in Android. The code below works for
all the phones I have, but when I am testing this with a Honeycomb
tablet (HTC Jetstream, in portrait mode), the picture will be taken in
landscape mode, then when it returns to the app, wipe out the view (as
if onCreate is being called again)!

How should I prevent this to happen? The code below is pretty standard
photo taking code. My guess is that the orientation changed is causing
the issue (even though the app is set to Portrait only). Thanks for
any help!

--
Taking photo:

  intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
  File file = new File(Environment.getExternalStorageDirectory(),
"camera.jpg");
  intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file));
  startActivityForResult(intent, R.id.camera);

Set picture in view:

  if (result == Activity.RESULT_OK) {
File file = new File(Environment.getExternalStorageDirectory(),
"camera.jpg");
view.setPicture(BitmapFactory.decodeFile(file.toString()));
file.delete();
  }
  else
Toast.makeText(this, R.string.error, Toast.LENGTH_SHORT).show();

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


[android-developers] Issue 9656: Library projects don't support custom XML attributes for custom classes

2011-11-23 Thread gil eichenbaum
>From what i have read about new ADT R.15, I hoped this issue is solved
by now, but when I tried compiling my library project and the projects
that use it, I got same error saying "error: No resource identifier
found for
attribute."

I was using a sulotion offered here:
http://devmaze.wordpress.com/2011/05/22/the-case-of-android-libraries-and-custom-xml-attributes-part-2/

but it requieres the aapt.exe to be replaced, which I belive would not
be good for this version.

Is there any good sulotion for this ADT version ?

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


[android-developers] Issue while using android.support.v4.jar compatibility library

2011-11-02 Thread pop
I am trying to modify an app (core app) using the android provided
library: android.support.v4.jar. Have included the jar and set the
build path. Still while I compile it throws me the above error. Seems
to be like the app uses proguard to obfuscate and It actually excludes
some of the library classes while building.
Please help.

Logs:
Reading library jar [/home/m/GingerBread/android/out/target/common/obj/
JAVA_LIBRARIES/framework_intermediates/classes.jar] Warning:
android.support.v4.os.ParcelableCompatCreatorHoneycombMR2: can't find
superclass or interface android.os.Parcelable$ClassLoaderCreator
Warning: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2:
can't find referenced class android.os.Parcelable$ClassLoaderCreator
Warning: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2:
can't find referenced class android.os.Parcelable$ClassLoaderCreator
Warning: android.support.v4.app.ActivityCompatHoneycomb: can't find
referenced method 'void invalidateOptionsMenu()' in class
android.app.Activity Warning:
android.support.v4.app.ActivityCompatHoneycomb: can't find referenced
method 'void
dump(java.lang.String,java.io.FileDescriptor,java.io.PrintWriter,java.lang.String[])'
in class android.app.Activity Reading library jar [/home/m/GingerBread/
android/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/
classes.jar] Reading library jar [/home/m/GingerBread/android/out/
target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar]
Warning: android.support.v4.view.MenuCompatHoneycomb: can't find
referenced method 'void setShowAsAction(int)' in class
android.view.MenuItem Reading library jar [/home/m/GingerBread/android/
out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/
classes.jar] Note: com.android.common.SharedPreferencesCompat accesses
a method 'apply()' dynamically Maybe this is library method
'android.app.ContextImpl$SharedPreferencesImpl$EditorImpl { void
apply(); }' Maybe this is library method
'android.content.SharedPreferences$Editor { void apply(); }' Note: the
configuration refers to the unknown class
'com.android.email.mail.MessageRetrievalListener' Note: there were 1
references to unknown classes. You should check your configuration for
typos. Note: there were 1 accesses to class members by means of
introspection. You should consider explicitly keeping the mentioned
class members (using '-keep' or '-keepclassmembers'). Warning: there
were 3 unresolved references to classes or interfaces. You may need to
specify additional library jars (using '-libraryjars'), or perhaps the
'-dontskipnonpubliclibraryclasses' option. Warning: there were 3
unresolved references to program class members. Your input classes
appear to be inconsistent. You may need to recompile them and try
again. Alternatively, you may have to specify the options '-
dontskipnonpubliclibraryclasses' and/or '-
dontskipnonpubliclibraryclassmembers'. Error: Please correct the above
warnings first. make: * [out/target/common/obj/APPS/
Email_intermediates/proguard.classes.jar] Error 1

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


[android-developers] Issue with deleting cookies - Webview

2011-10-27 Thread Jovish P
In our application, we are embeding a webview inside an activity  and
removing all
cookies. In the android devlopers console crash report , we are
getting following exception for the users and we are not able to reporduce
this issue.
We are not able to figure out the issue.  Attaching the code below.

@Override
protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);
this.getWindow().requestFeature(Window.FEATURE_PROGRESS);
String url = generateOpenIdUrl();
webview = new WebView(Webview.this);
setContentView(webview);

WebSettings WebSettings = webview.getSettings();
WebSettings.setJavaScriptEnabled(true);
webview.setWebChromeClient(new WebChromeClient() {
public void onProgressChanged(WebView view, int progress)
{
activity.setTitle("Loading...");
activity.setProgress(progress * 100);
if(progress == 100)
activity.setTitle("Login with social networks");
}
});
webview.setWebViewClient(new HelloWebViewClient(Webview.this));
CookieSyncManager.createInstance(MySocialNetworks.this);
android.webkit.CookieManager.getInstance().removeAllCookie();
webview.loadUrl(url);


}



Exception getting for the users.

java.lang.IllegalStateException: CookieSyncManager::createInstance() needs
to be called before CookieSyncManager::getInstance()
at android.webkit.CookieSyncManager.getInstance(CookieSyncManager.java:81)
at android.webkit.CookieManager$2.run(CookieManager.java:532)
at java.lang.Thread.run(Thread.java:1019)

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

[android-developers] Issue with selecting tabs

2011-10-21 Thread archerspara...@sixrq.com
I have a Tabbed application, single activity. I have developed and
tested this fine with an HTC Desire and the emulator, all running API
8. Everything works fine, however now I have published the app to the
market I have tried other devices and they are not working. I am
unable to use the touch screen to select the second tab.

Has anyone come across this and can give me some pointers to how to
fix it.  It is the last issue that is stopping me from publishing the
first version of my app.

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] Issue regarding SMS message failed alert dialog.

2011-10-12 Thread Eric W.
Hello,

This is my first time posting so please go easy on me if I break any
rules. Thank you.

What I am trying to solve is an alert dialog that comes up when a SMS
message fails to be sent. The exact dialog is "Message failed, would
you like to retry?" So far I am unable to stop this message from
happening and it has become quite a problem to the program I am
developing as enough dialogs popping up locks up the phone. I am
trying to disable this message from happening but am unsure where it
comes from. I am using rooted HTC Incredible 2s running 2.3.3. I have
spent the past three weeks trying to find a solution to this problem
to no avail. I've scoured the web and tried all of the following and
more-

1. Adjusted settings within the stock messaging app.
2. Removed the stock messaging app entirely.
3. Installed other messaging apps including HandCent and adjusted its
settings.
4. Removed other system apps that I thought may be the problem.

None of these stopped the dialog from popping up. I have no idea if
this is from an app or from the system itself. Either way I need to
find it and disable it.

Any ideas? Thank you in advance for any and all answers.

Eric

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