[android-developers] Android Studio Firebase Plugin-Login issue

2017-08-17 Thread Suhayl SH
While connecting to Firebase using the studio plugin, I logged into a 
different firebase account.
Everytime, I try adding a Firebase component to my app, the connection 
fails as it tries to find the firebase project in the account I incorrectly 
logged in. 
Is there a way to logout and relogin to Firebase from the Android Studio 
plugin?

-- 
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/3d8474dc--47cb-b561-3fed156e9235%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Urgent Three Positions::: Pega LSA Consultant::::Java developer with DevOps:::Workday HRMS with Infosys

2017-02-07 Thread B SH
*Hello Naseer,*

*For Workday position - *

*Is this position is still open. We do have consultant with similar 
experience.*Best Regards,
Harish Bevara
Director, Client Engagement
*ArKrit LLC* 
1671 Dell Ave, Campbell, CA - 95008| M: +1 (510)766 - 9075 
<(510)%20766-9075> | har...@arkrit.com | www.arkrit.com | skype: 
pryncbevara | LinkedIn 

On Tuesday, December 13, 2016 at 12:06:59 PM UTC-8, SALMA BHAT wrote:
>
> Hi Partners,
>
> Please connect with me if you have 90% matching  at 
>
> *Naseer Bhat*
>
> Desk : 609-853-0818 Ext: 2184
>
> naseer...@nityo.com 
>
>
>
>
> Position: Workday HCM
>
> Work Location & Address* 12301 Research Blvd, Austin, TX 78759, USA
>
> Contract duration (in months)* 6 months (To start with. Will be extended 
> further)
>
> Target Start Date* 19 Dec 2016
>
>  
>
>  
>
> Job Details:
>
>  
>
> Must Have Skills (Top 3 technical skills only)*
>
> 1. Workday
>
> 2. HRMS
>
> 3. Testing
>
>  
>
> Nice to have skills (Top 2 only)
>
> 1. Automation
>
> 2.Other ERP tools
>
>  
>
> Desired years of experience* : 5+
>
>  
>
> Education/ Certifications (Required) : BE
>
>  
>
> Top 3 responsibilities you would expect the subcon to shoulder and 
> execute*:
>
> 1. Functional Requirement Analysis
>
> 2. Testing and Defect Management
>
> 3. Co-ordination with stakeholders
>
> _
>
>  
>
> Role: Pega LSA Consultant
>
> Location: Phoenix, AZ
>
> Duration: Long Term
>
> Interview: Phone/Skype
>
>  
>
> Job Description:
>
> Must Have Skills (Top 2 technical skills only)
> 1.PEGA 7 CSSA
> 2.Pega Scrum methodology
>
> Nice to have skills (Top 2 only)
> 1.
> Pega DCO
>
> Desired years of experience : > 5 years
>
>
> Top 3 responsibilities you would expect the subcon to shoulder and execute:
> 1.Lead the Development team during Inception, Elaboration, development 
> phases for Design, Development, and Technical support.
> 2.Code review of both agile teams
> 3.Guidance to the team on any technical issues
> 4.Support deployments during FPR
> 5.Support Pega Architect in defining Technical Architecture
> 6.Support during Go Live and deployment activities
>
>  
>
> Position: Java developer
>
> Location :  Minneapolis ,MN
>
> Duration: Log term
>
>  
>
> Must have : Java 8, Spring, Rabbit MQ, MongoDB, Elastic
>
>  
>
> Good to have : Kafka, Restful API and SQL
>
>  
>
>  
>
>
>

-- 
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/f8b32fbd-ffad-488a-97eb-53e9cc3fef81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Urgent Need: Workday Functional Consultant @ Pleasanton, CA | Contract Position

2017-02-07 Thread B SH
Hello *Ateeq,*


*Is this position is still open. We do have consultant with similar 
expereince.*Best Regards,
Harish Bevara
Director, Client Engagement
*ArKrit LLC* 
1671 Dell Ave, Campbell, CA - 95008| M: +1 (510)766 - 9075 
<(510)%20766-9075> | har...@arkrit.com | www.arkrit.com | skype: 
pryncbevara | LinkedIn 

On Monday, December 5, 2016 at 12:29:10 PM UTC-8, Ateeq Rehman wrote:
>
> *Hi Associate,*
>
> Greetings of the day !
>
> This is Ateeq, from Diverse Lynx.
>
>  
>
> *Please share resume for Workday Functional Consultant at 
> **ateeq@diverselynx.com 
> *
>
>
> *Job Description*
>
>  
>
> *Role: Workday Functional Consultant*
>
> *Location: Pleasanton, CA*
>
> *Hiring: Contract*
>
>
> *Job Details:*
>
>  
>
> · *5+ Years’ experience as Workday Functional consultant*
>
> · Suggest and design product configuration approaches.
>
> · Convert data from source systems into Workday.
>
> · Configure product to meet business requirements and design 
> specifications.
>
> · Test, deliver and support configured product.
>
> · Facilitate knowledge transfer and educate clients on operating 
> a SaaS solution.
>
> · Document requirements, business processes, application 
> configurations, testing plans and other artifacts to ensure shared 
> understanding and facilitate knowledge transfer.
>
> · Track issues and risks, communicate status and escalate 
> concerns to project management.
>
> · Help shape Aggressor’s future by getting involved in 
> recruiting, team building, methodology improvement, and developing internal 
> tools.
>
>  
>
>  
>
> *Qualifications:*
>
>  
>
> · Workday Core Configuration experienced
>
> · Workday Comp Configuration experienced
>
> · Workday Security experienced
>
> · Workday Reporting experienced
>
> · Workday – SaaS release management & Testing experienced
>
>  
>
>  
>
>  
>
> *Thanks & Regards*
>
> *Ateeq Rehman*
>
> *Diverse Lynx LLC|300 Alexander Park|Suite#200|Princeton, NJ 08540*
>
> *Phone No: 732-452-1006 EXT 215*
>
> *Email: **ateeq.reh...@diverselynx.com* * || Hangout: 
> ateeq.staffing*
>
>  
>
>  
>

-- 
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/dbf97f75-805c-46cd-b3d0-ac959882b409%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Required: Workday Integration/Security Analyst at Tempe, AZ (Local And Face to Face).

2017-02-07 Thread B SH
Hi,

Is this position still open.

Harish 
ArKrit llc
510.766.9075
har...@arkrit.com

On Tuesday, January 31, 2017 at 7:23:07 AM UTC-8, Praveen Tiwari wrote:
>
> Hi,
>
> I have an urgent requirement mentioned below. If you find yourself 
> comfortable with the requirement please reply back with your updated resume 
> and I will get back to you or I would really appreciate if you can give me 
> a call back at my contact number.
>
>  
>
> *Position: **Workday Integration/Security Analyst*
>
>  *Location: **Tempe, AZ (Local And Face to Face)*
>
>  *Duration: Long Term Contract*
>
>  
>
>  
>
>  
>
> *Required Skills:*
>
> .NET,AID
>
>  
>
> *Job Description: *
>
>  
>
> Needs to know how to integrate WorkDay and PeopleSoft. Needs to know 
> PeopleSoft / Oracle tables and be strong in SQL. Needs to know where the 
> data interaction is between PeopleSoft and Workday. Must know how to work 
> with tables to do this . Must know querying and be strong in SQL. Must know 
> either workday or PeopleSoft. We would rather know the workday side because 
> we have less of that in house. Will create queries and job packages - 
> identity management - salesforce exports. really good database experience 
> will be needed to interact on the DB side. Experience with Oracle People 
> Tools would be nice and working with application engines.
>
>  
>
> *Minimum Qualifications*
>
>  
>
> Bachelor's degree in Information Technology or related field AND four (4) 
> years experience providing information technology services; OR, Eight (8) 
> years experience providing related information technology services.
>
>  
>
> Desired Qualifications*
>
>  
>
>- Experience in Workday Security 
>- Experience in Workday integrations 
>- Experience in Workday Workflow processes: 
>- Experience in identity management 
>- Experience implementing identity management security solutions 
>- Experience in analyzing different solutions and recommending a 
>course of action 
>- Experience in gathering, documenting and implementing requirements 
>of a business process with technology 
>
>  
>
>  
>
>  
>
>  
>
> *Regards,*
>
>  
>
> *Praveen Tiwari*
>
> Senior Technical Recruiter
>
> *Sage Group*
>
> *W:*+ 732-767-0010 x  113 |Direct: 732-851-1637 | *F:* 732-749-8969 | *Email: 
>  
> *ptiw...@sagetl.com  
>
> *Gtalk/yahoo/Skype: praveentj101*
>
> [image: SageLogoC] [image: 
> cid:image004.jpg@01D26D7E.63B9BEF0]
>
> This message contains information that may be privileged or confidential 
> and is the property of Sage Group. It is intended only for the person to 
> whom it is addressed. If you are not the intended recipient, you are not 
> authorized to read, print, retain copy, disseminate, distribute, or use 
> this message or any part thereof. If you receive this message in error, 
> please notify the sender immediately and delete all copies of this message. 
> Sage Group does not accept any liability for virus infected mails.
>
>
>
>

-- 
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/060bbaa7-a1a8-4af4-b206-fc31e2c1721f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] MediaPlayer Prepare failed: status=0x1

2012-04-26 Thread SH
Hi Android geeks.

I am having a practice writing a little audio player. The app connect
to http server to download mp3 files(not audio streaming). After
downloading, it player the file using mediaplayer.  But I tried to
play it, error like title happens. Below is some pieces  of my code:

public class ViewArticleActivity extends Activity {

MediaPlayer mediaPlayer;

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView (R.layout.activity_view_article);

mediaPlayer = new MediaPlayer();
}

protected void downloadAudio(String url){
HttpDownload download = new HttpDownload(this, new
HttpDownloadListener(){
ProgressDialog mProgress;
public void onStart() {
Resources res = getResources();
mProgress = 
ProgressDialog.show(ViewArticleActivity.this,
res.getString(R.string.download),
res.getString(R.string.wait_download));
}

public void onDone(String filePath) {
mProgress.dismiss();

if (filePath==null){
Log.e(TAG, File is null);
return;
}

File f = new File(filePath);
if (!f.exists()){
Log.e(TAG, File not found: + 
filePath);
return;
}

try {

//DB Access code will be here

mediaPlayer.setDataSource(filePath);
mediaPlayer.prepare();  //== Error here

} catch (Exception e) {

Toast.makeText(ViewArticleActivity.this, e.getMessage(),
Toast.LENGTH_LONG).show();
}

}

});

download.download(url, mypackage);
}

}

I can see the audio file in the file explorer, which is normal audio
file. But when I try to play the file, the error occurs. In the API
documentation, setDataSource(String path) accepts file path of a file
as parameter. I don't know what the problem is. Please help me...

Thanks in advance.

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


[android-developers] Re: How can I implement AB repeat function using mediaplayer

2012-04-19 Thread SH
Thanks, Chris.

After researching, I implemented the function by myself using tracking
the repeat mode.

Thread repeatThread = new Thread(){
public void run(){
   while (mediaPlayer!=null) {
if (isRepeatMode() 
mediaPlayer.getCurrentPosition()=toPoint) {
  mediaPlayer.seekTo(fromPoint);
}

//Code delaying 1second here...

   }
}
}

I started this thread just after the mediaplayer prepared in the event
listener. I think that there is better way to do that, but it works
well.

On Apr 20, 5:05 am, Chris Stratton cs07...@gmail.com wrote:
 On Wednesday, April 18, 2012 10:46:21 PM UTC-4, SH wrote:

  Hi all.

  I try to develop an audio player and would like to have A-B repeat
  function. When a user click A button while playing, it memorise
  starting position and clicking B button, it will save ending position.
  So it repeat A to B points until the user clear repeat position.
  It is easy to go back to the starting position B but not easy for
  endping position B because there is not listener to track when it
  arrived to the marked point.
  I look forward to your idea.
  Thanks in advance.

 It's been a couple months since I was working on something similar, but
 your options would likely be something along the lines of either
 piggybacking off of the progress bar updates (if possible) or using a
 thread to poll the position of the player.  When either of those methods
 indicates you are at or past your end point, seek to the desired start
 point again.

 Unfortunately, I'm not aware of a play until interface.

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


[android-developers] How can I implement AB repeat function using mediaplayer

2012-04-18 Thread SH
Hi all.

I try to develop an audio player and would like to have A-B repeat
function. When a user click A button while playing, it memorise
starting position and clicking B button, it will save ending position.
So it repeat A to B points until the user clear repeat position.
It is easy to go back to the starting position B but not easy for
endping position B because there is not listener to track when it
arrived to the marked point.
I look forward to your idea.
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] MediaPlayer speed playback

2012-04-16 Thread SH
Hi all.

I would like to implement audio file player using MediaPlayer. I wanna
have multi-speed plack. I can't find API about multi speed playback.
SoundPool class has that, but I won't use it. Audio players I have
downloaded from the market have multi-speed playback. So I think that
there is some way to support multi-speed playback. Is there any idea I
can refer?

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] Acitivity finish when rotating written in Sencha Touch + Phonegap

2012-02-22 Thread SH
Hi All.

API: Android 2.2
Device: Samsung Galaxy 2

I have been working an app written in native android and I put an
Activity for setting using Sencha Touch 1.1 + Phonegap 1.3. So when I
click a button on a activity , I call startActivityForResult() to run
the setting activity. But, when I rotate my mobile,  the activity
finished suddenly. It happens whenever I rotate the screen. I have
looked in the log, but I can't find any cause. Here is the log:

02-23 09:15:01.420: INFO/OrientationDebug(2720): [pwm] in
MyOrientationListener.onOrientationChanged() rotation=0
mFancyRotationAnimation=0   now call mWindowManager.setRotation()
02-23 09:15:01.420: INFO/OrientationDebug(2720): [wms] in
setRotation() rotation=0 alwaysSendConfiguration=false animFlags=0
02-23 09:15:01.420: INFO/OrientationDebug(2720): [wms] in
setRotation() now call setRotationUnchecked()
02-23 09:15:01.420: INFO/WindowManager(2720): Setting rotation to 0,
animFlags=0
02-23 09:15:01.435: INFO/TvOut-Observer(2720): setTvoutOrientation
rotation =  0
02-23 09:15:01.435: ERROR/TvOut-Observer(2720): TvoutSetOrientation
02-23 09:15:01.435: INFO/ActivityManager(2720): Config changed:
{ scale=1.0 imsi=505/2 loc=en_AU touch=3 keys=1/1/2 nav=1/1 orien=1
layout=34 uiMode=17 seq=23 FlipFont=0}
02-23 09:15:01.590: INFO/WindowOrientationListener(2720): orientation
19.69413 gives new rotation = 0
02-23 09:15:01.600: WARN/WindowManager(2720): Window Window{40889c60
com.cca.ccah/com.cca.ccah.activity.SettingActivity paused=false}
destroyed surface Surface(name=com.cca.ccah/
com.cca.ccah.activity.SettingActivity, identity=-1, mNativeSurface=0),
session Session{40ba8570 uid 10103}
02-23 09:15:01.605: INFO/PhoneGapLog(4776): Found log level DEBUG
02-23 09:15:01.605: INFO/PhoneGapLog(4776): Changing log level to
DEBUG(3)
02-23 09:15:01.615: INFO/webclipboard(4776): clipservice:
android.sec.clipboard.ClipboardExManager@40715068
02-23 09:15:01.670: INFO/OrientationDebug(2720): [pwm] in
updateOrientationListenerLp()
02-23 09:15:01.670: INFO/OrientationDebug(2720): [pwm]
needSensorRunningLp(), return true #4
02-23 09:15:01.670: INFO/WindowManager(2720): Setting rotation to 1,
animFlags=1
02-23 09:15:01.700: INFO/TvOut-Observer(2720): setTvoutOrientation
rotation =  1
02-23 09:15:01.700: ERROR/TvOut-Observer(2720): TvoutSetOrientation
02-23 09:15:01.700: INFO/ActivityManager(2720): Config changed:
{ scale=1.0 imsi=505/2 loc=en_AU touch=3 keys=1/1/2 nav=1/1 orien=2
layout=34 uiMode=17 seq=24 FlipFont=0}
02-23 09:15:01.805: INFO/CCAH(4776): SyncController.start()
02-23 09:15:01.820: INFO/WindowOrientationListener(2720): orientation
= 9.399648 Tilt = 13.489691 -- 0 ,  9 ,  2
02-23 09:15:01.820: INFO/WindowOrientationListener(2720): orientation
= 9.399648 Tilt = 13.489691 -- 0 ,  9 ,  2
02-23 09:15:01.830: INFO/CCAH(4776): SyncController.run()
02-23 09:15:01.830: INFO/CCAH(4776): SyncController.run() not time for
sync, sleep for 48017
02-23 09:15:01.845: INFO/WindowManager(2720):   CREATE SURFACE
Surface(name=com.cca.ccah/com.cca.ccah.mainscreens.Home, identity=90,
mNativeSurface=0) IN SESSION android.view.SurfaceSession@409b9d18:
pid=4776 format=-2 flags=0x0 / Window{40a474c8 com.cca.ccah/
com.cca.ccah.mainscreens.Home paused=false}
02-23 09:15:01.860: INFO/TextToSpeech.java(4776): initTts()
successfully bound to service
02-23 09:15:01.865: INFO/SVOX Pico Engine(4066):
TtsEngine::setLanguage found matching language(eng) but not matching
country(AUS).
02-23 09:15:01.890: INFO/SVOX Pico Engine(4066): loaded en-US
successfully
02-23 09:15:01.900: INFO/SynthProxy(4066): setting speech rate to 100
02-23 09:15:01.990: INFO/WindowManager(2720):   CREATE SURFACE
Surface(name=Toast, identity=91, mNativeSurface=0) IN SESSION
android.view.SurfaceSession@409b9d18: pid=4776 format=-3 flags=0x0 /
Window{40b6e360 Toast paused=false}
02-23 09:15:02.175: INFO/GLThread(2884): onResume tid=13
02-23 09:15:02.205: INFO/Main thread(2884): onResume waiting for !
mPaused.
02-23 09:15:02.205: INFO/GLThread(2884): mPaused is now false tid=13
02-23 09:15:02.210: INFO/WindowManager(2720):   CREATE SURFACE
Surface(name=SurfaceView, identity=92, mNativeSurface=0) IN SESSION
android.view.SurfaceSession@406275e0: pid=2884 format=1 flags=0x0 /
Window{40997180 SurfaceView paused=false}
02-23 09:15:02.215: INFO/GLThread(2884): noticed surfaceView surface
acquired tid=13
02-23 09:15:02.215: WARN/EglHelper(2884): start() tid=13
02-23 09:15:02.215: INFO/(2884): !@Mali Android API Version : 7
[1329948902]
02-23 09:15:02.215: WARN/EglHelper(2884): createContext
com.google.android.gles_jni.EGLContextImpl@4062c188 tid=13
02-23 09:15:02.215: WARN/GLThread(2884): egl createSurface
02-23 09:15:02.215: INFO/Main thread(2884): onWindowResize waiting for
render complete from tid=13
02-23 09:15:02.215: WARN/EglHelper(2884): createSurface()  tid=13
02-23 09:15:02.295: WARN/GLThread(2884): onSurfaceCreated
02-23 09:15:02.295: WARN/GLThread(2884): onSurfaceChanged(800, 442)
02-23 09:15:02.295: ERROR/BatteryService(2720): 

[android-developers] How can I control app selection dialog?

2012-01-12 Thread SH
Hi fellows.

I am a new to Android world and I am researching a lot these days. I
am developing an app for the disabled, so it has text-speech function.
An dialog screen populates let the user select text-speech app
installed when it starts. This annoys the users with less abilities,
even normal persons. So I want to shut down the dialog and set a
specific app default. How it can be done? Please give me any idea or
clue something like that?

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] Event method in XML

2012-01-10 Thread SH
Hi.

I am a new to Android. I have seen many codes which assign click event
listeners to views in Activity at runtime, not in XML. As you know,
you can set click event listeners within XML, but almost sample codes
do it using Java code. Is this wrong way? Does it have any advantage
or disadvantage?
Thank you in advance.

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


[android-developers] How can I test SQLite

2011-12-12 Thread SH
Hi all.

I am working with an Android app using SQLite. I want to see inside of
database and write an unit test to check CRUD works well. But I can't
find the db file the app is using. So please let me know how I can
find the .db file and make a unit test. 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] Problem about passing intent between two activities

2011-12-11 Thread SH
Hi all.

I have an app and fixing errors/bugs. But I have problem when
NewPictureNote.java calls PhotoTaker.java using
startActivityForResult() to take a photo and save. My code uses
callback and put binary data into Intent to return to previous
activity. Here is the code:


//PhotoTaker.java
public class PhotoTaker extends BetterDefaultActivity implements
SurfaceHolder.Callback{

//..

   public void clickHandler(view v){
//.
Intent returningIntent = new Intent();
returningIntent.putExtra(EXTRA_IMAGE_DATA, jpegPictureData);
setResult(RESULT_OK,returningIntent);
finish();
break;
}

}

//NewPictureNote.java
public class NewPictureNote extends BetterDefaultActivity {
//

protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
super.onActivityResult(requestCode, resultCode, data);

try
{
//If we are getting a response from our picture taking 
activity
if(requestCode ==REQUEST_CODE_TAKE_IMAGE)
{
//If it was successful
if(resultCode == Activity.RESULT_OK)
{
//do something
}
else
{
//The user cancelled or an error occured
setResult(Activity.RESULT_CANCELED);
finish();
}
} else {
  //...
}
}
catch (Throwable e) {
  //...
}

}

When I debug code, clickHandler() method in  PhotoTaker.java works
well. It calls till the end of the clickHanlder() but the Activity
won't close and onActivityResult() does not work. Please let me know
what problem is? 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] What event is the best for changing preference

2011-12-07 Thread SH
Hi, all.

I am a beginner at Android programming. I am trying to add preference
screen to the previous app to change wallpaper of the app and another
thing. I am using finish() method to change wallpaper after user set
the preferences. I think this is not the best event to do it. Which is
the best event to do that?

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] MonkeyImage sameAs API issue

2011-08-05 Thread FWF-SH
I downloaded latest android SDK package (android-sdk_r12-windows.zip)
from website, when I used sameAs API in MonkeyImage object to
compare two Android pictures, please refer to below code:

from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice,
MonkeyImage
Pic1=MonkeyRunner.loadImageFromFile(path=./111.png')
Pic2=MonkeyRunner.loadImageFromFile(path='./222.png')
Pic2.sameAs(Pic1, 1.0)

The image comparision always failed and below message reported:

Traceback (most recent call last):
 File stdin, line 1, in module
   at
com.android.monkeyrunner.MonkeyImage.sameAs(MonkeyImage.java:138)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
java.lang.ClassCastException: java.lang.ClassCastException:
org.python.core.PySingleton cannot be cast to
com.android.monkeyrunner.core.IMonkeyImage

I can verify that the PC image files are loaded successfully to
MonkeyImage object Pic1 and Pic2, because I can check it by
writeToFile API.

Who can help solve it? 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