• Gaurav Gulanjkar
  • NEWBIE
  • 55 Points
  • Member since 2011

  • Chatter
    Feed
  • 1
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 32
    Questions
  • 31
    Replies
Does salefsorce dataloader support bulk api 2.0?
I am deploying a controller and a test class to production. I am getting an error while deploying the code as 

line 38, column 57: Constructor not defined: [BulkTaskController.cEngineeringChangeTask].<Constructor>(Required_Task__c)

cEngineeringChangeTask is a wrapper class whoes constructor takes 2 parameters 1) object reference 2) string

                           
I am in a situation where if case is changed to closed, and a picklist field is "ZA", query all the open milestones, if any, close those open milestones. 
Any thoughts on how to achive this. 
I want to restrict an email to be sent when case is still in queue. I have a trigger on email message object. Is there any way to restrict a user. 
Also i have to disable the send Email button on the service console.
Hi All,

I have a requirement where in i have to show a picklist of record types on VF page based on the logged in user.The pick list should only display the case record types that the current user has permission to create cases.When user change the value in the picklist, then change the case record type field and refresh the entire page.Need help on the approach and any sample code reference.    
Hi All,

In my org we have setup emailtocase feature to register the cases.As this feature does no assign contacts to the case if it is not found in contact table.I want to search the email body of the cases email to see if any email address is mentioned in the body of the email and search that email address in the contacts and assign that contact to the case.How should i approach to this.If any sample code available for reference would be great.

I have a before,after trigger on EmailMessage object.I want to avoid using Email Services feature.
 
Hi Guys,

I am trying to do a simple authentication for portal user.I have written a login method and trying to call it from a VF command button.In the debug logs i get a following statement after entering username and password.Its not redirecting to the startUrl mentioned in site.login() call.

09:27:23.073 (73933217)|VF_APEX_CALL|submit|{!login}|PageReference: none

Following is the controller code :

public class MobileSiteLoginController {

public String username {get; set;}
public String password {get; set;}
public User tempUser{get; set;}
public String startUrl{get;set;}

public PageReference login() {
String startUrl = System.currentPageReference().getParameters().get('/MobileAppPage1');  
    System.debug('-----username----'+ username);
    System.debug('-----Password----'+ password);
    System.debug('-----Start URL---'+ startUrl);
    return Site.login(username, password, startUrl);  
}
public MobileSiteLoginController () { }

}

Please let me know if i am doing anything wrong.

Thanks,
Gaurav

Hi,

I am developing a hybrid mobile app using smartstore.I am using the latest Smartstore library 2.01.When i run the application in simulator my app is crashing without displaying any page.Following is the log cat:

02-11 12:42:47.749: I/dalvikvm(346): Could not find method android.app.admin.DevicePolicyManager.getStorageEncryptionStatus, referenced from method com.salesforce.androidsdk.security.Encryptor.init
02-11 12:42:47.749: W/dalvikvm(346): VFY: unable to resolve virtual method 124: Landroid/app/admin/DevicePolicyManager;.getStorageEncryptionStatus ()I
02-11 12:42:47.758: D/dalvikvm(346): VFY: replacing opcode 0x6e at 0x001d
02-11 12:42:47.758: D/dalvikvm(346): VFY: dead code 0x0020-0029 in Lcom/salesforce/androidsdk/security/Encryptor;.init (Landroid/content/Context;)Z
02-11 12:42:47.788: D/HttpAccess:constructor(346): User-Agent string: SalesforceMobileSDK/2.1.0 android mobile/2.3.3 (sdk) myWDApp/1.0 Hybrid
02-11 12:42:47.948: I/SalesforceDroidGapActivity.onCreate(346): onCreate called
02-11 12:42:47.998: D/AndroidRuntime(346): Shutting down VM
02-11 12:42:47.998: W/dalvikvm(346): threadid=1: thread exiting with uncaught exception (group=0x40015560)
02-11 12:42:48.029: E/AndroidRuntime(346): FATAL EXCEPTION: main
02-11 12:42:48.029: E/AndroidRuntime(346): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.verticurl.mywd/com.salesforce.androidsdk.ui.sfhybrid.SalesforceDroidGapActivity}: java.lang.SecurityException: caller uid 10006 lacks any of android.permission.GET_ACCOUNTS
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread.access$1500(ActivityThread.java:117)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.os.Handler.dispatchMessage(Handler.java:99)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.os.Looper.loop(Looper.java:123)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread.main(ActivityThread.java:3683)
02-11 12:42:48.029: E/AndroidRuntime(346):  at java.lang.reflect.Method.invokeNative(Native Method)
02-11 12:42:48.029: E/AndroidRuntime(346):  at java.lang.reflect.Method.invoke(Method.java:507)
02-11 12:42:48.029: E/AndroidRuntime(346):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
02-11 12:42:48.029: E/AndroidRuntime(346):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
02-11 12:42:48.029: E/AndroidRuntime(346):  at dalvik.system.NativeStart.main(Native Method)
02-11 12:42:48.029: E/AndroidRuntime(346): Caused by: java.lang.SecurityException: caller uid 10006 lacks any of android.permission.GET_ACCOUNTS
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.os.Parcel.readException(Parcel.java:1322)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.os.Parcel.readException(Parcel.java:1276)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.accounts.IAccountManager$Stub$Proxy.getAccounts(IAccountManager.java:475)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.accounts.AccountManager.getAccountsByType(AccountManager.java:373)
02-11 12:42:48.029: E/AndroidRuntime(346):  at com.salesforce.androidsdk.rest.ClientManager.getAccount(ClientManager.java:188)
02-11 12:42:48.029: E/AndroidRuntime(346):  at com.salesforce.androidsdk.rest.ClientManager.peekRestClient(ClientManager.java:138)
02-11 12:42:48.029: E/AndroidRuntime(346):  at com.salesforce.androidsdk.ui.sfhybrid.SalesforceDroidGapActivity.onCreate(SalesforceDroidGapActivity.java:118)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
02-11 12:42:48.029: E/AndroidRuntime(346):  ... 11 more

Hi,

 

When i run the app on emulator am able to login...but after that i am get a pop up which says "The application has stopped unexpectedly.Please try again"

 

Following is what the error in logcat:

 

12-10 18:58:48.404: E/Web Console(307): Unsafe JavaScript attempt to access frame with URL https://login.salesforce.com/?ec=302&startURL=%2Fsetup%2Fsecur%2FRemoteAccessAuthorizationPage.apexp%3Fsource%3Dl86Hcy6qEKtWNqzXVErZDlmcRQs0D_HBE55MLVuP3x8t5wXkyHYyrVx2Xb5JoWzyVOJrnTqMMaWy_SfpTOnh113QKOnwn4I.eL0FOFuolqr0GdSmPXhrQgGOVi0XAVAxOckWNgo_h8dvcA_FrOwtAlGCSW6xCX95K1MYf9yjBp_0fTmVWB5Rb6OBcJTe2lo8yzOuM1cLPievfxwevVH6OTP7_GvFtrTLksQwOBEUexAhQNTgBKyrldZMPMNEYjx_xV5OaPgOOw0LTQk2zezPx0a52bOH27wtYGl4Q1R00U1Oel_eex603VstSf6HGnHuVS0kRnblYOFxUsN_AogZJQCNbLqcmS5.YnxJvIrbL6mcSsQh7OYWU7Iy88yo5mo.cAQ_qjZj2iif3ejCeiVb_8mDvLp.OBg8xTwhpBs7zOW8g0Um_8nhSnSReX0p4EJOwFJmYORhd6A%253D%253D%26display%3Dtouch%26sdtd%3D1&display=touch&sdtd=1 from frame with URL https://www.salesforce.com/login-messages/messages.html?r=https%3A%2F%2Flogin.salesforce.com%2Fsetup%2Fsecur%2FRemoteAccessAuthorizationPage.apexp%3Fsource%3Dl86Hcy6qEKtWNqzXVErZDlmcRQs0D_HBE55MLVuP3x8t5wXkyHYyrVx2Xb5JoWzyVOJrnTqMMaWy_SfpTOnh113QKOnwn4I.eL0FOFuolqr0GdSmPXhrQgGOVi0XAVAxOckWNgo_h8dvcA_FrOwtAlGCSW6xCX95K1MYf9yjBp_0fTmVWB5Rb6OBcJTe2lo8yzOuM1cLPievfxwevVH6OTP7_GvFtrTLksQwOBEUexAhQNTgBKyrldZMPMNEYjx_xV5OaPgOOw0LTQk2zezPx0a52bOH27wtYGl4Q1R00U1Oel_eex603VstSf6HGnHuVS0kRnblYOFxUsN_AogZJQCNbLqcmS5.YnxJvIrbL6mcSsQh7OYWU7Iy88yo5mo.cAQ_qjZj2iif3ejCeiVb_8mDvLp.OBg8xTwhpBs7zOW8g0Um_8nhSnSReX0p4EJOwFJmYORhd6A%253D%253D%26display%3Dtouch%26sdtd%3D1&noroundedcorner. Domains, protocols and ports must match.
12-10 18:58:48.404: E/Web Console(307):  at :1
12-10 18:59:35.104: E/AndroidRuntime(307): FATAL EXCEPTION: main
12-10 18:59:35.104: E/AndroidRuntime(307): java.lang.NoSuchMethodError: java.lang.String.isEmpty
12-10 18:59:35.104: E/AndroidRuntime(307):     at com.salesforce.androidsdk.ui.OAuthWebviewHelper$BaseFinishAuthFlowTask.onPostExecute(OAuthWebviewHelper.java:378)
12-10 18:59:35.104: E/AndroidRuntime(307):     at com.salesforce.androidsdk.ui.OAuthWebviewHelper$BaseFinishAuthFlowTask.onPostExecute(OAuthWebviewHelper.java:1)
12-10 18:59:35.104: E/AndroidRuntime(307):     at android.os.AsyncTask.finish(AsyncTask.java:417)
12-10 18:59:35.104: E/AndroidRuntime(307):     at android.os.AsyncTask.access$300(AsyncTask.java:127)
12-10 18:59:35.104: E/AndroidRuntime(307):     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
12-10 18:59:35.104: E/AndroidRuntime(307):     at android.os.Handler.dispatchMessage(Handler.java:99)
12-10 18:59:35.104: E/AndroidRuntime(307):     at android.os.Looper.loop(Looper.java:123)
12-10 18:59:35.104: E/AndroidRuntime(307):     at android.app.ActivityThread.main(ActivityThread.java:4627)
12-10 18:59:35.104: E/AndroidRuntime(307):     at java.lang.reflect.Method.invokeNative(Native Method)
12-10 18:59:35.104: E/AndroidRuntime(307):     at java.lang.reflect.Method.invoke(Method.java:521)
12-10 18:59:35.104: E/AndroidRuntime(307):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
12-10 18:59:35.104: E/AndroidRuntime(307):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
12-10 18:59:35.104: E/AndroidRuntime(307):     at dalvik.system.NativeStart.main(Native Method)

Appreciate ur help guys.

 

Thanks,

Gaurav

Hi Guys, I need ur help.I have downloaded contact explorer hybrid app.But when i run it as android app i am getting following 2 errors: 1) The project was not built since its build path is incomplete. Cannot find the class file for com.phonegap.DroidGap. Fix the build path then try building this project . 2) The type com.phonegap.DroidGap cannot be resolved. It is indirectly referenced from required .class files. Thanks, Gaurav

Hi Guys,

 

I am using onclick event to open an image which is attached in the attachments.I have to opent that image in the parent window insted of new window.How would i go to achive it.Following is the code i am using.

 

<a onclick="window.open('{!URLFOR($Action.Attachment.Download, attachment.value)}')" href="#" ><apex:image value="{!URLFOR($Action.Attachment.Download, attachment.value)}" width="80px" height="80px"/></a>

 

 

Thanks,

Gaurav Gulanjkar

Hi,

 

How do i start with this...

 

I want to copy data from one custom object and insert into other custom object using apex or any other feature.

 

Thanks,

Gaurav

Hi Friends,

 

I need to know how do we integrate Apatar(open source tool) with salesforce.As this is my first integartion.Need your help.

 

 

Thanks,

Gaurav

Hi 

 

I have integrated salesforce and outlook using the plugin salesforce for outlook.I want to sync custom objects i.e Partner related with Account standard object and Partner contact related with Contact standard object.Can we sync these custom objects?

 

Thanks,

Gaurav

Hi,

 

Can we upload 40MB MP4 file in salesforce and display a video in VF page.

 

Thanks,

Gaurav

Hi,

 

can we upload 40MB MP4 file in salesforce and display the video in the website.How to achive this?

 

 

Thanks

Gaurav

Hi,

 

Can we store 40MB MP4 file in salesforce and display the video in the website.How to achive this?

 

 

Thanks,

Gaurav

Hi,

I have created a visualforce page in that,I have a richeditor.When i enter a text in that editor it should return me the count.

How can i achieve this using the controller?

 

Regards,

Gaurav

Hi,

If i have a force.com site page on a domain and a siteforce page on another domain.Can we navigate from force.com site page to siteforce page,keeping in mind the session and the authentication of the user?Any solution for this.

 

Regards,

Gaurav Gulanjkar

I am creating a report using 3 standard objects leads,contacts,accounts.When the leads are converted,it creates accounts for the user(automated process).I am not able to create the report type for using these standard object.And,I want information about the account created,contacts created from that leads\ in my report.

 

regards,

Gaurav Gulanjkar 

Hi,

I am developing a hybrid mobile app using smartstore.I am using the latest Smartstore library 2.01.When i run the application in simulator my app is crashing without displaying any page.Following is the log cat:

02-11 12:42:47.749: I/dalvikvm(346): Could not find method android.app.admin.DevicePolicyManager.getStorageEncryptionStatus, referenced from method com.salesforce.androidsdk.security.Encryptor.init
02-11 12:42:47.749: W/dalvikvm(346): VFY: unable to resolve virtual method 124: Landroid/app/admin/DevicePolicyManager;.getStorageEncryptionStatus ()I
02-11 12:42:47.758: D/dalvikvm(346): VFY: replacing opcode 0x6e at 0x001d
02-11 12:42:47.758: D/dalvikvm(346): VFY: dead code 0x0020-0029 in Lcom/salesforce/androidsdk/security/Encryptor;.init (Landroid/content/Context;)Z
02-11 12:42:47.788: D/HttpAccess:constructor(346): User-Agent string: SalesforceMobileSDK/2.1.0 android mobile/2.3.3 (sdk) myWDApp/1.0 Hybrid
02-11 12:42:47.948: I/SalesforceDroidGapActivity.onCreate(346): onCreate called
02-11 12:42:47.998: D/AndroidRuntime(346): Shutting down VM
02-11 12:42:47.998: W/dalvikvm(346): threadid=1: thread exiting with uncaught exception (group=0x40015560)
02-11 12:42:48.029: E/AndroidRuntime(346): FATAL EXCEPTION: main
02-11 12:42:48.029: E/AndroidRuntime(346): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.verticurl.mywd/com.salesforce.androidsdk.ui.sfhybrid.SalesforceDroidGapActivity}: java.lang.SecurityException: caller uid 10006 lacks any of android.permission.GET_ACCOUNTS
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread.access$1500(ActivityThread.java:117)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.os.Handler.dispatchMessage(Handler.java:99)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.os.Looper.loop(Looper.java:123)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread.main(ActivityThread.java:3683)
02-11 12:42:48.029: E/AndroidRuntime(346):  at java.lang.reflect.Method.invokeNative(Native Method)
02-11 12:42:48.029: E/AndroidRuntime(346):  at java.lang.reflect.Method.invoke(Method.java:507)
02-11 12:42:48.029: E/AndroidRuntime(346):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
02-11 12:42:48.029: E/AndroidRuntime(346):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
02-11 12:42:48.029: E/AndroidRuntime(346):  at dalvik.system.NativeStart.main(Native Method)
02-11 12:42:48.029: E/AndroidRuntime(346): Caused by: java.lang.SecurityException: caller uid 10006 lacks any of android.permission.GET_ACCOUNTS
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.os.Parcel.readException(Parcel.java:1322)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.os.Parcel.readException(Parcel.java:1276)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.accounts.IAccountManager$Stub$Proxy.getAccounts(IAccountManager.java:475)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.accounts.AccountManager.getAccountsByType(AccountManager.java:373)
02-11 12:42:48.029: E/AndroidRuntime(346):  at com.salesforce.androidsdk.rest.ClientManager.getAccount(ClientManager.java:188)
02-11 12:42:48.029: E/AndroidRuntime(346):  at com.salesforce.androidsdk.rest.ClientManager.peekRestClient(ClientManager.java:138)
02-11 12:42:48.029: E/AndroidRuntime(346):  at com.salesforce.androidsdk.ui.sfhybrid.SalesforceDroidGapActivity.onCreate(SalesforceDroidGapActivity.java:118)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
02-11 12:42:48.029: E/AndroidRuntime(346):  ... 11 more
Does salefsorce dataloader support bulk api 2.0?
I am deploying a controller and a test class to production. I am getting an error while deploying the code as 

line 38, column 57: Constructor not defined: [BulkTaskController.cEngineeringChangeTask].<Constructor>(Required_Task__c)

cEngineeringChangeTask is a wrapper class whoes constructor takes 2 parameters 1) object reference 2) string

                           
I have 3 emailtocase routing addresses.

Sample:
Email address: billing@abc.com
Emailservice address: delsudshduishadiuhaskjdbashdgashdjhgds@jhsbdsajhd.com

I would like to create a custom field Email_to_Case_id__c in case object which will capture the email2case email address (TO:) when a case is created thru email.. This is for the user to know to which email address they are sending thier concerns. Is it possible to achieve this thru field update? (an out of the box functionality?). 

Is it possible to capture also multiple email address?

Email_to_Case_id__c = billing@abc.com; inquiries@abc.com



Thanks,
Del
I want to restrict an email to be sent when case is still in queue. I have a trigger on email message object. Is there any way to restrict a user. 
Also i have to disable the send Email button on the service console.
Hi All,

I have a requirement where in i have to show a picklist of record types on VF page based on the logged in user.The pick list should only display the case record types that the current user has permission to create cases.When user change the value in the picklist, then change the case record type field and refresh the entire page.Need help on the approach and any sample code reference.    
Hi All,

In my org we have setup emailtocase feature to register the cases.As this feature does no assign contacts to the case if it is not found in contact table.I want to search the email body of the cases email to see if any email address is mentioned in the body of the email and search that email address in the contacts and assign that contact to the case.How should i approach to this.If any sample code available for reference would be great.

I have a before,after trigger on EmailMessage object.I want to avoid using Email Services feature.
 
Hi Guys,

I am trying to do a simple authentication for portal user.I have written a login method and trying to call it from a VF command button.In the debug logs i get a following statement after entering username and password.Its not redirecting to the startUrl mentioned in site.login() call.

09:27:23.073 (73933217)|VF_APEX_CALL|submit|{!login}|PageReference: none

Following is the controller code :

public class MobileSiteLoginController {

public String username {get; set;}
public String password {get; set;}
public User tempUser{get; set;}
public String startUrl{get;set;}

public PageReference login() {
String startUrl = System.currentPageReference().getParameters().get('/MobileAppPage1');  
    System.debug('-----username----'+ username);
    System.debug('-----Password----'+ password);
    System.debug('-----Start URL---'+ startUrl);
    return Site.login(username, password, startUrl);  
}
public MobileSiteLoginController () { }

}

Please let me know if i am doing anything wrong.

Thanks,
Gaurav

Hi,

I am developing a hybrid mobile app using smartstore.I am using the latest Smartstore library 2.01.When i run the application in simulator my app is crashing without displaying any page.Following is the log cat:

02-11 12:42:47.749: I/dalvikvm(346): Could not find method android.app.admin.DevicePolicyManager.getStorageEncryptionStatus, referenced from method com.salesforce.androidsdk.security.Encryptor.init
02-11 12:42:47.749: W/dalvikvm(346): VFY: unable to resolve virtual method 124: Landroid/app/admin/DevicePolicyManager;.getStorageEncryptionStatus ()I
02-11 12:42:47.758: D/dalvikvm(346): VFY: replacing opcode 0x6e at 0x001d
02-11 12:42:47.758: D/dalvikvm(346): VFY: dead code 0x0020-0029 in Lcom/salesforce/androidsdk/security/Encryptor;.init (Landroid/content/Context;)Z
02-11 12:42:47.788: D/HttpAccess:constructor(346): User-Agent string: SalesforceMobileSDK/2.1.0 android mobile/2.3.3 (sdk) myWDApp/1.0 Hybrid
02-11 12:42:47.948: I/SalesforceDroidGapActivity.onCreate(346): onCreate called
02-11 12:42:47.998: D/AndroidRuntime(346): Shutting down VM
02-11 12:42:47.998: W/dalvikvm(346): threadid=1: thread exiting with uncaught exception (group=0x40015560)
02-11 12:42:48.029: E/AndroidRuntime(346): FATAL EXCEPTION: main
02-11 12:42:48.029: E/AndroidRuntime(346): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.verticurl.mywd/com.salesforce.androidsdk.ui.sfhybrid.SalesforceDroidGapActivity}: java.lang.SecurityException: caller uid 10006 lacks any of android.permission.GET_ACCOUNTS
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread.access$1500(ActivityThread.java:117)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.os.Handler.dispatchMessage(Handler.java:99)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.os.Looper.loop(Looper.java:123)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread.main(ActivityThread.java:3683)
02-11 12:42:48.029: E/AndroidRuntime(346):  at java.lang.reflect.Method.invokeNative(Native Method)
02-11 12:42:48.029: E/AndroidRuntime(346):  at java.lang.reflect.Method.invoke(Method.java:507)
02-11 12:42:48.029: E/AndroidRuntime(346):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
02-11 12:42:48.029: E/AndroidRuntime(346):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
02-11 12:42:48.029: E/AndroidRuntime(346):  at dalvik.system.NativeStart.main(Native Method)
02-11 12:42:48.029: E/AndroidRuntime(346): Caused by: java.lang.SecurityException: caller uid 10006 lacks any of android.permission.GET_ACCOUNTS
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.os.Parcel.readException(Parcel.java:1322)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.os.Parcel.readException(Parcel.java:1276)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.accounts.IAccountManager$Stub$Proxy.getAccounts(IAccountManager.java:475)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.accounts.AccountManager.getAccountsByType(AccountManager.java:373)
02-11 12:42:48.029: E/AndroidRuntime(346):  at com.salesforce.androidsdk.rest.ClientManager.getAccount(ClientManager.java:188)
02-11 12:42:48.029: E/AndroidRuntime(346):  at com.salesforce.androidsdk.rest.ClientManager.peekRestClient(ClientManager.java:138)
02-11 12:42:48.029: E/AndroidRuntime(346):  at com.salesforce.androidsdk.ui.sfhybrid.SalesforceDroidGapActivity.onCreate(SalesforceDroidGapActivity.java:118)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
02-11 12:42:48.029: E/AndroidRuntime(346):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
02-11 12:42:48.029: E/AndroidRuntime(346):  ... 11 more

Hi,

 

When i run the app on emulator am able to login...but after that i am get a pop up which says "The application has stopped unexpectedly.Please try again"

 

Following is what the error in logcat:

 

12-10 18:58:48.404: E/Web Console(307): Unsafe JavaScript attempt to access frame with URL https://login.salesforce.com/?ec=302&startURL=%2Fsetup%2Fsecur%2FRemoteAccessAuthorizationPage.apexp%3Fsource%3Dl86Hcy6qEKtWNqzXVErZDlmcRQs0D_HBE55MLVuP3x8t5wXkyHYyrVx2Xb5JoWzyVOJrnTqMMaWy_SfpTOnh113QKOnwn4I.eL0FOFuolqr0GdSmPXhrQgGOVi0XAVAxOckWNgo_h8dvcA_FrOwtAlGCSW6xCX95K1MYf9yjBp_0fTmVWB5Rb6OBcJTe2lo8yzOuM1cLPievfxwevVH6OTP7_GvFtrTLksQwOBEUexAhQNTgBKyrldZMPMNEYjx_xV5OaPgOOw0LTQk2zezPx0a52bOH27wtYGl4Q1R00U1Oel_eex603VstSf6HGnHuVS0kRnblYOFxUsN_AogZJQCNbLqcmS5.YnxJvIrbL6mcSsQh7OYWU7Iy88yo5mo.cAQ_qjZj2iif3ejCeiVb_8mDvLp.OBg8xTwhpBs7zOW8g0Um_8nhSnSReX0p4EJOwFJmYORhd6A%253D%253D%26display%3Dtouch%26sdtd%3D1&display=touch&sdtd=1 from frame with URL https://www.salesforce.com/login-messages/messages.html?r=https%3A%2F%2Flogin.salesforce.com%2Fsetup%2Fsecur%2FRemoteAccessAuthorizationPage.apexp%3Fsource%3Dl86Hcy6qEKtWNqzXVErZDlmcRQs0D_HBE55MLVuP3x8t5wXkyHYyrVx2Xb5JoWzyVOJrnTqMMaWy_SfpTOnh113QKOnwn4I.eL0FOFuolqr0GdSmPXhrQgGOVi0XAVAxOckWNgo_h8dvcA_FrOwtAlGCSW6xCX95K1MYf9yjBp_0fTmVWB5Rb6OBcJTe2lo8yzOuM1cLPievfxwevVH6OTP7_GvFtrTLksQwOBEUexAhQNTgBKyrldZMPMNEYjx_xV5OaPgOOw0LTQk2zezPx0a52bOH27wtYGl4Q1R00U1Oel_eex603VstSf6HGnHuVS0kRnblYOFxUsN_AogZJQCNbLqcmS5.YnxJvIrbL6mcSsQh7OYWU7Iy88yo5mo.cAQ_qjZj2iif3ejCeiVb_8mDvLp.OBg8xTwhpBs7zOW8g0Um_8nhSnSReX0p4EJOwFJmYORhd6A%253D%253D%26display%3Dtouch%26sdtd%3D1&noroundedcorner. Domains, protocols and ports must match.
12-10 18:58:48.404: E/Web Console(307):  at :1
12-10 18:59:35.104: E/AndroidRuntime(307): FATAL EXCEPTION: main
12-10 18:59:35.104: E/AndroidRuntime(307): java.lang.NoSuchMethodError: java.lang.String.isEmpty
12-10 18:59:35.104: E/AndroidRuntime(307):     at com.salesforce.androidsdk.ui.OAuthWebviewHelper$BaseFinishAuthFlowTask.onPostExecute(OAuthWebviewHelper.java:378)
12-10 18:59:35.104: E/AndroidRuntime(307):     at com.salesforce.androidsdk.ui.OAuthWebviewHelper$BaseFinishAuthFlowTask.onPostExecute(OAuthWebviewHelper.java:1)
12-10 18:59:35.104: E/AndroidRuntime(307):     at android.os.AsyncTask.finish(AsyncTask.java:417)
12-10 18:59:35.104: E/AndroidRuntime(307):     at android.os.AsyncTask.access$300(AsyncTask.java:127)
12-10 18:59:35.104: E/AndroidRuntime(307):     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
12-10 18:59:35.104: E/AndroidRuntime(307):     at android.os.Handler.dispatchMessage(Handler.java:99)
12-10 18:59:35.104: E/AndroidRuntime(307):     at android.os.Looper.loop(Looper.java:123)
12-10 18:59:35.104: E/AndroidRuntime(307):     at android.app.ActivityThread.main(ActivityThread.java:4627)
12-10 18:59:35.104: E/AndroidRuntime(307):     at java.lang.reflect.Method.invokeNative(Native Method)
12-10 18:59:35.104: E/AndroidRuntime(307):     at java.lang.reflect.Method.invoke(Method.java:521)
12-10 18:59:35.104: E/AndroidRuntime(307):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
12-10 18:59:35.104: E/AndroidRuntime(307):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
12-10 18:59:35.104: E/AndroidRuntime(307):     at dalvik.system.NativeStart.main(Native Method)

Appreciate ur help guys.

 

Thanks,

Gaurav

Hi Guys, I need ur help.I have downloaded contact explorer hybrid app.But when i run it as android app i am getting following 2 errors: 1) The project was not built since its build path is incomplete. Cannot find the class file for com.phonegap.DroidGap. Fix the build path then try building this project . 2) The type com.phonegap.DroidGap cannot be resolved. It is indirectly referenced from required .class files. Thanks, Gaurav