Smartphone Programming

7K

Solutions

42

Articles & Videos

7K

Contributors

Smartphones run using a variety of operating systems -- Android, iOS and Windows Mobile most commonly -- and an even wider variety of programming languages, including Objective-C, Java, Visual C#, C++ and .NET, not to mention HTML5 and JavaScript, and cross-platform frameworks such as PhoneGap.

Share tech news, updates, or what's on your mind.

Sign up to Post

1. What does it mean for  "tools:context="com.abc.passingdata.MainActivity"  ? (sample 1)
2. What does it mean for the following XML statement ? For "action", does it refer to the corresponding java class. How does "category" defined in sample 2 ? Any special meaning ? Thx

            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />  

           <action android:name="com.abc.usingintent.SecondActivity" />
            <category android:name="android.intent.category.DEFAULT" />
   
SAMPLE 1
-------------
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical"

    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.abc.passingdata.MainActivity">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Welcome to the Second Activity"
        android:id="@+id/textView" />

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Click to go to Main  Activity"
        android:id="@+id/button"
        android:onClick="onClick"/>

</LinearLayout>

SAMPLE 2
--------------
        <activity …
0
[Webinar] How Hackers Steal Your Credentials
LVL 8
[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Please provide me with a URL address of the Sprint PCS add a phone program.

I know several users who all currently have a single Sprint PCS cell phone and are interested in finding the details of how they can add a second phone to their Spring PCS account using the current Sprint PCS promotion that we have heard is going on until the end of June of 2017.
0
android 7
will i get app alerts , phone calls , sms when battery is on
medium?
supersaver with black screen?
0
* We have a product Ccure[/b][/b] Anti-Theft which is not working in oppo company phones background we are trying hooting on wrong attempt.
            we have perform certain process like:
    1. we exclude this app from battery optimization and power saving.
    2. We exclude  also from data saving.
    3. App process management and given all permissions .
    4. added to app auto startup (Startup Manager)
    5. Also prevented app to be killed while releasing background app memory

* we have also referred to certain links to resolve our problem but did not.
reference link.
     https://stackoverflow.com/questions/4797050/how-to-run-process-as-background-and-never-die
0
Looking for general direction. I'm researching how one would develop a phone app with following requirements. IOS and Android. Or only IOS if that would be easier as a minimum viable product.

I'm a programmer (VB, SQL, ADO, ASP) .... but, a phone app newbie.

My Vision
The app would playback music of approx 3 mins long, that has (say) 5 multi-tracks - up to 4 vocal tracks and 1 track of backing instruments.
A graphic of the vocal parts will scroll across the screen (in landscape). It will look something like this.
Screen will look like this
The horizontal bars represent the notes in a 3 part harmony. The screen will scroll as the music plays. (eg. as in the app Anytune Pro)

It will be possible for the user to Mute/Unmute each track by pressing a button, as the music in playing. (eg. as in the app Sing Harmonies see at 2:10 in this video https://www.youtube.com/watch?v=hr6Xw9JPQe8 - however, in that app there is no graphic of the notes)

The user will be able to sing along with phone mic and hearing through headphones. (eg. as in the app Acappella). He/she can learn from the playback, then mute the part, and sing along with the other parts to practice.

Question: where should I look for a basic entry into learning about developing this kind of app? It involves music playback, individually mutable mutitracks (streamihg or downloaded), scrolling visual, use of mic.

Thanks.
0
I have been trying to follow a number of youtube videos instructing on the installation of cordova developmet environment on windows 10.

All time i get some sort of error, in trying to the the hello world example. So clear everything down.

Does anyone have a concise set of instructions in sequence to install this from scratch, im not interested in the android studio as will be using as text editor.

Many thanks
0
I have an analog door opener system in my building, this is the phone which opens the door: http://pasteboard.co/4JgctXi4x.jpg
I have a raspberri pi 3 model b, and a Pcf8591 ADC/DAC converter: http://articulo.mercadolibre.com.ar/MLA-641278286-modulo-pcf8591-conversor-4-ad-da-i2c-arduino-raspberry-_JM

What I want to do, is to connect the wires that goes to the analog door opener phone system into Raspberri PI, so I can hear/speak from a sip softphone installed in the raspberry pi.

Is this possible? I measured the voltage in the mic phone/speaker, it's shown in the picture. Not sure how to proceed with this.

Anyone? Thank you!!
0
i am going to install apk through web silently.

i can not use adb.

please help.
0
Hello

We came from an environment where we gave our users Blackberry devices since they needed to make international calls. We have a corporate deal with most carriers we were in.

We want to switch to a BYOD model, but this calling aspect is proving difficult to solve.

I had an idea though -

Let's say UserA is in UK and wants to call UserB in the USA. Standard phonecalls will connect UserA to UserB directly, which is expensive.

However - as an organisation, we have a corporate voice network that connects UK to US. Is it possible for a solution there UserA calls UserB, but the call actually routes

UserA > UK Corporate Phone system > US Corporate Phone system > UserB

That means we only need to pay the carriers local calls?

I believe this is called TEHO (Tail End Hop Off) : http://www.cisco.com/c/en/us/about/cisco-on-cisco/collaboration/tail-end-hop-off-web.html

Is this possible using a mobile app? I've seen some solutions like the below but interested in people's thoughts

http://btsmartnumbers.com/solutions/enterprisemobile/

http://moviuscorp.com
0
Say, I'm using blackberry Classic Q20 and trying to cope with its low battery life. Kindly recommend a good quality portable battery pack for it.  One or two brands and particular model numbers would be appreciated. If possible, a make and product that is available in South Africa. Thanks
0
On Demand Webinar: Networking for the Cloud Era
LVL 8
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

I have built a simple Android application but no longer want to target Android V4 and therefore I removed the references to the AppCompat V4 an\d AppCompat V7 libraries to clean up my App.  I then noticed that my SwipeToRefresh activity would no longer build.  Turns out this is in the AppCompat V4 package.  Problem is I don't seem to be able to add that package again as it says there are no compatible assemblies - I guess that thisis because I have set my project to Compile using Android 5 and the minimum Android to target as V5.  Any way I can get a SwipeToRefresh under Xamarin without using the appCompat libraries?  These libraries seem to cause all sorts of style issues and I have had problems with them before so would rather not use them if it can be avoided
0
I have a fairly basic Android app developed using Xamarin.  It now targets and is build against Android 5 and I have removed all references to such things as appCompat V4 and V7 libraries.  application styles is set as

      <style name="AppTheme.Base" parent="@android:Theme.Material.Light.DarkActionBar">
            <item name="android:windowNoTitle">true</item>
            <item name="android:windowActionBar">false</item>
            <item name="android:windowBackground">@drawable/background</item>
      </style>

I want to use a 'Switch' in my layout and have implemented it as

                         <Switch android:id="@+id/toggleMode"
                                                   android:layout_width="wrap_content"
                                                   android:layout_height="wrap_content"
                                                   android:textOn="Day Rate"
                                                   android:textOff="Piece Rate"/>

Trouble is it just appears as a simple slider with no text and nothing like the examples I have seen where the text is shown and it actually looks like a switch with the 'pressed' part of the switch highlighted.  How can I style this button to look like the examples I have seen?  I assume it is the material theme which is causing the issue but I have changed themes and it still appears the same.
0
i have this Json Data [a link](https://itunes.apple.com/jo/rss/topfreeapplications/limit=50/json)

and i parsing it like that

14269634_1770297169877373_1088045603.png


but when i click on any item i get all image into im:image , like this

14328847_1770683946505362_143671233_.png
i wanna do like this ,, when click for example > imo ,, i get just image for imo ???


14341549_1771200553120368_1517035075.png
the question is how can i solve this problem ?
if anyone have any idea or solution please tell me iam waiting !!
hope the problem is clear and this is my code


this is my module :

public class AppShowModule 
{ 
private List<String> Allimage = new ArrayList<String>(); 
public List<String> getAllimage() { 
return Allimage;} 
public void setAllimage(List<String> allimage) { 
Allimage = allimage;} 

Open in new window

this is my Fragment
public class ImageListFragment extends Fragment { 

List<AppShowModule> appShowModules; 
List<AppShowModule> imagesModule; 
RecyclerView AppRecyclerView; 
RecyclerView.Adapter imageRecyclerViewadapter; 
List<String> imageUrls; 
String feedKey = "feed"; 
String entryKey = "entry"; 
String imageKey = "im:image"; 
String labelKey = "label"; 
String jsonUrl = "https://itunes.apple.com/jo/rss/topfreeapplications/limit=50/json"; 
RequestQueue requestQueue; 
private RecyclerView.LayoutManager mLayoutManager; 
public ImageListFragment() { 
} 
@Override 
public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) { 
return 

Open in new window

0
I'm getting this strange NPE when launching a specific activity in my android App.

java.lang.NullPointerException: Attempt to read from field 'com.google.android.gms.ads.internal.client.o com.google.android.gms.ads.i.a' on a null object reference 09-13 09:13:07.220 14820 14820 E AndroidRuntime: at dancam.com.chords.ChordsList.b.a(Unknown Source) 09-13 09:13:07.220 14820 14820 E AndroidRuntime: at dancam.com.chords.ChordsList.g.onClick(Unknown Source)
As you can see from here the source seems to be unknown.

This is my code for the Activity causing the NPE:

public class ChordActivity extends Activity {
ViewPager viewPager;
PagerAdapter adapter;
TextView name, note;
CirclePageIndicator _indicator;
ImageButton sound;
boolean isPremium;
static final String PREFERENCES = "prefs";


@Override
public void onCreate(Bundle b){
    super.onCreate(b);
    setContentView(R.layout.chord_layout);

    SharedPreferences settings = getSharedPreferences(PREFERENCES,0);
    isPremium = settings.getBoolean("status", false);

    /** gestisce le pubblicita */
    if (!isPremium) {
        MobileAds.initialize(getApplicationContext(), "ca-app-pub-6723047396589178/2515152442");
        AdView chordBanner = (AdView) findViewById(R.id.chord_banner);
        AdRequest adRequest = new AdRequest.Builder().build();
        chordBanner.loadAd(adRequest);
    }

    Intent intent = this.getIntent();
    Bundle bundle = intent.getExtras();
    final Accordo selectedAccordo = 

Open in new window

0
I need guidance on how to populate a listbox of MP4 videos located on my personal web server. I have uploaded a screenshot of url and videos as well as the .js I attempted to use from NSBASIC sample code. All webserver files are in mp4 video format.
Here is the code that I cannot get to function.

Function listTV_onclick(i)
  'location = "http://www.praiseserver.com/churches/lakewood/tv/" & listTV.getItem(i);
  Video1.src = "http://www.praiseserver.com/churches/lakewood/tv/" & listTV.getItem(i)
  Video1.play()
'  frmMain.show()
'  ChangeForm(frmMain)
'  Dim itemText
'  If TypeName(i)="object" Then Exit Function
End Function

Function frmTV_onshow()
  head = document.getElementsByTagName("head")[0]
  newScript = document.createElement("script")
  newScript.src = "http://www.praiseserver.com/churches/lakewood/scripts/tv.js"
  head.appendChild(newScript)
End Function

Function processDataTV(s)
  listTV.deleteItem("all")
  'This function is called by the .js file which is loaded.
  data=Split(s,",")
  'Textarea1.value=""
  For i=0 To UBound(data)-1
    'txtAnnouncements.value=txtAnnouncements.value & data(i) & vbCRLF
    listTV.addItem(data(i))
    location = listTV.getItem(i);
  End If
End Function



Once listbox is populated and video file is selected, I would like to play video file using the NSBASIC video control on a separate form.
Please view file attachments.
tv.js.js
server-screen-shot.png
0
The phone is perfect honestly accept for its fatal flaw which after a short time becomes a major issues: the expandable memory via SD card is unusable.

no matter what the brand - no matter what the size after a short time (from minutes to a few days) any SD card that is placed in the phone will become corrupt and you will be asked to format it - this obviously kills any files, Vids, pictures or apps you decided to put on the SD card!

The solution - I would like to root the phone so i could gain access to the miscellaneous files folder so i could delete un-needed files on the phone and create free space.

I have been researching it and this seems to be a very hard phone to root.

I have attempted samsung keis 3 and iroot 1.8.6 but these do not root the phone and therefore i am unable to gain access to the miscellaneous files folder so i could delete un-needed files on the phone and create free space.

I also tried the root king 4.6 android app and that didnt work to root the phone either!

Can someone please help me root this phone or point me in a direction that will make my phone usable again!

Thank you in advance!
0
I want to develop 300 similar apps(For example, we consider 300 clubs for each club we need to create an app. These 300 app will follow the same structure but it differs only by their club logo and their app colour theme). Does the play store allow to upload all these apps?. Just wondering whether this brings any violations since everything has the same pattern.
0
I am new to Android development. I removed unnecessary code here, but the call to the Rest API has no issues. I have a fragment here that has a tablelayout within. A call is made to a Rest API in the async task, which is then supposed to insert the retrieved data into the table and refresh it. The problem is, that the table does not display the data after it is received. Can someone please point me in the right direction into how to resolve this? Thanks!

public class TransactionsFragment extends Fragment {
    final String urlString = "https:/exampleurl.net/restapi/Handler.ashx";
    String cnoKey = "com.example.app.saveCredentials.cno";
    String aliasnameKey = "com.example.app.saveCredentials.aliasname";
    SharedPreferences prefs;
    LayoutInflater inflaterGlobal;
    ViewGroup containerGlobal;

    List<String> recids;
    List<String> folders;
    List<String> whotos;
    List<String> directions;
    List<String> documents;
    List<String> thedates;

    View rootView;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        View rootView = inflater.inflate(R.layout.fragment_transactions, container, false);
        inflaterGlobal = inflater;
        containerGlobal = container;

        TableLayout ll = (TableLayout) rootView.findViewById(R.id.tableLayout1);

        prefs = getActivity().getPreferences(Context.MODE_PRIVATE);
        String aliasname = 

Open in new window

0
Hi, My Samsung s4 mini was stolen. I tried a program: Androidlost.com which says some GPS was successfully installed in the phone. When I looked and try located don't get it. I spend some time and there was a option to type the last location, after, I typed next and I got a next location very close where the robbery took place but  I can not remember what I press. I have the original box with the FCC ID number and I have my google account. With that info can get the phone back?
0
Announcing the Most Valuable Experts of 2016
LVL 6
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

My smartphone was stolen at a party
0
Hi,
  I tried to compile a project from internet

https://github.com/jgh-/VideoCore

however, when I compile in real device, it shows 3 errors.
1.  undefined symbol in armv64 (so I remove this)
2. the following

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_VCSimpleSession", referenced from:
      objc-class-ref in ViewController.o

I have no idea how to get rid of this error.  Please help
Alex
0
who use my phone or where is my phone
0
Hi friends,
     Today i lost my samsung S4 mini mobile.how to track  my mobile?please help me...................
0
Hi ,

How do i achieve android app to pick one sentence randomly from a set of sentences and push that quote as notification message. I want user to click ok to clear message.

Please kindly post code.

Many thanks in advance.
0
I'm making a gmail account and gmail wants me to give them a phone number for SMS to activate it.

I don't have a phone number to give. Is there a way to bypass this?

Are there any FREE online numbers that will work with activating gmail? I've tried a few online, but, they don't work.
0

Smartphone Programming

7K

Solutions

42

Articles & Videos

7K

Contributors

Smartphones run using a variety of operating systems -- Android, iOS and Windows Mobile most commonly -- and an even wider variety of programming languages, including Objective-C, Java, Visual C#, C++ and .NET, not to mention HTML5 and JavaScript, and cross-platform frameworks such as PhoneGap.