Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [android]

Android is an operating system based on the Linux kernel, and designed primarily for touchscreen mobile devices such as smartphones and tablet computers.

9
votes
5answers
2k views

No account of type com.salesforce.androidsdk found

I'm trying to build an Android test application integrated to the SalesForce platform. I have downloaded the SDK from here, and imported it to my workspace. Everything works fine except my test app, ...
7
votes
2answers
1k views

How can I access to the Android camera directly from Salesforce 1

I want to open the camera in an Android device from Saleforce1. I've seen many blogs that say that it is possible in android but always the screenshots are with an IOS device. Salesforce1 can open ...
7
votes
0answers
97 views

Salesforce Hybrid Android App

I have created hybrid android app with salesforce mobile sdk. However the lookup functionality of salesforce is not working. In the app if i click the Accounts lookup a new page is opened where i can ...
6
votes
3answers
5k views

Why can't I log in to the Salesforce1 Android app with a dev account?

I just downloaded the Salesforce1 Android app. I signed in just fine to my dev account but about 20 seconds after signing in I got a message saying my admin had revoked my access token and was kicked ...
6
votes
2answers
414 views

Insufficient privileges on Android Hybrid App with Custom Host

New Edit: I've narrowed down the issue. It only happens with a particular Visualforce page. /apex/SuccessFrame does NOT work for some reason. It works fine on iOS, I changed the Visualforce page and I ...
5
votes
4answers
2k views

HTML5 Date pickers today stopped working in Salesforce1 on Android

I have a Salesforce1 app that uses native HTML5 date(time) pickers. This wonderfully worked on all supported mobile platforms, on the desktop and in the one/one.app test page. This morning (August ...
5
votes
1answer
331 views

Getting More Than 2000 Records in Salesforce Native Android App Using RestRequest.getRequestForQuery()

I'm in a tricky situation where my org has more than 2,000 records for objects which I'm trying to fetch in my Android native app RestRequest restRequest = RestRequest.getRequestForQuery( getString(R....
4
votes
1answer
160 views

Create Pre Chat Records using Live Agent Mobile SDK

I'm trying to implement a native Android app using the Live Agent Android SDK, however I was unable to find how to create records using the API provided in the SDK. I want to implement something ...
4
votes
0answers
101 views

Bluetooth Permission removal on JB4A on Android < 5.0

In version 3 of the ExactTarget JB4A library that we use for push notifications, there was a dependency on the IBeacon library which imposed a requirement on the Bluetooth permission for the app. In ...
3
votes
2answers
688 views

Exact Target Android push not working for version 3.5.0 || Initialization did not complete in a timely fashion

We just downloaded the latest version of ET lib for android (3.5.0) and are trying to do a sample to make it work but facing some issue: The steps which we followed is: Step 1: Extended Application ...
3
votes
1answer
205 views

Chatter feeds of logged in user using mobile sdk

I am playing around with the mobile sdk and in the mobile sdk sample contactExplorer, i am adding a functionality of getting the chatter feeds of the logged in user. In my index.html i added a href ...
3
votes
2answers
2k views

Fixed div in Salesforce1 using lightning components

Although this may not be salesforce specific issue but its remotely related to Salesforce and occurring only in Salesforce1 mobile app. I am trying to fix a div at the bottom of my screen using the ...
3
votes
1answer
196 views

Multiple Crash Reports in Android SDK 3.5.0

We have multiple crashes on Exact Target SDK 3.5.0, Our users are reporting multiple crashes with the following stack trace: java.lang.RuntimeException: An error occured while executing ...
3
votes
1answer
150 views

Android REST Create Event

I am trying to create an Event on my salesforce Calendar. All I am receiving is a 400 error. Can anyone help me with what I am doing wrong or missing? Any help would be greatly appreciated. ...
3
votes
1answer
218 views

Salesforce One: can I call another Android App by startActivityForResult from HTML5 (JS)?

I want my Salesforce1 App uses another Android App seamlessly. It is easy if we have access to App code, but with Salesforce1 we have not. So, can I call another Android App by startActivityForResult ...
3
votes
0answers
275 views

Work around for window.open in Salesforce1 Android

I created a visualforce page that can be opened in SF1 via a tab in the navigation menu. This VF page has links to reports and dashboards that need to be displayed in standard layouts (not the SF1 ...
3
votes
1answer
314 views

Android Push Notification set up questions

We have guys on our end trying to configure Push Notifications & they’ve asked me to reach out for an answer on the below: https://rink.hockeyapp.net/apps/01af36d7ba765d5231019c56880bbb9d/...
2
votes
1answer
208 views

Fetch License from sandbox

I was able to fetch Opportunities, Contacts, Accounts from sandbox through SOAP api's but I did not get how to fetch License. Could anybody please help me out? Thanks.
2
votes
2answers
421 views

Salesforce as a Data Source

I'm completely new to salesforce platform. I'm yet to explore most of the features salesforce does have. Here, I'm trying to develop a mobile application which can display articles created over the ...
2
votes
2answers
2k views

“Hello World” guide/application for native Android application fetching Salesforce data?

I am well versed with both Android and Salesforce development separately, but this is my first time working on both platforms simultaneously. Is there any Hello World guide/application for creating a ...
2
votes
1answer
30 views

Salesforce Marketing Cloud Android SDK Geofencing

I have been following this this guide. However I always end up with the initialisation status of COMPLETED_WITH_DEGRADED_FUNCTIONALITY: InitializationStatus{status=...
2
votes
2answers
235 views

Why is the Salesforce Snap Ins SDK for Android and iOS so huge?

I installed the SDKs for both Android and iOS to use the Live Agent for my company. Although the built app size on Android/iOS grew by at least 25MB! Is there any reason why it's so huge? I can't ...
2
votes
1answer
252 views

Salesforce SmartStore app becoming offline to online

I am developing a SmartStore android app. What I need to do is when my device goes from offline (not connected to internet) to online (connected to internet) then the data which I stored offline ...
2
votes
1answer
77 views

HTML decode Marketing Cloud title

.setNotificationBuilder((context, notificationMessage) -> { NotificationCompat.Builder notificationBuilder = NotificationManager.setupNotificationBuilder(context, notificationMessage); ...
2
votes
1answer
49 views

Crash in JourneyBuilder SDK

We are seeing this crash happen quite frequently in our production application. IS there anyway we can work around this because as of right now, it is our highest crash with our latest release. We are ...
2
votes
1answer
588 views

Client Id blank in “API Calls Made Within Last 7 Days” Report - when testing from an Android app

We have created an Android app which communicates with the Salesforce via Salesforce Mobile SDK and its APIs. As part of the settings we created a connected app in salesforce, obtained a clientId(...
2
votes
1answer
34 views

Marketing Cloud Android sdk removeAttribute() changed

Due to the Marketing cloud will stop support GCM push messaging i updated the ExactTarget SDK version 4.5.0 to Marketing cloud SDK version 6.0.2. in Cloud marketing updating documentation file (link ...
2
votes
1answer
333 views

Crash when using Marketing Cloud Mobile Push Android SDK v5.1.x and targeting Android O (Oreo)

When using Marketing Cloud Mobile Push Android SDK v5.1.x and targeting Android O (Oreo) and initializing with: MarketingCloudSdk.init(this, MarketingCloudConfig.builder() .setApplicationId("...
2
votes
1answer
1k views

Integrate the Marketing Cloud Mobile Push Android SDK with FCM

Firebase Cloud Messaging (FCM) is the new version of GCM. It inherits the reliable and scalable GCM infrastructure, and today if you are integrating messaging in a new app, you are forced to go with ...
2
votes
1answer
1k views

Salesforce1 mobile app not opening external web page

On my VisualForce page, I have a link that opens an external page(HTTPS) in a new window. When clicking the link Salesforce1 mobile app on Android, I'm getting the following error: You can't view ...
2
votes
1answer
5k views

Finished with non-zero exit value 2

i followed the guidelines on how to setup using exactTarget Android Library following this http://code.exacttarget.com/apis-sdks/journey-builder-for-apps/sdk-implementation/register-your-devices.html#...
2
votes
0answers
61 views

NPE causing crash using Android marketingcloudsdk 5.3.+

Facing this kind of crash while using MC 5.3.+ Fatal Exception: java.lang.RuntimeException: Unable to start receiver com.salesforce.marketingcloud.MCReceiver: java.lang.NullPointerException: Attempt ...
2
votes
0answers
131 views

Illegal State Exception in Android Startup sometimes

I am receiving a difficult to debug error upon application start up. I have recently updated the sales force sdk from 'com.exacttarget.etpushsdk:etsdk:4.9.4@aar' to 'com.salesforce.marketingcloud:...
2
votes
0answers
280 views

Can't use Marketing Cloud SDK for Android with Google Play Services 11.8.0

I'm getting this error when running our app with Marketing Cloud SDK 5.3.+ with Google Play Services 11.8.0: java.lang.NoSuchMethodError: No static method getNoBackupFilesDir Full stack trace: ...
2
votes
0answers
124 views

Android Marketing Cloud SDK crashes randomly: MAC stored in civ does not match computed MAC

I'm using the Marketing Cloud SDK v5.4 for Android Push Notifications. My implementation is modeled completely after the sample code. On App start, the sdk initializes and I'm able to receive push ...
2
votes
0answers
311 views

Marketing cloud push notification not visible on Android

I've implemented Marketing Cloud Mobile Push, we have multiple SDKs however I'm letting Marketing cloud handle tokens, all I'm doing is using a custom GCMListenerService to process my push if its from ...
2
votes
0answers
408 views

Problems with multiple notifications on Android

I'm having trouble getting a second notification to show up after the first one was successful. In my code, I set the OpenDirect Activity: .setOpenDirectRecipient(OpenDirectActivity.class).build(),...
2
votes
1answer
144 views

Can't download Salesforce Snap-Ins SDK for Android from Maven

I am trying to follow this documentation I tried to install several features: 'com.salesforce. service:servicesdk:208.4.0' 'com.salesforce.service:chat-ui:1.1.1' 'com.salesforce.service:chat-core:1....
2
votes
0answers
229 views

Attribute Set did not contain a required Primary Key value

I am trying to hit the PATCH /contacts/v1/contacts endpoint and I keep getting the error below saying that I am missing the PrimaryKeyAttribute during validation but I'm not seeing that value being ...
2
votes
2answers
394 views

JB4A-SDK-Android Device-Registration not working using FCM (Firebase Cloud Messaging)

I have implemented JB4A-SDK-Android following the links below: salesforce-marketingcloud.github.io/JB4A-SDK-Android/sdk-implementation/implement-sdk-google.html salesforce-marketingcloud.github.io/...
2
votes
0answers
230 views

The log out issue in Salesforce mobile SDK android - Hybrid

When we log out, redirected to login page, in that login page if we login again redirected to login page again. If we close and open the app again, logins with out asking for password { "...
2
votes
0answers
27 views

Not sure if my code is working in Android 4.4?

I think my code is not working in Android 4.4 either using browser or apps. Initially I use <apex:inputFile value="{!att.body}" filename="{!att.name}"/> But I could not click to choose file....
2
votes
2answers
292 views

Get list of custom object in RemedyForce

I have custom object in my RemedyForce abc__c and would like to get list of it. Tried this code: SearchResult sr = con.search( "FIND {00008137} IN abc__c FIELDS RETURNING abc__c(...
1
vote
2answers
3k views

android hybrid app access-control-allow-origin error

I'm getting the following error when running my hyrbrid-remote app in the Android Emulator. Everything works fine in iOS. All of my resources are static resources in SF. 07-24 09:53:51.017: I/...
1
vote
1answer
131 views

JB4A-SDK-Android Device-Registration not working

I included the JB4A-SDK-Android SDK 4.4.1 like described in the documentation, but my device wont show up in the mobilepush marketing cloud. It seems that there is a problem with the device ...
1
vote
1answer
1k views

Java equivalent for Apex classes [closed]

I am looking for Java equivalent classes for some of the Apex classes like Blob, EncodingUtil, Crypto. I need these to connect and authenticate with salesforce making an API call. I am creatingn a ...
1
vote
2answers
496 views

MobilePush fails to send push notification

I wanted to send a first test message through MobilePush to my registered device (Android), but the contact's activity dashboard just says "Status: Error" without any further explanation. Is there a ...
1
vote
2answers
473 views

Instantiate Android push using an activity class instead of an Application class (Exact Target)

We are trying to instantiate the Exact Target push service on Android, with the call ETPush.readyAimFire, in an Activity class instead of the Application one. We want to use as an Activity class ...
1
vote
2answers
618 views

404 error when making SOSL queries from native mobile applications

I am developing a native android app using the mobile sdk. I am trying to make a search query like this RestRequest req = RestRequest.getRequestForSearch("v20.0", "FIND {"+searchString+"*} IN ALL ...
1
vote
1answer
74 views

Push Notification not showing up when app is closed

i've implemented the SF Mobile Push SDK into my app and the Messages im sending from the SFMC are showing up when the App is in Foreground and Background. When i close the app (for example swipe it ...