Community Questions & Answers
Android Module - Unable to find explicit activity class
I am trying to use a piece of code from a native java android app as a module in my project, but cannot seem to get it working. First off I have to confess to being no java programmer, but have done a lot of googling and searching of the Q&A. I am...
Android adding event to calender problem
Hi Everyone, I have searched a lot and found the only solution of adding event to calender is through using the intent. I have used the following code to that: ~~~ addevent.addEventListener('click', function(){ var intent = Ti.Android.createIntent({...
Android intent + remote mp3
Hi all, I'm trying to play a remote mp3 file with Android intent. Here's my code.. I tried almost every possible option to open this remote mp3 file. 1. In some cases it's opened in a browser player 2. In some cases it shows "no mp3 apps" 3....
Alloy View (window) opened by intent (Home Icon Click)
Hi everybody, I'm building my Android App and i'm a little bit confuded: when user click on Home Icon (at actionbar), i want to create an Intent with FLAG_ACTIVITY_CLEAR_TOP and then start this (it will clear the activity list and opens my home) but when...
How to launch Android app on boot
I need to launch my Android app on boot of the OS. Worst case, I can use a 3rd party app like LaunchAfterBoot to achieve this, however I was hoping to get it working using the AndroidManifest settings. On AndroidSnippets -...
How to open an application from background service?
I have an android background service running. I'd like to open the main application when a certain event occurs. Right now I just show the notification: ~~~ var notificationIntent = Ti.Android.createIntent({ className:...
Notification launches to blank screen if app was closed
Hi guys, I'm having some problems in the consistency of getting a notification (in this case its a refresh of the news feed in desired interval set by the user) to run that when clicked will open the app on android. These run as a background service that...
Opening a PDF
Hello, Application Type: Mobile, Platform: Android, Device: Samsung Galaxy Tab 10.1, Development System: Windows I am trying to open a PDF file. I have a the Adobe Reader PDF viewer installed and it is able to open the PDF files that I want to view. Now...
Mobile Intent Videoplayer
I wanted to know if I could open video files in the same way that I am opening PDFs. What I mean is that I want to open a PDF with a media player that is already installed rather than the Titanium video player. Could someone please provide code as to how I...
Change the interval of a background service on android
Hello, I was wondering if someone knows wether i can change the interval value of a background service on android when the background service is already started. When i make the service, i do the following: ~~~ var intent =...
Background services in alloy
Hello, im trying to get background services working in Alloy, problem is that i dont know where to place my service.js file, because nothing happens. This is my code for launching the service: ~~~ try{ // Start the background service on android if it...
image from gallery to iphone app
Hi, is there a way to send a image directly form gallery to the app? like at android the intent funktion? best
How would you manage Android pause (home button click) and intervals?
Hello, I am trying to solve my last big hurdle in getting my app finished for the Android. In my app I have 3 intervals that simply poll my server for any data updates. As you know, when the app is exited, all the activities as well as the intervals all...
Bluetooth Activity - No Activity found to handle Intent
Hello everyone, I've started diving into developing a Bluetooth Android module for Titanium. I've got the device to tell me if Bluetooth is enabled or not but now I'm having some trouble creating the little dialog box that will allow them to enable...
Opening a PDF not working
Hello, I am trying to open a pdf to no avail. I referred to this http://developer.appcelerator.com/question/72361/open-pdf-file-on-android link to see how I could go about opening a pdf. It still does not work. Below is the code. ~~~ var win =...
Get data from pending intent to launch detail window in app
I've been trying to find any examples that create an intent with data (such as an ID) so when it's touched in the notification drawer it opens my app (which works) and then loads the correct screen. I'm attaching an ID using `intent.putExtra('the_id',...
Use an intent filter to open app from weblink
Hi all, I would like to have a link on my company's mobile web page that when clicked would open or app (if installed). I found a solution on stack overflow which requires the use of the AndroidManifest.xml ([Launch custom android application from android...
intercept calling url in android webview
my problem is to intercept a called url from a webview. if the url end with #plugin or #iframe i will open the url inside the calling webview, otherwise i will open the browser. to do this i modified the Titanium sdk (android) adding this lines in the...
How to open chiled window,when click on notification.
There are two windows 1 is in app.js.This window is starting window which check some condition and open main.js .The second window is main.js in which details are shown.I want show second window directly but there is some parameter at window level. And by...
How do you configure a titanium service as an Android receiver?
I have added the android service definition to tiapp.xml but I can't figure out how (or if it is even possible) to configure a Ti service as a receiver. After noting that myservice.js is converted to a com.example.MyserviceService class, I added a...
Email Intent
I'm sending an email from my Android app but I can't populate the recipient and CC address. Any tips on how to auto-populate the recipient and CC address? ~~~ email.addEventListener('click', function(e) { var intent = Ti.Android.createIntent({ ...
android - programatically install a external APK
I am trying to see if it is possible to download and install an apk file and I got as far as testing with an included apk file in the resources folder. I try: ~~~ btnGo.addEventListener('click', function() { var intent = Ti.Android.createIntent({ ...
Android Intent add contact intent extra param
There is an extra param in Android documentation when adding a contact to adressbook: http://developer.android.com/reference/android/provider/ContactsContract.Intents.html#EXTRA_FORCE_CREATE Here is my code: ~~~ var intent = Ti.Android.createIntent({ ...
What is android intent?
Can someone give me a brief description as to what intent actually is. To me it sounds like a listner related to hardware interactions? Can someone clarify? Ilan
Open Email App in Android
I want to open email app from my Titanium app. I know this is posible in Titanium using Android Intent. ~~~ var intent = Ti.Android.createIntent({ action: Ti.Android.ACTION_SEND, type: "plain/text" ...
Is it possible to share images using Android intents?
I have tried every way I know to share an image using intents to send in gmail but no luck. I have gotten as far as the attachment showing up in gmail but when sending I get the error 'Couldnt show attachment'. Does anyone have this working or know what...
zxing intent doesn't work with NavigationController (Forging Titanium ep. 2)
Hi, I've change my app to make it work with NavigationController like the one explained in 'Forging Titanium ep. 2'. But zxing library has stop work. Here is my code: ~~~ var intent = Ti.Android.createIntent({action:...
Problem with Ti.Platform when a Service is running
Hi! I have the following issue with my Android app: When the app gets started, I create a **Service Intent** checking if it already exists. If it is already created I do nothing and if it is not, then I do create it. This service will create a...
How to catch data from an other app
Hi, I've been searching for a while how to do that, and didn't know which direction I have to take. I have an Android 2.3 titanium application, that we can call TestApp, and my device has a barcode laser scanner, which send information when it...
Android startActivityForResult callback not happening
I am trying to get the IntentCookbook sample app from Forging Titanium to work. Code here: https://github.com/appcelerator-developer-relations/Forging-Titanium/tree/master/ep-009/IntentCookbook Most exaples work fine, but when the...
Can't save image blob retrieved from Intent getBlobExtra
I've managed created an intent filter for my application for all images. So when I launch the gallery and hit the "Share" button on an image, I can select my application and send the image over to my app. I used the getBlobExtra function on the...
Getting an Android notification to relaunch the application
I've got about as far as I think I can with the limited documentation and discussion on these topics. Strolling through the actual Android documentation is pretty complex so I'm hoping that through helping me solve this issue, I'll figure out how this all...
Video from android gallery.
I am trying to get video from android gallery by clicking on button and get reference from [this link](http://developer.appcelerator.com/question/19181/video-gallery) and implement it in to my code but I don't get any response and alert when gallery...
how to open online pdf file
Hi ! I have a online pdf file , i use `intent` to open it, but the `url` roperty doesn't work . Can anyone help me how to open online pdf ? Thanks!
how to open third party apps on Titanium android
Hi everyone, I want to open a third party apps in my project,but i don't know how to do this.I use `ti.app.openurl`, but it doesn't work.Can anyone help me please? Very grateful!
Get extra intent data to read data from NFC
I'm using intent to active my app on a Nexus S phone. It works on active the app but can't receive data from NFC intent. I tried `Titanium.Android.Intent.getData` and `Titanium.Android.Intent.getStringExtra` but always return null. I used...
how parse list of view object ushing android intent?
can someone help me to parse data from intent. var viewCollection = []; this data should parse to nextAvtivity.js. ~~~ tableView.addEventListener("click", function(e) { var intent = Ti.Android.createIntent({ action :...
How to get information from my intent?
Hi all, My application is very simple: it takes an image from the gallery and sends it to my server with some addional data. After a few hours of research I managed to accept images from intents. So when clicking 'share with' in the Gallery, my app is...
when the EXTRA_HTML_TEXT will be supported, and the CATEGORY_APP_EMAIL ?
hi, i was trying to work with intents and i have noticed that the only type which is supported for text is `EXTRA_TEXT`, but my data is html, so when the `EXTRA_HTML_TEXT` will be supported or is there any way to solve this issue ? and i have tried to...
Android Share via Intent Text not Shown Problem for Facebook
I have implemented the intent for sharing text in Android. The text that being passed can be displayed for all other apps (eg. gmail, twitter, etc) except facebook. There is no text being displayed in the facebook dialog. My facebook app has already been...
Integrating 3rd party Android JAR into Titanium Mobile app?
Hey guys, I'm writing a Titanium app trying to play YouTube videos. The goal is to keep the user inside the app, so **calling the native youtube app, which I can do already, is out of the question.** I have code that works on iOS, but only because...
startActivityForResult and callback function problem
I am trying to retrieve the path of a file selected by the user. - Application type: mobile - Titanium SDK: 2.0.1.GA2 - Platform & version: Android 2.2 - Device: Simulator and Physical This is the code that I use to launch...
How to create broadcast intent?
Since Ti.Android.createBroadcastIntent function is not available anymore from 1.7 onward, how can we create a broadcast intent? Application type: mobile, Titanium SDK: 1.7 and above
Intent extras stick around
So, in Android I'm using a C2DM module to stick some extras from a notification into my launching intent. When I receive a second notification, I clear those extras and put in the new ones, and launch again, and it works correctly. (This is because I...
Android: Remove an extra from an intent
In native android, you can remove extras from an intent. Is there a way I can do this in Titanium? I guess I could write a module to do that, but that seems like an awful lot of work for something that should be supported.
Intent for ACTION_IMAGE_CAPTURE
Hi guys, am new to titanium and developing my first app. A little bit of help from any of you guys, anyone please suggest the equivalent intent for the native android intent android.provider.mediastore.action_image_capture. My app works well the only...
Was the Ti.Android.Intent getData functionality ever fixed in 2.1.0?
Hi, I'm using the Titanium mobile sdk 2.1.0 to build my android app. In the 2.1.0 release notes, one of the bugs that was supposed to be fixed was to be able to retrieve the data property for all incoming...
Open PDF files in Android
I m having a PDF file in my **applicationDataDirectory**, I am trying to open it using below code. But i am getting error **file not found** ~~~ try { Ti.Android.currentActivity.startActivity(Ti.Android.createIntent({ action:...
Sharing a picture, not allways working, please help!
Hi guys! Thanks in advance. I have some pictures in my sdcard right? well, in my app I put all of them in a scrollableview, like a gallery, in each view I have a button for share that picture. I use a snippet with an intent to do that: ~~~ var intent =...
Whats the equivalent for android onHandleIntent() in titanium
Hi, I just wanted to know is there any equivalent API in titanium for android onHandleIntent(). I am developing application to get local notification in android when the application is not in foreground. I have created a android service and all coding...
Showing 1-50 of 85 1 2